[03:00:39]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:49]accept exits with 9 [03:01:49]New connection [03:01:49]New thread 3067460964 created [03:01:49]Thread 3067317604 joined [03:01:49]Waiting for new connection... [03:01:49] Sock 9.Parse request [03:01:49]Sock 9.Check first char [03:01:49]Sock 9.First char is OK [03:01:49]request: POST /json_proto HTTP/1.0 [03:01:49]Method: POST [03:01:49]URL: /json_proto [03:01:49]Method is POST - this is cgi request [03:01:49]url: /json_proto [03:01:49]query_string will be loaded in cgi processing [03:01:49]execute_cgi json_proto POST (null) [03:01:49]execute_cgi path=json_proto method=POST [03:01:49]POST find Content-Length [03:01:49]Host: 172.17.45.132:8080 [03:01:49]Content-Length: 1691 [03:01:49]Content-Type: application/json [03:01:49] [03:01:49]POST finish read [03:01:49]Found Content-Length = 1691 [03:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126452", "tax_sys" : 0, "items" : [ { "code": "4780028461378", "name": "\u0412\u0438\u043D\u043E \u043D\u0430\u0442\u0443\u0440\u0430\u043B\u044C\u043D\u043E\u0435 \u0441\u043E\u0440\u0442\u043E\u0432\u043E\u0435 OREANDA Merlot", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1136.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:49]execute_script... [03:01: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)126452", "tax_sys" : 0, "items" : [ { "code": "4780028461378", "name": "\u0412\u0438\u043D\u043E \u043D\u0430\u0442\u0443\u0440\u0430\u043B\u044C\u043D\u043E\u0435 \u0441\u043E\u0440\u0442\u043E\u0432\u043E\u0435 OREANDA Merlot", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1136.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:49]POST & json_proto [03:01:50]process_json_proto [03:01:50]json parsed OK: [03:01:50]protocol is kg_v1.0 [03:01:50]action value=close_receipt [03:01:50]process_action close_receipt [03:01:50]cmd_close_receipt [03:01:50]MH_GetDate [03:01:50]Write to MH i2c: F0 00 00 A4 6D 00 [03:01:50]OFD Sender: No OFD packet to send [03:01:50]Write i2c OK [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: F0 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: F0 09 00 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: F0 09 00 A4 6D 00 27 06 A7 66 E3 0B 90 66 27 [03:01:50]GetLastDocTimeStamp 1722218562 [03:01:50]current date 1722222119 [03:01:50]FM_GetShiftState [03:01:50]SAM_PROTO_GetShiftState [03:01:50]wFMCommunicate request_size=4 [03:01:50]MH_SAM_APDU [03:01:50]CAPDU: 80 13 01 00 [03:01:50]Write to MH i2c: E2 08 00 A5 6D 80 13 01 00 00 00 00 00 8F [03:01:50]Write i2c OK [03:01:50]MH_I2C_Read... [03:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:50]Read from MH i2c: E2 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: E2 0E 00 [03:01:50]MH_I2C_Read... [03:01:50]Read from MH i2c: E2 0E 00 A5 6D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 88 [03:01:50]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:01:50]wFMCommunicate OK [03:01:50]SAM_PROTO_GetShiftState done [03:01:50]FM_GetShiftState done [03:01:50]opened in 1722213119 [03:01:50]opened+sec_in_day 1722299519 [03:01:50]quantity*price = 55000 [03:01:50]sum+1 = 55001 [03:01:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681376 ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 2.000 * 170.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1136.00 НСП 1% : 10.06 НДС 12% : 120.64 Наличными: 0.00 Безнал.: 1136.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 8 29.07.2024 03:01 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2159 ФПД: 106062947213795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T030159&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2159&fm=106062947213795&tin=02508201610067®Number=0000000000189667&sum=113600 0 [03:01:51]StoreToDocumentArchive [03:01:51]shift 15 fd 2159 [03:01:51]save to /storage/0015/doc_00002159 [03:01:51]save last doc name /storage/0015/doc_00002159 to /storage/kkm_last_doc_name [03:01:51]save OK [03:01:51]Clear old archive folders... [03:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=641 [03:01:51]tlvbuf is 020E45E0 [03:01:51]SAM_PROTO_ClearQueue [03:01:51]wFMCommunicate request_size=4 [03:01:51]MH_SAM_APDU [03:01:51]CAPDU: 80 09 00 00 [03:01:51]Write to MH i2c: E2 08 00 B2 6D 80 09 00 00 00 00 00 00 91 [03:01:51]Write i2c OK [03:01:51]MH_I2C_Read... [03:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:01:51]Read from MH i2c: E2 [03:01:51]MH_I2C_Read... [03:01:51]Read from MH i2c: E2 03 00 [03:01:51]MH_I2C_Read... [03:01:51]Read from MH i2c: E2 03 00 B2 6D 00 90 00 93 [03:01:51]RAPDU: 90 00 [03:01:51]wFMCommunicate OK [03:01:51]SAM_PROTO_ClearQueue done [03:01:51]KKMCreateOFDPacket [03:01:51]OFDProtocolAddRootSTLVToBuf [03:01:51]FM_MakeSignedData [03:01:51]FM_MakeSignedData [03:01:51]SAM_PROTO_SignData [03:01:51]wFMCommunicate request_size=4 [03:01:51]MH_SAM_APDU [03:01:51]CAPDU: 80 0D 01 02 [03:01:51]Write to MH i2c: E2 08 00 B3 6D 80 0D 01 02 00 00 00 00 99 [03:01:51]Write i2c OK [03:01:51]MH_I2C_Read... [03:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:01:51]Read from MH i2c: E2 [03:01:51]MH_I2C_Read... [03:01:51]Read from MH i2c: E2 03 00 [03:01:51]MH_I2C_Read... [03:01:51]Read from MH i2c: E2 03 00 B3 6D 00 90 00 94 [03:01:51]RAPDU: 90 00 [03:01:51]wFMCommunicate OK [03:01:51]wFMCommunicate request_size=255 [03:01:51]MH_SAM_APDU [03:01:51]CAPDU: 80 0D 02 02 FA 03 00 81 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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:51]Write to MH i2c: E2 02 01 B4 6D 80 0D 02 02 FA 00 03 00 81 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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 00 00 80 [03:01:51]Write i2c OK [03:01:51]MH_I2C_Read... [03:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:51]Read from MH i2c: E2 [03:01:51]MH_I2C_Read... [03:01:51]Read from MH i2c: E2 03 00 [03:01:51]MH_I2C_Read... [03:01:51]Read from MH i2c: E2 03 00 B4 6D 00 90 00 95 [03:01:51]RAPDU: 90 00 [03:01:51]wFMCommunicate OK [03:01:51]wFMCommunicate request_size=255 [03:01:51]MH_SAM_APDU [03:01:51]CAPDU: 80 0D 02 02 FA 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 BB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [03:01:51]Write to MH i2c: E2 02 01 B5 6D 80 0D 02 02 FA 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 BB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 06 [03:01:51]Write i2c OK [03:01:51]MH_I2C_Read... [03:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:52]Read from MH i2c: E2 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 03 00 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 03 00 B5 6D 00 90 00 96 [03:01:52]RAPDU: 90 00 [03:01:52]wFMCommunicate OK [03:01:52]wFMCommunicate request_size=150 [03:01:52]MH_SAM_APDU [03:01:52]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 EE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 BB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 06 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6F 08 00 00 35 04 06 00 60 76 B4 4A E1 E3 [03:01:52]Write to MH i2c: E2 99 00 B6 6D 80 0D 02 02 91 00 01 00 01 F7 03 06 00 EE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 BB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 06 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6F 08 00 00 35 04 06 00 60 76 B4 4A E1 E3 00 00 13 [03:01:52]Write i2c OK [03:01:52]MH_I2C_Read... [03:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:52]Read from MH i2c: E2 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 03 00 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 03 00 B6 6D 00 90 00 97 [03:01:52]RAPDU: 90 00 [03:01:52]wFMCommunicate OK [03:01:52]wFMCommunicate request_size=4 [03:01:52]MH_SAM_APDU [03:01:52]CAPDU: 80 0D 03 02 [03:01:52]Write to MH i2c: E2 08 00 B7 6D 80 0D 03 02 00 00 00 00 9F [03:01:52]Write i2c OK [03:01:52]MH_I2C_Read... [03:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:01:52]Read from MH i2c: E2 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 0B 00 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 0B 00 B7 6D 00 17 37 5E 7D 0A 6E 7D AC 90 00 6A [03:01:52]RAPDU: 17 37 5E 7D 0A 6E 7D AC 90 00 [03:01:52]wFMCommunicate OK [03:01:52]SAM_PROTO_SignData done [03:01:52]FM_MakeSignedData done [03:01:52]CreateOFDProtocolMessage [03:01:52]wFMCommunicate request_size=4 [03:01:52]MH_SAM_APDU [03:01:52]CAPDU: 80 11 00 00 [03:01:52]Write to MH i2c: E2 08 00 B8 6D 80 11 00 00 00 00 00 00 9F [03:01:52]Write i2c OK [03:01:52]MH_I2C_Read... [03:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:52]Read from MH i2c: E2 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 17 00 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: E2 17 00 B8 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EF [03:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:01:52]wFMCommunicate OK [03:01:52]CreateOFDProtocolMessage done [03:01:52]OFDSenderStorePacket 2159 [03:01:52]StoreOFDPacket docnum=2159 [03:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 95 02 00 00 D6 8B 8D 02 0A 31 5A 03 01 00 03 00 81 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 BB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 BB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 06 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6F 08 00 00 35 04 06 00 60 76 B4 4A E1 E3 17 37 5E 7D 0A 6E 7D AC [03:01:52]CheckFolder [03:01:52]dirname=/storage/ofd_packets [03:01:52]CheckFolder done [03:01:52]ProducePacketName [03:01:52]name=ofd_packets/00002159 [03:01:52]NVStorageSaveData ofd_packets/00002159 [03:01:52]File name is /storage/ofd_packets/00002159 [03:01:52]Write 691 bytes [03:01:52]NVStorageSaveData done [03:01:52]OFDSenderStorePacket done [03:01:52]KKMCreateOFDPacket done [03:01:52]NVStorageSaveData kkm_last_timestamp [03:01:52]File name is /storage/kkm_last_timestamp [03:01:52]Write 4 bytes [03:01:52]NVStorageSaveData done [03:01:52]ExternCall_PrintAddStr [03:01:52]wPrintStart [03:01:52]Write to MH i2c: 01 00 00 B9 6D 26 [03:01:52]Write i2c OK [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: 01 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: 01 07 00 [03:01:52]MH_I2C_Read... [03:01:52]Read from MH i2c: 01 07 00 B9 6D 00 00 00 00 00 FF 0F 3B [03:01:52]RasterBufferAndPrint [03:01:52]line Счет N : (3)126452 [03:01:52]line ИНН: 02508201610067 [03:01:52]line Контрольно-Кассовый Чек [03:01:52]line ПРОДАЖА [03:01:52]line Товар: 4780028461378 [03:01:52]line Вино натуральное сортовое OREANDA Merlot [03:01:52]line 1.000 * 550.00 [03:01:52]line = 550.00 [03:01:52]line НДС 12% НСП 1% [03:01:52]line > о реализуемом товаре [03:01:52]line Товар: 4870235681376 [03:01:52]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [03:01:52]line 1.000 * 95.00 [03:01:52]line = 95.00 [03:01:52]line НДС 12% НСП 1% [03:01:52]line > о реализуемом товаре [03:01:52]line Товар: 4700000480357 [03:01:52]line Пиво шахтерское 1л ПЭТ [03:01:52]line 2.000 * 170.00 [03:01:52]line = 340.00 [03:01:52]line НДС 12% НСП 1% [03:01:52]line > о реализуемом товаре [03:01:52]line Товар: 48741958 [03:01:52]line Сигареты Parliament Aqua Blue [03:01:52]line 1.000 * 151.00 [03:01:52]line = 151.00 [03:01:52]line НДС 12% НСП 1% [03:01:52]line > о реализуемом товаре [03:01:52]line ИТОГО: 1136.00 [03:01:52]line НСП 1% : 10.06 [03:01:52]line НДС 12% : 120.64 [03:01:52]line Наличными: 0.00 [03:01:52]line Безнал.: 1136.00 [03:01:52]line Место: АЗС № 127 "Партнер Нефть" [03:01:52]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:01:52]line СНО: Общий режим [03:01:52]line Чек 8 29.07.2024 03:01 [03:01:52]line Смена: 15 ФФД: 1.0 [03:01:52]line ЗНМ: 0300000161 [03:01:52]line РНМ: 0000000000189667 [03:01:52]line Версия ККМ: v1.0 [03:01:52]line Платежная система: O! деньги [03:01:52]line ФМ: 0000000002094248 [03:01:52]line ФД: 2159 [03:01:52]line ФПД: 106062947213795 [03:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T030159&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2159&fm=106062947213795&tin=02508201610067®Number=0000000000189667&sum=113600 [03:01:52]line 0 [03:01:52]OFD Sender: Processing packet 2159 [packets to send 1, broken 0] [03:01:52]ProducePacketName [03:01:52]name=ofd_packets/00002159 [03:01:52]OFD Sender: To server: pG, [03:01:52]CommunicateWithHost lk.salyk.kg:30040 [03:01:52]ConnectInit lk.salyk.kg [03:01:52]written 0, free lines is 4095 [03:01:52]Connected sock=10 [03:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 95 02 00 00 D6 8B 8D 02 0A 31 5A 03 01 00 03 00 81 02 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 37 38 30 30 32 38 34 36 31 33 37 38 06 04 3F 00 D0 92 D0 B8 D0 BD D0 BE 20 D0 BD D0 B0 D1 82 D1 83 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 BE D0 B5 20 D1 81 D0 BE D1 80 D1 82 D0 BE D0 B2 D0 BE D0 B5 20 4F 52 45 41 4E 44 41 20 4D 65 72 6C 6F 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 BB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 BB 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 27 06 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 6F 08 00 00 35 04 06 00 60 76 B4 4A E1 E3 17 37 5E 7D 0A 6E 7D AC [03:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A8 0F 47 00 08 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 32 30 39 34 32 34 38 10 04 04 00 6F 08 00 00 F4 03 04 00 95 B1 A6 66 B6 04 01 00 00 B0 8C F1 95 70 0A 27 8E [03:01:53]CommunicateWithHost err = 0 [03:01:53]CheckOFDResponse [03:01:53]1017 (14) - 77093643461234 [03:01:53]1041 (16) - 0000000002094248 [03:01:53]1040 (4) - 2159 [03:01:53]1012 (4) - 28.07.2024 21:01 [03:01:53]1206 (1) - 0 [03:01:53]OFD Sender: Remove packet 2159 [03:01:53]ProducePacketName [03:01:53]name=ofd_packets/00002159 [03:01:53]NVStorageDeleteData [03:01:53]Write to MH i2c: 01 00 00 F8 6D 65 [03:01:53]Write i2c OK [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: 01 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: 01 07 00 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: 01 07 00 F8 6D 00 00 00 00 00 E5 0B 5C [03:01:53]RasterBufferAndPrint [03:01:53]line [03:01:53]line [03:01:53]line [03:01:53]line [03:01:53]line [03:01:53]written 0, free lines is 3054 [03:01:53]MH_Cut [03:01:53]Write to MH i2c: D1 01 00 FF 6D 01 3E [03:01:53]Write i2c OK [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: D1 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: D1 01 00 [03:01:53]MH_I2C_Read... [03:01:53]Read from MH i2c: D1 01 00 FF 6D 00 3D [03:01:53]Write to MH i2c: 01 00 00 00 6E 6E [03:01:53]Write i2c OK [03:01:53]MH_I2C_Read... [03:01:53]OFD Sender: No OFD packet to send [03:01:54]*** Cut start [03:01:54]*** Partial cut [03:01:54]*** CUTSNS_PIN = 1 [03:01:54]*** CUTSNS_PIN = 0 [03:01:54]*** Brake cut motor [03:01:54]Read from MH i2c: 01 [03:01:54]MH_I2C_Read... [03:01:54]*** Stop cut motor [03:01:54]*** Cut end [03:01:54]Read from MH i2c: 01 07 00 [03:01:54]MH_I2C_Read... [03:01:54]Read from MH i2c: 01 07 00 00 6E 00 00 00 00 00 FF 0F 83 [03:01:54]process_action close_receipt done [03:01:54]requested_data is exist [03:01:54]produce_requested_data [03:01:54]requested_item fm.sn is exist - process it [03:01:54]wFMCommunicate request_size=4 [03:01:54]MH_SAM_APDU [03:01:54]CAPDU: 80 11 00 00 [03:01:54]Write to MH i2c: E2 08 00 01 6E 80 11 00 00 00 00 00 00 E9 [03:01:54]Write i2c OK [03:01:54]MH_I2C_Read... [03:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:54]Read from MH i2c: E2 [03:01:54]MH_I2C_Read... [03:01:54]Read from MH i2c: E2 17 00 [03:01:54]MH_I2C_Read... [03:01:54]Read from MH i2c: E2 17 00 01 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 39 [03:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:01:55]wFMCommunicate OK [03:01:55]requested_item fd.num is exist - process it [03:01:55]SAM_PROTO_GetFieldsCounters [03:01:55]wFMCommunicate request_size=4 [03:01:55]MH_SAM_APDU [03:01:55]CAPDU: 80 13 00 00 [03:01:55]Write to MH i2c: E2 08 00 02 6E 80 13 00 00 00 00 00 00 EC [03:01:55]Write i2c OK [03:01:55]MH_I2C_Read... [03:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:01:55]Read from MH i2c: E2 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: E2 62 00 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: E2 62 00 02 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6F 08 00 00 0E 04 04 00 0F 00 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 B4 [03:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 6F 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:01:55]wFMCommunicate OK [03:01:55]SAM_PROTO_GetFieldsCounters done [03:01:55]requested_item shift.num is exist - process it [03:01:55]requested_item shift.opened is exist - process it [03:01:55]req_shift_opened [03:01:55]FM_GetShiftState [03:01:55]SAM_PROTO_GetShiftState [03:01:55]wFMCommunicate request_size=4 [03:01:55]MH_SAM_APDU [03:01:55]CAPDU: 80 13 01 00 [03:01:55]Write to MH i2c: E2 08 00 03 6E 80 13 01 00 00 00 00 00 EE [03:01:55]Write i2c OK [03:01:55]MH_I2C_Read... [03:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:55]Read from MH i2c: E2 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: E2 0E 00 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: E2 0E 00 03 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E7 [03:01:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:01:55]wFMCommunicate OK [03:01:55]SAM_PROTO_GetShiftState done [03:01:55]FM_GetShiftState done [03:01:55]req_shift_opened done [03:01:55]requested_item shift.open_date is exist - process it [03:01:55]req_shift_open_date [03:01:55]req_shift_open_date done [03:01:55]produce_requested_data done [03:01:55]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2159,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [03:01:55]process_action_free close_receipt [03:01:55]json_value_free [03:01:55]json_value_free done [03:01:55]process_json_proto returns [03:01:55]Send response to host [03:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2159,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [03:01:55]free response buf [03:01:55]execute_script done [03:01:55]execute_script returns [03:01:55]free content buf [03:01:55]Sock 9.Close socket [03:01:55]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]accept exits with 8 [03:15:39]New connection [03:15:39]New thread 3067317604 created [03:15:39]Thread 3067460964 joined [03:15:39]Waiting for new connection... [03:15:39] Sock 8.Parse request [03:15:39]Sock 8.Check first char [03:15:39]Sock 8.First char is OK [03:15:39]request: POST /json_proto HTTP/1.0 [03:15:39]Method: POST [03:15:39]URL: /json_proto [03:15:39]Method is POST - this is cgi request [03:15:39]url: /json_proto [03:15:39]query_string will be loaded in cgi processing [03:15:39]execute_cgi json_proto POST (null) [03:15:39]execute_cgi path=json_proto method=POST [03:15:39]POST find Content-Length [03:15:39]Host: 172.17.45.132:8080 [03:15:39]Content-Length: 831 [03:15:39]Content-Type: application/json [03:15:39] [03:15:39]POST finish read [03:15:39]Found Content-Length = 831 [03:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126453", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:39]execute_script... [03:15: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)126453", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:39]POST & json_proto [03:15:39]process_json_proto [03:15:39]json parsed OK: [03:15:39]protocol is kg_v1.0 [03:15:39]action value=close_receipt [03:15:39]process_action close_receipt [03:15:39]cmd_close_receipt [03:15:39]MH_GetDate [03:15:39]Write to MH i2c: F0 00 00 04 6E 61 [03:15:39]Write i2c OK [03:15:39]MH_I2C_Read... [03:15:39]Read from MH i2c: F0 [03:15:39]MH_I2C_Read... [03:15:39]Read from MH i2c: F0 09 00 [03:15:39]MH_I2C_Read... [03:15:39]Read from MH i2c: F0 09 00 04 6E 00 64 09 A7 66 E3 0B 90 66 C8 [03:15:39]GetLastDocTimeStamp 1722222119 [03:15:39]current date 1722222948 [03:15:39]FM_GetShiftState [03:15:39]SAM_PROTO_GetShiftState [03:15:39]wFMCommunicate request_size=4 [03:15:39]MH_SAM_APDU [03:15:39]CAPDU: 80 13 01 00 [03:15:39]Write to MH i2c: E2 08 00 05 6E 80 13 01 00 00 00 00 00 F0 [03:15:39]Write i2c OK [03:15:39]MH_I2C_Read... [03:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:39]Read from MH i2c: E2 [03:15:39]MH_I2C_Read... [03:15:39]Read from MH i2c: E2 0E 00 [03:15:39]MH_I2C_Read... [03:15:39]Read from MH i2c: E2 0E 00 05 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E9 [03:15:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:15:39]wFMCommunicate OK [03:15:39]SAM_PROTO_GetShiftState done [03:15:39]FM_GetShiftState done [03:15:39]opened in 1722213119 [03:15:39]opened+sec_in_day 1722299519 [03:15:39]quantity*price = 34000 [03:15:39]sum+1 = 34001 [03:15:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 0.00 Безнал.: 340.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 9 29.07.2024 03:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2160 ФПД: 242780782941697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T031548&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2160&fm=242780782941697&tin=02508201610067®Number=0000000000189667&sum=34000 0 [03:15:40]StoreToDocumentArchive [03:15:40]shift 15 fd 2160 [03:15:40]save to /storage/0015/doc_00002160 [03:15:40]save last doc name /storage/0015/doc_00002160 to /storage/kkm_last_doc_name [03:15:40]save OK [03:15:40]Clear old archive folders... [03:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [03:15:40]tlvbuf is 0200EDD0 [03:15:40]SAM_PROTO_ClearQueue [03:15:40]wFMCommunicate request_size=4 [03:15:40]MH_SAM_APDU [03:15:40]CAPDU: 80 09 00 00 [03:15:40]Write to MH i2c: E2 08 00 12 6E 80 09 00 00 00 00 00 00 F2 [03:15:40]Write i2c OK [03:15:40]MH_I2C_Read... [03:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:15:40]Read from MH i2c: E2 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 12 6E 00 90 00 F4 [03:15:40]RAPDU: 90 00 [03:15:40]wFMCommunicate OK [03:15:40]SAM_PROTO_ClearQueue done [03:15:40]KKMCreateOFDPacket [03:15:40]OFDProtocolAddRootSTLVToBuf [03:15:40]FM_MakeSignedData [03:15:40]FM_MakeSignedData [03:15:40]SAM_PROTO_SignData [03:15:40]wFMCommunicate request_size=4 [03:15:40]MH_SAM_APDU [03:15:40]CAPDU: 80 0D 01 02 [03:15:40]Write to MH i2c: E2 08 00 13 6E 80 0D 01 02 00 00 00 00 FA [03:15:40]Write i2c OK [03:15:40]MH_I2C_Read... [03:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:15:40]Read from MH i2c: E2 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 13 6E 00 90 00 F5 [03:15:40]RAPDU: 90 00 [03:15:40]wFMCommunicate OK [03:15:40]wFMCommunicate request_size=255 [03:15:40]MH_SAM_APDU [03:15:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 64 09 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [03:15:40]Write to MH i2c: E2 02 01 14 6E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 64 09 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 3D [03:15:40]Write i2c OK [03:15:40]MH_I2C_Read... [03:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:40]Read from MH i2c: E2 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 14 6E 00 90 00 F6 [03:15:40]RAPDU: 90 00 [03:15:40]wFMCommunicate OK [03:15:40]wFMCommunicate request_size=41 [03:15:40]MH_SAM_APDU [03:15:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 70 08 00 00 35 04 06 00 DC CE CE 53 56 01 [03:15:40]Write to MH i2c: E2 2C 00 15 6E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 70 08 00 00 35 04 06 00 DC CE CE 53 56 01 00 00 63 [03:15:40]Write i2c OK [03:15:40]MH_I2C_Read... [03:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:40]Read from MH i2c: E2 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 03 00 15 6E 00 90 00 F7 [03:15:40]RAPDU: 90 00 [03:15:40]wFMCommunicate OK [03:15:40]wFMCommunicate request_size=4 [03:15:40]MH_SAM_APDU [03:15:40]CAPDU: 80 0D 03 02 [03:15:40]Write to MH i2c: E2 08 00 16 6E 80 0D 03 02 00 00 00 00 FF [03:15:40]Write i2c OK [03:15:40]MH_I2C_Read... [03:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:15:40]Read from MH i2c: E2 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 0B 00 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 0B 00 16 6E 00 06 1D EF 27 8D E9 34 4E 90 00 31 [03:15:40]RAPDU: 06 1D EF 27 8D E9 34 4E 90 00 [03:15:40]wFMCommunicate OK [03:15:40]SAM_PROTO_SignData done [03:15:40]FM_MakeSignedData done [03:15:40]CreateOFDProtocolMessage [03:15:40]wFMCommunicate request_size=4 [03:15:40]MH_SAM_APDU [03:15:40]CAPDU: 80 11 00 00 [03:15:40]Write to MH i2c: E2 08 00 17 6E 80 11 00 00 00 00 00 00 FF [03:15:40]Write i2c OK [03:15:40]MH_I2C_Read... [03:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:40]Read from MH i2c: E2 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 17 00 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: E2 17 00 17 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4F [03:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:15:40]wFMCommunicate OK [03:15:40]CreateOFDProtocolMessage done [03:15:40]OFDSenderStorePacket 2160 [03:15:40]StoreOFDPacket docnum=2160 [03:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 BD A1 26 01 EC B6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 64 09 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 70 08 00 00 35 04 06 00 DC CE CE 53 56 01 06 1D EF 27 8D E9 34 4E [03:15:40]CheckFolder [03:15:40]dirname=/storage/ofd_packets [03:15:40]CheckFolder done [03:15:40]ProducePacketName [03:15:40]name=ofd_packets/00002160 [03:15:40]NVStorageSaveData ofd_packets/00002160 [03:15:40]File name is /storage/ofd_packets/00002160 [03:15:40]Write 332 bytes [03:15:40]NVStorageSaveData done [03:15:40]OFDSenderStorePacket done [03:15:40]KKMCreateOFDPacket done [03:15:40]NVStorageSaveData kkm_last_timestamp [03:15:40]File name is /storage/kkm_last_timestamp [03:15:40]Write 4 bytes [03:15:40]NVStorageSaveData done [03:15:40]ExternCall_PrintAddStr [03:15:40]wPrintStart [03:15:40]Write to MH i2c: 01 00 00 18 6E 86 [03:15:40]OFD Sender: Processing packet 2160 [packets to send 1, broken 0] [03:15:40]ProducePacketName [03:15:40]name=ofd_packets/00002160 [03:15:40]OFD Sender: To server: pG, [03:15:40]CommunicateWithHost lk.salyk.kg:30040 [03:15:40]ConnectInit lk.salyk.kg [03:15:40]Write i2c OK [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: 01 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: 01 07 00 [03:15:40]MH_I2C_Read... [03:15:40]Read from MH i2c: 01 07 00 18 6E 00 00 00 00 00 FF 0F 9B [03:15:40]RasterBufferAndPrint [03:15:40]line Счет N : (3)126453 [03:15:40]line ИНН: 02508201610067 [03:15:40]line Контрольно-Кассовый Чек [03:15:40]line ПРОДАЖА [03:15:40]line Товар: 4700000480357 [03:15:40]line Пиво шахтерское 1л ПЭТ [03:15:40]line 2.000 * 170.00 [03:15:40]line = 340.00 [03:15:40]line НДС 12% НСП 1% [03:15:40]line > о реализуемом товаре [03:15:40]line ИТОГО: 340.00 [03:15:40]line НСП 1% : 3.01 [03:15:40]line НДС 12% : 36.11 [03:15:40]line Наличными: 0.00 [03:15:40]line Безнал.: 340.00 [03:15:40]line Место: АЗС № 127 "Партнер Нефть" [03:15:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:15:40]line СНО: Общий режим [03:15:40]line Чек 9 29.07.2024 03:15 [03:15:40]line Смена: 15 ФФД: 1.0 [03:15:40]line ЗНМ: 0300000161 [03:15:40]line РНМ: 0000000000189667 [03:15:40]line Версия ККМ: v1.0 [03:15:40]line Платежная система: O! деньги [03:15:40]line ФМ: 0000000002094248 [03:15:40]line ФД: 2160 [03:15:40]line ФПД: 242780782941697 [03:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T031548&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2160&fm=242780782941697&tin=02508201610067®Number=0000000000189667&sum=34000 [03:15:41]line 0 [03:15:41]Connected sock=10 [03:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 BD A1 26 01 EC B6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 64 09 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 70 08 00 00 35 04 06 00 DC CE CE 53 56 01 06 1D EF 27 8D E9 34 4E [03:15:41]written 0, free lines is 4095 [03:15:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 62 14 47 00 2E 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 32 30 39 34 32 34 38 10 04 04 00 70 08 00 00 F4 03 04 00 D1 B4 A6 66 B6 04 01 00 00 98 E0 12 57 FD 18 6C F5 [03:15:41]CommunicateWithHost err = 0 [03:15:41]CheckOFDResponse [03:15:41]1017 (14) - 77093643461234 [03:15:41]1041 (16) - 0000000002094248 [03:15:41]1040 (4) - 2160 [03:15:41]1012 (4) - 28.07.2024 21:14 [03:15:41]1206 (1) - 0 [03:15:41]OFD Sender: Remove packet 2160 [03:15:41]ProducePacketName [03:15:41]name=ofd_packets/00002160 [03:15:41]NVStorageDeleteData [03:15:41]Write to MH i2c: 01 00 00 42 6E B0 [03:15:41]Write i2c OK [03:15:41]MH_I2C_Read... [03:15:41]Read from MH i2c: 01 [03:15:41]MH_I2C_Read... [03:15:41]Read from MH i2c: 01 07 00 [03:15:41]MH_I2C_Read... [03:15:41]Read from MH i2c: 01 07 00 42 6E 00 00 00 00 00 F6 0C B9 [03:15:41]RasterBufferAndPrint [03:15:41]line [03:15:41]line [03:15:41]line [03:15:41]line [03:15:41]line [03:15:41]written 0, free lines is 3325 [03:15:41]MH_Cut [03:15:41]Write to MH i2c: D1 01 00 49 6E 01 89 [03:15:41]Write i2c OK [03:15:41]MH_I2C_Read... [03:15:41]Read from MH i2c: D1 [03:15:41]MH_I2C_Read... [03:15:41]Read from MH i2c: D1 01 00 [03:15:41]MH_I2C_Read... [03:15:41]Read from MH i2c: D1 01 00 49 6E 00 88 [03:15:41]Write to MH i2c: 01 00 00 4A 6E B8 [03:15:41]Write i2c OK [03:15:41]MH_I2C_Read... [03:15:42]OFD Sender: No OFD packet to send [03:15:42]*** Cut start [03:15:42]*** Partial cut [03:15:42]*** CUTSNS_PIN = 1 [03:15:42]*** CUTSNS_PIN = 0 [03:15:42]*** Brake cut motor [03:15:43]Read from MH i2c: 01 [03:15:43]MH_I2C_Read... [03:15:43]*** Stop cut motor [03:15:43]*** Cut end [03:15:43]Read from MH i2c: 01 07 00 [03:15:43]MH_I2C_Read... [03:15:43]Read from MH i2c: 01 07 00 4A 6E 00 00 00 00 00 FF 0F CD [03:15:43]process_action close_receipt done [03:15:43]requested_data is exist [03:15:43]produce_requested_data [03:15:43]requested_item fm.sn is exist - process it [03:15:43]wFMCommunicate request_size=4 [03:15:43]MH_SAM_APDU [03:15:43]CAPDU: 80 11 00 00 [03:15:43]Write to MH i2c: E2 08 00 4B 6E 80 11 00 00 00 00 00 00 33 [03:15:43]Write i2c OK [03:15:43]MH_I2C_Read... [03:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:43]Read from MH i2c: E2 [03:15:43]MH_I2C_Read... [03:15:43]Read from MH i2c: E2 17 00 [03:15:43]MH_I2C_Read... [03:15:43]Read from MH i2c: E2 17 00 4B 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 83 [03:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:15:43]wFMCommunicate OK [03:15:43]requested_item fd.num is exist - process it [03:15:43]SAM_PROTO_GetFieldsCounters [03:15:43]wFMCommunicate request_size=4 [03:15:43]MH_SAM_APDU [03:15:43]CAPDU: 80 13 00 00 [03:15:43]Write to MH i2c: E2 08 00 4C 6E 80 13 00 00 00 00 00 00 36 [03:15:43]Write i2c OK [03:15:43]MH_I2C_Read... [03:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:15:43]Read from MH i2c: E2 [03:15:43]MH_I2C_Read... [03:15:43]Read from MH i2c: E2 62 00 [03:15:43]MH_I2C_Read... [03:15:43]Read from MH i2c: E2 62 00 4C 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 70 08 00 00 0E 04 04 00 0F 00 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 [03:15:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 70 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:15:43]wFMCommunicate OK [03:15:43]SAM_PROTO_GetFieldsCounters done [03:15:43]requested_item shift.num is exist - process it [03:15:43]requested_item shift.opened is exist - process it [03:15:43]req_shift_opened [03:15:43]FM_GetShiftState [03:15:43]SAM_PROTO_GetShiftState [03:15:43]wFMCommunicate request_size=4 [03:15:43]MH_SAM_APDU [03:15:43]CAPDU: 80 13 01 00 [03:15:43]Write to MH i2c: E2 08 00 4D 6E 80 13 01 00 00 00 00 00 38 [03:15:43]Write i2c OK [03:15:43]MH_I2C_Read... [03:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:43]Read from MH i2c: E2 [03:15:43]MH_I2C_Read... [03:15:43]Read from MH i2c: E2 0E 00 [03:15:43]MH_I2C_Read... [03:15:43]Read from MH i2c: E2 0E 00 4D 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 31 [03:15:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:15:43]wFMCommunicate OK [03:15:43]SAM_PROTO_GetShiftState done [03:15:43]FM_GetShiftState done [03:15:43]req_shift_opened done [03:15:43]requested_item shift.open_date is exist - process it [03:15:43]req_shift_open_date [03:15:43]req_shift_open_date done [03:15:43]produce_requested_data done [03:15:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2160,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [03:15:43]process_action_free close_receipt [03:15:43]json_value_free [03:15:43]json_value_free done [03:15:43]process_json_proto returns [03:15:43]Send response to host [03:15:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2160,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [03:15:43]free response buf [03:15:43]execute_script done [03:15:43]execute_script returns [03:15:43]free content buf [03:15:43]Sock 8.Close socket [03:15:43]Sock 8.Thread stoped [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]accept exits with 9 [03:22:12]New connection [03:22:12]New thread 3067460964 created [03:22:12]Thread 3067317604 joined [03:22:12]Waiting for new connection... [03:22:12] Sock 9.Parse request [03:22:12]Sock 9.Check first char [03:22:12]Sock 9.First char is OK [03:22:12]request: POST /json_proto HTTP/1.0 [03:22:12]Method: POST [03:22:12]URL: /json_proto [03:22:12]Method is POST - this is cgi request [03:22:12]url: /json_proto [03:22:12]query_string will be loaded in cgi processing [03:22:12]execute_cgi json_proto POST (null) [03:22:12]execute_cgi path=json_proto method=POST [03:22:12]POST find Content-Length [03:22:12]Host: 172.17.45.132:8080 [03:22:12]Content-Length: 837 [03:22:12]Content-Type: application/json [03:22:12] [03:22:12]POST finish read [03:22:12]Found Content-Length = 837 [03:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126454", "tax_sys" : 0, "items" : [ { "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:12]execute_script... [03:22: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)126454", "tax_sys" : 0, "items" : [ { "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:12]POST & json_proto [03:22:12]process_json_proto [03:22:12]json parsed OK: [03:22:12]protocol is kg_v1.0 [03:22:12]action value=close_receipt [03:22:12]process_action close_receipt [03:22:12]cmd_close_receipt [03:22:12]MH_GetDate [03:22:12]Write to MH i2c: F0 00 00 4E 6E AB [03:22:12]Write i2c OK [03:22:12]MH_I2C_Read... [03:22:12]Read from MH i2c: F0 [03:22:12]MH_I2C_Read... [03:22:12]Read from MH i2c: F0 09 00 [03:22:12]MH_I2C_Read... [03:22:12]Read from MH i2c: F0 09 00 4E 6E 00 ED 0A A7 66 E3 0B 90 66 9C [03:22:12]GetLastDocTimeStamp 1722222948 [03:22:12]current date 1722223341 [03:22:12]FM_GetShiftState [03:22:12]SAM_PROTO_GetShiftState [03:22:12]wFMCommunicate request_size=4 [03:22:12]MH_SAM_APDU [03:22:12]CAPDU: 80 13 01 00 [03:22:12]Write to MH i2c: E2 08 00 4F 6E 80 13 01 00 00 00 00 00 3A [03:22:12]Write i2c OK [03:22:12]MH_I2C_Read... [03:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:12]Read from MH i2c: E2 [03:22:12]MH_I2C_Read... [03:22:12]Read from MH i2c: E2 0E 00 [03:22:12]MH_I2C_Read... [03:22:12]Read from MH i2c: E2 0E 00 4F 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 33 [03:22:12]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:22:12]wFMCommunicate OK [03:22:12]SAM_PROTO_GetShiftState done [03:22:12]FM_GetShiftState done [03:22:12]opened in 1722213119 [03:22:12]opened+sec_in_day 1722299519 [03:22:12]quantity*price = 20500 [03:22:12]sum+1 = 20501 [03:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 10 29.07.2024 03:22 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2161 ФПД: 231344708735202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T032221&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2161&fm=231344708735202&tin=02508201610067®Number=0000000000189667&sum=20500 0 [03:22:13]StoreToDocumentArchive [03:22:13]shift 15 fd 2161 [03:22:13]save to /storage/0015/doc_00002161 [03:22:13]save last doc name /storage/0015/doc_00002161 to /storage/kkm_last_doc_name [03:22:13]save OK [03:22:13]Clear old archive folders... [03:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=284 [03:22:13]tlvbuf is 01FE82E0 [03:22:13]SAM_PROTO_ClearQueue [03:22:13]wFMCommunicate request_size=4 [03:22:13]MH_SAM_APDU [03:22:13]CAPDU: 80 09 00 00 [03:22:13]Write to MH i2c: E2 08 00 5C 6E 80 09 00 00 00 00 00 00 3C [03:22:13]Write i2c OK [03:22:13]MH_I2C_Read... [03:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:13]Read from MH i2c: E2 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 5C 6E 00 90 00 3E [03:22:13]RAPDU: 90 00 [03:22:13]wFMCommunicate OK [03:22:13]SAM_PROTO_ClearQueue done [03:22:13]KKMCreateOFDPacket [03:22:13]OFDProtocolAddRootSTLVToBuf [03:22:13]FM_MakeSignedData [03:22:13]FM_MakeSignedData [03:22:13]SAM_PROTO_SignData [03:22:13]wFMCommunicate request_size=4 [03:22:13]MH_SAM_APDU [03:22:13]CAPDU: 80 0D 01 02 [03:22:13]Write to MH i2c: E2 08 00 5D 6E 80 0D 01 02 00 00 00 00 44 [03:22:13]Write i2c OK [03:22:13]MH_I2C_Read... [03:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:13]Read from MH i2c: E2 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 5D 6E 00 90 00 3F [03:22:13]RAPDU: 90 00 [03:22:13]wFMCommunicate OK [03:22:13]wFMCommunicate request_size=255 [03:22:13]MH_SAM_APDU [03:22:13]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 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 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 0A 00 00 00 F4 03 04 00 ED 0A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [03:22:13]Write to MH i2c: E2 02 01 5E 6E 80 0D 02 02 FA 00 03 00 1C 01 1E 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 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 0A 00 00 00 F4 03 04 00 ED 0A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 5C [03:22:13]Write i2c OK [03:22:13]MH_I2C_Read... [03:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:13]Read from MH i2c: E2 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 5E 6E 00 90 00 40 [03:22:13]RAPDU: 90 00 [03:22:13]wFMCommunicate OK [03:22:13]wFMCommunicate request_size=43 [03:22:13]MH_SAM_APDU [03:22:13]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 71 08 00 00 35 04 06 00 D2 68 23 2F 50 E2 [03:22:13]Write to MH i2c: E2 2E 00 5F 6E 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 71 08 00 00 35 04 06 00 D2 68 23 2F 50 E2 00 00 63 [03:22:13]Write i2c OK [03:22:13]MH_I2C_Read... [03:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:13]Read from MH i2c: E2 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 03 00 5F 6E 00 90 00 41 [03:22:13]RAPDU: 90 00 [03:22:13]wFMCommunicate OK [03:22:13]wFMCommunicate request_size=4 [03:22:13]MH_SAM_APDU [03:22:13]CAPDU: 80 0D 03 02 [03:22:13]Write to MH i2c: E2 08 00 60 6E 80 0D 03 02 00 00 00 00 49 [03:22:13]Write i2c OK [03:22:13]MH_I2C_Read... [03:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:13]Read from MH i2c: E2 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 0B 00 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 0B 00 60 6E 00 00 FB A2 5E 4A CF C3 B8 90 00 D9 [03:22:13]RAPDU: 00 FB A2 5E 4A CF C3 B8 90 00 [03:22:13]wFMCommunicate OK [03:22:13]SAM_PROTO_SignData done [03:22:13]FM_MakeSignedData done [03:22:13]CreateOFDProtocolMessage [03:22:13]wFMCommunicate request_size=4 [03:22:13]MH_SAM_APDU [03:22:13]CAPDU: 80 11 00 00 [03:22:13]Write to MH i2c: E2 08 00 61 6E 80 11 00 00 00 00 00 00 49 [03:22:13]Write i2c OK [03:22:13]MH_I2C_Read... [03:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:13]Read from MH i2c: E2 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 17 00 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: E2 17 00 61 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 99 [03:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:22:13]wFMCommunicate OK [03:22:13]CreateOFDProtocolMessage done [03:22:13]OFDSenderStorePacket 2161 [03:22:13]StoreOFDPacket docnum=2161 [03:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 69 DF 28 01 02 04 5A 03 01 00 03 00 1C 01 1E 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 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 0A 00 00 00 F4 03 04 00 ED 0A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 71 08 00 00 35 04 06 00 D2 68 23 2F 50 E2 00 FB A2 5E 4A CF C3 B8 [03:22:13]CheckFolder [03:22:13]dirname=/storage/ofd_packets [03:22:13]CheckFolder done [03:22:13]ProducePacketName [03:22:13]name=ofd_packets/00002161 [03:22:13]NVStorageSaveData ofd_packets/00002161 [03:22:13]File name is /storage/ofd_packets/00002161 [03:22:13]Write 334 bytes [03:22:13]NVStorageSaveData done [03:22:13]OFDSenderStorePacket done [03:22:13]KKMCreateOFDPacket done [03:22:13]NVStorageSaveData kkm_last_timestamp [03:22:13]File name is /storage/kkm_last_timestamp [03:22:13]Write 4 bytes [03:22:13]NVStorageSaveData done [03:22:13]ExternCall_PrintAddStr [03:22:13]wPrintStart [03:22:13]Write to MH i2c: 01 00 00 62 6E D0 [03:22:13]Write i2c OK [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: 01 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: 01 07 00 [03:22:13]MH_I2C_Read... [03:22:13]Read from MH i2c: 01 07 00 62 6E 00 00 00 00 00 FF 0F E5 [03:22:13]RasterBufferAndPrint [03:22:13]line Счет N : (3)126454 [03:22:13]line ИНН: 02508201610067 [03:22:13]line Контрольно-Кассовый Чек [03:22:13]line ПРОДАЖА [03:22:13]line Товар: 4602441000081 [03:22:13]line Напитк Тархун 1л стекло [03:22:13]line 1.000 * 205.00 [03:22:13]line = 205.00 [03:22:13]line НДС 12% НСП 1% [03:22:13]line > о реализуемом товаре [03:22:13]line ИТОГО: 205.00 [03:22:13]line НСП 1% : 1.81 [03:22:13]line НДС 12% : 21.77 [03:22:13]line Наличными: 0.00 [03:22:13]line Безнал.: 205.00 [03:22:13]line Место: АЗС № 127 "Партнер Нефть" [03:22:13]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:22:13]line СНО: Общий режим [03:22:13]line Чек 10 29.07.2024 03:22 [03:22:13]line Смена: 15 ФФД: 1.0 [03:22:13]line ЗНМ: 0300000161 [03:22:13]line РНМ: 0000000000189667 [03:22:13]line Версия ККМ: v1.0 [03:22:13]line Платежная система: O! деньги [03:22:13]line ФМ: 0000000002094248 [03:22:13]line ФД: 2161 [03:22:13]line ФПД: 231344708735202 [03:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T032221&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2161&fm=231344708735202&tin=02508201610067®Number=0000000000189667&sum=20500 [03:22:14]line 0 [03:22:14]OFD Sender: Processing packet 2161 [packets to send 1, broken 0] [03:22:14]ProducePacketName [03:22:14]name=ofd_packets/00002161 [03:22:14]OFD Sender: To server: pG, [03:22:14]CommunicateWithHost lk.salyk.kg:30040 [03:22:14]ConnectInit lk.salyk.kg [03:22:14]written 0, free lines is 4095 [03:22:14]Connected sock=8 [03:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 69 DF 28 01 02 04 5A 03 01 00 03 00 1C 01 1E 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 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 0A 00 00 00 F4 03 04 00 ED 0A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 71 08 00 00 35 04 06 00 D2 68 23 2F 50 E2 00 FB A2 5E 4A CF C3 B8 [03:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 88 67 47 00 6B B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 71 08 00 00 F4 03 04 00 5A B6 A6 66 B6 04 01 00 00 EA 50 E9 CF A7 3A 0D 9F [03:22:14]CommunicateWithHost err = 0 [03:22:14]CheckOFDResponse [03:22:14]1017 (14) - 77093643461234 [03:22:14]1041 (16) - 0000000002094248 [03:22:14]1040 (4) - 2161 [03:22:14]1012 (4) - 28.07.2024 21:21 [03:22:14]1206 (1) - 0 [03:22:14]OFD Sender: Remove packet 2161 [03:22:14]ProducePacketName [03:22:14]name=ofd_packets/00002161 [03:22:14]NVStorageDeleteData [03:22:14]Write to MH i2c: 01 00 00 8C 6E FA [03:22:14]Write i2c OK [03:22:14]MH_I2C_Read... [03:22:14]Read from MH i2c: 01 [03:22:14]MH_I2C_Read... [03:22:14]Read from MH i2c: 01 07 00 [03:22:14]MH_I2C_Read... [03:22:14]Read from MH i2c: 01 07 00 8C 6E 00 00 00 00 00 0F 0D 1D [03:22:14]RasterBufferAndPrint [03:22:14]line [03:22:14]line [03:22:14]line [03:22:14]line [03:22:14]line [03:22:14]written 0, free lines is 3349 [03:22:14]MH_Cut [03:22:14]Write to MH i2c: D1 01 00 93 6E 01 D3 [03:22:14]Write i2c OK [03:22:14]MH_I2C_Read... [03:22:14]Read from MH i2c: D1 [03:22:14]MH_I2C_Read... [03:22:14]Read from MH i2c: D1 01 00 [03:22:14]MH_I2C_Read... [03:22:14]Read from MH i2c: D1 01 00 93 6E 00 D2 [03:22:14]Write to MH i2c: 01 00 00 94 6E 02 [03:22:14]Write i2c OK [03:22:14]MH_I2C_Read... [03:22:15]OFD Sender: No OFD packet to send [03:22:15]*** Cut start [03:22:15]*** Partial cut [03:22:15]*** CUTSNS_PIN = 1 [03:22:15]*** CUTSNS_PIN = 0 [03:22:15]*** Brake cut motor [03:22:16]Read from MH i2c: 01 [03:22:16]MH_I2C_Read... [03:22:16]*** Stop cut motor [03:22:16]*** Cut end [03:22:16]Read from MH i2c: 01 07 00 [03:22:16]MH_I2C_Read... [03:22:16]Read from MH i2c: 01 07 00 94 6E 00 00 00 00 00 FF 0F 17 [03:22:16]process_action close_receipt done [03:22:16]requested_data is exist [03:22:16]produce_requested_data [03:22:16]requested_item fm.sn is exist - process it [03:22:16]wFMCommunicate request_size=4 [03:22:16]MH_SAM_APDU [03:22:16]CAPDU: 80 11 00 00 [03:22:16]Write to MH i2c: E2 08 00 95 6E 80 11 00 00 00 00 00 00 7D [03:22:16]Write i2c OK [03:22:16]MH_I2C_Read... [03:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:16]Read from MH i2c: E2 [03:22:16]MH_I2C_Read... [03:22:16]Read from MH i2c: E2 17 00 [03:22:16]MH_I2C_Read... [03:22:16]Read from MH i2c: E2 17 00 95 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CD [03:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:22:16]wFMCommunicate OK [03:22:16]requested_item fd.num is exist - process it [03:22:16]SAM_PROTO_GetFieldsCounters [03:22:16]wFMCommunicate request_size=4 [03:22:16]MH_SAM_APDU [03:22:16]CAPDU: 80 13 00 00 [03:22:16]Write to MH i2c: E2 08 00 96 6E 80 13 00 00 00 00 00 00 80 [03:22:16]Write i2c OK [03:22:16]MH_I2C_Read... [03:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:16]Read from MH i2c: E2 [03:22:16]MH_I2C_Read... [03:22:16]Read from MH i2c: E2 62 00 [03:22:16]MH_I2C_Read... [03:22:16]Read from MH i2c: E2 62 00 96 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 71 08 00 00 0E 04 04 00 0F 00 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 50 [03:22:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 71 08 00 00 0E 04 04 00 0F 00 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:22:16]wFMCommunicate OK [03:22:16]SAM_PROTO_GetFieldsCounters done [03:22:16]requested_item shift.num is exist - process it [03:22:16]requested_item shift.opened is exist - process it [03:22:16]req_shift_opened [03:22:16]FM_GetShiftState [03:22:16]SAM_PROTO_GetShiftState [03:22:16]wFMCommunicate request_size=4 [03:22:16]MH_SAM_APDU [03:22:16]CAPDU: 80 13 01 00 [03:22:16]Write to MH i2c: E2 08 00 97 6E 80 13 01 00 00 00 00 00 82 [03:22:16]Write i2c OK [03:22:16]MH_I2C_Read... [03:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:16]Read from MH i2c: E2 [03:22:16]MH_I2C_Read... [03:22:16]Read from MH i2c: E2 0E 00 [03:22:16]MH_I2C_Read... [03:22:16]Read from MH i2c: E2 0E 00 97 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 7B [03:22:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:22:16]wFMCommunicate OK [03:22:16]SAM_PROTO_GetShiftState done [03:22:16]FM_GetShiftState done [03:22:16]req_shift_opened done [03:22:16]requested_item shift.open_date is exist - process it [03:22:16]req_shift_open_date [03:22:16]req_shift_open_date done [03:22:16]produce_requested_data done [03:22:16]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2161,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [03:22:16]process_action_free close_receipt [03:22:16]json_value_free [03:22:16]json_value_free done [03:22:16]process_json_proto returns [03:22:16]Send response to host [03:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2161,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [03:22:16]free response buf [03:22:16]execute_script done [03:22:16]execute_script returns [03:22:16]free content buf [03:22:16]Sock 9.Close socket [03:22:16]Sock 9.Thread stoped [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:41]accept exits with 10 [03:27:41]New connection [03:27:41]New thread 3067317604 created [03:27:41]Thread 3067460964 joined [03:27:41]Waiting for new connection... [03:27:41] Sock 10.Parse request [03:27:41]Sock 10.Check first char [03:27:41]Sock 10.First char is OK [03:27:41]request: POST /json_proto HTTP/1.0 [03:27:41]Method: POST [03:27:41]URL: /json_proto [03:27:41]Method is POST - this is cgi request [03:27:41]url: /json_proto [03:27:41]query_string will be loaded in cgi processing [03:27:41]execute_cgi json_proto POST (null) [03:27:41]execute_cgi path=json_proto method=POST [03:27:41]POST find Content-Length [03:27:41]Host: 172.17.45.132:8080 [03:27:41]Content-Length: 893 [03:27:41]Content-Type: application/json [03:27:41] [03:27:41]POST finish read [03:27:41]Found Content-Length = 893 [03:27:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126455", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:27:41]execute_script... [03:27: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)126455", "tax_sys" : 0, "items" : [ { "code": "4700002083914", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:27:41]POST & json_proto [03:27:41]process_json_proto [03:27:41]json parsed OK: [03:27:41]protocol is kg_v1.0 [03:27:41]action value=close_receipt [03:27:41]process_action close_receipt [03:27:41]cmd_close_receipt [03:27:41]MH_GetDate [03:27:41]Write to MH i2c: F0 00 00 98 6E F5 [03:27:41]Write i2c OK [03:27:41]MH_I2C_Read... [03:27:41]Read from MH i2c: F0 [03:27:41]MH_I2C_Read... [03:27:41]Read from MH i2c: F0 09 00 [03:27:41]MH_I2C_Read... [03:27:41]Read from MH i2c: F0 09 00 98 6E 00 36 0C A7 66 E3 0B 90 66 31 [03:27:41]GetLastDocTimeStamp 1722223341 [03:27:41]current date 1722223670 [03:27:41]FM_GetShiftState [03:27:41]SAM_PROTO_GetShiftState [03:27:41]wFMCommunicate request_size=4 [03:27:41]MH_SAM_APDU [03:27:41]CAPDU: 80 13 01 00 [03:27:41]Write to MH i2c: E2 08 00 99 6E 80 13 01 00 00 00 00 00 84 [03:27:41]Write i2c OK [03:27:41]MH_I2C_Read... [03:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:27:41]Read from MH i2c: E2 [03:27:41]MH_I2C_Read... [03:27:41]Read from MH i2c: E2 0E 00 [03:27:41]MH_I2C_Read... [03:27:41]Read from MH i2c: E2 0E 00 99 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 7D [03:27:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:27:41]wFMCommunicate OK [03:27:41]SAM_PROTO_GetShiftState done [03:27:41]FM_GetShiftState done [03:27:41]opened in 1722213119 [03:27:41]opened+sec_in_day 1722299519 [03:27:41]quantity*price = 26000 [03:27:41]sum+1 = 26001 [03:27:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 410.00 НСП 1% : 3.63 НДС 12% : 43.54 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 11 29.07.2024 03:27 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2162 ФПД: 217224538444314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T032750&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2162&fm=217224538444314&tin=02508201610067®Number=0000000000189667&sum=41000 0 [03:27:42]StoreToDocumentArchive [03:27:42]shift 15 fd 2162 [03:27:42]save to /storage/0015/doc_00002162 [03:27:42]save last doc name /storage/0015/doc_00002162 to /storage/kkm_last_doc_name [03:27:42]save OK [03:27:42]Clear old archive folders... [03:27:42]ProcessDocumentItem done err = 0, tmpTLVsize=383 [03:27:42]tlvbuf is 02046770 [03:27:42]SAM_PROTO_ClearQueue [03:27:42]wFMCommunicate request_size=4 [03:27:42]MH_SAM_APDU [03:27:42]CAPDU: 80 09 00 00 [03:27:42]Write to MH i2c: E2 08 00 A6 6E 80 09 00 00 00 00 00 00 86 [03:27:42]Write i2c OK [03:27:42]MH_I2C_Read... [03:27:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:27:42]Read from MH i2c: E2 [03:27:42]MH_I2C_Read... [03:27:42]Read from MH i2c: E2 03 00 [03:27:42]MH_I2C_Read... [03:27:42]Read from MH i2c: E2 03 00 A6 6E 00 90 00 88 [03:27:42]RAPDU: 90 00 [03:27:42]wFMCommunicate OK [03:27:42]SAM_PROTO_ClearQueue done [03:27:42]KKMCreateOFDPacket [03:27:42]OFDProtocolAddRootSTLVToBuf [03:27:42]FM_MakeSignedData [03:27:42]FM_MakeSignedData [03:27:42]SAM_PROTO_SignData [03:27:42]wFMCommunicate request_size=4 [03:27:42]MH_SAM_APDU [03:27:42]CAPDU: 80 0D 01 02 [03:27:42]Write to MH i2c: E2 08 00 A7 6E 80 0D 01 02 00 00 00 00 8E [03:27:42]Write i2c OK [03:27:42]MH_I2C_Read... [03:27:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:27:42]Read from MH i2c: E2 [03:27:42]MH_I2C_Read... [03:27:42]Read from MH i2c: E2 03 00 [03:27:42]MH_I2C_Read... [03:27:42]Read from MH i2c: E2 03 00 A7 6E 00 90 00 89 [03:27:42]RAPDU: 90 00 [03:27:42]wFMCommunicate OK [03:27:42]wFMCommunicate request_size=255 [03:27:42]MH_SAM_APDU [03:27:42]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B [03:27:42]Write to MH i2c: E2 02 01 A8 6E 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 B3 [03:27:42]Write i2c OK [03:27:42]MH_I2C_Read... [03:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:27:42]Read from MH i2c: E2 [03:27:42]MH_I2C_Read... [03:27:42]Read from MH i2c: E2 03 00 [03:27:42]MH_I2C_Read... [03:27:42]Read from MH i2c: E2 03 00 A8 6E 00 90 00 8A [03:27:42]RAPDU: 90 00 [03:27:42]wFMCommunicate OK [03:27:42]wFMCommunicate request_size=142 [03:27:42]MH_SAM_APDU [03:27:42]CAPDU: 80 0D 02 02 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 72 08 00 00 35 04 06 00 C5 90 87 73 52 1A [03:27:42]Write to MH i2c: E2 91 00 A9 6E 80 0D 02 02 89 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 72 08 00 00 35 04 06 00 C5 90 87 73 52 1A 00 00 53 [03:27:42]Write i2c OK [03:27:42]MH_I2C_Read... [03:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:27:43]Read from MH i2c: E2 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: E2 03 00 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: E2 03 00 A9 6E 00 90 00 8B [03:27:43]RAPDU: 90 00 [03:27:43]wFMCommunicate OK [03:27:43]wFMCommunicate request_size=4 [03:27:43]MH_SAM_APDU [03:27:43]CAPDU: 80 0D 03 02 [03:27:43]Write to MH i2c: E2 08 00 AA 6E 80 0D 03 02 00 00 00 00 93 [03:27:43]Write i2c OK [03:27:43]MH_I2C_Read... [03:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:27:43]Read from MH i2c: E2 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: E2 0B 00 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: E2 0B 00 AA 6E 00 F2 44 68 27 F0 71 7D 21 90 00 58 [03:27:43]RAPDU: F2 44 68 27 F0 71 7D 21 90 00 [03:27:43]wFMCommunicate OK [03:27:43]SAM_PROTO_SignData done [03:27:43]FM_MakeSignedData done [03:27:43]CreateOFDProtocolMessage [03:27:43]wFMCommunicate request_size=4 [03:27:43]MH_SAM_APDU [03:27:43]CAPDU: 80 11 00 00 [03:27:43]Write to MH i2c: E2 08 00 AB 6E 80 11 00 00 00 00 00 00 93 [03:27:43]Write i2c OK [03:27:43]MH_I2C_Read... [03:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:27:43]Read from MH i2c: E2 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: E2 17 00 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: E2 17 00 AB 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E3 [03:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:27:43]wFMCommunicate OK [03:27:43]CreateOFDProtocolMessage done [03:27:43]OFDSenderStorePacket 2162 [03:27:43]StoreOFDPacket docnum=2162 [03:27:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 93 01 00 00 56 FD 8B 01 F4 5C 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 72 08 00 00 35 04 06 00 C5 90 87 73 52 1A F2 44 68 27 F0 71 7D 21 [03:27:43]CheckFolder [03:27:43]dirname=/storage/ofd_packets [03:27:43]CheckFolder done [03:27:43]ProducePacketName [03:27:43]name=ofd_packets/00002162 [03:27:43]NVStorageSaveData ofd_packets/00002162 [03:27:43]File name is /storage/ofd_packets/00002162 [03:27:43]Write 433 bytes [03:27:43]NVStorageSaveData done [03:27:43]OFDSenderStorePacket done [03:27:43]KKMCreateOFDPacket done [03:27:43]NVStorageSaveData kkm_last_timestamp [03:27:43]File name is /storage/kkm_last_timestamp [03:27:43]Write 4 bytes [03:27:43]NVStorageSaveData done [03:27:43]ExternCall_PrintAddStr [03:27:43]wPrintStart [03:27:43]Write to MH i2c: 01 00 00 AC 6E 1A [03:27:43]Write i2c OK [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: 01 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: 01 07 00 [03:27:43]MH_I2C_Read... [03:27:43]Read from MH i2c: 01 07 00 AC 6E 00 00 00 00 00 FF 0F 2F [03:27:43]RasterBufferAndPrint [03:27:43]line Счет N : (3)126455 [03:27:43]line ИНН: 02508201610067 [03:27:43]line Контрольно-Кассовый Чек [03:27:43]line ПРОДАЖА [03:27:43]line Товар: 4700002083914 [03:27:43]line Водка Сары челек 0,35л [03:27:43]line 1.000 * 260.00 [03:27:43]line = 260.00 [03:27:43]line НДС 12% НСП 1% [03:27:43]line > о реализуемом товаре [03:27:43]line Товар: 4640030091645 [03:27:43]line Сигареты ESSE Exchange M [03:27:43]line 1.000 * 150.00 [03:27:43]line = 150.00 [03:27:43]line НДС 12% НСП 1% [03:27:43]line > о реализуемом товаре [03:27:43]line ИТОГО: 410.00 [03:27:43]line НСП 1% : 3.63 [03:27:43]line НДС 12% : 43.54 [03:27:43]line Наличными: 410.00 [03:27:43]line Безнал.: 0.00 [03:27:43]line Место: АЗС № 127 "Партнер Нефть" [03:27:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:27:43]line СНО: Общий режим [03:27:43]line Чек 11 29.07.2024 03:27 [03:27:43]line Смена: 15 ФФД: 1.0 [03:27:43]line ЗНМ: 0300000161 [03:27:43]line РНМ: 0000000000189667 [03:27:43]line Версия ККМ: v1.0 [03:27:43]line ФМ: 0000000002094248 [03:27:43]line ФД: 2162 [03:27:43]line ФПД: 217224538444314 [03:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T032750&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2162&fm=217224538444314&tin=02508201610067®Number=0000000000189667&sum=41000 [03:27:43]line 0 [03:27:43]OFD Sender: Processing packet 2162 [packets to send 1, broken 0] [03:27:43]ProducePacketName [03:27:43]name=ofd_packets/00002162 [03:27:43]OFD Sender: To server: pG, [03:27:43]CommunicateWithHost lk.salyk.kg:30040 [03:27:43]ConnectInit lk.salyk.kg [03:27:43]written 0, free lines is 4095 [03:27:43]Connected sock=9 [03:27:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 93 01 00 00 56 FD 8B 01 F4 5C 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 39 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 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 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 72 08 00 00 35 04 06 00 C5 90 87 73 52 1A F2 44 68 27 F0 71 7D 21 [03:27:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4B 4F 47 00 8B 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 72 08 00 00 F4 03 04 00 A4 B7 A6 66 B6 04 01 00 00 5F B5 FC D9 54 67 61 81 [03:27:43]CommunicateWithHost err = 0 [03:27:43]CheckOFDResponse [03:27:43]1017 (14) - 77093643461234 [03:27:43]1041 (16) - 0000000002094248 [03:27:43]1040 (4) - 2162 [03:27:43]1012 (4) - 28.07.2024 21:27 [03:27:43]1206 (1) - 0 [03:27:43]OFD Sender: Remove packet 2162 [03:27:43]ProducePacketName [03:27:43]name=ofd_packets/00002162 [03:27:43]NVStorageDeleteData [03:27:44]Write to MH i2c: 01 00 00 DA 6E 48 [03:27:44]Write i2c OK [03:27:44]MH_I2C_Read... [03:27:44]Read from MH i2c: 01 [03:27:44]MH_I2C_Read... [03:27:44]Read from MH i2c: 01 07 00 [03:27:44]MH_I2C_Read... [03:27:44]Read from MH i2c: 01 07 00 DA 6E 00 00 00 00 00 D7 0C 32 [03:27:44]RasterBufferAndPrint [03:27:44]line [03:27:44]line [03:27:44]line [03:27:44]line [03:27:44]line [03:27:44]written 0, free lines is 3293 [03:27:44]MH_Cut [03:27:44]Write to MH i2c: D1 01 00 E1 6E 01 21 [03:27:44]Write i2c OK [03:27:44]MH_I2C_Read... [03:27:44]Read from MH i2c: D1 [03:27:44]MH_I2C_Read... [03:27:44]Read from MH i2c: D1 01 00 [03:27:44]MH_I2C_Read... [03:27:44]Read from MH i2c: D1 01 00 E1 6E 00 20 [03:27:44]Write to MH i2c: 01 00 00 E2 6E 50 [03:27:44]Write i2c OK [03:27:44]MH_I2C_Read... [03:27:44]OFD Sender: No OFD packet to send [03:27:44]*** Cut start [03:27:44]*** Partial cut [03:27:44]*** CUTSNS_PIN = 1 [03:27:44]*** CUTSNS_PIN = 0 [03:27:45]*** Brake cut motor [03:27:45]Read from MH i2c: 01 [03:27:45]MH_I2C_Read... [03:27:45]*** Stop cut motor [03:27:45]*** Cut end [03:27:45]Read from MH i2c: 01 07 00 [03:27:45]MH_I2C_Read... [03:27:45]Read from MH i2c: 01 07 00 E2 6E 00 00 00 00 00 FF 0F 65 [03:27:45]process_action close_receipt done [03:27:45]requested_data is exist [03:27:45]produce_requested_data [03:27:45]requested_item fm.sn is exist - process it [03:27:45]wFMCommunicate request_size=4 [03:27:45]MH_SAM_APDU [03:27:45]CAPDU: 80 11 00 00 [03:27:45]Write to MH i2c: E2 08 00 E3 6E 80 11 00 00 00 00 00 00 CB [03:27:45]Write i2c OK [03:27:45]MH_I2C_Read... [03:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:27:45]Read from MH i2c: E2 [03:27:45]MH_I2C_Read... [03:27:45]Read from MH i2c: E2 17 00 [03:27:45]MH_I2C_Read... [03:27:45]Read from MH i2c: E2 17 00 E3 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1B [03:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:27:45]wFMCommunicate OK [03:27:45]requested_item fd.num is exist - process it [03:27:45]SAM_PROTO_GetFieldsCounters [03:27:45]wFMCommunicate request_size=4 [03:27:45]MH_SAM_APDU [03:27:45]CAPDU: 80 13 00 00 [03:27:45]Write to MH i2c: E2 08 00 E4 6E 80 13 00 00 00 00 00 00 CE [03:27:45]Write i2c OK [03:27:45]MH_I2C_Read... [03:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:27:45]Read from MH i2c: E2 [03:27:45]MH_I2C_Read... [03:27:45]Read from MH i2c: E2 62 00 [03:27:45]MH_I2C_Read... [03:27:45]Read from MH i2c: E2 62 00 E4 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 72 08 00 00 0E 04 04 00 0F 00 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 A2 [03:27:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 72 08 00 00 0E 04 04 00 0F 00 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:27:45]wFMCommunicate OK [03:27:45]SAM_PROTO_GetFieldsCounters done [03:27:45]requested_item shift.num is exist - process it [03:27:45]requested_item shift.opened is exist - process it [03:27:45]req_shift_opened [03:27:45]FM_GetShiftState [03:27:45]SAM_PROTO_GetShiftState [03:27:45]wFMCommunicate request_size=4 [03:27:45]MH_SAM_APDU [03:27:45]CAPDU: 80 13 01 00 [03:27:45]Write to MH i2c: E2 08 00 E5 6E 80 13 01 00 00 00 00 00 D0 [03:27:45]Write i2c OK [03:27:45]MH_I2C_Read... [03:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:27:45]Read from MH i2c: E2 [03:27:45]MH_I2C_Read... [03:27:45]Read from MH i2c: E2 0E 00 [03:27:45]MH_I2C_Read... [03:27:45]Read from MH i2c: E2 0E 00 E5 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C9 [03:27:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:27:45]wFMCommunicate OK [03:27:45]SAM_PROTO_GetShiftState done [03:27:45]FM_GetShiftState done [03:27:45]req_shift_opened done [03:27:45]requested_item shift.open_date is exist - process it [03:27:45]req_shift_open_date [03:27:45]req_shift_open_date done [03:27:45]produce_requested_data done [03:27:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2162,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [03:27:45]process_action_free close_receipt [03:27:45]json_value_free [03:27:45]json_value_free done [03:27:45]process_json_proto returns [03:27:45]Send response to host [03:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2162,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [03:27:45]free response buf [03:27:45]execute_script done [03:27:45]execute_script returns [03:27:45]free content buf [03:27:45]Sock 10.Close socket [03:27:45]Sock 10.Thread stoped [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:06]accept exits with 8 [03:29:06]New connection [03:29:06]New thread 3067460964 created [03:29:06]Thread 3067317604 joined [03:29:06]Waiting for new connection... [03:29:06] Sock 8.Parse request [03:29:06]Sock 8.Check first char [03:29:06]Sock 8.First char is OK [03:29:06]request: POST /json_proto HTTP/1.0 [03:29:06]Method: POST [03:29:06]URL: /json_proto [03:29:06]Method is POST - this is cgi request [03:29:06]url: /json_proto [03:29:06]query_string will be loaded in cgi processing [03:29:06]execute_cgi json_proto POST (null) [03:29:06]execute_cgi path=json_proto method=POST [03:29:06]POST find Content-Length [03:29:06]Host: 172.17.45.132:8080 [03:29:06]Content-Length: 1202 [03:29:06]Content-Type: application/json [03:29:06] [03:29:06]POST finish read [03:29:06]Found Content-Length = 1202 [03:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126456", "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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 498.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:06]execute_script... [03:29: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)126456", "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" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 498.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:29:06]POST & json_proto [03:29:06]process_json_proto [03:29:06]json parsed OK: [03:29:06]protocol is kg_v1.0 [03:29:06]action value=close_receipt [03:29:06]process_action close_receipt [03:29:06]cmd_close_receipt [03:29:06]MH_GetDate [03:29:06]Write to MH i2c: F0 00 00 E6 6E 43 [03:29:06]Write i2c OK [03:29:06]MH_I2C_Read... [03:29:06]Read from MH i2c: F0 [03:29:06]MH_I2C_Read... [03:29:06]Read from MH i2c: F0 09 00 [03:29:06]MH_I2C_Read... [03:29:06]Read from MH i2c: F0 09 00 E6 6E 00 8B 0C A7 66 E3 0B 90 66 D4 [03:29:06]GetLastDocTimeStamp 1722223670 [03:29:06]current date 1722223755 [03:29:06]FM_GetShiftState [03:29:06]SAM_PROTO_GetShiftState [03:29:06]wFMCommunicate request_size=4 [03:29:06]MH_SAM_APDU [03:29:06]CAPDU: 80 13 01 00 [03:29:06]Write to MH i2c: E2 08 00 E7 6E 80 13 01 00 00 00 00 00 D2 [03:29:06]Write i2c OK [03:29:06]MH_I2C_Read... [03:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:29:06]Read from MH i2c: E2 [03:29:06]MH_I2C_Read... [03:29:06]Read from MH i2c: E2 0E 00 [03:29:06]MH_I2C_Read... [03:29:06]Read from MH i2c: E2 0E 00 E7 6E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CB [03:29:06]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:29:06]wFMCommunicate OK [03:29:06]SAM_PROTO_GetShiftState done [03:29:06]FM_GetShiftState done [03:29:06]opened in 1722213119 [03:29:06]opened+sec_in_day 1722299519 [03:29:06]quantity*price = 2800 [03:29:06]sum+1 = 2801 [03:29:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721021627 Пиво БАД 0,5л ст 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 498.00 НСП 1% : 4.40 НДС 12% : 52.88 Наличными: 498.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 12 29.07.2024 03:29 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2163 ФПД: 87345016705173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T032915&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2163&fm=87345016705173&tin=02508201610067®Number=0000000000189667&sum=49800 0 [03:29:07]StoreToDocumentArchive [03:29:07]shift 15 fd 2163 [03:29:07]save to /storage/0015/doc_00002163 [03:29:07]save last doc name /storage/0015/doc_00002163 to /storage/kkm_last_doc_name [03:29:07]save OK [03:29:07]Clear old archive folders... [03:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=497 [03:29:07]tlvbuf is 020C3F20 [03:29:07]SAM_PROTO_ClearQueue [03:29:07]wFMCommunicate request_size=4 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 09 00 00 [03:29:07]Write to MH i2c: E2 08 00 F4 6E 80 09 00 00 00 00 00 00 D4 [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 F4 6E 00 90 00 D6 [03:29:07]RAPDU: 90 00 [03:29:07]wFMCommunicate OK [03:29:07]SAM_PROTO_ClearQueue done [03:29:07]KKMCreateOFDPacket [03:29:07]OFDProtocolAddRootSTLVToBuf [03:29:07]FM_MakeSignedData [03:29:07]FM_MakeSignedData [03:29:07]SAM_PROTO_SignData [03:29:07]wFMCommunicate request_size=4 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 0D 01 02 [03:29:07]Write to MH i2c: E2 08 00 F5 6E 80 0D 01 02 00 00 00 00 DC [03:29:07]Write i2c OK [03:29:07]MH_I2C_Read... [03:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:29:07]Read from MH i2c: E2 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 [03:29:07]MH_I2C_Read... [03:29:07]Read from MH i2c: E2 03 00 F5 6E 00 90 00 D7 [03:29:07]RAPDU: 90 00 [03:29:07]wFMCommunicate OK [03:29:07]wFMCommunicate request_size=255 [03:29:07]MH_SAM_APDU [03:29:07]CAPDU: 80 0D 02 02 FA 03 00 F1 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 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 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 5E 00 8A 04 0D 00 34 36 30 30 [03:29:08]Write to MH i2c: E2 02 01 F6 6E 80 0D 02 02 FA 00 03 00 F1 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 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 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 5E 00 8A 04 0D 00 34 36 30 30 00 00 1C [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:29:08]Read from MH i2c: E2 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 03 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 03 00 F6 6E 00 90 00 D8 [03:29:08]RAPDU: 90 00 [03:29:08]wFMCommunicate OK [03:29:08]wFMCommunicate request_size=255 [03:29:08]MH_SAM_APDU [03:29:08]CAPDU: 80 0D 02 02 FA 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 88 C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 14 00 00 00 00 07 04 06 00 88 C2 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 8B 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 73 08 00 00 35 04 06 00 4F 70 98 B1 90 [03:29:08]Write to MH i2c: E2 02 01 F7 6E 80 0D 02 02 FA 00 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 88 C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 14 00 00 00 00 07 04 06 00 88 C2 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 8B 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 73 08 00 00 35 04 06 00 4F 70 98 B1 90 00 00 A4 [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:29:08]Read from MH i2c: E2 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 03 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 03 00 F7 6E 00 90 00 D9 [03:29:08]RAPDU: 90 00 [03:29:08]wFMCommunicate OK [03:29:08]wFMCommunicate request_size=6 [03:29:08]MH_SAM_APDU [03:29:08]CAPDU: 80 0D 02 02 01 95 [03:29:08]Write to MH i2c: E2 09 00 F8 6E 80 0D 02 02 01 00 95 00 00 77 [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:29:08]Read from MH i2c: E2 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 03 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 03 00 F8 6E 00 90 00 DA [03:29:08]RAPDU: 90 00 [03:29:08]wFMCommunicate OK [03:29:08]wFMCommunicate request_size=4 [03:29:08]MH_SAM_APDU [03:29:08]CAPDU: 80 0D 03 02 [03:29:08]Write to MH i2c: E2 08 00 F9 6E 80 0D 03 02 00 00 00 00 E2 [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:29:08]Read from MH i2c: E2 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 0B 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 0B 00 F9 6E 00 B8 31 D2 55 2A AE E3 86 90 00 34 [03:29:08]RAPDU: B8 31 D2 55 2A AE E3 86 90 00 [03:29:08]wFMCommunicate OK [03:29:08]SAM_PROTO_SignData done [03:29:08]FM_MakeSignedData done [03:29:08]CreateOFDProtocolMessage [03:29:08]wFMCommunicate request_size=4 [03:29:08]MH_SAM_APDU [03:29:08]CAPDU: 80 11 00 00 [03:29:08]Write to MH i2c: E2 08 00 FA 6E 80 11 00 00 00 00 00 00 E2 [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:29:08]Read from MH i2c: E2 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 17 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: E2 17 00 FA 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 32 [03:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:29:08]wFMCommunicate OK [03:29:08]CreateOFDProtocolMessage done [03:29:08]OFDSenderStorePacket 2163 [03:29:08]StoreOFDPacket docnum=2163 [03:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 05 02 00 00 CF 2A FD 01 33 55 5A 03 01 00 03 00 F1 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 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 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 88 C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 14 00 00 00 00 07 04 06 00 88 C2 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 8B 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 73 08 00 00 35 04 06 00 4F 70 98 B1 90 95 B8 31 D2 55 2A AE E3 86 [03:29:08]CheckFolder [03:29:08]dirname=/storage/ofd_packets [03:29:08]CheckFolder done [03:29:08]ProducePacketName [03:29:08]name=ofd_packets/00002163 [03:29:08]NVStorageSaveData ofd_packets/00002163 [03:29:08]File name is /storage/ofd_packets/00002163 [03:29:08]Write 547 bytes [03:29:08]NVStorageSaveData done [03:29:08]OFDSenderStorePacket done [03:29:08]KKMCreateOFDPacket done [03:29:08]NVStorageSaveData kkm_last_timestamp [03:29:08]File name is /storage/kkm_last_timestamp [03:29:08]Write 4 bytes [03:29:08]NVStorageSaveData done [03:29:08]ExternCall_PrintAddStr [03:29:08]wPrintStart [03:29:08]Write to MH i2c: 01 00 00 FB 6E 69 [03:29:08]Write i2c OK [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: 01 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: 01 07 00 [03:29:08]MH_I2C_Read... [03:29:08]Read from MH i2c: 01 07 00 FB 6E 00 00 00 00 00 FF 0F 7E [03:29:08]RasterBufferAndPrint [03:29:08]line Счет N : (3)126456 [03:29:08]line ИНН: 02508201610067 [03:29:08]line Контрольно-Кассовый Чек [03:29:08]line ПРОДАЖА [03:29:08]line Товар: 2000053020015 [03:29:08]line Бумажные стаканы 250мл 1шт [03:29:08]line 4.000 * 7.00 [03:29:08]line = 28.00 [03:29:08]line НДС 12% НСП 1% [03:29:08]line > о реализуемом товаре [03:29:08]line Товар: 4700000480357 [03:29:08]line Пиво шахтерское 1л ПЭТ [03:29:08]line 1.000 * 170.00 [03:29:08]line = 170.00 [03:29:08]line НДС 12% НСП 1% [03:29:08]line > о реализуемом товаре [03:29:08]line Товар: 4600721021627 [03:29:08]line Пиво БАД 0,5л ст [03:29:08]line 2.000 * 150.00 [03:29:08]line = 300.00 [03:29:08]line НДС 12% НСП 1% [03:29:08]line > о реализуемом товаре [03:29:08]line ИТОГО: 498.00 [03:29:08]line НСП 1% : 4.40 [03:29:08]line НДС 12% : 52.88 [03:29:08]line Наличными: 498.00 [03:29:08]line Безнал.: 0.00 [03:29:08]line Место: АЗС № 127 "Партнер Нефть" [03:29:08]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:29:08]line СНО: Общий режим [03:29:08]line Чек 12 29.07.2024 03:29 [03:29:08]line Смена: 15 ФФД: 1.0 [03:29:08]line ЗНМ: 0300000161 [03:29:08]line РНМ: 0000000000189667 [03:29:08]line Версия ККМ: v1.0 [03:29:08]line ФМ: 0000000002094248 [03:29:08]line ФД: 2163 [03:29:08]line ФПД: 87345016705173 [03:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T032915&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2163&fm=87345016705173&tin=02508201610067®Number=0000000000189667&sum=49800 [03:29:09]OFD Sender: Processing packet 2163 [packets to send 1, broken 0] [03:29:09]ProducePacketName [03:29:09]name=ofd_packets/00002163 [03:29:09]OFD Sender: To server: pG, [03:29:09]CommunicateWithHost lk.salyk.kg:30040 [03:29:09]ConnectInit lk.salyk.kg [03:29:09]line 0 [03:29:09]written 0, free lines is 4095 [03:29:09]Connected sock=10 [03:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 05 02 00 00 CF 2A FD 01 33 55 5A 03 01 00 03 00 F1 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 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 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 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 88 C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 14 00 00 00 00 07 04 06 00 88 C2 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 8B 0C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 73 08 00 00 35 04 06 00 4F 70 98 B1 90 95 B8 31 D2 55 2A AE E3 86 [03:29:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DD 97 47 00 DD 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 73 08 00 00 F4 03 04 00 F9 B7 A6 66 B6 04 01 00 00 DF 94 67 8D 3B 54 83 2B [03:29:09]CommunicateWithHost err = 0 [03:29:09]CheckOFDResponse [03:29:09]1017 (14) - 77093643461234 [03:29:09]1041 (16) - 0000000002094248 [03:29:09]1040 (4) - 2163 [03:29:09]1012 (4) - 28.07.2024 21:28 [03:29:09]1206 (1) - 0 [03:29:09]OFD Sender: Remove packet 2163 [03:29:09]ProducePacketName [03:29:09]name=ofd_packets/00002163 [03:29:09]NVStorageDeleteData [03:29:09]Write to MH i2c: 01 00 00 30 6F 9F [03:29:09]Write i2c OK [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: 01 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: 01 07 00 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: 01 07 00 30 6F 00 00 00 00 00 63 0C 15 [03:29:09]RasterBufferAndPrint [03:29:09]line [03:29:09]line [03:29:09]line [03:29:09]line [03:29:09]line [03:29:09]written 0, free lines is 3180 [03:29:09]MH_Cut [03:29:09]Write to MH i2c: D1 01 00 37 6F 01 78 [03:29:09]Write i2c OK [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: D1 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: D1 01 00 [03:29:09]MH_I2C_Read... [03:29:09]Read from MH i2c: D1 01 00 37 6F 00 77 [03:29:09]Write to MH i2c: 01 00 00 38 6F A7 [03:29:09]Write i2c OK [03:29:09]MH_I2C_Read... [03:29:10]OFD Sender: No OFD packet to send [03:29:10]*** Cut start [03:29:10]*** Partial cut [03:29:10]*** CUTSNS_PIN = 1 [03:29:10]*** CUTSNS_PIN = 0 [03:29:10]*** Brake cut motor [03:29:11]Read from MH i2c: 01 [03:29:11]MH_I2C_Read... [03:29:11]*** Stop cut motor [03:29:11]*** Cut end [03:29:11]Read from MH i2c: 01 07 00 [03:29:11]MH_I2C_Read... [03:29:11]Read from MH i2c: 01 07 00 38 6F 00 00 00 00 00 FF 0F BC [03:29:11]process_action close_receipt done [03:29:11]requested_data is exist [03:29:11]produce_requested_data [03:29:11]requested_item fm.sn is exist - process it [03:29:11]wFMCommunicate request_size=4 [03:29:11]MH_SAM_APDU [03:29:11]CAPDU: 80 11 00 00 [03:29:11]Write to MH i2c: E2 08 00 39 6F 80 11 00 00 00 00 00 00 22 [03:29:11]Write i2c OK [03:29:11]MH_I2C_Read... [03:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:29:11]Read from MH i2c: E2 [03:29:11]MH_I2C_Read... [03:29:11]Read from MH i2c: E2 17 00 [03:29:11]MH_I2C_Read... [03:29:11]Read from MH i2c: E2 17 00 39 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 72 [03:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:29:11]wFMCommunicate OK [03:29:11]requested_item fd.num is exist - process it [03:29:11]SAM_PROTO_GetFieldsCounters [03:29:11]wFMCommunicate request_size=4 [03:29:11]MH_SAM_APDU [03:29:11]CAPDU: 80 13 00 00 [03:29:11]Write to MH i2c: E2 08 00 3A 6F 80 13 00 00 00 00 00 00 25 [03:29:11]Write i2c OK [03:29:11]MH_I2C_Read... [03:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:29:11]Read from MH i2c: E2 [03:29:11]MH_I2C_Read... [03:29:11]Read from MH i2c: E2 62 00 [03:29:11]MH_I2C_Read... [03:29:11]Read from MH i2c: E2 62 00 3A 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 73 08 00 00 0E 04 04 00 0F 00 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 FD [03:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 73 08 00 00 0E 04 04 00 0F 00 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:29:11]wFMCommunicate OK [03:29:11]SAM_PROTO_GetFieldsCounters done [03:29:11]requested_item shift.num is exist - process it [03:29:11]requested_item shift.opened is exist - process it [03:29:11]req_shift_opened [03:29:11]FM_GetShiftState [03:29:11]SAM_PROTO_GetShiftState [03:29:11]wFMCommunicate request_size=4 [03:29:11]MH_SAM_APDU [03:29:11]CAPDU: 80 13 01 00 [03:29:11]Write to MH i2c: E2 08 00 3B 6F 80 13 01 00 00 00 00 00 27 [03:29:11]Write i2c OK [03:29:11]MH_I2C_Read... [03:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:29:11]Read from MH i2c: E2 [03:29:11]MH_I2C_Read... [03:29:11]Read from MH i2c: E2 0E 00 [03:29:11]MH_I2C_Read... [03:29:11]Read from MH i2c: E2 0E 00 3B 6F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 20 [03:29:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:29:11]wFMCommunicate OK [03:29:11]SAM_PROTO_GetShiftState done [03:29:11]FM_GetShiftState done [03:29:11]req_shift_opened done [03:29:11]requested_item shift.open_date is exist - process it [03:29:11]req_shift_open_date [03:29:11]req_shift_open_date done [03:29:11]produce_requested_data done [03:29:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2163,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [03:29:11]process_action_free close_receipt [03:29:11]json_value_free [03:29:11]json_value_free done [03:29:11]process_json_proto returns [03:29:11]Send response to host [03:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2163,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [03:29:11]free response buf [03:29:11]execute_script done [03:29:11]execute_script returns [03:29:11]free content buf [03:29:11]Sock 8.Close socket [03:29:11]Sock 8.Thread stoped [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]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:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:18]accept exits with 9 [03:55:18]New connection [03:55:18]New thread 3067317604 created [03:55:18]Thread 3067460964 joined [03:55:18]Waiting for new connection... [03:55:18] Sock 9.Parse request [03:55:18]Sock 9.Check first char [03:55:18]Sock 9.First char is OK [03:55:18]request: POST /json_proto HTTP/1.0 [03:55:18]Method: POST [03:55:18]URL: /json_proto [03:55:18]Method is POST - this is cgi request [03:55:18]url: /json_proto [03:55:18]query_string will be loaded in cgi processing [03:55:18]execute_cgi json_proto POST (null) [03:55:18]execute_cgi path=json_proto method=POST [03:55:18]POST find Content-Length [03:55:18]Host: 172.17.45.132:8080 [03:55:18]Content-Length: 1064 [03:55:18]Content-Type: application/json [03:55:18] [03:55:18]POST finish read [03:55:18]Found Content-Length = 1064 [03:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126457", "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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:18]execute_script... [03:55:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126457", "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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:18]POST & json_proto [03:55:18]process_json_proto [03:55:18]json parsed OK: [03:55:18]protocol is kg_v1.0 [03:55:18]action value=close_receipt [03:55:18]process_action close_receipt [03:55:18]cmd_close_receipt [03:55:18]MH_GetDate [03:55:18]Write to MH i2c: F0 00 00 3C 6F 9A [03:55:18]Write i2c OK [03:55:18]MH_I2C_Read... [03:55:18]Read from MH i2c: F0 [03:55:18]MH_I2C_Read... [03:55:18]Read from MH i2c: F0 09 00 [03:55:18]MH_I2C_Read... [03:55:18]Read from MH i2c: F0 09 00 3C 6F 00 AF 12 A7 66 E3 0B 90 66 55 [03:55:18]GetLastDocTimeStamp 1722223755 [03:55:18]current date 1722225327 [03:55:18]FM_GetShiftState [03:55:18]SAM_PROTO_GetShiftState [03:55:18]wFMCommunicate request_size=4 [03:55:18]MH_SAM_APDU [03:55:18]CAPDU: 80 13 01 00 [03:55:18]Write to MH i2c: E2 08 00 3D 6F 80 13 01 00 00 00 00 00 29 [03:55:18]Write i2c OK [03:55:18]MH_I2C_Read... [03:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:18]Read from MH i2c: E2 [03:55:18]MH_I2C_Read... [03:55:18]Read from MH i2c: E2 0E 00 [03:55:18]MH_I2C_Read... [03:55:18]Read from MH i2c: E2 0E 00 3D 6F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 22 [03:55:18]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:55:18]wFMCommunicate OK [03:55:18]SAM_PROTO_GetShiftState done [03:55:18]FM_GetShiftState done [03:55:18]opened in 1722213119 [03:55:18]opened+sec_in_day 1722299519 [03:55:18]quantity*price = 12500 [03:55:18]sum+1 = 12501 [03:55:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006996716 Водка Талка 0,1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 13 29.07.2024 03:55 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2164 ФПД: 126030343612174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T035527&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2164&fm=126030343612174&tin=02508201610067®Number=0000000000189667&sum=24500 0 [03:55:19]StoreToDocumentArchive [03:55:19]shift 15 fd 2164 [03:55:19]save to /storage/0015/doc_00002164 [03:55:19]save last doc name /storage/0015/doc_00002164 to /storage/kkm_last_doc_name [03:55:19]save OK [03:55:19]Clear old archive folders... [03:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=377 [03:55:19]tlvbuf is 021BD6A0 [03:55:19]SAM_PROTO_ClearQueue [03:55:19]wFMCommunicate request_size=4 [03:55:19]MH_SAM_APDU [03:55:19]CAPDU: 80 09 00 00 [03:55:19]Write to MH i2c: E2 08 00 4A 6F 80 09 00 00 00 00 00 00 2B [03:55:19]Write i2c OK [03:55:19]MH_I2C_Read... [03:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:55:19]Read from MH i2c: E2 [03:55:19]MH_I2C_Read... [03:55:19]Read from MH i2c: E2 03 00 [03:55:19]MH_I2C_Read... [03:55:19]Read from MH i2c: E2 03 00 4A 6F 00 90 00 2D [03:55:19]RAPDU: 90 00 [03:55:19]wFMCommunicate OK [03:55:19]SAM_PROTO_ClearQueue done [03:55:19]KKMCreateOFDPacket [03:55:19]OFDProtocolAddRootSTLVToBuf [03:55:19]FM_MakeSignedData [03:55:19]FM_MakeSignedData [03:55:19]SAM_PROTO_SignData [03:55:19]wFMCommunicate request_size=4 [03:55:19]MH_SAM_APDU [03:55:19]CAPDU: 80 0D 01 02 [03:55:19]Write to MH i2c: E2 08 00 4B 6F 80 0D 01 02 00 00 00 00 33 [03:55:19]Write i2c OK [03:55:19]MH_I2C_Read... [03:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:55:19]Read from MH i2c: E2 [03:55:19]MH_I2C_Read... [03:55:19]Read from MH i2c: E2 03 00 [03:55:19]MH_I2C_Read... [03:55:19]Read from MH i2c: E2 03 00 4B 6F 00 90 00 2E [03:55:19]RAPDU: 90 00 [03:55:19]wFMCommunicate OK [03:55:19]wFMCommunicate request_size=255 [03:55:19]MH_SAM_APDU [03:55:19]CAPDU: 80 0D 02 02 FA 03 00 79 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 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 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:55:19]Write to MH i2c: E2 02 01 4C 6F 80 0D 02 02 FA 00 03 00 79 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 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 00 00 CC [03:55:19]Write i2c OK [03:55:19]MH_I2C_Read... [03:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:19]Read from MH i2c: E2 [03:55:19]MH_I2C_Read... [03:55:19]Read from MH i2c: E2 03 00 [03:55:19]MH_I2C_Read... [03:55:19]Read from MH i2c: E2 03 00 4C 6F 00 90 00 2F [03:55:19]RAPDU: 90 00 [03:55:19]wFMCommunicate OK [03:55:19]wFMCommunicate request_size=136 [03:55:19]MH_SAM_APDU [03:55:19]CAPDU: 80 0D 02 02 83 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 0D 00 00 00 F4 03 04 00 AF 12 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 74 08 00 00 35 04 06 00 72 9F B9 DC A7 0E [03:55:19]Write to MH i2c: E2 8B 00 4D 6F 80 0D 02 02 83 00 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 0D 00 00 00 F4 03 04 00 AF 12 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 74 08 00 00 35 04 06 00 72 9F B9 DC A7 0E 00 00 8B [03:55:19]Write i2c OK [03:55:19]MH_I2C_Read... [03:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:20]Read from MH i2c: E2 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: E2 03 00 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: E2 03 00 4D 6F 00 90 00 30 [03:55:20]RAPDU: 90 00 [03:55:20]wFMCommunicate OK [03:55:20]wFMCommunicate request_size=4 [03:55:20]MH_SAM_APDU [03:55:20]CAPDU: 80 0D 03 02 [03:55:20]Write to MH i2c: E2 08 00 4E 6F 80 0D 03 02 00 00 00 00 38 [03:55:20]Write i2c OK [03:55:20]MH_I2C_Read... [03:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:55:20]Read from MH i2c: E2 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: E2 0B 00 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: E2 0B 00 4E 6F 00 F9 52 66 D5 19 CB 8E 26 90 00 57 [03:55:20]RAPDU: F9 52 66 D5 19 CB 8E 26 90 00 [03:55:20]wFMCommunicate OK [03:55:20]SAM_PROTO_SignData done [03:55:20]FM_MakeSignedData done [03:55:20]CreateOFDProtocolMessage [03:55:20]wFMCommunicate request_size=4 [03:55:20]MH_SAM_APDU [03:55:20]CAPDU: 80 11 00 00 [03:55:20]Write to MH i2c: E2 08 00 4F 6F 80 11 00 00 00 00 00 00 38 [03:55:20]Write i2c OK [03:55:20]MH_I2C_Read... [03:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:20]Read from MH i2c: E2 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: E2 17 00 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: E2 17 00 4F 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 88 [03:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:55:20]wFMCommunicate OK [03:55:20]CreateOFDProtocolMessage done [03:55:20]OFDSenderStorePacket 2164 [03:55:20]StoreOFDPacket docnum=2164 [03:55:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8D 01 00 00 3D 28 85 01 E3 7E 5A 03 01 00 03 00 79 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 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 0D 00 00 00 F4 03 04 00 AF 12 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 74 08 00 00 35 04 06 00 72 9F B9 DC A7 0E F9 52 66 D5 19 CB 8E 26 [03:55:20]CheckFolder [03:55:20]dirname=/storage/ofd_packets [03:55:20]CheckFolder done [03:55:20]ProducePacketName [03:55:20]name=ofd_packets/00002164 [03:55:20]NVStorageSaveData ofd_packets/00002164 [03:55:20]File name is /storage/ofd_packets/00002164 [03:55:20]Write 427 bytes [03:55:20]NVStorageSaveData done [03:55:20]OFDSenderStorePacket done [03:55:20]KKMCreateOFDPacket done [03:55:20]NVStorageSaveData kkm_last_timestamp [03:55:20]File name is /storage/kkm_last_timestamp [03:55:20]Write 4 bytes [03:55:20]NVStorageSaveData done [03:55:20]ExternCall_PrintAddStr [03:55:20]wPrintStart [03:55:20]Write to MH i2c: 01 00 00 50 6F BF [03:55:20]Write i2c OK [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: 01 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: 01 07 00 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: 01 07 00 50 6F 00 00 00 00 00 FF 0F D4 [03:55:20]RasterBufferAndPrint [03:55:20]line Счет N : (3)126457 [03:55:20]line ИНН: 02508201610067 [03:55:20]line Контрольно-Кассовый Чек [03:55:20]line ПРОДАЖА [03:55:20]line Товар: 5449000054227 [03:55:20]line Напиток Кока-Кола 1л [03:55:20]line 1.000 * 125.00 [03:55:20]line = 125.00 [03:55:20]line НДС 12% НСП 1% [03:55:20]line > о реализуемом товаре [03:55:20]line Товар: 4620006996716 [03:55:20]line Водка Талка 0,1л [03:55:20]line 1.000 * 120.00 [03:55:20]line = 120.00 [03:55:20]line НДС 12% НСП 1% [03:55:20]line > о реализуемом товаре [03:55:20]line ИТОГО: 245.00 [03:55:20]line НСП 1% : 2.17 [03:55:20]line НДС 12% : 26.01 [03:55:20]line Наличными: 0.00 [03:55:20]line Безнал.: 245.00 [03:55:20]line Место: АЗС № 127 "Партнер Нефть" [03:55:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:55:20]line СНО: Общий режим [03:55:20]line Чек 13 29.07.2024 03:55 [03:55:20]line Смена: 15 ФФД: 1.0 [03:55:20]line ЗНМ: 0300000161 [03:55:20]line РНМ: 0000000000189667 [03:55:20]line Версия ККМ: v1.0 [03:55:20]line Платежная система: O! деньги [03:55:20]line ФМ: 0000000002094248 [03:55:20]line ФД: 2164 [03:55:20]line ФПД: 126030343612174 [03:55:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T035527&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2164&fm=126030343612174&tin=02508201610067®Number=0000000000189667&sum=24500 [03:55:20]line 0 [03:55:20]written 0, free lines is 4095 [03:55:20]OFD Sender: Processing packet 2164 [packets to send 1, broken 0] [03:55:20]ProducePacketName [03:55:20]name=ofd_packets/00002164 [03:55:20]OFD Sender: To server: pG, [03:55:20]CommunicateWithHost lk.salyk.kg:30040 [03:55:20]ConnectInit lk.salyk.kg [03:55:20]Connected sock=10 [03:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8D 01 00 00 3D 28 85 01 E3 7E 5A 03 01 00 03 00 79 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 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 0D 00 00 00 F4 03 04 00 AF 12 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 74 08 00 00 35 04 06 00 72 9F B9 DC A7 0E F9 52 66 D5 19 CB 8E 26 [03:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 62 7B 47 00 5F 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 74 08 00 00 F4 03 04 00 1D BE A6 66 B6 04 01 00 00 99 E2 23 10 AF B9 E4 A6 [03:55:20]CommunicateWithHost err = 0 [03:55:20]CheckOFDResponse [03:55:20]1017 (14) - 77093643461234 [03:55:20]1041 (16) - 0000000002094248 [03:55:20]1040 (4) - 2164 [03:55:20]1012 (4) - 28.07.2024 21:54 [03:55:20]1206 (1) - 0 [03:55:20]OFD Sender: Remove packet 2164 [03:55:20]ProducePacketName [03:55:20]name=ofd_packets/00002164 [03:55:20]NVStorageDeleteData [03:55:20]Write to MH i2c: 01 00 00 80 6F EF [03:55:20]Write i2c OK [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: 01 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: 01 07 00 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: 01 07 00 80 6F 00 00 00 00 00 A3 0C A5 [03:55:20]RasterBufferAndPrint [03:55:20]line [03:55:20]line [03:55:20]line [03:55:20]line [03:55:20]line [03:55:20]written 0, free lines is 3241 [03:55:20]MH_Cut [03:55:20]Write to MH i2c: D1 01 00 87 6F 01 C8 [03:55:20]Write i2c OK [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: D1 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: D1 01 00 [03:55:20]MH_I2C_Read... [03:55:20]Read from MH i2c: D1 01 00 87 6F 00 C7 [03:55:20]Write to MH i2c: 01 00 00 88 6F F7 [03:55:20]Write i2c OK [03:55:20]MH_I2C_Read... [03:55:21]OFD Sender: No OFD packet to send [03:55:21]*** Cut start [03:55:21]*** Partial cut [03:55:21]*** CUTSNS_PIN = 1 [03:55:21]*** CUTSNS_PIN = 0 [03:55:21]*** Brake cut motor [03:55:22]Read from MH i2c: 01 [03:55:22]MH_I2C_Read... [03:55:22]*** Stop cut motor [03:55:22]*** Cut end [03:55:22]Read from MH i2c: 01 07 00 [03:55:22]MH_I2C_Read... [03:55:22]Read from MH i2c: 01 07 00 88 6F 00 00 00 00 00 FF 0F 0C [03:55:22]process_action close_receipt done [03:55:22]requested_data is exist [03:55:22]produce_requested_data [03:55:22]requested_item fm.sn is exist - process it [03:55:22]wFMCommunicate request_size=4 [03:55:22]MH_SAM_APDU [03:55:22]CAPDU: 80 11 00 00 [03:55:22]Write to MH i2c: E2 08 00 89 6F 80 11 00 00 00 00 00 00 72 [03:55:22]Write i2c OK [03:55:22]MH_I2C_Read... [03:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:22]Read from MH i2c: E2 [03:55:22]MH_I2C_Read... [03:55:22]Read from MH i2c: E2 17 00 [03:55:22]MH_I2C_Read... [03:55:22]Read from MH i2c: E2 17 00 89 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C2 [03:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:55:22]wFMCommunicate OK [03:55:22]requested_item fd.num is exist - process it [03:55:22]SAM_PROTO_GetFieldsCounters [03:55:22]wFMCommunicate request_size=4 [03:55:22]MH_SAM_APDU [03:55:22]CAPDU: 80 13 00 00 [03:55:22]Write to MH i2c: E2 08 00 8A 6F 80 13 00 00 00 00 00 00 75 [03:55:22]Write i2c OK [03:55:22]MH_I2C_Read... [03:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:55:22]Read from MH i2c: E2 [03:55:22]MH_I2C_Read... [03:55:22]Read from MH i2c: E2 62 00 [03:55:22]MH_I2C_Read... [03:55:22]Read from MH i2c: E2 62 00 8A 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 74 08 00 00 0E 04 04 00 0F 00 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 51 [03:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 74 08 00 00 0E 04 04 00 0F 00 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:55:22]wFMCommunicate OK [03:55:22]SAM_PROTO_GetFieldsCounters done [03:55:22]requested_item shift.num is exist - process it [03:55:22]requested_item shift.opened is exist - process it [03:55:22]req_shift_opened [03:55:22]FM_GetShiftState [03:55:22]SAM_PROTO_GetShiftState [03:55:22]wFMCommunicate request_size=4 [03:55:22]MH_SAM_APDU [03:55:22]CAPDU: 80 13 01 00 [03:55:22]Write to MH i2c: E2 08 00 8B 6F 80 13 01 00 00 00 00 00 77 [03:55:22]Write i2c OK [03:55:22]MH_I2C_Read... [03:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:22]Read from MH i2c: E2 [03:55:22]MH_I2C_Read... [03:55:22]Read from MH i2c: E2 0E 00 [03:55:22]MH_I2C_Read... [03:55:22]Read from MH i2c: E2 0E 00 8B 6F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 70 [03:55:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:55:22]wFMCommunicate OK [03:55:22]SAM_PROTO_GetShiftState done [03:55:22]FM_GetShiftState done [03:55:22]req_shift_opened done [03:55:22]requested_item shift.open_date is exist - process it [03:55:22]req_shift_open_date [03:55:22]req_shift_open_date done [03:55:22]produce_requested_data done [03:55:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2164,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [03:55:22]process_action_free close_receipt [03:55:22]json_value_free [03:55:22]json_value_free done [03:55:22]process_json_proto returns [03:55:22]Send response to host [03:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2164,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [03:55:22]free response buf [03:55:22]execute_script done [03:55:22]execute_script returns [03:55:22]free content buf [03:55:22]Sock 9.Close socket [03:55:22]Sock 9.Thread stoped [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]accept exits with 8 [03:57:11]New connection [03:57:11]New thread 3067460964 created [03:57:11]Thread 3067317604 joined [03:57:11]Waiting for new connection... [03:57:11] Sock 8.Parse request [03:57:11]Sock 8.Check first char [03:57:11]Sock 8.First char is OK [03:57:11]request: POST /json_proto HTTP/1.0 [03:57:11]Method: POST [03:57:11]URL: /json_proto [03:57:11]Method is POST - this is cgi request [03:57:11]url: /json_proto [03:57:11]query_string will be loaded in cgi processing [03:57:11]execute_cgi json_proto POST (null) [03:57:11]execute_cgi path=json_proto method=POST [03:57:11]POST find Content-Length [03:57:11]Host: 172.17.45.132:8080 [03:57:11]Content-Length: 783 [03:57:11]Content-Type: application/json [03:57:11] [03:57:11]POST finish read [03:57:11]Found Content-Length = 783 [03:57:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126458", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:57:11]execute_script... [03:57: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)126458", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:57:11]POST & json_proto [03:57:11]process_json_proto [03:57:11]json parsed OK: [03:57:11]protocol is kg_v1.0 [03:57:11]action value=close_receipt [03:57:11]process_action close_receipt [03:57:11]cmd_close_receipt [03:57:11]MH_GetDate [03:57:11]Write to MH i2c: F0 00 00 8C 6F EA [03:57:11]Write i2c OK [03:57:11]MH_I2C_Read... [03:57:11]Read from MH i2c: F0 [03:57:11]MH_I2C_Read... [03:57:11]Read from MH i2c: F0 09 00 [03:57:11]MH_I2C_Read... [03:57:11]Read from MH i2c: F0 09 00 8C 6F 00 20 13 A7 66 E3 0B 90 66 17 [03:57:11]GetLastDocTimeStamp 1722225327 [03:57:11]current date 1722225440 [03:57:11]FM_GetShiftState [03:57:11]SAM_PROTO_GetShiftState [03:57:11]wFMCommunicate request_size=4 [03:57:11]MH_SAM_APDU [03:57:11]CAPDU: 80 13 01 00 [03:57:11]Write to MH i2c: E2 08 00 8D 6F 80 13 01 00 00 00 00 00 79 [03:57:11]Write i2c OK [03:57:11]MH_I2C_Read... [03:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:57:11]Read from MH i2c: E2 [03:57:11]MH_I2C_Read... [03:57:11]Read from MH i2c: E2 0E 00 [03:57:11]MH_I2C_Read... [03:57:11]Read from MH i2c: E2 0E 00 8D 6F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 72 [03:57:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:57:11]wFMCommunicate OK [03:57:11]SAM_PROTO_GetShiftState done [03:57:11]FM_GetShiftState done [03:57:11]opened in 1722213119 [03:57:11]opened+sec_in_day 1722299519 [03:57:11]quantity*price = 15000 [03:57:11]sum+1 = 15001 [03:57:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 14 29.07.2024 03:57 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2165 ФПД: 45638479705908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T035720&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2165&fm=45638479705908&tin=02508201610067®Number=0000000000189667&sum=15000 0 [03:57:12]StoreToDocumentArchive [03:57:12]shift 15 fd 2165 [03:57:12]save to /storage/0015/doc_00002165 [03:57:12]save last doc name /storage/0015/doc_00002165 to /storage/kkm_last_doc_name [03:57:12]save OK [03:57:12]Clear old archive folders... [03:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=274 [03:57:12]tlvbuf is 021BD140 [03:57:12]SAM_PROTO_ClearQueue [03:57:12]wFMCommunicate request_size=4 [03:57:12]MH_SAM_APDU [03:57:12]CAPDU: 80 09 00 00 [03:57:12]Write to MH i2c: E2 08 00 9A 6F 80 09 00 00 00 00 00 00 7B [03:57:12]Write i2c OK [03:57:12]MH_I2C_Read... [03:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:57:12]Read from MH i2c: E2 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 03 00 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 03 00 9A 6F 00 90 00 7D [03:57:12]RAPDU: 90 00 [03:57:12]wFMCommunicate OK [03:57:12]SAM_PROTO_ClearQueue done [03:57:12]KKMCreateOFDPacket [03:57:12]OFDProtocolAddRootSTLVToBuf [03:57:12]FM_MakeSignedData [03:57:12]FM_MakeSignedData [03:57:12]SAM_PROTO_SignData [03:57:12]wFMCommunicate request_size=4 [03:57:12]MH_SAM_APDU [03:57:12]CAPDU: 80 0D 01 02 [03:57:12]Write to MH i2c: E2 08 00 9B 6F 80 0D 01 02 00 00 00 00 83 [03:57:12]Write i2c OK [03:57:12]MH_I2C_Read... [03:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:57:12]Read from MH i2c: E2 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 03 00 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 03 00 9B 6F 00 90 00 7E [03:57:12]RAPDU: 90 00 [03:57:12]wFMCommunicate OK [03:57:12]wFMCommunicate request_size=255 [03:57:12]MH_SAM_APDU [03:57:12]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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 20 13 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [03:57:12]Write to MH i2c: E2 02 01 9C 6F 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 20 13 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 89 [03:57:12]Write i2c OK [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 [03:57:12]MH_I2C_Read... [03:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:57:12]Read from MH i2c: E2 03 00 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 03 00 9C 6F 00 90 00 7F [03:57:12]RAPDU: 90 00 [03:57:12]wFMCommunicate OK [03:57:12]wFMCommunicate request_size=33 [03:57:12]MH_SAM_APDU [03:57:12]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 75 08 00 00 35 04 06 00 29 82 09 5E F7 34 [03:57:12]Write to MH i2c: E2 24 00 9D 6F 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 75 08 00 00 35 04 06 00 29 82 09 5E F7 34 00 00 CC [03:57:12]Write i2c OK [03:57:12]MH_I2C_Read... [03:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:57:12]Read from MH i2c: E2 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 03 00 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 03 00 9D 6F 00 90 00 80 [03:57:12]RAPDU: 90 00 [03:57:12]wFMCommunicate OK [03:57:12]wFMCommunicate request_size=4 [03:57:12]MH_SAM_APDU [03:57:12]CAPDU: 80 0D 03 02 [03:57:12]Write to MH i2c: E2 08 00 9E 6F 80 0D 03 02 00 00 00 00 88 [03:57:12]Write i2c OK [03:57:12]MH_I2C_Read... [03:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:57:12]Read from MH i2c: E2 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 0B 00 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 0B 00 9E 6F 00 70 D0 4C AA 06 4F 72 0B 90 00 91 [03:57:12]RAPDU: 70 D0 4C AA 06 4F 72 0B 90 00 [03:57:12]wFMCommunicate OK [03:57:12]SAM_PROTO_SignData done [03:57:12]FM_MakeSignedData done [03:57:12]CreateOFDProtocolMessage [03:57:12]wFMCommunicate request_size=4 [03:57:12]MH_SAM_APDU [03:57:12]CAPDU: 80 11 00 00 [03:57:12]Write to MH i2c: E2 08 00 9F 6F 80 11 00 00 00 00 00 00 88 [03:57:12]Write i2c OK [03:57:12]MH_I2C_Read... [03:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:57:12]Read from MH i2c: E2 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 17 00 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: E2 17 00 9F 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [03:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:57:12]wFMCommunicate OK [03:57:12]CreateOFDProtocolMessage done [03:57:12]OFDSenderStorePacket 2165 [03:57:12]StoreOFDPacket docnum=2165 [03:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 2E C9 1E 01 68 C3 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 20 13 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 75 08 00 00 35 04 06 00 29 82 09 5E F7 34 70 D0 4C AA 06 4F 72 0B [03:57:12]CheckFolder [03:57:12]dirname=/storage/ofd_packets [03:57:12]CheckFolder done [03:57:12]ProducePacketName [03:57:12]name=ofd_packets/00002165 [03:57:12]NVStorageSaveData ofd_packets/00002165 [03:57:12]File name is /storage/ofd_packets/00002165 [03:57:12]Write 324 bytes [03:57:12]NVStorageSaveData done [03:57:12]OFDSenderStorePacket done [03:57:12]KKMCreateOFDPacket done [03:57:12]NVStorageSaveData kkm_last_timestamp [03:57:12]File name is /storage/kkm_last_timestamp [03:57:12]Write 4 bytes [03:57:12]NVStorageSaveData done [03:57:12]ExternCall_PrintAddStr [03:57:12]wPrintStart [03:57:12]Write to MH i2c: 01 00 00 A0 6F 0F [03:57:12]Write i2c OK [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: 01 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: 01 07 00 [03:57:12]MH_I2C_Read... [03:57:12]Read from MH i2c: 01 07 00 A0 6F 00 00 00 00 00 FF 0F 24 [03:57:12]RasterBufferAndPrint [03:57:12]line Счет N : (3)126458 [03:57:12]line ИНН: 02508201610067 [03:57:12]line Контрольно-Кассовый Чек [03:57:12]line ПРОДАЖА [03:57:12]line Товар: 4640030091645 [03:57:12]line Сигареты ESSE Exchange M [03:57:12]line 1.000 * 150.00 [03:57:12]line = 150.00 [03:57:12]line НДС 12% НСП 1% [03:57:12]line > о реализуемом товаре [03:57:12]line ИТОГО: 150.00 [03:57:12]line НСП 1% : 1.33 [03:57:12]line НДС 12% : 15.93 [03:57:12]line Наличными: 0.00 [03:57:12]line Безнал.: 150.00 [03:57:12]line Место: АЗС № 127 "Партнер Нефть" [03:57:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [03:57:12]line СНО: Общий режим [03:57:12]line Чек 14 29.07.2024 03:57 [03:57:12]line Смена: 15 ФФД: 1.0 [03:57:12]line ЗНМ: 0300000161 [03:57:12]line РНМ: 0000000000189667 [03:57:12]line Версия ККМ: v1.0 [03:57:12]line Платежная система: O! деньги [03:57:12]line ФМ: 0000000002094248 [03:57:12]line ФД: 2165 [03:57:12]line ФПД: 45638479705908 [03:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T035720&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2165&fm=45638479705908&tin=02508201610067®Number=0000000000189667&sum=15000 [03:57:13]OFD Sender: Processing packet 2165 [packets to send 1, broken 0] [03:57:13]ProducePacketName [03:57:13]name=ofd_packets/00002165 [03:57:13]OFD Sender: To server: pG, [03:57:13]CommunicateWithHost lk.salyk.kg:30040 [03:57:13]ConnectInit lk.salyk.kg [03:57:13]line 0 [03:57:13]written 0, free lines is 4095 [03:57:13]Connected sock=10 [03:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 2E C9 1E 01 68 C3 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 20 13 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 75 08 00 00 35 04 06 00 29 82 09 5E F7 34 70 D0 4C AA 06 4F 72 0B [03:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FF 2C 47 00 3A 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 32 30 39 34 32 34 38 10 04 04 00 75 08 00 00 F4 03 04 00 8D BE A6 66 B6 04 01 00 00 B8 44 9B BB 24 85 B5 D0 [03:57:13]CommunicateWithHost err = 0 [03:57:13]CheckOFDResponse [03:57:13]1017 (14) - 77093643461234 [03:57:13]1041 (16) - 0000000002094248 [03:57:13]1040 (4) - 2165 [03:57:13]1012 (4) - 28.07.2024 21:56 [03:57:13]1206 (1) - 0 [03:57:13]OFD Sender: Remove packet 2165 [03:57:13]ProducePacketName [03:57:13]name=ofd_packets/00002165 [03:57:13]NVStorageDeleteData [03:57:13]Write to MH i2c: 01 00 00 CA 6F 39 [03:57:13]Write i2c OK [03:57:13]MH_I2C_Read... [03:57:13]Read from MH i2c: 01 [03:57:13]MH_I2C_Read... [03:57:13]Read from MH i2c: 01 07 00 [03:57:13]MH_I2C_Read... [03:57:13]Read from MH i2c: 01 07 00 CA 6F 00 00 00 00 00 FA 0C 46 [03:57:13]RasterBufferAndPrint [03:57:13]line [03:57:13]line [03:57:13]line [03:57:13]line [03:57:13]line [03:57:13]written 0, free lines is 3328 [03:57:13]MH_Cut [03:57:13]Write to MH i2c: D1 01 00 D1 6F 01 12 [03:57:13]Write i2c OK [03:57:13]MH_I2C_Read... [03:57:13]Read from MH i2c: D1 [03:57:13]MH_I2C_Read... [03:57:13]Read from MH i2c: D1 01 00 [03:57:13]MH_I2C_Read... [03:57:13]Read from MH i2c: D1 01 00 D1 6F 00 11 [03:57:13]Write to MH i2c: 01 00 00 D2 6F 41 [03:57:13]Write i2c OK [03:57:13]MH_I2C_Read... [03:57:14]OFD Sender: No OFD packet to send [03:57:14]*** Cut start [03:57:14]*** Partial cut [03:57:14]*** CUTSNS_PIN = 1 [03:57:14]*** CUTSNS_PIN = 0 [03:57:14]*** Brake cut motor [03:57:14]Read from MH i2c: 01 [03:57:14]MH_I2C_Read... [03:57:14]*** Stop cut motor [03:57:14]*** Cut end [03:57:14]Read from MH i2c: 01 07 00 [03:57:14]MH_I2C_Read... [03:57:14]Read from MH i2c: 01 07 00 D2 6F 00 00 00 00 00 FF 0F 56 [03:57:14]process_action close_receipt done [03:57:14]requested_data is exist [03:57:14]produce_requested_data [03:57:14]requested_item fm.sn is exist - process it [03:57:14]wFMCommunicate request_size=4 [03:57:14]MH_SAM_APDU [03:57:14]CAPDU: 80 11 00 00 [03:57:14]Write to MH i2c: E2 08 00 D3 6F 80 11 00 00 00 00 00 00 BC [03:57:14]Write i2c OK [03:57:14]MH_I2C_Read... [03:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:57:15]Read from MH i2c: E2 [03:57:15]MH_I2C_Read... [03:57:15]Read from MH i2c: E2 17 00 [03:57:15]MH_I2C_Read... [03:57:15]Read from MH i2c: E2 17 00 D3 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0C [03:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [03:57:15]wFMCommunicate OK [03:57:15]requested_item fd.num is exist - process it [03:57:15]SAM_PROTO_GetFieldsCounters [03:57:15]wFMCommunicate request_size=4 [03:57:15]MH_SAM_APDU [03:57:15]CAPDU: 80 13 00 00 [03:57:15]Write to MH i2c: E2 08 00 D4 6F 80 13 00 00 00 00 00 00 BF [03:57:15]Write i2c OK [03:57:15]MH_I2C_Read... [03:57:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:57:15]Read from MH i2c: E2 [03:57:15]MH_I2C_Read... [03:57:15]Read from MH i2c: E2 62 00 [03:57:15]MH_I2C_Read... [03:57:15]Read from MH i2c: E2 62 00 D4 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 75 08 00 00 0E 04 04 00 0F 00 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 9F [03:57:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 75 08 00 00 0E 04 04 00 0F 00 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:57:15]wFMCommunicate OK [03:57:15]SAM_PROTO_GetFieldsCounters done [03:57:15]requested_item shift.num is exist - process it [03:57:15]requested_item shift.opened is exist - process it [03:57:15]req_shift_opened [03:57:15]FM_GetShiftState [03:57:15]SAM_PROTO_GetShiftState [03:57:15]wFMCommunicate request_size=4 [03:57:15]MH_SAM_APDU [03:57:15]CAPDU: 80 13 01 00 [03:57:15]Write to MH i2c: E2 08 00 D5 6F 80 13 01 00 00 00 00 00 C1 [03:57:15]Write i2c OK [03:57:15]MH_I2C_Read... [03:57:15]Read from MH i2c: E2 [03:57:15]MH_I2C_Read... [03:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:57:15]Read from MH i2c: E2 0E 00 [03:57:15]MH_I2C_Read... [03:57:15]Read from MH i2c: E2 0E 00 D5 6F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BA [03:57:15]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [03:57:15]wFMCommunicate OK [03:57:15]SAM_PROTO_GetShiftState done [03:57:15]FM_GetShiftState done [03:57:15]req_shift_opened done [03:57:15]requested_item shift.open_date is exist - process it [03:57:15]req_shift_open_date [03:57:15]req_shift_open_date done [03:57:15]produce_requested_data done [03:57:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2165,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [03:57:15]process_action_free close_receipt [03:57:15]json_value_free [03:57:15]json_value_free done [03:57:15]process_json_proto returns [03:57:15]Send response to host [03:57:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2165,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [03:57:15]free response buf [03:57:15]execute_script done [03:57:15]execute_script returns [03:57:15]free content buf [03:57:15]Sock 8.Close socket [03:57:15]Sock 8.Thread stoped [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:26]accept exits with 9 [04:11:26]New connection [04:11:26]New thread 3067317604 created [04:11:26]Thread 3067460964 joined [04:11:26]Waiting for new connection... [04:11:26] Sock 9.Parse request [04:11:26]Sock 9.Check first char [04:11:26]Sock 9.First char is OK [04:11:26]request: POST /json_proto HTTP/1.0 [04:11:26]Method: POST [04:11:26]URL: /json_proto [04:11:26]Method is POST - this is cgi request [04:11:26]url: /json_proto [04:11:26]query_string will be loaded in cgi processing [04:11:26]execute_cgi json_proto POST (null) [04:11:26]execute_cgi path=json_proto method=POST [04:11:26]POST find Content-Length [04:11:26]Host: 172.17.45.132:8080 [04:11:26]Content-Length: 831 [04:11:26]Content-Type: application/json [04:11:26] [04:11:26]POST finish read [04:11:26]Found Content-Length = 831 [04:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126459", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:11:26]execute_script... [04:11: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 : (3)126459", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:11:26]POST & json_proto [04:11:26]process_json_proto [04:11:26]json parsed OK: [04:11:26]protocol is kg_v1.0 [04:11:26]action value=close_receipt [04:11:26]process_action close_receipt [04:11:26]cmd_close_receipt [04:11:26]MH_GetDate [04:11:26]Write to MH i2c: F0 00 00 D6 6F 34 [04:11:26]Write i2c OK [04:11:26]MH_I2C_Read... [04:11:26]Read from MH i2c: F0 [04:11:26]MH_I2C_Read... [04:11:26]Read from MH i2c: F0 09 00 [04:11:26]MH_I2C_Read... [04:11:26]Read from MH i2c: F0 09 00 D6 6F 00 77 16 A7 66 E3 0B 90 66 BB [04:11:26]GetLastDocTimeStamp 1722225440 [04:11:26]current date 1722226295 [04:11:26]FM_GetShiftState [04:11:26]SAM_PROTO_GetShiftState [04:11:26]wFMCommunicate request_size=4 [04:11:26]MH_SAM_APDU [04:11:26]CAPDU: 80 13 01 00 [04:11:26]Write to MH i2c: E2 08 00 D7 6F 80 13 01 00 00 00 00 00 C3 [04:11:26]Write i2c OK [04:11:26]MH_I2C_Read... [04:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:11:26]Read from MH i2c: E2 [04:11:26]MH_I2C_Read... [04:11:26]Read from MH i2c: E2 0E 00 [04:11:26]MH_I2C_Read... [04:11:26]Read from MH i2c: E2 0E 00 D7 6F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BC [04:11:26]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:11:26]wFMCommunicate OK [04:11:26]SAM_PROTO_GetShiftState done [04:11:26]FM_GetShiftState done [04:11:26]opened in 1722213119 [04:11:26]opened+sec_in_day 1722299519 [04:11:26]quantity*price = 17000 [04:11:26]sum+1 = 17001 [04:11:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 15 29.07.2024 04:11 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2166 ФПД: 135399340087976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041135&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2166&fm=135399340087976&tin=02508201610067®Number=0000000000189667&sum=17000 0 [04:11:27]StoreToDocumentArchive [04:11:27]shift 15 fd 2166 [04:11:27]save to /storage/0015/doc_00002166 [04:11:27]save last doc name /storage/0015/doc_00002166 to /storage/kkm_last_doc_name [04:11:27]save OK [04:11:27]Clear old archive folders... [04:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:11:27]tlvbuf is 020AE700 [04:11:27]SAM_PROTO_ClearQueue [04:11:27]wFMCommunicate request_size=4 [04:11:27]MH_SAM_APDU [04:11:27]CAPDU: 80 09 00 00 [04:11:27]Write to MH i2c: E2 08 00 E4 6F 80 09 00 00 00 00 00 00 C5 [04:11:27]Write i2c OK [04:11:27]MH_I2C_Read... [04:11:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:11:27]Read from MH i2c: E2 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 E4 6F 00 90 00 C7 [04:11:27]RAPDU: 90 00 [04:11:27]wFMCommunicate OK [04:11:27]SAM_PROTO_ClearQueue done [04:11:27]KKMCreateOFDPacket [04:11:27]OFDProtocolAddRootSTLVToBuf [04:11:27]FM_MakeSignedData [04:11:27]FM_MakeSignedData [04:11:27]SAM_PROTO_SignData [04:11:27]wFMCommunicate request_size=4 [04:11:27]MH_SAM_APDU [04:11:27]CAPDU: 80 0D 01 02 [04:11:27]Write to MH i2c: E2 08 00 E5 6F 80 0D 01 02 00 00 00 00 CD [04:11:27]Write i2c OK [04:11:27]MH_I2C_Read... [04:11:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:11:27]Read from MH i2c: E2 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 E5 6F 00 90 00 C8 [04:11:27]RAPDU: 90 00 [04:11:27]wFMCommunicate OK [04:11:27]wFMCommunicate request_size=255 [04:11:27]MH_SAM_APDU [04:11:27]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 77 16 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [04:11:27]Write to MH i2c: E2 02 01 E6 6F 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 77 16 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 9F [04:11:27]Write i2c OK [04:11:27]MH_I2C_Read... [04:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:11:27]Read from MH i2c: E2 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 E6 6F 00 90 00 C9 [04:11:27]RAPDU: 90 00 [04:11:27]wFMCommunicate OK [04:11:27]wFMCommunicate request_size=41 [04:11:27]MH_SAM_APDU [04:11:27]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 76 08 00 00 35 04 06 00 7B 25 1D 91 9A A8 [04:11:27]Write to MH i2c: E2 2C 00 E7 6F 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 76 08 00 00 35 04 06 00 7B 25 1D 91 9A A8 00 00 AA [04:11:27]Write i2c OK [04:11:27]MH_I2C_Read... [04:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:11:27]Read from MH i2c: E2 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 03 00 E7 6F 00 90 00 CA [04:11:27]RAPDU: 90 00 [04:11:27]wFMCommunicate OK [04:11:27]wFMCommunicate request_size=4 [04:11:27]MH_SAM_APDU [04:11:27]CAPDU: 80 0D 03 02 [04:11:27]Write to MH i2c: E2 08 00 E8 6F 80 0D 03 02 00 00 00 00 D2 [04:11:27]Write i2c OK [04:11:27]MH_I2C_Read... [04:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:11:27]Read from MH i2c: E2 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 0B 00 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 0B 00 E8 6F 00 45 3F 97 1C 8B 85 E4 67 90 00 65 [04:11:27]RAPDU: 45 3F 97 1C 8B 85 E4 67 90 00 [04:11:27]wFMCommunicate OK [04:11:27]SAM_PROTO_SignData done [04:11:27]FM_MakeSignedData done [04:11:27]CreateOFDProtocolMessage [04:11:27]wFMCommunicate request_size=4 [04:11:27]MH_SAM_APDU [04:11:27]CAPDU: 80 11 00 00 [04:11:27]Write to MH i2c: E2 08 00 E9 6F 80 11 00 00 00 00 00 00 D2 [04:11:27]Write i2c OK [04:11:27]MH_I2C_Read... [04:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:11:27]Read from MH i2c: E2 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 17 00 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: E2 17 00 E9 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 22 [04:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:11:27]wFMCommunicate OK [04:11:27]CreateOFDProtocolMessage done [04:11:27]OFDSenderStorePacket 2166 [04:11:27]StoreOFDPacket docnum=2166 [04:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 86 AA 26 01 0C 34 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 77 16 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 76 08 00 00 35 04 06 00 7B 25 1D 91 9A A8 45 3F 97 1C 8B 85 E4 67 [04:11:27]CheckFolder [04:11:27]dirname=/storage/ofd_packets [04:11:27]CheckFolder done [04:11:27]ProducePacketName [04:11:27]name=ofd_packets/00002166 [04:11:27]NVStorageSaveData ofd_packets/00002166 [04:11:27]File name is /storage/ofd_packets/00002166 [04:11:27]Write 332 bytes [04:11:27]NVStorageSaveData done [04:11:27]OFDSenderStorePacket done [04:11:27]KKMCreateOFDPacket done [04:11:27]NVStorageSaveData kkm_last_timestamp [04:11:27]File name is /storage/kkm_last_timestamp [04:11:27]Write 4 bytes [04:11:27]NVStorageSaveData done [04:11:27]ExternCall_PrintAddStr [04:11:27]wPrintStart [04:11:27]Write to MH i2c: 01 00 00 EA 6F 59 [04:11:27]Write i2c OK [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: 01 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: 01 07 00 [04:11:27]MH_I2C_Read... [04:11:27]Read from MH i2c: 01 07 00 EA 6F 00 00 00 00 00 FF 0F 6E [04:11:27]RasterBufferAndPrint [04:11:27]line Счет N : (3)126459 [04:11:27]line ИНН: 02508201610067 [04:11:27]line Контрольно-Кассовый Чек [04:11:27]line ПРОДАЖА [04:11:27]line Товар: 4700000480357 [04:11:27]line Пиво шахтерское 1л ПЭТ [04:11:27]line 1.000 * 170.00 [04:11:27]line = 170.00 [04:11:27]line НДС 12% НСП 1% [04:11:27]line > о реализуемом товаре [04:11:27]line ИТОГО: 170.00 [04:11:27]line НСП 1% : 1.50 [04:11:27]line НДС 12% : 18.05 [04:11:27]line Наличными: 0.00 [04:11:27]line Безнал.: 170.00 [04:11:27]line Место: АЗС № 127 "Партнер Нефть" [04:11:27]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:11:27]line СНО: Общий режим [04:11:27]line Чек 15 29.07.2024 04:11 [04:11:27]line Смена: 15 ФФД: 1.0 [04:11:27]line ЗНМ: 0300000161 [04:11:27]line РНМ: 0000000000189667 [04:11:27]line Версия ККМ: v1.0 [04:11:27]line Платежная система: O! деньги [04:11:27]line ФМ: 0000000002094248 [04:11:27]line ФД: 2166 [04:11:27]line ФПД: 135399340087976 [04:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041135&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2166&fm=135399340087976&tin=02508201610067®Number=0000000000189667&sum=17000 [04:11:28]line 0 [04:11:28]OFD Sender: Processing packet 2166 [packets to send 1, broken 0] [04:11:28]ProducePacketName [04:11:28]name=ofd_packets/00002166 [04:11:28]OFD Sender: To server: pG, [04:11:28]CommunicateWithHost lk.salyk.kg:30040 [04:11:28]ConnectInit lk.salyk.kg [04:11:28]written 0, free lines is 4095 [04:11:28]Connected sock=10 [04:11:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 86 AA 26 01 0C 34 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 77 16 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 76 08 00 00 35 04 06 00 7B 25 1D 91 9A A8 45 3F 97 1C 8B 85 E4 67 [04:11:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F8 A9 47 00 0E 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 32 30 39 34 32 34 38 10 04 04 00 76 08 00 00 F4 03 04 00 E4 C1 A6 66 B6 04 01 00 00 EC 29 4F 46 C1 C4 62 0F [04:11:28]CommunicateWithHost err = 0 [04:11:28]CheckOFDResponse [04:11:28]1017 (14) - 77093643461234 [04:11:28]1041 (16) - 0000000002094248 [04:11:28]1040 (4) - 2166 [04:11:28]1012 (4) - 28.07.2024 22:10 [04:11:28]1206 (1) - 0 [04:11:28]OFD Sender: Remove packet 2166 [04:11:28]ProducePacketName [04:11:28]name=ofd_packets/00002166 [04:11:28]NVStorageDeleteData [04:11:28]Write to MH i2c: 01 00 00 14 70 84 [04:11:28]Write i2c OK [04:11:28]MH_I2C_Read... [04:11:28]Read from MH i2c: 01 [04:11:28]MH_I2C_Read... [04:11:28]Read from MH i2c: 01 07 00 [04:11:28]MH_I2C_Read... [04:11:28]Read from MH i2c: 01 07 00 14 70 00 00 00 00 00 FC 0C 93 [04:11:28]RasterBufferAndPrint [04:11:28]line [04:11:28]line [04:11:28]line [04:11:28]line [04:11:28]line [04:11:28]written 0, free lines is 3333 [04:11:28]MH_Cut [04:11:28]Write to MH i2c: D1 01 00 1B 70 01 5D [04:11:28]Write i2c OK [04:11:28]MH_I2C_Read... [04:11:28]Read from MH i2c: D1 [04:11:28]MH_I2C_Read... [04:11:28]Read from MH i2c: D1 01 00 [04:11:28]MH_I2C_Read... [04:11:28]Read from MH i2c: D1 01 00 1B 70 00 5C [04:11:28]Write to MH i2c: 01 00 00 1C 70 8C [04:11:28]Write i2c OK [04:11:28]MH_I2C_Read... [04:11:29]OFD Sender: No OFD packet to send [04:11:29]*** Cut start [04:11:29]*** Partial cut [04:11:29]*** CUTSNS_PIN = 1 [04:11:29]*** CUTSNS_PIN = 0 [04:11:29]*** Brake cut motor [04:11:29]Read from MH i2c: 01 [04:11:29]MH_I2C_Read... [04:11:29]*** Stop cut motor [04:11:29]*** Cut end [04:11:29]Read from MH i2c: 01 07 00 [04:11:29]MH_I2C_Read... [04:11:29]Read from MH i2c: 01 07 00 1C 70 00 00 00 00 00 FF 0F A1 [04:11:29]process_action close_receipt done [04:11:29]requested_data is exist [04:11:29]produce_requested_data [04:11:29]requested_item fm.sn is exist - process it [04:11:29]wFMCommunicate request_size=4 [04:11:29]MH_SAM_APDU [04:11:29]CAPDU: 80 11 00 00 [04:11:29]Write to MH i2c: E2 08 00 1D 70 80 11 00 00 00 00 00 00 07 [04:11:29]Write i2c OK [04:11:29]MH_I2C_Read... [04:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:11:30]Read from MH i2c: E2 [04:11:30]MH_I2C_Read... [04:11:30]Read from MH i2c: E2 17 00 [04:11:30]MH_I2C_Read... [04:11:30]Read from MH i2c: E2 17 00 1D 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 57 [04:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:11:30]wFMCommunicate OK [04:11:30]requested_item fd.num is exist - process it [04:11:30]SAM_PROTO_GetFieldsCounters [04:11:30]wFMCommunicate request_size=4 [04:11:30]MH_SAM_APDU [04:11:30]CAPDU: 80 13 00 00 [04:11:30]Write to MH i2c: E2 08 00 1E 70 80 13 00 00 00 00 00 00 0A [04:11:30]Write i2c OK [04:11:30]MH_I2C_Read... [04:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:11:30]Read from MH i2c: E2 [04:11:30]MH_I2C_Read... [04:11:30]Read from MH i2c: E2 62 00 [04:11:30]MH_I2C_Read... [04:11:30]Read from MH i2c: E2 62 00 1E 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 76 08 00 00 0E 04 04 00 0F 00 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 EE [04:11:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 76 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:11:30]wFMCommunicate OK [04:11:30]SAM_PROTO_GetFieldsCounters done [04:11:30]requested_item shift.num is exist - process it [04:11:30]requested_item shift.opened is exist - process it [04:11:30]req_shift_opened [04:11:30]FM_GetShiftState [04:11:30]SAM_PROTO_GetShiftState [04:11:30]wFMCommunicate request_size=4 [04:11:30]MH_SAM_APDU [04:11:30]CAPDU: 80 13 01 00 [04:11:30]Write to MH i2c: E2 08 00 1F 70 80 13 01 00 00 00 00 00 0C [04:11:30]Write i2c OK [04:11:30]MH_I2C_Read... [04:11:30]Read from MH i2c: E2 [04:11:30]MH_I2C_Read... [04:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:11:30]Read from MH i2c: E2 0E 00 [04:11:30]MH_I2C_Read... [04:11:30]Read from MH i2c: E2 0E 00 1F 70 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 05 [04:11:30]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:11:30]wFMCommunicate OK [04:11:30]SAM_PROTO_GetShiftState done [04:11:30]FM_GetShiftState done [04:11:30]req_shift_opened done [04:11:30]requested_item shift.open_date is exist - process it [04:11:30]req_shift_open_date [04:11:30]req_shift_open_date done [04:11:30]produce_requested_data done [04:11:30]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2166,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [04:11:30]process_action_free close_receipt [04:11:30]json_value_free [04:11:30]json_value_free done [04:11:30]process_json_proto returns [04:11:30]Send response to host [04:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2166,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [04:11:30]free response buf [04:11:30]execute_script done [04:11:30]execute_script returns [04:11:30]free content buf [04:11:30]Sock 9.Close socket [04:11:30]Sock 9.Thread stoped [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]accept exits with 8 [04:14:54]New connection [04:14:54]New thread 3067460964 created [04:14:54]Thread 3067317604 joined [04:14:54]Waiting for new connection... [04:14:54] Sock 8.Parse request [04:14:54]Sock 8.Check first char [04:14:54]Sock 8.First char is OK [04:14:54]request: POST /json_proto HTTP/1.0 [04:14:54]Method: POST [04:14:54]URL: /json_proto [04:14:54]Method is POST - this is cgi request [04:14:54]url: /json_proto [04:14:54]query_string will be loaded in cgi processing [04:14:54]execute_cgi json_proto POST (null) [04:14:54]execute_cgi path=json_proto method=POST [04:14:54]POST find Content-Length [04:14:54]Host: 172.17.45.132:8080 [04:14:54]Content-Length: 889 [04:14:54]Content-Type: application/json [04:14:54] [04:14:54]POST finish read [04:14:54]Found Content-Length = 889 [04:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126460", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:54]execute_script... [04:14:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126460", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:54]POST & json_proto [04:14:54]process_json_proto [04:14:54]json parsed OK: [04:14:54]protocol is kg_v1.0 [04:14:54]action value=close_receipt [04:14:54]process_action close_receipt [04:14:54]cmd_close_receipt [04:14:54]MH_GetDate [04:14:54]Write to MH i2c: F0 00 00 20 70 7F [04:14:54]Write i2c OK [04:14:54]MH_I2C_Read... [04:14:54]Read from MH i2c: F0 [04:14:54]MH_I2C_Read... [04:14:54]Read from MH i2c: F0 09 00 [04:14:54]MH_I2C_Read... [04:14:54]Read from MH i2c: F0 09 00 20 70 00 47 17 A7 66 E3 0B 90 66 D7 [04:14:54]GetLastDocTimeStamp 1722226295 [04:14:54]current date 1722226503 [04:14:54]FM_GetShiftState [04:14:54]SAM_PROTO_GetShiftState [04:14:54]wFMCommunicate request_size=4 [04:14:54]MH_SAM_APDU [04:14:54]CAPDU: 80 13 01 00 [04:14:54]Write to MH i2c: E2 08 00 21 70 80 13 01 00 00 00 00 00 0E [04:14:54]Write i2c OK [04:14:54]MH_I2C_Read... [04:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:54]Read from MH i2c: E2 [04:14:54]MH_I2C_Read... [04:14:54]Read from MH i2c: E2 0E 00 [04:14:54]MH_I2C_Read... [04:14:54]Read from MH i2c: E2 0E 00 21 70 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 07 [04:14:54]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:14:54]wFMCommunicate OK [04:14:54]SAM_PROTO_GetShiftState done [04:14:54]FM_GetShiftState done [04:14:54]opened in 1722213119 [04:14:54]opened+sec_in_day 1722299519 [04:14:54]quantity*price = 10700 [04:14:54]sum+1 = 10701 [04:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 0.00 Безнал.: 107.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 16 29.07.2024 04:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2167 ФПД: 257439785776579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041503&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2167&fm=257439785776579&tin=02508201610067®Number=0000000000189667&sum=10700 0 [04:14:55]StoreToDocumentArchive [04:14:55]shift 15 fd 2167 [04:14:55]save to /storage/0015/doc_00002167 [04:14:55]save last doc name /storage/0015/doc_00002167 to /storage/kkm_last_doc_name [04:14:55]save OK [04:14:55]Clear old archive folders... [04:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=308 [04:14:55]tlvbuf is 02048800 [04:14:55]SAM_PROTO_ClearQueue [04:14:55]wFMCommunicate request_size=4 [04:14:55]MH_SAM_APDU [04:14:55]CAPDU: 80 09 00 00 [04:14:55]Write to MH i2c: E2 08 00 2E 70 80 09 00 00 00 00 00 00 10 [04:14:55]Write i2c OK [04:14:55]MH_I2C_Read... [04:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:14:55]Read from MH i2c: E2 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 2E 70 00 90 00 12 [04:14:55]RAPDU: 90 00 [04:14:55]wFMCommunicate OK [04:14:55]SAM_PROTO_ClearQueue done [04:14:55]KKMCreateOFDPacket [04:14:55]OFDProtocolAddRootSTLVToBuf [04:14:55]FM_MakeSignedData [04:14:55]FM_MakeSignedData [04:14:55]SAM_PROTO_SignData [04:14:55]wFMCommunicate request_size=4 [04:14:55]MH_SAM_APDU [04:14:55]CAPDU: 80 0D 01 02 [04:14:55]Write to MH i2c: E2 08 00 2F 70 80 0D 01 02 00 00 00 00 18 [04:14:55]Write i2c OK [04:14:55]MH_I2C_Read... [04:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:14:55]Read from MH i2c: E2 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 2F 70 00 90 00 13 [04:14:55]RAPDU: 90 00 [04:14:55]wFMCommunicate OK [04:14:55]wFMCommunicate request_size=255 [04:14:55]MH_SAM_APDU [04:14:55]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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 47 17 A7 66 0E 04 04 00 0F 00 00 00 B9 [04:14:55]Write to MH i2c: E2 02 01 30 70 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 47 17 A7 66 0E 04 04 00 0F 00 00 00 B9 00 00 D9 [04:14:55]Write i2c OK [04:14:55]MH_I2C_Read... [04:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:55]Read from MH i2c: E2 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 30 70 00 90 00 14 [04:14:55]RAPDU: 90 00 [04:14:55]wFMCommunicate OK [04:14:55]wFMCommunicate request_size=67 [04:14:55]MH_SAM_APDU [04:14:55]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 77 08 00 00 35 04 06 00 EA 23 DE FB 75 C3 [04:14:55]Write to MH i2c: E2 46 00 31 70 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 77 08 00 00 35 04 06 00 EA 23 DE FB 75 C3 00 00 19 [04:14:55]Write i2c OK [04:14:55]MH_I2C_Read... [04:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:55]Read from MH i2c: E2 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 03 00 31 70 00 90 00 15 [04:14:55]RAPDU: 90 00 [04:14:55]wFMCommunicate OK [04:14:55]wFMCommunicate request_size=4 [04:14:55]MH_SAM_APDU [04:14:55]CAPDU: 80 0D 03 02 [04:14:55]Write to MH i2c: E2 08 00 32 70 80 0D 03 02 00 00 00 00 1D [04:14:55]Write i2c OK [04:14:55]MH_I2C_Read... [04:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:14:55]Read from MH i2c: E2 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 0B 00 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 0B 00 32 70 00 2E A7 75 AE 35 B1 75 2C 90 00 9D [04:14:55]RAPDU: 2E A7 75 AE 35 B1 75 2C 90 00 [04:14:55]wFMCommunicate OK [04:14:55]SAM_PROTO_SignData done [04:14:55]FM_MakeSignedData done [04:14:55]CreateOFDProtocolMessage [04:14:55]wFMCommunicate request_size=4 [04:14:55]MH_SAM_APDU [04:14:55]CAPDU: 80 11 00 00 [04:14:55]Write to MH i2c: E2 08 00 33 70 80 11 00 00 00 00 00 00 1D [04:14:55]Write i2c OK [04:14:55]MH_I2C_Read... [04:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:55]Read from MH i2c: E2 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 17 00 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: E2 17 00 33 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [04:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:14:55]wFMCommunicate OK [04:14:55]CreateOFDProtocolMessage done [04:14:55]OFDSenderStorePacket 2167 [04:14:55]StoreOFDPacket docnum=2167 [04:14:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 1F FF 40 01 47 71 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 47 17 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 77 08 00 00 35 04 06 00 EA 23 DE FB 75 C3 2E A7 75 AE 35 B1 75 2C [04:14:55]CheckFolder [04:14:55]dirname=/storage/ofd_packets [04:14:55]CheckFolder done [04:14:55]ProducePacketName [04:14:55]name=ofd_packets/00002167 [04:14:55]NVStorageSaveData ofd_packets/00002167 [04:14:55]File name is /storage/ofd_packets/00002167 [04:14:55]Write 358 bytes [04:14:55]NVStorageSaveData done [04:14:55]OFDSenderStorePacket done [04:14:55]KKMCreateOFDPacket done [04:14:55]NVStorageSaveData kkm_last_timestamp [04:14:55]File name is /storage/kkm_last_timestamp [04:14:55]Write 4 bytes [04:14:55]NVStorageSaveData done [04:14:55]ExternCall_PrintAddStr [04:14:55]wPrintStart [04:14:55]Write to MH i2c: 01 00 00 34 70 A4 [04:14:55]Write i2c OK [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: 01 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: 01 07 00 [04:14:55]MH_I2C_Read... [04:14:55]Read from MH i2c: 01 07 00 34 70 00 00 00 00 00 FF 0F B9 [04:14:55]RasterBufferAndPrint [04:14:55]line Счет N : (3)126460 [04:14:55]line ИНН: 02508201610067 [04:14:55]line Контрольно-Кассовый Чек [04:14:55]line ПРОДАЖА [04:14:55]line Товар: 5449000027474 [04:14:55]line Напиток FuzeTea зел чай манго,ромашка 1л [04:14:55]line 1.000 * 107.00 [04:14:55]line = 107.00 [04:14:55]line НДС 12% НСП 1% [04:14:55]line > о реализуемом товаре [04:14:55]line ИТОГО: 107.00 [04:14:55]line НСП 1% : 0.95 [04:14:55]line НДС 12% : 11.36 [04:14:55]line Наличными: 0.00 [04:14:55]line Безнал.: 107.00 [04:14:55]line Место: АЗС № 127 "Партнер Нефть" [04:14:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:14:55]line СНО: Общий режим [04:14:55]line Чек 16 29.07.2024 04:15 [04:14:55]line Смена: 15 ФФД: 1.0 [04:14:55]line ЗНМ: 0300000161 [04:14:55]line РНМ: 0000000000189667 [04:14:55]line Версия ККМ: v1.0 [04:14:55]line Платежная система: O! деньги [04:14:55]line ФМ: 0000000002094248 [04:14:55]line ФД: 2167 [04:14:56]line ФПД: 257439785776579 [04:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041503&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2167&fm=257439785776579&tin=02508201610067®Number=0000000000189667&sum=10700 [04:14:56]line 0 [04:14:56]OFD Sender: Processing packet 2167 [packets to send 1, broken 0] [04:14:56]ProducePacketName [04:14:56]name=ofd_packets/00002167 [04:14:56]OFD Sender: To server: pG, [04:14:56]CommunicateWithHost lk.salyk.kg:30040 [04:14:56]ConnectInit lk.salyk.kg [04:14:56]written 0, free lines is 4095 [04:14:56]Connected sock=10 [04:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 1F FF 40 01 47 71 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 47 17 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 77 08 00 00 35 04 06 00 EA 23 DE FB 75 C3 2E A7 75 AE 35 B1 75 2C [04:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F8 60 47 00 B9 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 32 30 39 34 32 34 38 10 04 04 00 77 08 00 00 F4 03 04 00 B4 C2 A6 66 B6 04 01 00 00 CA 46 6F 96 A9 56 9F A1 [04:14:56]CommunicateWithHost err = 0 [04:14:56]CheckOFDResponse [04:14:56]1017 (14) - 77093643461234 [04:14:56]1041 (16) - 0000000002094248 [04:14:56]1040 (4) - 2167 [04:14:56]1012 (4) - 28.07.2024 22:14 [04:14:56]1206 (1) - 0 [04:14:56]OFD Sender: Remove packet 2167 [04:14:56]ProducePacketName [04:14:56]name=ofd_packets/00002167 [04:14:56]NVStorageDeleteData [04:14:56]Write to MH i2c: 01 00 00 5F 70 CF [04:14:56]Write i2c OK [04:14:56]MH_I2C_Read... [04:14:56]Read from MH i2c: 01 [04:14:56]MH_I2C_Read... [04:14:56]Read from MH i2c: 01 07 00 [04:14:56]MH_I2C_Read... [04:14:56]Read from MH i2c: 01 07 00 5F 70 00 00 00 00 00 E7 0C C9 [04:14:56]RasterBufferAndPrint [04:14:56]line [04:14:56]line [04:14:56]line [04:14:56]line [04:14:56]line [04:14:56]written 0, free lines is 3312 [04:14:56]MH_Cut [04:14:56]Write to MH i2c: D1 01 00 66 70 01 A8 [04:14:56]Write i2c OK [04:14:56]MH_I2C_Read... [04:14:56]Read from MH i2c: D1 [04:14:56]MH_I2C_Read... [04:14:56]Read from MH i2c: D1 01 00 [04:14:56]MH_I2C_Read... [04:14:56]Read from MH i2c: D1 01 00 66 70 00 A7 [04:14:56]Write to MH i2c: 01 00 00 67 70 D7 [04:14:56]Write i2c OK [04:14:56]MH_I2C_Read... [04:14:56]OFD Sender: No OFD packet to send [04:14:57]*** Cut start [04:14:57]*** Partial cut [04:14:57]*** CUTSNS_PIN = 1 [04:14:57]*** CUTSNS_PIN = 0 [04:14:57]*** Brake cut motor [04:14:57]Read from MH i2c: 01 [04:14:57]MH_I2C_Read... [04:14:57]*** Stop cut motor [04:14:57]*** Cut end [04:14:57]Read from MH i2c: 01 07 00 [04:14:57]MH_I2C_Read... [04:14:57]Read from MH i2c: 01 07 00 67 70 00 00 00 00 00 FF 0F EC [04:14:57]process_action close_receipt done [04:14:57]requested_data is exist [04:14:57]produce_requested_data [04:14:57]requested_item fm.sn is exist - process it [04:14:57]wFMCommunicate request_size=4 [04:14:57]MH_SAM_APDU [04:14:57]CAPDU: 80 11 00 00 [04:14:57]Write to MH i2c: E2 08 00 68 70 80 11 00 00 00 00 00 00 52 [04:14:57]Write i2c OK [04:14:57]MH_I2C_Read... [04:14:57]Read from MH i2c: E2 [04:14:57]MH_I2C_Read... [04:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:57]Read from MH i2c: E2 17 00 [04:14:57]MH_I2C_Read... [04:14:57]Read from MH i2c: E2 17 00 68 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A2 [04:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:14:57]wFMCommunicate OK [04:14:57]requested_item fd.num is exist - process it [04:14:57]SAM_PROTO_GetFieldsCounters [04:14:57]wFMCommunicate request_size=4 [04:14:57]MH_SAM_APDU [04:14:57]CAPDU: 80 13 00 00 [04:14:57]Write to MH i2c: E2 08 00 69 70 80 13 00 00 00 00 00 00 55 [04:14:57]Write i2c OK [04:14:57]MH_I2C_Read... [04:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:14:58]Read from MH i2c: E2 [04:14:58]MH_I2C_Read... [04:14:58]Read from MH i2c: E2 62 00 [04:14:58]MH_I2C_Read... [04:14:58]Read from MH i2c: E2 62 00 69 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 77 08 00 00 0E 04 04 00 0F 00 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 3D [04:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 77 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:14:58]wFMCommunicate OK [04:14:58]SAM_PROTO_GetFieldsCounters done [04:14:58]requested_item shift.num is exist - process it [04:14:58]requested_item shift.opened is exist - process it [04:14:58]req_shift_opened [04:14:58]FM_GetShiftState [04:14:58]SAM_PROTO_GetShiftState [04:14:58]wFMCommunicate request_size=4 [04:14:58]MH_SAM_APDU [04:14:58]CAPDU: 80 13 01 00 [04:14:58]Write to MH i2c: E2 08 00 6A 70 80 13 01 00 00 00 00 00 57 [04:14:58]Write i2c OK [04:14:58]MH_I2C_Read... [04:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:58]Read from MH i2c: E2 [04:14:58]MH_I2C_Read... [04:14:58]Read from MH i2c: E2 0E 00 [04:14:58]MH_I2C_Read... [04:14:58]Read from MH i2c: E2 0E 00 6A 70 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 50 [04:14:58]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:14:58]wFMCommunicate OK [04:14:58]SAM_PROTO_GetShiftState done [04:14:58]FM_GetShiftState done [04:14:58]req_shift_opened done [04:14:58]requested_item shift.open_date is exist - process it [04:14:58]req_shift_open_date [04:14:58]req_shift_open_date done [04:14:58]produce_requested_data done [04:14:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2167,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [04:14:58]process_action_free close_receipt [04:14:58]json_value_free [04:14:58]json_value_free done [04:14:58]process_json_proto returns [04:14:58]Send response to host [04:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2167,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [04:14:58]free response buf [04:14:58]execute_script done [04:14:58]execute_script returns [04:14:58]free content buf [04:14:58]Sock 8.Close socket [04:14:58]Sock 8.Thread stoped [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]accept exits with 9 [04:15:21]New connection [04:15:21]New thread 3067317604 created [04:15:21]Thread 3067460964 joined [04:15:21]Waiting for new connection... [04:15:21] Sock 9.Parse request [04:15:21]Sock 9.Check first char [04:15:21]Sock 9.First char is OK [04:15:21]request: POST /json_proto HTTP/1.0 [04:15:21]Method: POST [04:15:21]URL: /json_proto [04:15:21]Method is POST - this is cgi request [04:15:21]url: /json_proto [04:15:21]query_string will be loaded in cgi processing [04:15:21]execute_cgi json_proto POST (null) [04:15:21]execute_cgi path=json_proto method=POST [04:15:21]POST find Content-Length [04:15:21]Host: 172.17.45.132:8080 [04:15:21]Content-Length: 624 [04:15:21]Content-Type: application/json [04:15:21] [04:15:21]POST finish read [04:15:21]Found Content-Length = 624 [04:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126461", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:15:21]execute_script... [04:15: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)126461", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:15:21]POST & json_proto [04:15:21]process_json_proto [04:15:21]json parsed OK: [04:15:21]protocol is kg_v1.0 [04:15:21]action value=close_receipt [04:15:21]process_action close_receipt [04:15:21]cmd_close_receipt [04:15:21]MH_GetDate [04:15:21]Write to MH i2c: F0 00 00 6B 70 CA [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: F0 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: F0 09 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: F0 09 00 6B 70 00 62 17 A7 66 E3 0B 90 66 3D [04:15:21]GetLastDocTimeStamp 1722226503 [04:15:21]current date 1722226530 [04:15:21]FM_GetShiftState [04:15:21]SAM_PROTO_GetShiftState [04:15:21]wFMCommunicate request_size=4 [04:15:21]MH_SAM_APDU [04:15:21]CAPDU: 80 13 01 00 [04:15:21]Write to MH i2c: E2 08 00 6C 70 80 13 01 00 00 00 00 00 59 [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:15:21]Read from MH i2c: E2 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 0E 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 0E 00 6C 70 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 52 [04:15:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:15:21]wFMCommunicate OK [04:15:21]SAM_PROTO_GetShiftState done [04:15:21]FM_GetShiftState done [04:15:21]opened in 1722213119 [04:15:21]opened+sec_in_day 1722299519 [04:15:21]quantity*price = 30000 [04:15:21]sum+1 = 30001 [04:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 17 29.07.2024 04:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2168 ФПД: 113445174445418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041530&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2168&fm=113445174445418&tin=02508201610067®Number=0000000000189667&sum=30000 0 [04:15:22]StoreToDocumentArchive [04:15:22]shift 15 fd 2168 [04:15:22]save to /storage/0015/doc_00002168 [04:15:22]save last doc name /storage/0015/doc_00002168 to /storage/kkm_last_doc_name [04:15:22]save OK [04:15:22]Clear old archive folders... [04:15:22]ProcessDocumentItem done err = 0, tmpTLVsize=268 [04:15:22]tlvbuf is 02010D80 [04:15:22]SAM_PROTO_ClearQueue [04:15:22]wFMCommunicate request_size=4 [04:15:22]MH_SAM_APDU [04:15:22]CAPDU: 80 09 00 00 [04:15:22]Write to MH i2c: E2 08 00 79 70 80 09 00 00 00 00 00 00 5B [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:15:22]Read from MH i2c: E2 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 79 70 00 90 00 5D [04:15:22]RAPDU: 90 00 [04:15:22]wFMCommunicate OK [04:15:22]SAM_PROTO_ClearQueue done [04:15:22]KKMCreateOFDPacket [04:15:22]OFDProtocolAddRootSTLVToBuf [04:15:22]FM_MakeSignedData [04:15:22]FM_MakeSignedData [04:15:22]SAM_PROTO_SignData [04:15:22]wFMCommunicate request_size=4 [04:15:22]MH_SAM_APDU [04:15:22]CAPDU: 80 0D 01 02 [04:15:22]Write to MH i2c: E2 08 00 7A 70 80 0D 01 02 00 00 00 00 63 [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:15:22]Read from MH i2c: E2 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 7A 70 00 90 00 5E [04:15:22]RAPDU: 90 00 [04:15:22]wFMCommunicate OK [04:15:22]wFMCommunicate request_size=255 [04:15:22]MH_SAM_APDU [04:15:22]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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 62 17 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [04:15:22]Write to MH i2c: E2 02 01 7B 70 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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 62 17 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 BC [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:15:22]Read from MH i2c: E2 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 7B 70 00 90 00 5F [04:15:22]RAPDU: 90 00 [04:15:22]wFMCommunicate OK [04:15:22]wFMCommunicate request_size=27 [04:15:22]MH_SAM_APDU [04:15:22]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 78 08 00 00 35 04 06 00 67 2D 83 53 05 6A [04:15:22]Write to MH i2c: E2 1E 00 7C 70 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 78 08 00 00 35 04 06 00 67 2D 83 53 05 6A 00 00 14 [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:15:22]Read from MH i2c: E2 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 03 00 7C 70 00 90 00 60 [04:15:22]RAPDU: 90 00 [04:15:22]wFMCommunicate OK [04:15:22]wFMCommunicate request_size=4 [04:15:22]MH_SAM_APDU [04:15:22]CAPDU: 80 0D 03 02 [04:15:22]Write to MH i2c: E2 08 00 7D 70 80 0D 03 02 00 00 00 00 68 [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:15:22]Read from MH i2c: E2 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 0B 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 0B 00 7D 70 00 99 26 FE 01 E4 38 84 6F 90 00 36 [04:15:22]RAPDU: 99 26 FE 01 E4 38 84 6F 90 00 [04:15:22]wFMCommunicate OK [04:15:22]SAM_PROTO_SignData done [04:15:22]FM_MakeSignedData done [04:15:22]CreateOFDProtocolMessage [04:15:22]wFMCommunicate request_size=4 [04:15:22]MH_SAM_APDU [04:15:22]CAPDU: 80 11 00 00 [04:15:22]Write to MH i2c: E2 08 00 7E 70 80 11 00 00 00 00 00 00 68 [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:22]Read from MH i2c: E2 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 17 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: E2 17 00 7E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B8 [04:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:15:22]wFMCommunicate OK [04:15:22]CreateOFDProtocolMessage done [04:15:22]OFDSenderStorePacket 2168 [04:15:22]StoreOFDPacket docnum=2168 [04:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 69 EB 18 01 C0 CE 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 62 17 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 78 08 00 00 35 04 06 00 67 2D 83 53 05 6A 99 26 FE 01 E4 38 84 6F [04:15:22]CheckFolder [04:15:22]dirname=/storage/ofd_packets [04:15:22]CheckFolder done [04:15:22]ProducePacketName [04:15:22]name=ofd_packets/00002168 [04:15:22]NVStorageSaveData ofd_packets/00002168 [04:15:22]File name is /storage/ofd_packets/00002168 [04:15:22]Write 318 bytes [04:15:22]NVStorageSaveData done [04:15:22]OFDSenderStorePacket done [04:15:22]KKMCreateOFDPacket done [04:15:22]NVStorageSaveData kkm_last_timestamp [04:15:22]File name is /storage/kkm_last_timestamp [04:15:22]Write 4 bytes [04:15:22]NVStorageSaveData done [04:15:22]ExternCall_PrintAddStr [04:15:22]wPrintStart [04:15:22]Write to MH i2c: 01 00 00 7F 70 EF [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: 01 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: 01 07 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: 01 07 00 7F 70 00 00 00 00 00 FF 0F 04 [04:15:22]RasterBufferAndPrint [04:15:22]line Счет N : (3)126461 [04:15:22]line ИНН: 02508201610067 [04:15:22]line Контрольно-Кассовый Чек [04:15:22]line ПРОДАЖА [04:15:22]line Товар: 4600721021627 [04:15:22]line Пиво БАД 0,5л ст [04:15:22]line 2.000 * 150.00 [04:15:22]line = 300.00 [04:15:22]line НДС 12% НСП 1% [04:15:22]line > о реализуемом товаре [04:15:22]line ИТОГО: 300.00 [04:15:22]line НСП 1% : 2.65 [04:15:22]line НДС 12% : 31.86 [04:15:22]line Наличными: 300.00 [04:15:22]line Безнал.: 0.00 [04:15:22]line Место: АЗС № 127 "Партнер Нефть" [04:15:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:15:22]line СНО: Общий режим [04:15:22]line Чек 17 29.07.2024 04:15 [04:15:22]line Смена: 15 ФФД: 1.0 [04:15:22]line ЗНМ: 0300000161 [04:15:22]line РНМ: 0000000000189667 [04:15:22]line Версия ККМ: v1.0 [04:15:22]line ФМ: 0000000002094248 [04:15:22]line ФД: 2168 [04:15:22]line ФПД: 113445174445418 [04:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041530&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2168&fm=113445174445418&tin=02508201610067®Number=0000000000189667&sum=30000 [04:15:23]line 0 [04:15:23]OFD Sender: Processing packet 2168 [packets to send 1, broken 0] [04:15:23]ProducePacketName [04:15:23]name=ofd_packets/00002168 [04:15:23]OFD Sender: To server: pG, [04:15:23]CommunicateWithHost lk.salyk.kg:30040 [04:15:23]ConnectInit lk.salyk.kg [04:15:23]written 0, free lines is 4095 [04:15:23]Connected sock=10 [04:15:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 69 EB 18 01 C0 CE 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 62 17 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 78 08 00 00 35 04 06 00 67 2D 83 53 05 6A 99 26 FE 01 E4 38 84 6F [04:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C1 B8 47 00 79 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 32 30 39 34 32 34 38 10 04 04 00 78 08 00 00 F4 03 04 00 CF C2 A6 66 B6 04 01 00 00 A0 2B E7 92 D6 88 53 31 [04:15:23]CommunicateWithHost err = 0 [04:15:23]CheckOFDResponse [04:15:23]1017 (14) - 77093643461234 [04:15:23]1041 (16) - 0000000002094248 [04:15:23]1040 (4) - 2168 [04:15:23]1012 (4) - 28.07.2024 22:14 [04:15:23]1206 (1) - 0 [04:15:23]OFD Sender: Remove packet 2168 [04:15:23]ProducePacketName [04:15:23]name=ofd_packets/00002168 [04:15:23]NVStorageDeleteData [04:15:23]Write to MH i2c: 01 00 00 A7 70 17 [04:15:23]Write i2c OK [04:15:23]MH_I2C_Read... [04:15:23]Read from MH i2c: 01 [04:15:23]MH_I2C_Read... [04:15:23]Read from MH i2c: 01 07 00 [04:15:23]MH_I2C_Read... [04:15:23]Read from MH i2c: 01 07 00 A7 70 00 00 00 00 00 04 0D 2F [04:15:23]RasterBufferAndPrint [04:15:23]line [04:15:23]line [04:15:23]line [04:15:23]line [04:15:23]line [04:15:23]written 0, free lines is 3341 [04:15:23]MH_Cut [04:15:23]Write to MH i2c: D1 01 00 AE 70 01 F0 [04:15:23]Write i2c OK [04:15:23]MH_I2C_Read... [04:15:23]Read from MH i2c: D1 [04:15:23]MH_I2C_Read... [04:15:23]Read from MH i2c: D1 01 00 [04:15:23]MH_I2C_Read... [04:15:23]Read from MH i2c: D1 01 00 AE 70 00 EF [04:15:23]Write to MH i2c: 01 00 00 AF 70 1F [04:15:23]Write i2c OK [04:15:23]MH_I2C_Read... [04:15:24]OFD Sender: No OFD packet to send [04:15:24]*** Cut start [04:15:24]*** Partial cut [04:15:24]*** CUTSNS_PIN = 1 [04:15:24]*** CUTSNS_PIN = 0 [04:15:24]*** Brake cut motor [04:15:24]Read from MH i2c: 01 [04:15:24]MH_I2C_Read... [04:15:24]*** Stop cut motor [04:15:24]*** Cut end [04:15:24]Read from MH i2c: 01 07 00 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: 01 07 00 AF 70 00 00 00 00 00 FF 0F 34 [04:15:24]process_action close_receipt done [04:15:24]requested_data is exist [04:15:24]produce_requested_data [04:15:24]requested_item fm.sn is exist - process it [04:15:24]wFMCommunicate request_size=4 [04:15:24]MH_SAM_APDU [04:15:24]CAPDU: 80 11 00 00 [04:15:24]Write to MH i2c: E2 08 00 B0 70 80 11 00 00 00 00 00 00 9A [04:15:24]Write i2c OK [04:15:24]MH_I2C_Read... [04:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:24]Read from MH i2c: E2 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 17 00 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 17 00 B0 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [04:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:15:24]wFMCommunicate OK [04:15:24]requested_item fd.num is exist - process it [04:15:24]SAM_PROTO_GetFieldsCounters [04:15:24]wFMCommunicate request_size=4 [04:15:24]MH_SAM_APDU [04:15:24]CAPDU: 80 13 00 00 [04:15:24]Write to MH i2c: E2 08 00 B1 70 80 13 00 00 00 00 00 00 9D [04:15:24]Write i2c OK [04:15:24]MH_I2C_Read... [04:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:15:25]Read from MH i2c: E2 [04:15:25]MH_I2C_Read... [04:15:25]Read from MH i2c: E2 62 00 [04:15:25]MH_I2C_Read... [04:15:25]Read from MH i2c: E2 62 00 B1 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 78 08 00 00 0E 04 04 00 0F 00 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 89 [04:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 78 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:15:25]wFMCommunicate OK [04:15:25]SAM_PROTO_GetFieldsCounters done [04:15:25]requested_item shift.num is exist - process it [04:15:25]requested_item shift.opened is exist - process it [04:15:25]req_shift_opened [04:15:25]FM_GetShiftState [04:15:25]SAM_PROTO_GetShiftState [04:15:25]wFMCommunicate request_size=4 [04:15:25]MH_SAM_APDU [04:15:25]CAPDU: 80 13 01 00 [04:15:25]Write to MH i2c: E2 08 00 B2 70 80 13 01 00 00 00 00 00 9F [04:15:25]Write i2c OK [04:15:25]MH_I2C_Read... [04:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:15:25]Read from MH i2c: E2 [04:15:25]MH_I2C_Read... [04:15:25]Read from MH i2c: E2 0E 00 [04:15:25]MH_I2C_Read... [04:15:25]Read from MH i2c: E2 0E 00 B2 70 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 98 [04:15:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:15:25]wFMCommunicate OK [04:15:25]SAM_PROTO_GetShiftState done [04:15:25]FM_GetShiftState done [04:15:25]req_shift_opened done [04:15:25]requested_item shift.open_date is exist - process it [04:15:25]req_shift_open_date [04:15:25]req_shift_open_date done [04:15:25]produce_requested_data done [04:15:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2168,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [04:15:25]process_action_free close_receipt [04:15:25]json_value_free [04:15:25]json_value_free done [04:15:25]process_json_proto returns [04:15:25]Send response to host [04:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2168,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [04:15:25]free response buf [04:15:25]execute_script done [04:15:25]execute_script returns [04:15:25]free content buf [04:15:25]Sock 9.Close socket [04:15:25]Sock 9.Thread stoped [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29: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:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:52]accept exits with 8 [04:38:52]New connection [04:38:52]New thread 3067460964 created [04:38:52]Thread 3067317604 joined [04:38:52]Waiting for new connection... [04:38:52] Sock 8.Parse request [04:38:52]Sock 8.Check first char [04:38:52]Sock 8.First char is OK [04:38:52]request: POST /json_proto HTTP/1.0 [04:38:52]Method: POST [04:38:52]URL: /json_proto [04:38:52]Method is POST - this is cgi request [04:38:52]url: /json_proto [04:38:52]query_string will be loaded in cgi processing [04:38:52]execute_cgi json_proto POST (null) [04:38:52]execute_cgi path=json_proto method=POST [04:38:52]POST find Content-Length [04:38:52]Host: 172.17.45.132:8080 [04:38:52]Content-Length: 1214 [04:38:52]Content-Type: application/json [04:38:52] [04:38:52]POST finish read [04:38:52]Found Content-Length = 1214 [04:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126462", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:52]execute_script... [04:38:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126462", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:52]POST & json_proto [04:38:52]process_json_proto [04:38:52]json parsed OK: [04:38:52]protocol is kg_v1.0 [04:38:52]action value=close_receipt [04:38:52]process_action close_receipt [04:38:52]cmd_close_receipt [04:38:52]MH_GetDate [04:38:52]Write to MH i2c: F0 00 00 B3 70 12 [04:38:52]Write i2c OK [04:38:52]MH_I2C_Read... [04:38:52]Read from MH i2c: F0 [04:38:52]MH_I2C_Read... [04:38:52]Read from MH i2c: F0 09 00 [04:38:52]MH_I2C_Read... [04:38:52]Read from MH i2c: F0 09 00 B3 70 00 E5 1C A7 66 E3 0B 90 66 0D [04:38:52]GetLastDocTimeStamp 1722226530 [04:38:52]current date 1722227941 [04:38:52]FM_GetShiftState [04:38:52]SAM_PROTO_GetShiftState [04:38:52]wFMCommunicate request_size=4 [04:38:52]MH_SAM_APDU [04:38:52]CAPDU: 80 13 01 00 [04:38:52]Write to MH i2c: E2 08 00 B4 70 80 13 01 00 00 00 00 00 A1 [04:38:52]Write i2c OK [04:38:52]MH_I2C_Read... [04:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:52]Read from MH i2c: E2 [04:38:52]MH_I2C_Read... [04:38:52]Read from MH i2c: E2 0E 00 [04:38:52]MH_I2C_Read... [04:38:52]Read from MH i2c: E2 0E 00 B4 70 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 9A [04:38:52]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:38:52]wFMCommunicate OK [04:38:52]SAM_PROTO_GetShiftState done [04:38:52]FM_GetShiftState done [04:38:52]opened in 1722213119 [04:38:52]opened+sec_in_day 1722299519 [04:38:52]quantity*price = 20000 [04:38:52]sum+1 = 20001 [04:38:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 18 29.07.2024 04:39 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2169 ФПД: 67383866617265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T043901&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2169&fm=67383866617265&tin=02508201610067®Number=0000000000189667&sum=40000 0 [04:38:53]StoreToDocumentArchive [04:38:53]shift 15 fd 2169 [04:38:53]save to /storage/0015/doc_00002169 [04:38:53]save last doc name /storage/0015/doc_00002169 to /storage/kkm_last_doc_name [04:38:53]save OK [04:38:53]Clear old archive folders... [04:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=508 [04:38:53]tlvbuf is 01F64310 [04:38:53]SAM_PROTO_ClearQueue [04:38:53]wFMCommunicate request_size=4 [04:38:53]MH_SAM_APDU [04:38:53]CAPDU: 80 09 00 00 [04:38:53]Write to MH i2c: E2 08 00 C1 70 80 09 00 00 00 00 00 00 A3 [04:38:53]Write i2c OK [04:38:53]MH_I2C_Read... [04:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:53]Read from MH i2c: E2 [04:38:53]MH_I2C_Read... [04:38:53]Read from MH i2c: E2 03 00 [04:38:53]MH_I2C_Read... [04:38:53]Read from MH i2c: E2 03 00 C1 70 00 90 00 A5 [04:38:53]RAPDU: 90 00 [04:38:53]wFMCommunicate OK [04:38:53]SAM_PROTO_ClearQueue done [04:38:53]KKMCreateOFDPacket [04:38:53]OFDProtocolAddRootSTLVToBuf [04:38:53]FM_MakeSignedData [04:38:53]FM_MakeSignedData [04:38:53]SAM_PROTO_SignData [04:38:53]wFMCommunicate request_size=4 [04:38:53]MH_SAM_APDU [04:38:53]CAPDU: 80 0D 01 02 [04:38:53]Write to MH i2c: E2 08 00 C2 70 80 0D 01 02 00 00 00 00 AB [04:38:53]Write i2c OK [04:38:53]MH_I2C_Read... [04:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:53]Read from MH i2c: E2 [04:38:53]MH_I2C_Read... [04:38:53]Read from MH i2c: E2 03 00 [04:38:53]MH_I2C_Read... [04:38:53]Read from MH i2c: E2 03 00 C2 70 00 90 00 A6 [04:38:53]RAPDU: 90 00 [04:38:53]wFMCommunicate OK [04:38:53]wFMCommunicate request_size=255 [04:38:53]MH_SAM_APDU [04:38:53]CAPDU: 80 0D 02 02 FA 03 00 FC 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 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 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 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 [04:38:53]Write to MH i2c: E2 02 01 C3 70 80 0D 02 02 FA 00 03 00 FC 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 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 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 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 00 00 99 [04:38:53]Write i2c OK [04:38:53]MH_I2C_Read... [04:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:54]Read from MH i2c: E2 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 03 00 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 03 00 C3 70 00 90 00 A7 [04:38:54]RAPDU: 90 00 [04:38:54]wFMCommunicate OK [04:38:54]wFMCommunicate request_size=255 [04:38:54]MH_SAM_APDU [04:38:54]CAPDU: 80 0D 02 02 FA 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 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 E5 1C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 08 [04:38:54]Write to MH i2c: E2 02 01 C4 70 80 0D 02 02 FA 00 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 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 E5 1C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 08 00 00 C4 [04:38:54]Write i2c OK [04:38:54]MH_I2C_Read... [04:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:54]Read from MH i2c: E2 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 03 00 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 03 00 C4 70 00 90 00 A8 [04:38:54]RAPDU: 90 00 [04:38:54]wFMCommunicate OK [04:38:54]wFMCommunicate request_size=17 [04:38:54]MH_SAM_APDU [04:38:54]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 3D 49 07 6E ED B1 [04:38:54]Write to MH i2c: E2 14 00 C5 70 80 0D 02 02 0C 00 00 00 35 04 06 00 3D 49 07 6E ED B1 00 00 9F [04:38:54]Write i2c OK [04:38:54]MH_I2C_Read... [04:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:54]Read from MH i2c: E2 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 03 00 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 03 00 C5 70 00 90 00 A9 [04:38:54]RAPDU: 90 00 [04:38:54]wFMCommunicate OK [04:38:54]wFMCommunicate request_size=4 [04:38:54]MH_SAM_APDU [04:38:54]CAPDU: 80 0D 03 02 [04:38:54]Write to MH i2c: E2 08 00 C6 70 80 0D 03 02 00 00 00 00 B1 [04:38:54]Write i2c OK [04:38:54]MH_I2C_Read... [04:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:54]Read from MH i2c: E2 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 0B 00 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 0B 00 C6 70 00 72 66 A3 42 19 E0 69 C2 90 00 93 [04:38:54]RAPDU: 72 66 A3 42 19 E0 69 C2 90 00 [04:38:54]wFMCommunicate OK [04:38:54]SAM_PROTO_SignData done [04:38:54]FM_MakeSignedData done [04:38:54]CreateOFDProtocolMessage [04:38:54]wFMCommunicate request_size=4 [04:38:54]MH_SAM_APDU [04:38:54]CAPDU: 80 11 00 00 [04:38:54]Write to MH i2c: E2 08 00 C7 70 80 11 00 00 00 00 00 00 B1 [04:38:54]Write i2c OK [04:38:54]MH_I2C_Read... [04:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:54]Read from MH i2c: E2 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 17 00 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: E2 17 00 C7 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 01 [04:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:38:54]wFMCommunicate OK [04:38:54]CreateOFDProtocolMessage done [04:38:54]OFDSenderStorePacket 2169 [04:38:54]StoreOFDPacket docnum=2169 [04:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 02 00 00 40 EF 08 02 0C 0C 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 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 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 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 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 E5 1C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 08 00 00 35 04 06 00 3D 49 07 6E ED B1 72 66 A3 42 19 E0 69 C2 [04:38:54]CheckFolder [04:38:54]dirname=/storage/ofd_packets [04:38:54]CheckFolder done [04:38:54]ProducePacketName [04:38:54]name=ofd_packets/00002169 [04:38:54]NVStorageSaveData ofd_packets/00002169 [04:38:54]File name is /storage/ofd_packets/00002169 [04:38:54]Write 558 bytes [04:38:54]NVStorageSaveData done [04:38:54]OFDSenderStorePacket done [04:38:54]KKMCreateOFDPacket done [04:38:54]NVStorageSaveData kkm_last_timestamp [04:38:54]File name is /storage/kkm_last_timestamp [04:38:54]Write 4 bytes [04:38:54]NVStorageSaveData done [04:38:54]ExternCall_PrintAddStr [04:38:54]wPrintStart [04:38:54]Write to MH i2c: 01 00 00 C8 70 38 [04:38:54]Write i2c OK [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: 01 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: 01 07 00 [04:38:54]MH_I2C_Read... [04:38:54]Read from MH i2c: 01 07 00 C8 70 00 00 00 00 00 FF 0F 4D [04:38:54]RasterBufferAndPrint [04:38:54]line Счет N : (3)126462 [04:38:54]line ИНН: 02508201610067 [04:38:54]line Контрольно-Кассовый Чек [04:38:54]line ПРОДАЖА [04:38:54]line Товар: 4700000480814 [04:38:54]line Пиво Живое 0,5 ст [04:38:54]line 2.000 * 100.00 [04:38:54]line = 200.00 [04:38:54]line НДС 12% НСП 1% [04:38:54]line > о реализуемом товаре [04:38:54]line Товар: 48743587 [04:38:54]line Сигареты Winston XStyle Silver [04:38:54]line 1.000 * 140.00 [04:38:54]line = 140.00 [04:38:54]line НДС 12% НСП 1% [04:38:54]line > о реализуемом товаре [04:38:54]line Товар: 4700000160792 [04:38:54]line Снек Курут классический (круглый) [04:38:54]line 1.000 * 60.00 [04:38:54]line = 60.00 [04:38:54]line НДС 12% НСП 1% [04:38:54]line > о реализуемом товаре [04:38:54]line ИТОГО: 400.00 [04:38:54]line НСП 1% : 3.54 [04:38:54]line НДС 12% : 42.48 [04:38:54]line Наличными: 400.00 [04:38:54]line Безнал.: 0.00 [04:38:54]line Место: АЗС № 127 "Партнер Нефть" [04:38:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [04:38:54]line СНО: Общий режим [04:38:54]line Чек 18 29.07.2024 04:39 [04:38:54]line Смена: 15 ФФД: 1.0 [04:38:54]line ЗНМ: 0300000161 [04:38:54]line РНМ: 0000000000189667 [04:38:54]line Версия ККМ: v1.0 [04:38:54]line ФМ: 0000000002094248 [04:38:54]line ФД: 2169 [04:38:54]line ФПД: 67383866617265 [04:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T043901&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2169&fm=67383866617265&tin=02508201610067®Number=0000000000189667&sum=40000 [04:38:54]line 0 [04:38:54]written 0, free lines is 4095 [04:38:54]OFD Sender: Processing packet 2169 [packets to send 1, broken 0] [04:38:54]ProducePacketName [04:38:54]name=ofd_packets/00002169 [04:38:54]OFD Sender: To server: pG, [04:38:54]CommunicateWithHost lk.salyk.kg:30040 [04:38:54]ConnectInit lk.salyk.kg [04:38:55]Connected sock=10 [04:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 02 00 00 40 EF 08 02 0C 0C 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 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 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 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 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 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 E5 1C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 79 08 00 00 35 04 06 00 3D 49 07 6E ED B1 72 66 A3 42 19 E0 69 C2 [04:38:55]Write to MH i2c: 01 00 00 FE 70 6E [04:38:55]Write i2c OK [04:38:55]MH_I2C_Read... [04:38:55]Read from MH i2c: 01 [04:38:55]MH_I2C_Read... [04:38:55]Read from MH i2c: 01 07 00 [04:38:55]MH_I2C_Read... [04:38:55]Read from MH i2c: 01 07 00 FE 70 00 00 00 00 00 64 0C E5 [04:38:55]RasterBufferAndPrint [04:38:55]line [04:38:55]line [04:38:55]line [04:38:55]line [04:38:55]line [04:38:55]written 0, free lines is 3182 [04:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1A 56 47 00 4D 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 32 30 39 34 32 34 38 10 04 04 00 79 08 00 00 F4 03 04 00 53 C8 A6 66 B6 04 01 00 00 B5 9D 54 7C 77 CC CB FE [04:38:55]CommunicateWithHost err = 0 [04:38:55]CheckOFDResponse [04:38:55]1017 (14) - 77093643461234 [04:38:55]1041 (16) - 0000000002094248 [04:38:55]1040 (4) - 2169 [04:38:55]1012 (4) - 28.07.2024 22:38 [04:38:55]1206 (1) - 0 [04:38:55]OFD Sender: Remove packet 2169 [04:38:55]ProducePacketName [04:38:55]name=ofd_packets/00002169 [04:38:55]NVStorageDeleteData [04:38:55]MH_Cut [04:38:55]Write to MH i2c: D1 01 00 05 71 01 48 [04:38:55]Write i2c OK [04:38:55]MH_I2C_Read... [04:38:55]Read from MH i2c: D1 [04:38:55]MH_I2C_Read... [04:38:55]Read from MH i2c: D1 01 00 [04:38:55]MH_I2C_Read... [04:38:55]Read from MH i2c: D1 01 00 05 71 00 47 [04:38:55]Write to MH i2c: 01 00 00 06 71 77 [04:38:55]Write i2c OK [04:38:55]MH_I2C_Read... [04:38:55]OFD Sender: No OFD packet to send [04:38:56]*** Cut start [04:38:56]*** Partial cut [04:38:56]*** CUTSNS_PIN = 1 [04:38:56]*** CUTSNS_PIN = 0 [04:38:56]*** Brake cut motor [04:38:56]Read from MH i2c: 01 [04:38:56]MH_I2C_Read... [04:38:56]*** Stop cut motor [04:38:56]*** Cut end [04:38:56]Read from MH i2c: 01 07 00 [04:38:56]MH_I2C_Read... [04:38:56]Read from MH i2c: 01 07 00 06 71 00 00 00 00 00 FF 0F 8C [04:38:56]process_action close_receipt done [04:38:56]requested_data is exist [04:38:56]produce_requested_data [04:38:56]requested_item fm.sn is exist - process it [04:38:56]wFMCommunicate request_size=4 [04:38:56]MH_SAM_APDU [04:38:56]CAPDU: 80 11 00 00 [04:38:56]Write to MH i2c: E2 08 00 07 71 80 11 00 00 00 00 00 00 F2 [04:38:56]Write i2c OK [04:38:56]MH_I2C_Read... [04:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:56]Read from MH i2c: E2 [04:38:56]MH_I2C_Read... [04:38:56]Read from MH i2c: E2 17 00 [04:38:56]MH_I2C_Read... [04:38:56]Read from MH i2c: E2 17 00 07 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 42 [04:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [04:38:56]wFMCommunicate OK [04:38:56]requested_item fd.num is exist - process it [04:38:56]SAM_PROTO_GetFieldsCounters [04:38:56]wFMCommunicate request_size=4 [04:38:56]MH_SAM_APDU [04:38:56]CAPDU: 80 13 00 00 [04:38:56]Write to MH i2c: E2 08 00 08 71 80 13 00 00 00 00 00 00 F5 [04:38:56]Write i2c OK [04:38:56]MH_I2C_Read... [04:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:56]Read from MH i2c: E2 [04:38:56]MH_I2C_Read... [04:38:56]Read from MH i2c: E2 62 00 [04:38:56]MH_I2C_Read... [04:38:56]Read from MH i2c: E2 62 00 08 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 79 08 00 00 0E 04 04 00 0F 00 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 E5 [04:38:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 79 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:56]wFMCommunicate OK [04:38:56]SAM_PROTO_GetFieldsCounters done [04:38:56]requested_item shift.num is exist - process it [04:38:56]requested_item shift.opened is exist - process it [04:38:56]req_shift_opened [04:38:56]FM_GetShiftState [04:38:56]SAM_PROTO_GetShiftState [04:38:56]wFMCommunicate request_size=4 [04:38:56]MH_SAM_APDU [04:38:56]CAPDU: 80 13 01 00 [04:38:56]Write to MH i2c: E2 08 00 09 71 80 13 01 00 00 00 00 00 F7 [04:38:56]Write i2c OK [04:38:56]MH_I2C_Read... [04:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:56]Read from MH i2c: E2 [04:38:56]MH_I2C_Read... [04:38:56]Read from MH i2c: E2 0E 00 [04:38:56]MH_I2C_Read... [04:38:56]Read from MH i2c: E2 0E 00 09 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F0 [04:38:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [04:38:56]wFMCommunicate OK [04:38:56]SAM_PROTO_GetShiftState done [04:38:56]FM_GetShiftState done [04:38:56]req_shift_opened done [04:38:56]requested_item shift.open_date is exist - process it [04:38:56]req_shift_open_date [04:38:56]req_shift_open_date done [04:38:56]produce_requested_data done [04:38:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2169,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [04:38:56]process_action_free close_receipt [04:38:56]json_value_free [04:38:56]json_value_free done [04:38:56]process_json_proto returns [04:38:56]Send response to host [04:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2169,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [04:38:56]free response buf [04:38:56]execute_script done [04:38:56]execute_script returns [04:38:56]free content buf [04:38:56]Sock 8.Close socket [04:38:56]Sock 8.Thread stoped [04:39:00]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:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]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:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]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:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:41]accept exits with 9 [05:16:41]New connection [05:16:41]New thread 3067317604 created [05:16:41]Thread 3067460964 joined [05:16:41]Waiting for new connection... [05:16:41] Sock 9.Parse request [05:16:41]Sock 9.Check first char [05:16:41]Sock 9.First char is OK [05:16:41]request: POST /json_proto HTTP/1.0 [05:16:41]Method: POST [05:16:41]URL: /json_proto [05:16:41]Method is POST - this is cgi request [05:16:41]url: /json_proto [05:16:41]query_string will be loaded in cgi processing [05:16:41]execute_cgi json_proto POST (null) [05:16:41]execute_cgi path=json_proto method=POST [05:16:41]POST find Content-Length [05:16:41]Host: 172.17.45.132:8080 [05:16:41]Content-Length: 700 [05:16:41]Content-Type: application/json [05:16:41] [05:16:41]POST finish read [05:16:41]Found Content-Length = 700 [05:16:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126463", "tax_sys" : 0, "items" : [ { "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "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" ] } } [05:16:41]execute_script... [05:16: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)126463", "tax_sys" : 0, "items" : [ { "code": "4600682035466", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A. Flash Up \u042D\u043A\u0437\u043E\u0442\u0438\u043A 0,45 \u0436/", "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" ] } } [05:16:41]POST & json_proto [05:16:41]process_json_proto [05:16:41]json parsed OK: [05:16:41]protocol is kg_v1.0 [05:16:41]action value=close_receipt [05:16:41]process_action close_receipt [05:16:41]cmd_close_receipt [05:16:41]MH_GetDate [05:16:41]Write to MH i2c: F0 00 00 0A 71 6A [05:16:41]Write i2c OK [05:16:41]MH_I2C_Read... [05:16:41]Read from MH i2c: F0 [05:16:41]MH_I2C_Read... [05:16:41]Read from MH i2c: F0 09 00 [05:16:41]MH_I2C_Read... [05:16:41]Read from MH i2c: F0 09 00 0A 71 00 C2 25 A7 66 E3 0B 90 66 4B [05:16:41]GetLastDocTimeStamp 1722227941 [05:16:41]current date 1722230210 [05:16:41]FM_GetShiftState [05:16:41]SAM_PROTO_GetShiftState [05:16:41]wFMCommunicate request_size=4 [05:16:41]MH_SAM_APDU [05:16:41]CAPDU: 80 13 01 00 [05:16:41]Write to MH i2c: E2 08 00 0B 71 80 13 01 00 00 00 00 00 F9 [05:16:41]Write i2c OK [05:16:41]MH_I2C_Read... [05:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:41]Read from MH i2c: E2 [05:16:41]MH_I2C_Read... [05:16:41]Read from MH i2c: E2 0E 00 [05:16:41]MH_I2C_Read... [05:16:41]Read from MH i2c: E2 0E 00 0B 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F2 [05:16:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [05:16:41]wFMCommunicate OK [05:16:41]SAM_PROTO_GetShiftState done [05:16:41]FM_GetShiftState done [05:16:41]opened in 1722213119 [05:16:41]opened+sec_in_day 1722299519 [05:16:41]quantity*price = 8500 [05:16:41]sum+1 = 8501 [05:16:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 19 29.07.2024 05:16 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2170 ФПД: 3807817731070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T051650&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2170&fm=3807817731070&tin=02508201610067®Number=0000000000189667&sum=8500 0 [05:16:42]StoreToDocumentArchive [05:16:42]shift 15 fd 2170 [05:16:42]save to /storage/0015/doc_00002170 [05:16:42]save last doc name /storage/0015/doc_00002170 to /storage/kkm_last_doc_name [05:16:42]save OK [05:16:42]Clear old archive folders... [05:16:42]ProcessDocumentItem done err = 0, tmpTLVsize=303 [05:16:42]tlvbuf is 021099B0 [05:16:42]SAM_PROTO_ClearQueue [05:16:42]wFMCommunicate request_size=4 [05:16:42]MH_SAM_APDU [05:16:42]CAPDU: 80 09 00 00 [05:16:42]Write to MH i2c: E2 08 00 18 71 80 09 00 00 00 00 00 00 FB [05:16:42]Write i2c OK [05:16:42]MH_I2C_Read... [05:16:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:16:42]Read from MH i2c: E2 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 18 71 00 90 00 FD [05:16:42]RAPDU: 90 00 [05:16:42]wFMCommunicate OK [05:16:42]SAM_PROTO_ClearQueue done [05:16:42]KKMCreateOFDPacket [05:16:42]OFDProtocolAddRootSTLVToBuf [05:16:42]FM_MakeSignedData [05:16:42]FM_MakeSignedData [05:16:42]SAM_PROTO_SignData [05:16:42]wFMCommunicate request_size=4 [05:16:42]MH_SAM_APDU [05:16:42]CAPDU: 80 0D 01 02 [05:16:42]Write to MH i2c: E2 08 00 19 71 80 0D 01 02 00 00 00 00 03 [05:16:42]Write i2c OK [05:16:42]MH_I2C_Read... [05:16:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:16:42]Read from MH i2c: E2 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 19 71 00 90 00 FE [05:16:42]RAPDU: 90 00 [05:16:42]wFMCommunicate OK [05:16:42]wFMCommunicate request_size=255 [05:16:42]MH_SAM_APDU [05:16:42]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 13 00 00 00 F4 03 04 00 C2 25 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D [05:16:42]Write to MH i2c: E2 02 01 1A 71 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 13 00 00 00 F4 03 04 00 C2 25 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 00 00 6C [05:16:42]Write i2c OK [05:16:42]MH_I2C_Read... [05:16:42]OFD Sender: No OFD packet to send [05:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:42]Read from MH i2c: E2 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 1A 71 00 90 00 FF [05:16:42]RAPDU: 90 00 [05:16:42]wFMCommunicate OK [05:16:42]wFMCommunicate request_size=62 [05:16:42]MH_SAM_APDU [05:16:42]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 08 00 00 35 04 06 00 03 76 93 9F 8B FE [05:16:42]Write to MH i2c: E2 41 00 1B 71 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 08 00 00 35 04 06 00 03 76 93 9F 8B FE 00 00 00 [05:16:42]Write i2c OK [05:16:42]MH_I2C_Read... [05:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:42]Read from MH i2c: E2 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 03 00 1B 71 00 90 00 00 [05:16:42]RAPDU: 90 00 [05:16:42]wFMCommunicate OK [05:16:42]wFMCommunicate request_size=4 [05:16:42]MH_SAM_APDU [05:16:42]CAPDU: 80 0D 03 02 [05:16:42]Write to MH i2c: E2 08 00 1C 71 80 0D 03 02 00 00 00 00 08 [05:16:42]Write i2c OK [05:16:42]MH_I2C_Read... [05:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:16:42]Read from MH i2c: E2 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 0B 00 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 0B 00 1C 71 00 BA 63 9E 5E 0D 9A B3 52 90 00 CE [05:16:42]RAPDU: BA 63 9E 5E 0D 9A B3 52 90 00 [05:16:42]wFMCommunicate OK [05:16:42]SAM_PROTO_SignData done [05:16:42]FM_MakeSignedData done [05:16:42]CreateOFDProtocolMessage [05:16:42]wFMCommunicate request_size=4 [05:16:42]MH_SAM_APDU [05:16:42]CAPDU: 80 11 00 00 [05:16:42]Write to MH i2c: E2 08 00 1D 71 80 11 00 00 00 00 00 00 08 [05:16:42]Write i2c OK [05:16:42]MH_I2C_Read... [05:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:42]Read from MH i2c: E2 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 17 00 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: E2 17 00 1D 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 58 [05:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:16:42]wFMCommunicate OK [05:16:42]CreateOFDProtocolMessage done [05:16:42]OFDSenderStorePacket 2170 [05:16:42]StoreOFDPacket docnum=2170 [05:16:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 D8 2B 3B 01 4E A5 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 13 00 00 00 F4 03 04 00 C2 25 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 08 00 00 35 04 06 00 03 76 93 9F 8B FE BA 63 9E 5E 0D 9A B3 52 [05:16:42]CheckFolder [05:16:42]dirname=/storage/ofd_packets [05:16:42]CheckFolder done [05:16:42]ProducePacketName [05:16:42]name=ofd_packets/00002170 [05:16:42]NVStorageSaveData ofd_packets/00002170 [05:16:42]File name is /storage/ofd_packets/00002170 [05:16:42]Write 353 bytes [05:16:42]NVStorageSaveData done [05:16:42]OFDSenderStorePacket done [05:16:42]KKMCreateOFDPacket done [05:16:42]NVStorageSaveData kkm_last_timestamp [05:16:42]File name is /storage/kkm_last_timestamp [05:16:42]Write 4 bytes [05:16:42]NVStorageSaveData done [05:16:42]ExternCall_PrintAddStr [05:16:42]wPrintStart [05:16:42]Write to MH i2c: 01 00 00 1E 71 8F [05:16:42]Write i2c OK [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: 01 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: 01 07 00 [05:16:42]MH_I2C_Read... [05:16:42]Read from MH i2c: 01 07 00 1E 71 00 00 00 00 00 FF 0F A4 [05:16:42]RasterBufferAndPrint [05:16:42]line Счет N : (3)126463 [05:16:42]line ИНН: 02508201610067 [05:16:42]line Контрольно-Кассовый Чек [05:16:42]line ПРОДАЖА [05:16:42]line Товар: 4600682035466 [05:16:42]line Напиток безалк. Flash Up Экзотик 0,45 ж/ [05:16:42]line 1.000 * 85.00 [05:16:42]line = 85.00 [05:16:42]line НДС 12% НСП 1% [05:16:42]line > о реализуемом товаре [05:16:42]line ИТОГО: 85.00 [05:16:42]line НСП 1% : 0.75 [05:16:42]line НДС 12% : 9.03 [05:16:42]line Наличными: 85.00 [05:16:42]line Безнал.: 0.00 [05:16:42]line Место: АЗС № 127 "Партнер Нефть" [05:16:42]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:16:42]line СНО: Общий режим [05:16:42]line Чек 19 29.07.2024 05:16 [05:16:43]line Смена: 15 ФФД: 1.0 [05:16:43]line ЗНМ: 0300000161 [05:16:43]line РНМ: 0000000000189667 [05:16:43]line Версия ККМ: v1.0 [05:16:43]line ФМ: 0000000002094248 [05:16:43]line ФД: 2170 [05:16:43]line ФПД: 3807817731070 [05:16:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T051650&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2170&fm=3807817731070&tin=02508201610067®Number=0000000000189667&sum=8500 [05:16:43]line 0 [05:16:43]OFD Sender: Processing packet 2170 [packets to send 1, broken 0] [05:16:43]ProducePacketName [05:16:43]name=ofd_packets/00002170 [05:16:43]OFD Sender: To server: pG, [05:16:43]CommunicateWithHost lk.salyk.kg:30040 [05:16:43]ConnectInit lk.salyk.kg [05:16:43]written 0, free lines is 4095 [05:16:43]Connected sock=10 [05:16:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 D8 2B 3B 01 4E A5 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 36 30 30 36 38 32 30 33 35 34 36 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 2E 20 46 6C 61 73 68 20 55 70 20 D0 AD D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2C 34 35 20 D0 B6 2F 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 13 00 00 00 F4 03 04 00 C2 25 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7A 08 00 00 35 04 06 00 03 76 93 9F 8B FE BA 63 9E 5E 0D 9A B3 52 [05:16:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D9 D4 47 00 70 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 32 30 39 34 32 34 38 10 04 04 00 7A 08 00 00 F4 03 04 00 30 D1 A6 66 B6 04 01 00 00 58 91 28 66 EA BA 5E 81 [05:16:43]CommunicateWithHost err = 0 [05:16:43]CheckOFDResponse [05:16:43]1017 (14) - 77093643461234 [05:16:43]1041 (16) - 0000000002094248 [05:16:43]1040 (4) - 2170 [05:16:43]1012 (4) - 28.07.2024 23:16 [05:16:43]1206 (1) - 0 [05:16:43]OFD Sender: Remove packet 2170 [05:16:43]ProducePacketName [05:16:43]name=ofd_packets/00002170 [05:16:43]NVStorageDeleteData [05:16:43]Write to MH i2c: 01 00 00 47 71 B8 [05:16:43]Write i2c OK [05:16:43]MH_I2C_Read... [05:16:43]Read from MH i2c: 01 [05:16:43]MH_I2C_Read... [05:16:43]Read from MH i2c: 01 07 00 [05:16:43]MH_I2C_Read... [05:16:43]Read from MH i2c: 01 07 00 47 71 00 00 00 00 00 0C 0D D8 [05:16:43]RasterBufferAndPrint [05:16:43]line [05:16:43]line [05:16:43]line [05:16:43]line [05:16:43]line [05:16:43]written 0, free lines is 3346 [05:16:43]MH_Cut [05:16:43]Write to MH i2c: D1 01 00 4E 71 01 91 [05:16:43]Write i2c OK [05:16:43]MH_I2C_Read... [05:16:43]Read from MH i2c: D1 [05:16:43]MH_I2C_Read... [05:16:43]Read from MH i2c: D1 01 00 [05:16:43]MH_I2C_Read... [05:16:43]Read from MH i2c: D1 01 00 4E 71 00 90 [05:16:43]Write to MH i2c: 01 00 00 4F 71 C0 [05:16:43]Write i2c OK [05:16:43]MH_I2C_Read... [05:16:44]OFD Sender: No OFD packet to send [05:16:44]*** Cut start [05:16:44]*** Partial cut [05:16:44]*** CUTSNS_PIN = 1 [05:16:44]*** CUTSNS_PIN = 0 [05:16:44]*** Brake cut motor [05:16:44]Read from MH i2c: 01 [05:16:44]MH_I2C_Read... [05:16:44]*** Stop cut motor [05:16:44]*** Cut end [05:16:44]Read from MH i2c: 01 07 00 [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: 01 07 00 4F 71 00 00 00 00 00 FF 0F D5 [05:16:44]process_action close_receipt done [05:16:44]requested_data is exist [05:16:44]produce_requested_data [05:16:44]requested_item fm.sn is exist - process it [05:16:44]wFMCommunicate request_size=4 [05:16:44]MH_SAM_APDU [05:16:44]CAPDU: 80 11 00 00 [05:16:44]Write to MH i2c: E2 08 00 50 71 80 11 00 00 00 00 00 00 3B [05:16:44]Write i2c OK [05:16:44]MH_I2C_Read... [05:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:44]Read from MH i2c: E2 [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: E2 17 00 [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: E2 17 00 50 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8B [05:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:16:44]wFMCommunicate OK [05:16:44]requested_item fd.num is exist - process it [05:16:44]SAM_PROTO_GetFieldsCounters [05:16:44]wFMCommunicate request_size=4 [05:16:44]MH_SAM_APDU [05:16:44]CAPDU: 80 13 00 00 [05:16:44]Write to MH i2c: E2 08 00 51 71 80 13 00 00 00 00 00 00 3E [05:16:44]Write i2c OK [05:16:44]MH_I2C_Read... [05:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:45]Read from MH i2c: E2 [05:16:45]MH_I2C_Read... [05:16:45]Read from MH i2c: E2 62 00 [05:16:45]MH_I2C_Read... [05:16:45]Read from MH i2c: E2 62 00 51 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7A 08 00 00 0E 04 04 00 0F 00 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 32 [05:16:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7A 08 00 00 0E 04 04 00 0F 00 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 [05:16:45]wFMCommunicate OK [05:16:45]SAM_PROTO_GetFieldsCounters done [05:16:45]requested_item shift.num is exist - process it [05:16:45]requested_item shift.opened is exist - process it [05:16:45]req_shift_opened [05:16:45]FM_GetShiftState [05:16:45]SAM_PROTO_GetShiftState [05:16:45]wFMCommunicate request_size=4 [05:16:45]MH_SAM_APDU [05:16:45]CAPDU: 80 13 01 00 [05:16:45]Write to MH i2c: E2 08 00 52 71 80 13 01 00 00 00 00 00 40 [05:16:45]Write i2c OK [05:16:45]MH_I2C_Read... [05:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:45]Read from MH i2c: E2 [05:16:45]MH_I2C_Read... [05:16:45]Read from MH i2c: E2 0E 00 [05:16:45]MH_I2C_Read... [05:16:45]Read from MH i2c: E2 0E 00 52 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 39 [05:16:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [05:16:45]wFMCommunicate OK [05:16:45]SAM_PROTO_GetShiftState done [05:16:45]FM_GetShiftState done [05:16:45]req_shift_opened done [05:16:45]requested_item shift.open_date is exist - process it [05:16:45]req_shift_open_date [05:16:45]req_shift_open_date done [05:16:45]produce_requested_data done [05:16:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2170,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [05:16:45]process_action_free close_receipt [05:16:45]json_value_free [05:16:45]json_value_free done [05:16:45]process_json_proto returns [05:16:45]Send response to host [05:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2170,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [05:16:45]free response buf [05:16:45]execute_script done [05:16:45]execute_script returns [05:16:45]free content buf [05:16:45]Sock 9.Close socket [05:16:45]Sock 9.Thread stoped [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:29:30]ConnectInit Can't connect to host [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:23]accept exits with 8 [05:53:23]New connection [05:53:23]New thread 3067460964 created [05:53:23]Thread 3067317604 joined [05:53:23]Waiting for new connection... [05:53:23] Sock 8.Parse request [05:53:23]Sock 8.Check first char [05:53:23]Sock 8.First char is OK [05:53:23]request: POST /json_proto HTTP/1.0 [05:53:23]Method: POST [05:53:23]URL: /json_proto [05:53:23]Method is POST - this is cgi request [05:53:23]url: /json_proto [05:53:23]query_string will be loaded in cgi processing [05:53:23]execute_cgi json_proto POST (null) [05:53:23]execute_cgi path=json_proto method=POST [05:53:23]POST find Content-Length [05:53:23]Host: 172.17.45.132:8080 [05:53:23]Content-Length: 630 [05:53:23]Content-Type: application/json [05:53:23] [05:53:23]POST finish read [05:53:23]Found Content-Length = 630 [05:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126464", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 5.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:23]execute_script... [05:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126464", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 5.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:23]POST & json_proto [05:53:23]process_json_proto [05:53:23]json parsed OK: [05:53:23]protocol is kg_v1.0 [05:53:23]action value=close_receipt [05:53:23]process_action close_receipt [05:53:23]cmd_close_receipt [05:53:23]MH_GetDate [05:53:23]Write to MH i2c: F0 00 00 53 71 B3 [05:53:23]Write i2c OK [05:53:23]MH_I2C_Read... [05:53:23]Read from MH i2c: F0 [05:53:23]MH_I2C_Read... [05:53:23]Read from MH i2c: F0 09 00 [05:53:23]MH_I2C_Read... [05:53:23]Read from MH i2c: F0 09 00 53 71 00 5D 2E A7 66 E3 0B 90 66 38 [05:53:23]GetLastDocTimeStamp 1722230210 [05:53:23]current date 1722232413 [05:53:23]FM_GetShiftState [05:53:23]SAM_PROTO_GetShiftState [05:53:23]wFMCommunicate request_size=4 [05:53:23]MH_SAM_APDU [05:53:23]CAPDU: 80 13 01 00 [05:53:23]Write to MH i2c: E2 08 00 54 71 80 13 01 00 00 00 00 00 42 [05:53:23]Write i2c OK [05:53:23]MH_I2C_Read... [05:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:24]Read from MH i2c: E2 [05:53:24]MH_I2C_Read... [05:53:24]Read from MH i2c: E2 0E 00 [05:53:24]MH_I2C_Read... [05:53:24]Read from MH i2c: E2 0E 00 54 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3B [05:53:24]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [05:53:24]wFMCommunicate OK [05:53:24]SAM_PROTO_GetShiftState done [05:53:24]FM_GetShiftState done [05:53:24]opened in 1722213119 [05:53:24]opened+sec_in_day 1722299519 [05:53:24]quantity*price = 50000 [05:53:24]sum+1 = 50001 [05:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 20 29.07.2024 05:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2171 ФПД: 12700074828785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T055333&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2171&fm=12700074828785&tin=02508201610067®Number=0000000000189667&sum=50000 0 [05:53:25]StoreToDocumentArchive [05:53:25]shift 15 fd 2171 [05:53:25]save to /storage/0015/doc_00002171 [05:53:25]save last doc name /storage/0015/doc_00002171 to /storage/kkm_last_doc_name [05:53:25]save OK [05:53:25]Clear old archive folders... [05:53:25]ProcessDocumentItem done err = 0, tmpTLVsize=270 [05:53:25]tlvbuf is 020AA790 [05:53:25]SAM_PROTO_ClearQueue [05:53:25]wFMCommunicate request_size=4 [05:53:25]MH_SAM_APDU [05:53:25]CAPDU: 80 09 00 00 [05:53:25]Write to MH i2c: E2 08 00 61 71 80 09 00 00 00 00 00 00 44 [05:53:25]Write i2c OK [05:53:25]MH_I2C_Read... [05:53:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:53:25]Read from MH i2c: E2 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 61 71 00 90 00 46 [05:53:25]RAPDU: 90 00 [05:53:25]wFMCommunicate OK [05:53:25]SAM_PROTO_ClearQueue done [05:53:25]KKMCreateOFDPacket [05:53:25]OFDProtocolAddRootSTLVToBuf [05:53:25]FM_MakeSignedData [05:53:25]FM_MakeSignedData [05:53:25]SAM_PROTO_SignData [05:53:25]wFMCommunicate request_size=4 [05:53:25]MH_SAM_APDU [05:53:25]CAPDU: 80 0D 01 02 [05:53:25]Write to MH i2c: E2 08 00 62 71 80 0D 01 02 00 00 00 00 4C [05:53:25]Write i2c OK [05:53:25]MH_I2C_Read... [05:53:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:53:25]Read from MH i2c: E2 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 62 71 00 90 00 47 [05:53:25]RAPDU: 90 00 [05:53:25]wFMCommunicate OK [05:53:25]wFMCommunicate request_size=255 [05:53:25]MH_SAM_APDU [05:53:25]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5D 2E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [05:53:25]Write to MH i2c: E2 02 01 63 71 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5D 2E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 A0 [05:53:25]Write i2c OK [05:53:25]MH_I2C_Read... [05:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:25]Read from MH i2c: E2 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 63 71 00 90 00 48 [05:53:25]RAPDU: 90 00 [05:53:25]wFMCommunicate OK [05:53:25]wFMCommunicate request_size=29 [05:53:25]MH_SAM_APDU [05:53:25]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 7B 08 00 00 35 04 06 00 0B 8C F7 72 E3 F1 [05:53:25]Write to MH i2c: E2 20 00 64 71 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 7B 08 00 00 35 04 06 00 0B 8C F7 72 E3 F1 00 00 68 [05:53:25]Write i2c OK [05:53:25]MH_I2C_Read... [05:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:25]Read from MH i2c: E2 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 03 00 64 71 00 90 00 49 [05:53:25]RAPDU: 90 00 [05:53:25]wFMCommunicate OK [05:53:25]wFMCommunicate request_size=4 [05:53:25]MH_SAM_APDU [05:53:25]CAPDU: 80 0D 03 02 [05:53:25]Write to MH i2c: E2 08 00 65 71 80 0D 03 02 00 00 00 00 51 [05:53:25]Write i2c OK [05:53:25]MH_I2C_Read... [05:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:53:25]Read from MH i2c: E2 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 0B 00 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 0B 00 65 71 00 18 E1 8D B2 AF 80 5A F1 90 00 04 [05:53:25]RAPDU: 18 E1 8D B2 AF 80 5A F1 90 00 [05:53:25]wFMCommunicate OK [05:53:25]SAM_PROTO_SignData done [05:53:25]FM_MakeSignedData done [05:53:25]CreateOFDProtocolMessage [05:53:25]wFMCommunicate request_size=4 [05:53:25]MH_SAM_APDU [05:53:25]CAPDU: 80 11 00 00 [05:53:25]Write to MH i2c: E2 08 00 66 71 80 11 00 00 00 00 00 00 51 [05:53:25]Write i2c OK [05:53:25]MH_I2C_Read... [05:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:25]Read from MH i2c: E2 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 17 00 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: E2 17 00 66 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A1 [05:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:53:25]wFMCommunicate OK [05:53:25]CreateOFDProtocolMessage done [05:53:25]OFDSenderStorePacket 2171 [05:53:25]StoreOFDPacket docnum=2171 [05:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 DE 0B 1A 01 73 47 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5D 2E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7B 08 00 00 35 04 06 00 0B 8C F7 72 E3 F1 18 E1 8D B2 AF 80 5A F1 [05:53:25]CheckFolder [05:53:25]dirname=/storage/ofd_packets [05:53:25]CheckFolder done [05:53:25]ProducePacketName [05:53:25]name=ofd_packets/00002171 [05:53:25]NVStorageSaveData ofd_packets/00002171 [05:53:25]File name is /storage/ofd_packets/00002171 [05:53:25]Write 320 bytes [05:53:25]NVStorageSaveData done [05:53:25]OFDSenderStorePacket done [05:53:25]KKMCreateOFDPacket done [05:53:25]NVStorageSaveData kkm_last_timestamp [05:53:25]File name is /storage/kkm_last_timestamp [05:53:25]Write 4 bytes [05:53:25]NVStorageSaveData done [05:53:25]ExternCall_PrintAddStr [05:53:25]wPrintStart [05:53:25]Write to MH i2c: 01 00 00 67 71 D8 [05:53:25]Write i2c OK [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: 01 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: 01 07 00 [05:53:25]MH_I2C_Read... [05:53:25]Read from MH i2c: 01 07 00 67 71 00 00 00 00 00 FF 0F ED [05:53:25]RasterBufferAndPrint [05:53:25]line Счет N : (3)126464 [05:53:25]line ИНН: 02508201610067 [05:53:25]line Контрольно-Кассовый Чек [05:53:25]line ПРОДАЖА [05:53:25]line Товар: 4700000480814 [05:53:25]line Пиво Живое 0,5 ст [05:53:25]line 5.000 * 100.00 [05:53:25]line = 500.00 [05:53:25]line НДС 12% НСП 1% [05:53:25]line > о реализуемом товаре [05:53:25]line ИТОГО: 500.00 [05:53:25]line НСП 1% : 4.42 [05:53:25]line НДС 12% : 53.10 [05:53:25]line Наличными: 500.00 [05:53:25]line Безнал.: 0.00 [05:53:25]line Место: АЗС № 127 "Партнер Нефть" [05:53:25]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [05:53:25]line СНО: Общий режим [05:53:25]line Чек 20 29.07.2024 05:53 [05:53:25]line Смена: 15 ФФД: 1.0 [05:53:25]line ЗНМ: 0300000161 [05:53:25]line РНМ: 0000000000189667 [05:53:25]line Версия ККМ: v1.0 [05:53:25]line ФМ: 0000000002094248 [05:53:25]line ФД: 2171 [05:53:25]line ФПД: 12700074828785 [05:53:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T055333&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2171&fm=12700074828785&tin=02508201610067®Number=0000000000189667&sum=50000 [05:53:26]line 0 [05:53:26]OFD Sender: Processing packet 2171 [packets to send 1, broken 0] [05:53:26]ProducePacketName [05:53:26]name=ofd_packets/00002171 [05:53:26]OFD Sender: To server: pG, [05:53:26]CommunicateWithHost lk.salyk.kg:30040 [05:53:26]ConnectInit lk.salyk.kg [05:53:26]written 0, free lines is 4095 [05:53:26]Connected sock=10 [05:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 DE 0B 1A 01 73 47 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5D 2E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7B 08 00 00 35 04 06 00 0B 8C F7 72 E3 F1 18 E1 8D B2 AF 80 5A F1 [05:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 30 5E 47 00 4A 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 32 30 39 34 32 34 38 10 04 04 00 7B 08 00 00 F4 03 04 00 CA D9 A6 66 B6 04 01 00 00 B9 E1 A3 D6 1E 50 AB F9 [05:53:26]CommunicateWithHost err = 0 [05:53:26]CheckOFDResponse [05:53:26]1017 (14) - 77093643461234 [05:53:26]1041 (16) - 0000000002094248 [05:53:26]1040 (4) - 2171 [05:53:26]1012 (4) - 28.07.2024 23:52 [05:53:26]1206 (1) - 0 [05:53:26]OFD Sender: Remove packet 2171 [05:53:26]ProducePacketName [05:53:26]name=ofd_packets/00002171 [05:53:26]NVStorageDeleteData [05:53:26]Write to MH i2c: 01 00 00 8F 71 00 [05:53:26]Write i2c OK [05:53:26]MH_I2C_Read... [05:53:26]Read from MH i2c: 01 [05:53:26]MH_I2C_Read... [05:53:26]Read from MH i2c: 01 07 00 [05:53:26]MH_I2C_Read... [05:53:26]Read from MH i2c: 01 07 00 8F 71 00 00 00 00 00 1E 0D 32 [05:53:26]RasterBufferAndPrint [05:53:26]line [05:53:26]line [05:53:26]line [05:53:26]line [05:53:26]line [05:53:26]written 0, free lines is 3364 [05:53:26]MH_Cut [05:53:26]Write to MH i2c: D1 01 00 96 71 01 D9 [05:53:26]Write i2c OK [05:53:26]MH_I2C_Read... [05:53:26]Read from MH i2c: D1 [05:53:26]MH_I2C_Read... [05:53:26]Read from MH i2c: D1 01 00 [05:53:26]MH_I2C_Read... [05:53:26]Read from MH i2c: D1 01 00 96 71 00 D8 [05:53:26]Write to MH i2c: 01 00 00 97 71 08 [05:53:26]Write i2c OK [05:53:26]MH_I2C_Read... [05:53:26]OFD Sender: No OFD packet to send [05:53:27]*** Cut start [05:53:27]*** Partial cut [05:53:27]*** CUTSNS_PIN = 1 [05:53:27]*** CUTSNS_PIN = 0 [05:53:27]*** Brake cut motor [05:53:27]Read from MH i2c: 01 [05:53:27]MH_I2C_Read... [05:53:27]*** Stop cut motor [05:53:27]*** Cut end [05:53:27]Read from MH i2c: 01 07 00 [05:53:27]MH_I2C_Read... [05:53:27]Read from MH i2c: 01 07 00 97 71 00 00 00 00 00 FF 0F 1D [05:53:27]process_action close_receipt done [05:53:27]requested_data is exist [05:53:27]produce_requested_data [05:53:27]requested_item fm.sn is exist - process it [05:53:27]wFMCommunicate request_size=4 [05:53:27]MH_SAM_APDU [05:53:27]CAPDU: 80 11 00 00 [05:53:27]Write to MH i2c: E2 08 00 98 71 80 11 00 00 00 00 00 00 83 [05:53:27]Write i2c OK [05:53:27]MH_I2C_Read... [05:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:27]Read from MH i2c: E2 [05:53:27]MH_I2C_Read... [05:53:27]Read from MH i2c: E2 17 00 [05:53:27]MH_I2C_Read... [05:53:27]Read from MH i2c: E2 17 00 98 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D3 [05:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [05:53:27]wFMCommunicate OK [05:53:27]requested_item fd.num is exist - process it [05:53:27]SAM_PROTO_GetFieldsCounters [05:53:27]wFMCommunicate request_size=4 [05:53:27]MH_SAM_APDU [05:53:27]CAPDU: 80 13 00 00 [05:53:27]Write to MH i2c: E2 08 00 99 71 80 13 00 00 00 00 00 00 86 [05:53:27]Write i2c OK [05:53:27]MH_I2C_Read... [05:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:53:27]Read from MH i2c: E2 [05:53:27]MH_I2C_Read... [05:53:27]Read from MH i2c: E2 62 00 [05:53:27]MH_I2C_Read... [05:53:27]Read from MH i2c: E2 62 00 99 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7B 08 00 00 0E 04 04 00 0F 00 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 7E [05:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7B 08 00 00 0E 04 04 00 0F 00 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 [05:53:27]wFMCommunicate OK [05:53:27]SAM_PROTO_GetFieldsCounters done [05:53:27]requested_item shift.num is exist - process it [05:53:27]requested_item shift.opened is exist - process it [05:53:27]req_shift_opened [05:53:27]FM_GetShiftState [05:53:27]SAM_PROTO_GetShiftState [05:53:27]wFMCommunicate request_size=4 [05:53:27]MH_SAM_APDU [05:53:27]CAPDU: 80 13 01 00 [05:53:27]Write to MH i2c: E2 08 00 9A 71 80 13 01 00 00 00 00 00 88 [05:53:27]Write i2c OK [05:53:27]MH_I2C_Read... [05:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:28]Read from MH i2c: E2 [05:53:28]MH_I2C_Read... [05:53:28]Read from MH i2c: E2 0E 00 [05:53:28]MH_I2C_Read... [05:53:28]Read from MH i2c: E2 0E 00 9A 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 81 [05:53:28]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [05:53:28]wFMCommunicate OK [05:53:28]SAM_PROTO_GetShiftState done [05:53:28]FM_GetShiftState done [05:53:28]req_shift_opened done [05:53:28]requested_item shift.open_date is exist - process it [05:53:28]req_shift_open_date [05:53:28]req_shift_open_date done [05:53:28]produce_requested_data done [05:53:28]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2171,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [05:53:28]process_action_free close_receipt [05:53:28]json_value_free [05:53:28]json_value_free done [05:53:28]process_json_proto returns [05:53:28]Send response to host [05:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2171,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [05:53:28]free response buf [05:53:28]execute_script done [05:53:28]execute_script returns [05:53:28]free content buf [05:53:28]Sock 8.Close socket [05:53:28]Sock 8.Thread stoped [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:07]accept exits with 9 [07:07:07]New connection [07:07:07]New thread 3067317604 created [07:07:07]Thread 3067460964 joined [07:07:07]Waiting for new connection... [07:07:07] Sock 9.Parse request [07:07:07]Sock 9.Check first char [07:07:07]Sock 9.First char is OK [07:07:07]request: POST /json_proto HTTP/1.0 [07:07:07]Method: POST [07:07:07]URL: /json_proto [07:07:07]Method is POST - this is cgi request [07:07:07]url: /json_proto [07:07:07]query_string will be loaded in cgi processing [07:07:07]execute_cgi json_proto POST (null) [07:07:07]execute_cgi path=json_proto method=POST [07:07:07]POST find Content-Length [07:07:07]Host: 172.17.45.132:8080 [07:07:07]Content-Length: 633 [07:07:07]Content-Type: application/json [07:07:07] [07:07:07]POST finish read [07:07:07]Found Content-Length = 633 [07:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126465", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:07]execute_script... [07:07: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)126465", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:07]POST & json_proto [07:07:07]process_json_proto [07:07:07]json parsed OK: [07:07:07]protocol is kg_v1.0 [07:07:07]action value=close_receipt [07:07:07]process_action close_receipt [07:07:07]cmd_close_receipt [07:07:07]MH_GetDate [07:07:07]Write to MH i2c: F0 00 00 9B 71 FB [07:07:07]Write i2c OK [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: F0 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: F0 09 00 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: F0 09 00 9B 71 00 A5 3F A7 66 E3 0B 90 66 D9 [07:07:07]GetLastDocTimeStamp 1722232413 [07:07:07]current date 1722236837 [07:07:07]FM_GetShiftState [07:07:07]SAM_PROTO_GetShiftState [07:07:07]wFMCommunicate request_size=4 [07:07:07]MH_SAM_APDU [07:07:07]CAPDU: 80 13 01 00 [07:07:07]Write to MH i2c: E2 08 00 9C 71 80 13 01 00 00 00 00 00 8A [07:07:07]Write i2c OK [07:07:07]MH_I2C_Read... [07:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:07]Read from MH i2c: E2 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 0E 00 [07:07:07]MH_I2C_Read... [07:07:07]Read from MH i2c: E2 0E 00 9C 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 83 [07:07:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [07:07:07]wFMCommunicate OK [07:07:07]SAM_PROTO_GetShiftState done [07:07:07]FM_GetShiftState done [07:07:07]opened in 1722213119 [07:07:07]opened+sec_in_day 1722299519 [07:07:07]quantity*price = 13800 [07:07:07]sum+1 = 13801 [07:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 21 29.07.2024 07:07 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2172 ФПД: 161188973164959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T070717&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2172&fm=161188973164959&tin=02508201610067®Number=0000000000189667&sum=13800 0 [07:07:09]StoreToDocumentArchive [07:07:09]shift 15 fd 2172 [07:07:09]save to /storage/0015/doc_00002172 [07:07:09]save last doc name /storage/0015/doc_00002172 to /storage/kkm_last_doc_name [07:07:09]save OK [07:07:09]Clear old archive folders... [07:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=285 [07:07:09]tlvbuf is 0217C3C0 [07:07:09]SAM_PROTO_ClearQueue [07:07:09]wFMCommunicate request_size=4 [07:07:09]MH_SAM_APDU [07:07:09]CAPDU: 80 09 00 00 [07:07:09]Write to MH i2c: E2 08 00 A9 71 80 09 00 00 00 00 00 00 8C [07:07:09]Write i2c OK [07:07:09]MH_I2C_Read... [07:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:09]Read from MH i2c: E2 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 A9 71 00 90 00 8E [07:07:09]RAPDU: 90 00 [07:07:09]wFMCommunicate OK [07:07:09]SAM_PROTO_ClearQueue done [07:07:09]KKMCreateOFDPacket [07:07:09]OFDProtocolAddRootSTLVToBuf [07:07:09]FM_MakeSignedData [07:07:09]FM_MakeSignedData [07:07:09]SAM_PROTO_SignData [07:07:09]wFMCommunicate request_size=4 [07:07:09]MH_SAM_APDU [07:07:09]CAPDU: 80 0D 01 02 [07:07:09]Write to MH i2c: E2 08 00 AA 71 80 0D 01 02 00 00 00 00 94 [07:07:09]Write i2c OK [07:07:09]MH_I2C_Read... [07:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:09]Read from MH i2c: E2 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 AA 71 00 90 00 8F [07:07:09]RAPDU: 90 00 [07:07:09]wFMCommunicate OK [07:07:09]wFMCommunicate request_size=255 [07:07:09]MH_SAM_APDU [07:07:09]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 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 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 A5 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 [07:07:09]Write to MH i2c: E2 02 01 AB 71 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 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 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 A5 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 00 00 30 [07:07:09]Write i2c OK [07:07:09]MH_I2C_Read... [07:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:09]Read from MH i2c: E2 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 AB 71 00 90 00 90 [07:07:09]RAPDU: 90 00 [07:07:09]wFMCommunicate OK [07:07:09]wFMCommunicate request_size=44 [07:07:09]MH_SAM_APDU [07:07:09]CAPDU: 80 0D 02 02 27 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7C 08 00 00 35 04 06 00 92 99 BB 7C B9 9F [07:07:09]Write to MH i2c: E2 2F 00 AC 71 80 0D 02 02 27 00 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7C 08 00 00 35 04 06 00 92 99 BB 7C B9 9F 00 00 F3 [07:07:09]Write i2c OK [07:07:09]MH_I2C_Read... [07:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:09]Read from MH i2c: E2 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 03 00 AC 71 00 90 00 91 [07:07:09]RAPDU: 90 00 [07:07:09]wFMCommunicate OK [07:07:09]wFMCommunicate request_size=4 [07:07:09]MH_SAM_APDU [07:07:09]CAPDU: 80 0D 03 02 [07:07:09]Write to MH i2c: E2 08 00 AD 71 80 0D 03 02 00 00 00 00 99 [07:07:09]Write i2c OK [07:07:09]MH_I2C_Read... [07:07:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:09]Read from MH i2c: E2 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 0B 00 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 0B 00 AD 71 00 FD F8 5B 29 27 D0 C0 6C 90 00 36 [07:07:09]RAPDU: FD F8 5B 29 27 D0 C0 6C 90 00 [07:07:09]wFMCommunicate OK [07:07:09]SAM_PROTO_SignData done [07:07:09]FM_MakeSignedData done [07:07:09]CreateOFDProtocolMessage [07:07:09]wFMCommunicate request_size=4 [07:07:09]MH_SAM_APDU [07:07:09]CAPDU: 80 11 00 00 [07:07:09]Write to MH i2c: E2 08 00 AE 71 80 11 00 00 00 00 00 00 99 [07:07:09]Write i2c OK [07:07:09]MH_I2C_Read... [07:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:09]Read from MH i2c: E2 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 17 00 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: E2 17 00 AE 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E9 [07:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:07:09]wFMCommunicate OK [07:07:09]CreateOFDProtocolMessage done [07:07:09]OFDSenderStorePacket 2172 [07:07:09]StoreOFDPacket docnum=2172 [07:07:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 31 01 00 00 E2 E8 29 01 29 7B 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 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 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 A5 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7C 08 00 00 35 04 06 00 92 99 BB 7C B9 9F FD F8 5B 29 27 D0 C0 6C [07:07:09]CheckFolder [07:07:09]dirname=/storage/ofd_packets [07:07:09]CheckFolder done [07:07:09]ProducePacketName [07:07:09]name=ofd_packets/00002172 [07:07:09]NVStorageSaveData ofd_packets/00002172 [07:07:09]File name is /storage/ofd_packets/00002172 [07:07:09]Write 335 bytes [07:07:09]NVStorageSaveData done [07:07:09]OFDSenderStorePacket done [07:07:09]KKMCreateOFDPacket done [07:07:09]NVStorageSaveData kkm_last_timestamp [07:07:09]File name is /storage/kkm_last_timestamp [07:07:09]Write 4 bytes [07:07:09]NVStorageSaveData done [07:07:09]ExternCall_PrintAddStr [07:07:09]wPrintStart [07:07:09]Write to MH i2c: 01 00 00 AF 71 20 [07:07:09]Write i2c OK [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: 01 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: 01 07 00 [07:07:09]MH_I2C_Read... [07:07:09]Read from MH i2c: 01 07 00 AF 71 00 00 00 00 00 FF 0F 35 [07:07:09]RasterBufferAndPrint [07:07:09]line Счет N : (3)126465 [07:07:09]line ИНН: 02508201610067 [07:07:09]line Контрольно-Кассовый Чек [07:07:09]line ПРОДАЖА [07:07:09]line Товар: 48746649 [07:07:09]line Сигареты Parliament Super Slims Winter F [07:07:09]line 1.000 * 138.00 [07:07:09]line = 138.00 [07:07:09]line НДС 12% НСП 1% [07:07:09]line > о реализуемом товаре [07:07:09]line ИТОГО: 138.00 [07:07:09]line НСП 1% : 1.22 [07:07:09]line НДС 12% : 14.65 [07:07:09]line Наличными: 138.00 [07:07:09]line Безнал.: 0.00 [07:07:09]line Место: АЗС № 127 "Партнер Нефть" [07:07:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:07:09]line СНО: Общий режим [07:07:09]line Чек 21 29.07.2024 07:07 [07:07:09]line Смена: 15 ФФД: 1.0 [07:07:09]line ЗНМ: 0300000161 [07:07:09]line РНМ: 0000000000189667 [07:07:09]line Версия ККМ: v1.0 [07:07:09]line ФМ: 0000000002094248 [07:07:09]line ФД: 2172 [07:07:09]line ФПД: 161188973164959 [07:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T070717&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2172&fm=161188973164959&tin=02508201610067®Number=0000000000189667&sum=13800 [07:07:09]OFD Sender: Processing packet 2172 [packets to send 1, broken 0] [07:07:09]ProducePacketName [07:07:09]name=ofd_packets/00002172 [07:07:09]OFD Sender: To server: pG, [07:07:09]CommunicateWithHost lk.salyk.kg:30040 [07:07:09]ConnectInit lk.salyk.kg [07:07:09]line 0 [07:07:09]written 0, free lines is 4095 [07:07:10]Connected sock=10 [07:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 31 01 00 00 E2 E8 29 01 29 7B 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 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 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 A5 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7C 08 00 00 35 04 06 00 92 99 BB 7C B9 9F FD F8 5B 29 27 D0 C0 6C [07:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E8 45 47 00 7F 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7C 08 00 00 F4 03 04 00 12 EB A6 66 B6 04 01 00 00 60 43 A1 1A 78 B9 40 BF [07:07:10]CommunicateWithHost err = 0 [07:07:10]CheckOFDResponse [07:07:10]1017 (14) - 77093643461234 [07:07:10]1041 (16) - 0000000002094248 [07:07:10]1040 (4) - 2172 [07:07:10]1012 (4) - 29.07.2024 01:06 [07:07:10]1206 (1) - 0 [07:07:10]OFD Sender: Remove packet 2172 [07:07:10]ProducePacketName [07:07:10]name=ofd_packets/00002172 [07:07:10]NVStorageDeleteData [07:07:10]Write to MH i2c: 01 00 00 D8 71 49 [07:07:10]Write i2c OK [07:07:10]MH_I2C_Read... [07:07:10]Read from MH i2c: 01 [07:07:10]MH_I2C_Read... [07:07:10]Read from MH i2c: 01 07 00 [07:07:10]MH_I2C_Read... [07:07:10]Read from MH i2c: 01 07 00 D8 71 00 00 00 00 00 0C 0D 69 [07:07:10]RasterBufferAndPrint [07:07:10]line [07:07:10]line [07:07:10]line [07:07:10]line [07:07:10]line [07:07:10]written 0, free lines is 3349 [07:07:10]MH_Cut [07:07:10]Write to MH i2c: D1 01 00 DF 71 01 22 [07:07:10]Write i2c OK [07:07:10]MH_I2C_Read... [07:07:10]Read from MH i2c: D1 [07:07:10]MH_I2C_Read... [07:07:10]Read from MH i2c: D1 01 00 [07:07:10]MH_I2C_Read... [07:07:10]Read from MH i2c: D1 01 00 DF 71 00 21 [07:07:10]Write to MH i2c: 01 00 00 E0 71 51 [07:07:10]Write i2c OK [07:07:10]MH_I2C_Read... [07:07:10]OFD Sender: No OFD packet to send [07:07:11]*** Cut start [07:07:11]*** Partial cut [07:07:11]*** CUTSNS_PIN = 1 [07:07:11]*** CUTSNS_PIN = 0 [07:07:11]*** Brake cut motor [07:07:11]Read from MH i2c: 01 [07:07:11]MH_I2C_Read... [07:07:11]*** Stop cut motor [07:07:11]*** Cut end [07:07:11]Read from MH i2c: 01 07 00 [07:07:11]MH_I2C_Read... [07:07:11]Read from MH i2c: 01 07 00 E0 71 00 00 00 00 00 FF 0F 66 [07:07:11]process_action close_receipt done [07:07:11]requested_data is exist [07:07:11]produce_requested_data [07:07:11]requested_item fm.sn is exist - process it [07:07:11]wFMCommunicate request_size=4 [07:07:11]MH_SAM_APDU [07:07:11]CAPDU: 80 11 00 00 [07:07:11]Write to MH i2c: E2 08 00 E1 71 80 11 00 00 00 00 00 00 CC [07:07:11]Write i2c OK [07:07:11]MH_I2C_Read... [07:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:11]Read from MH i2c: E2 [07:07:11]MH_I2C_Read... [07:07:11]Read from MH i2c: E2 17 00 [07:07:11]MH_I2C_Read... [07:07:11]Read from MH i2c: E2 17 00 E1 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1C [07:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:07:11]wFMCommunicate OK [07:07:11]requested_item fd.num is exist - process it [07:07:11]SAM_PROTO_GetFieldsCounters [07:07:11]wFMCommunicate request_size=4 [07:07:11]MH_SAM_APDU [07:07:11]CAPDU: 80 13 00 00 [07:07:11]Write to MH i2c: E2 08 00 E2 71 80 13 00 00 00 00 00 00 CF [07:07:11]Write i2c OK [07:07:11]MH_I2C_Read... [07:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:11]Read from MH i2c: E2 [07:07:11]MH_I2C_Read... [07:07:11]Read from MH i2c: E2 62 00 [07:07:11]MH_I2C_Read... [07:07:11]Read from MH i2c: E2 62 00 E2 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7C 08 00 00 0E 04 04 00 0F 00 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 CB [07:07:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7C 08 00 00 0E 04 04 00 0F 00 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:07:11]wFMCommunicate OK [07:07:11]SAM_PROTO_GetFieldsCounters done [07:07:11]requested_item shift.num is exist - process it [07:07:11]requested_item shift.opened is exist - process it [07:07:11]req_shift_opened [07:07:11]FM_GetShiftState [07:07:11]SAM_PROTO_GetShiftState [07:07:11]wFMCommunicate request_size=4 [07:07:11]MH_SAM_APDU [07:07:11]CAPDU: 80 13 01 00 [07:07:11]Write to MH i2c: E2 08 00 E3 71 80 13 01 00 00 00 00 00 D1 [07:07:11]Write i2c OK [07:07:11]MH_I2C_Read... [07:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:11]Read from MH i2c: E2 [07:07:11]MH_I2C_Read... [07:07:11]Read from MH i2c: E2 0E 00 [07:07:11]MH_I2C_Read... [07:07:11]Read from MH i2c: E2 0E 00 E3 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CA [07:07:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [07:07:11]wFMCommunicate OK [07:07:11]SAM_PROTO_GetShiftState done [07:07:11]FM_GetShiftState done [07:07:11]req_shift_opened done [07:07:11]requested_item shift.open_date is exist - process it [07:07:11]req_shift_open_date [07:07:11]req_shift_open_date done [07:07:11]produce_requested_data done [07:07:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2172,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [07:07:11]process_action_free close_receipt [07:07:11]json_value_free [07:07:11]json_value_free done [07:07:11]process_json_proto returns [07:07:11]Send response to host [07:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2172,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [07:07:11]free response buf [07:07:11]execute_script done [07:07:11]execute_script returns [07:07:11]free content buf [07:07:11]Sock 9.Close socket [07:07:11]Sock 9.Thread stoped [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:47]accept exits with 8 [07:07:47]New connection [07:07:47]New thread 3067460964 created [07:07:47]Thread 3067317604 joined [07:07:47]Waiting for new connection... [07:07:47] Sock 8.Parse request [07:07:47]Sock 8.Check first char [07:07:47]Sock 8.First char is OK [07:07:47]request: POST /json_proto HTTP/1.0 [07:07:47]Method: POST [07:07:47]URL: /json_proto [07:07:47]Method is POST - this is cgi request [07:07:47]url: /json_proto [07:07:47]query_string will be loaded in cgi processing [07:07:47]execute_cgi json_proto POST (null) [07:07:47]execute_cgi path=json_proto method=POST [07:07:47]POST find Content-Length [07:07:47]Host: 172.17.45.132:8080 [07:07:47]Content-Length: 629 [07:07:47]Content-Type: application/json [07:07:47] [07:07:47]POST finish read [07:07:47]Found Content-Length = 629 [07:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126466", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:47]execute_script... [07:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126466", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:47]POST & json_proto [07:07:47]process_json_proto [07:07:47]json parsed OK: [07:07:47]protocol is kg_v1.0 [07:07:47]action value=close_receipt [07:07:47]process_action close_receipt [07:07:47]cmd_close_receipt [07:07:47]MH_GetDate [07:07:47]Write to MH i2c: F0 00 00 E4 71 44 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 09 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 09 00 E4 71 00 CD 3F A7 66 E3 0B 90 66 4A [07:07:47]GetLastDocTimeStamp 1722236837 [07:07:47]current date 1722236877 [07:07:47]FM_GetShiftState [07:07:47]SAM_PROTO_GetShiftState [07:07:47]wFMCommunicate request_size=4 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 13 01 00 [07:07:47]Write to MH i2c: E2 08 00 E5 71 80 13 01 00 00 00 00 00 D3 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0E 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0E 00 E5 71 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CC [07:07:47]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [07:07:47]wFMCommunicate OK [07:07:47]SAM_PROTO_GetShiftState done [07:07:47]FM_GetShiftState done [07:07:47]opened in 1722213119 [07:07:47]opened+sec_in_day 1722299519 [07:07:47]quantity*price = 11500 [07:07:47]sum+1 = 11501 [07:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 22 29.07.2024 07:07 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2173 ФПД: 103210285912696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T070757&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2173&fm=103210285912696&tin=02508201610067®Number=0000000000189667&sum=11500 0 [07:07:48]StoreToDocumentArchive [07:07:48]shift 15 fd 2173 [07:07:48]save to /storage/0015/doc_00002173 [07:07:48]save last doc name /storage/0015/doc_00002173 to /storage/kkm_last_doc_name [07:07:48]save OK [07:07:48]Clear old archive folders... [07:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=269 [07:07:48]tlvbuf is 020E4490 [07:07:48]SAM_PROTO_ClearQueue [07:07:48]wFMCommunicate request_size=4 [07:07:48]MH_SAM_APDU [07:07:48]CAPDU: 80 09 00 00 [07:07:48]Write to MH i2c: E2 08 00 F2 71 80 09 00 00 00 00 00 00 D5 [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:48]Read from MH i2c: E2 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 03 00 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 03 00 F2 71 00 90 00 D7 [07:07:48]RAPDU: 90 00 [07:07:48]wFMCommunicate OK [07:07:48]SAM_PROTO_ClearQueue done [07:07:48]KKMCreateOFDPacket [07:07:48]OFDProtocolAddRootSTLVToBuf [07:07:48]FM_MakeSignedData [07:07:48]FM_MakeSignedData [07:07:48]SAM_PROTO_SignData [07:07:48]wFMCommunicate request_size=4 [07:07:48]MH_SAM_APDU [07:07:48]CAPDU: 80 0D 01 02 [07:07:48]Write to MH i2c: E2 08 00 F3 71 80 0D 01 02 00 00 00 00 DD [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 F3 71 00 90 00 D8 [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=255 [07:07:49]MH_SAM_APDU [07:07:49]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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 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 16 00 00 00 F4 03 04 00 CD 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [07:07:49]Write to MH i2c: E2 02 01 F4 71 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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 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 16 00 00 00 F4 03 04 00 CD 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 D9 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 F4 71 00 90 00 D9 [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=28 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 7D 08 00 00 35 04 06 00 5D DE 84 6D D2 78 [07:07:49]Write to MH i2c: E2 1F 00 F5 71 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 7D 08 00 00 35 04 06 00 5D DE 84 6D D2 78 00 00 6B [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 F5 71 00 90 00 DA [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 03 02 [07:07:49]Write to MH i2c: E2 08 00 F6 71 80 0D 03 02 00 00 00 00 E2 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0B 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0B 00 F6 71 00 D4 D0 6C D8 C5 EC 55 36 90 00 07 [07:07:49]RAPDU: D4 D0 6C D8 C5 EC 55 36 90 00 [07:07:49]wFMCommunicate OK [07:07:49]SAM_PROTO_SignData done [07:07:49]FM_MakeSignedData done [07:07:49]CreateOFDProtocolMessage [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 11 00 00 [07:07:49]Write to MH i2c: E2 08 00 F7 71 80 11 00 00 00 00 00 00 E2 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 F7 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 32 [07:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:07:49]wFMCommunicate OK [07:07:49]CreateOFDProtocolMessage done [07:07:49]OFDSenderStorePacket 2173 [07:07:49]StoreOFDPacket docnum=2173 [07:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 A1 12 19 01 71 12 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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 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 16 00 00 00 F4 03 04 00 CD 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7D 08 00 00 35 04 06 00 5D DE 84 6D D2 78 D4 D0 6C D8 C5 EC 55 36 [07:07:49]CheckFolder [07:07:49]dirname=/storage/ofd_packets [07:07:49]CheckFolder done [07:07:49]ProducePacketName [07:07:49]name=ofd_packets/00002173 [07:07:49]NVStorageSaveData ofd_packets/00002173 [07:07:49]File name is /storage/ofd_packets/00002173 [07:07:49]Write 319 bytes [07:07:49]NVStorageSaveData done [07:07:49]OFDSenderStorePacket done [07:07:49]KKMCreateOFDPacket done [07:07:49]NVStorageSaveData kkm_last_timestamp [07:07:49]File name is /storage/kkm_last_timestamp [07:07:49]Write 4 bytes [07:07:49]NVStorageSaveData done [07:07:49]ExternCall_PrintAddStr [07:07:49]wPrintStart [07:07:49]Write to MH i2c: 01 00 00 F8 71 69 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 07 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 07 00 F8 71 00 00 00 00 00 FF 0F 7E [07:07:49]RasterBufferAndPrint [07:07:49]line Счет N : (3)126466 [07:07:49]line ИНН: 02508201610067 [07:07:49]line Контрольно-Кассовый Чек [07:07:49]line ПРОДАЖА [07:07:49]line Товар: 4700003610553 [07:07:49]line Вода Энесай 10л. [07:07:49]line 1.000 * 115.00 [07:07:49]line = 115.00 [07:07:49]line НДС 12% НСП 1% [07:07:49]line > о реализуемом товаре [07:07:49]line ИТОГО: 115.00 [07:07:49]line НСП 1% : 1.02 [07:07:49]line НДС 12% : 12.21 [07:07:49]line Наличными: 115.00 [07:07:49]line Безнал.: 0.00 [07:07:49]line Место: АЗС № 127 "Партнер Нефть" [07:07:49]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [07:07:49]line СНО: Общий режим [07:07:49]line Чек 22 29.07.2024 07:07 [07:07:49]line Смена: 15 ФФД: 1.0 [07:07:49]line ЗНМ: 0300000161 [07:07:49]line РНМ: 0000000000189667 [07:07:49]line Версия ККМ: v1.0 [07:07:49]line ФМ: 0000000002094248 [07:07:49]line ФД: 2173 [07:07:49]line ФПД: 103210285912696 [07:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T070757&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2173&fm=103210285912696&tin=02508201610067®Number=0000000000189667&sum=11500 [07:07:49]OFD Sender: Processing packet 2173 [packets to send 1, broken 0] [07:07:49]ProducePacketName [07:07:49]name=ofd_packets/00002173 [07:07:49]OFD Sender: To server: pG, [07:07:49]CommunicateWithHost lk.salyk.kg:30040 [07:07:49]ConnectInit lk.salyk.kg [07:07:49]line 0 [07:07:49]written 0, free lines is 4095 [07:07:49]Connected sock=11 [07:07:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 A1 12 19 01 71 12 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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 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 16 00 00 00 F4 03 04 00 CD 3F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7D 08 00 00 35 04 06 00 5D DE 84 6D D2 78 D4 D0 6C D8 C5 EC 55 36 [07:07:50]Write to MH i2c: 01 00 00 20 72 92 [07:07:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 83 42 47 00 C3 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7D 08 00 00 F4 03 04 00 3A EB A6 66 B6 04 01 00 00 62 3C 38 75 D9 E4 ED 95 [07:07:50]CommunicateWithHost err = 0 [07:07:50]CheckOFDResponse [07:07:50]1017 (14) - 77093643461234 [07:07:50]1041 (16) - 0000000002094248 [07:07:50]1040 (4) - 2173 [07:07:50]1012 (4) - 29.07.2024 01:07 [07:07:50]1206 (1) - 0 [07:07:50]OFD Sender: Remove packet 2173 [07:07:50]ProducePacketName [07:07:50]name=ofd_packets/00002173 [07:07:50]NVStorageDeleteData [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 07 00 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 07 00 20 72 00 00 00 00 00 19 0D BF [07:07:50]RasterBufferAndPrint [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]written 0, free lines is 3382 [07:07:50]MH_Cut [07:07:50]Write to MH i2c: D1 01 00 27 72 01 6B [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 01 00 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 01 00 27 72 00 6A [07:07:50]Write to MH i2c: 01 00 00 28 72 9A [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]OFD Sender: No OFD packet to send [07:07:50]*** Cut start [07:07:50]*** Partial cut [07:07:50]*** CUTSNS_PIN = 1 [07:07:50]*** CUTSNS_PIN = 0 [07:07:51]*** Brake cut motor [07:07:51]Read from MH i2c: 01 [07:07:51]MH_I2C_Read... [07:07:51]*** Stop cut motor [07:07:51]*** Cut end [07:07:51]Read from MH i2c: 01 07 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: 01 07 00 28 72 00 00 00 00 00 FF 0F AF [07:07:51]process_action close_receipt done [07:07:51]requested_data is exist [07:07:51]produce_requested_data [07:07:51]requested_item fm.sn is exist - process it [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 11 00 00 [07:07:51]Write to MH i2c: E2 08 00 29 72 80 11 00 00 00 00 00 00 15 [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 17 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 17 00 29 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [07:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [07:07:51]wFMCommunicate OK [07:07:51]requested_item fd.num is exist - process it [07:07:51]SAM_PROTO_GetFieldsCounters [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 13 00 00 [07:07:51]Write to MH i2c: E2 08 00 2A 72 80 13 00 00 00 00 00 00 18 [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 62 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 62 00 2A 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7D 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [07:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7D 08 00 00 0E 04 04 00 0F 00 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:07:51]wFMCommunicate OK [07:07:51]SAM_PROTO_GetFieldsCounters done [07:07:51]requested_item shift.num is exist - process it [07:07:51]requested_item shift.opened is exist - process it [07:07:51]req_shift_opened [07:07:51]FM_GetShiftState [07:07:51]SAM_PROTO_GetShiftState [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 13 01 00 [07:07:51]Write to MH i2c: E2 08 00 2B 72 80 13 01 00 00 00 00 00 1A [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 0E 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 0E 00 2B 72 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 13 [07:07:51]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [07:07:51]wFMCommunicate OK [07:07:51]SAM_PROTO_GetShiftState done [07:07:51]FM_GetShiftState done [07:07:51]req_shift_opened done [07:07:51]requested_item shift.open_date is exist - process it [07:07:51]req_shift_open_date [07:07:51]req_shift_open_date done [07:07:51]produce_requested_data done [07:07:51]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2173,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [07:07:51]process_action_free close_receipt [07:07:51]json_value_free [07:07:51]json_value_free done [07:07:51]process_json_proto returns [07:07:51]Send response to host [07:07:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2173,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [07:07:51]free response buf [07:07:51]execute_script done [07:07:51]execute_script returns [07:07:51]free content buf [07:07:51]Sock 8.Close socket [07:07:51]Sock 8.Thread stoped [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12: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:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53: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:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]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:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]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:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:20]accept exits with 9 [08:51:20]New connection [08:51:20]New thread 3067317604 created [08:51:20]Thread 3067460964 joined [08:51:20]Waiting for new connection... [08:51:20] Sock 9.Parse request [08:51:20]Sock 9.Check first char [08:51:20]Sock 9.First char is OK [08:51:20]request: POST /json_proto HTTP/1.0 [08:51:20]Method: POST [08:51:20]URL: /json_proto [08:51:20]Method is POST - this is cgi request [08:51:20]url: /json_proto [08:51:20]query_string will be loaded in cgi processing [08:51:20]execute_cgi json_proto POST (null) [08:51:20]execute_cgi path=json_proto method=POST [08:51:20]POST find Content-Length [08:51:20]Host: 172.17.45.132:8080 [08:51:20]Content-Length: 713 [08:51:20]Content-Type: application/json [08:51:20] [08:51:20]POST finish read [08:51:20]Found Content-Length = 713 [08:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126467", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \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 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:20]execute_script... [08: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)126467", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \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 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:20]POST & json_proto [08:51:20]process_json_proto [08:51:20]json parsed OK: [08:51:20]protocol is kg_v1.0 [08:51:20]action value=close_receipt [08:51:20]process_action close_receipt [08:51:20]cmd_close_receipt [08:51:20]MH_GetDate [08:51:20]Write to MH i2c: F0 00 00 2C 72 8D [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: F0 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: F0 09 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: F0 09 00 2C 72 00 12 58 A7 66 E3 0B 90 66 F1 [08:51:20]GetLastDocTimeStamp 1722236877 [08:51:20]current date 1722243090 [08:51:20]FM_GetShiftState [08:51:20]SAM_PROTO_GetShiftState [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 13 01 00 [08:51:20]Write to MH i2c: E2 08 00 2D 72 80 13 01 00 00 00 00 00 1C [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0E 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0E 00 2D 72 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 15 [08:51:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [08:51:20]wFMCommunicate OK [08:51:20]SAM_PROTO_GetShiftState done [08:51:20]FM_GetShiftState done [08:51:20]opened in 1722213119 [08:51:20]opened+sec_in_day 1722299519 [08:51:20]quantity*price = 6500 [08:51:20]sum+1 = 6501 [08:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 23 29.07.2024 08:51 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2174 ФПД: 124640716382739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085130&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2174&fm=124640716382739&tin=02508201610067®Number=0000000000189667&sum=6500 0 [08:51:21]StoreToDocumentArchive [08:51:21]shift 15 fd 2174 [08:51:21]save to /storage/0015/doc_00002174 [08:51:21]save last doc name /storage/0015/doc_00002174 to /storage/kkm_last_doc_name [08:51:21]save OK [08:51:21]Clear old archive folders... [08:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=304 [08:51:21]tlvbuf is 020C3DD0 [08:51:21]SAM_PROTO_ClearQueue [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 09 00 00 [08:51:21]Write to MH i2c: E2 08 00 3A 72 80 09 00 00 00 00 00 00 1E [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 3A 72 00 90 00 20 [08:51:21]RAPDU: 90 00 [08:51:21]wFMCommunicate OK [08:51:21]SAM_PROTO_ClearQueue done [08:51:21]KKMCreateOFDPacket [08:51:21]OFDProtocolAddRootSTLVToBuf [08:51:21]FM_MakeSignedData [08:51:21]FM_MakeSignedData [08:51:21]SAM_PROTO_SignData [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 0D 01 02 [08:51:21]Write to MH i2c: E2 08 00 3B 72 80 0D 01 02 00 00 00 00 26 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 3B 72 00 90 00 21 [08:51:22]RAPDU: 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=255 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 12 58 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 [08:51:22]Write to MH i2c: E2 02 01 3C 72 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 12 58 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 00 00 10 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 3C 72 00 90 00 22 [08:51:22]RAPDU: 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=63 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7E 08 00 00 35 04 06 00 71 5C 2D 9F E2 13 [08:51:22]Write to MH i2c: E2 42 00 3D 72 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7E 08 00 00 35 04 06 00 71 5C 2D 9F E2 13 00 00 90 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 03 00 3D 72 00 90 00 23 [08:51:22]RAPDU: 90 00 [08:51:22]wFMCommunicate OK [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 0D 03 02 [08:51:22]Write to MH i2c: E2 08 00 3E 72 80 0D 03 02 00 00 00 00 2B [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 0B 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 0B 00 3E 72 00 DD 25 9A 87 FD 9E 07 86 90 00 77 [08:51:22]RAPDU: DD 25 9A 87 FD 9E 07 86 90 00 [08:51:22]wFMCommunicate OK [08:51:22]SAM_PROTO_SignData done [08:51:22]FM_MakeSignedData done [08:51:22]CreateOFDProtocolMessage [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 11 00 00 [08:51:22]Write to MH i2c: E2 08 00 3F 72 80 11 00 00 00 00 00 00 2B [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 17 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 17 00 3F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [08:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:51:22]wFMCommunicate OK [08:51:22]CreateOFDProtocolMessage done [08:51:22]OFDSenderStorePacket 2174 [08:51:22]StoreOFDPacket docnum=2174 [08:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 D9 47 3C 01 DA B1 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 12 58 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7E 08 00 00 35 04 06 00 71 5C 2D 9F E2 13 DD 25 9A 87 FD 9E 07 86 [08:51:22]CheckFolder [08:51:22]dirname=/storage/ofd_packets [08:51:22]CheckFolder done [08:51:22]ProducePacketName [08:51:22]name=ofd_packets/00002174 [08:51:22]NVStorageSaveData ofd_packets/00002174 [08:51:22]File name is /storage/ofd_packets/00002174 [08:51:22]Write 354 bytes [08:51:22]NVStorageSaveData done [08:51:22]OFDSenderStorePacket done [08:51:22]KKMCreateOFDPacket done [08:51:22]NVStorageSaveData kkm_last_timestamp [08:51:22]File name is /storage/kkm_last_timestamp [08:51:22]Write 4 bytes [08:51:22]NVStorageSaveData done [08:51:22]ExternCall_PrintAddStr [08:51:22]wPrintStart [08:51:22]Write to MH i2c: 01 00 00 40 72 B2 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: 01 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: 01 07 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: 01 07 00 40 72 00 00 00 00 00 FF 0F C7 [08:51:22]RasterBufferAndPrint [08:51:22]line Счет N : (3)126467 [08:51:22]line ИНН: 02508201610067 [08:51:22]line Контрольно-Кассовый Чек [08:51:22]line ПРОДАЖА [08:51:22]line Товар: 4870001571023 [08:51:22]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [08:51:22]line 1.000 * 65.00 [08:51:22]line = 65.00 [08:51:22]line НДС 12% НСП 1% [08:51:22]line > о реализуемом товаре [08:51:22]line ИТОГО: 65.00 [08:51:22]line НСП 1% : 0.57 [08:51:22]line НДС 12% : 6.90 [08:51:22]line Наличными: 65.00 [08:51:22]line Безнал.: 0.00 [08:51:22]line Место: АЗС № 127 "Партнер Нефть" [08:51:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:51:22]line СНО: Общий режим [08:51:22]line Чек 23 29.07.2024 08:51 [08:51:22]line Смена: 15 ФФД: 1.0 [08:51:22]line ЗНМ: 0300000161 [08:51:22]line РНМ: 0000000000189667 [08:51:22]line Версия ККМ: v1.0 [08:51:22]line ФМ: 0000000002094248 [08:51:22]line ФД: 2174 [08:51:22]line ФПД: 124640716382739 [08:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085130&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2174&fm=124640716382739&tin=02508201610067®Number=0000000000189667&sum=6500 [08:51:22]line 0 [08:51:22]OFD Sender: Processing packet 2174 [packets to send 1, broken 0] [08:51:22]ProducePacketName [08:51:22]name=ofd_packets/00002174 [08:51:22]OFD Sender: To server: pG, [08:51:22]CommunicateWithHost lk.salyk.kg:30040 [08:51:22]ConnectInit lk.salyk.kg [08:51:22]written 0, free lines is 4095 [08:51:22]Connected sock=10 [08:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 D9 47 3C 01 DA B1 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 12 58 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7E 08 00 00 35 04 06 00 71 5C 2D 9F E2 13 DD 25 9A 87 FD 9E 07 86 [08:51:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AC 4C 47 00 A5 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 32 30 39 34 32 34 38 10 04 04 00 7E 08 00 00 F4 03 04 00 80 03 A7 66 B6 04 01 00 00 D2 12 A3 BA 37 F0 66 5D [08:51:23]CommunicateWithHost err = 0 [08:51:23]CheckOFDResponse [08:51:23]1017 (14) - 77093643461234 [08:51:23]1041 (16) - 0000000002094248 [08:51:23]1040 (4) - 2174 [08:51:23]1012 (4) - 29.07.2024 02:50 [08:51:23]1206 (1) - 0 [08:51:23]OFD Sender: Remove packet 2174 [08:51:23]ProducePacketName [08:51:23]name=ofd_packets/00002174 [08:51:23]NVStorageDeleteData [08:51:23]Write to MH i2c: 01 00 00 69 72 DB [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 69 72 00 00 00 00 00 0C 0D FB [08:51:23]RasterBufferAndPrint [08:51:23]line [08:51:23]line [08:51:23]line [08:51:23]line [08:51:23]line [08:51:23]written 0, free lines is 3349 [08:51:23]MH_Cut [08:51:23]Write to MH i2c: D1 01 00 70 72 01 B4 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: D1 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: D1 01 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: D1 01 00 70 72 00 B3 [08:51:23]Write to MH i2c: 01 00 00 71 72 E3 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]OFD Sender: No OFD packet to send [08:51:23]*** Cut start [08:51:23]*** Partial cut [08:51:23]*** CUTSNS_PIN = 1 [08:51:23]*** CUTSNS_PIN = 0 [08:51:24]*** Brake cut motor [08:51:24]Read from MH i2c: 01 [08:51:24]MH_I2C_Read... [08:51:24]*** Stop cut motor [08:51:24]*** Cut end [08:51:24]Read from MH i2c: 01 07 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: 01 07 00 71 72 00 00 00 00 00 FF 0F F8 [08:51:24]process_action close_receipt done [08:51:24]requested_data is exist [08:51:24]produce_requested_data [08:51:24]requested_item fm.sn is exist - process it [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 11 00 00 [08:51:24]Write to MH i2c: E2 08 00 72 72 80 11 00 00 00 00 00 00 5E [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 17 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 17 00 72 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AE [08:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:51:24]wFMCommunicate OK [08:51:24]requested_item fd.num is exist - process it [08:51:24]SAM_PROTO_GetFieldsCounters [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 13 00 00 [08:51:24]Write to MH i2c: E2 08 00 73 72 80 13 00 00 00 00 00 00 61 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 62 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 62 00 73 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7E 08 00 00 0E 04 04 00 0F 00 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 65 [08:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7E 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetFieldsCounters done [08:51:24]requested_item shift.num is exist - process it [08:51:24]requested_item shift.opened is exist - process it [08:51:24]req_shift_opened [08:51:24]FM_GetShiftState [08:51:24]SAM_PROTO_GetShiftState [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 13 01 00 [08:51:24]Write to MH i2c: E2 08 00 74 72 80 13 01 00 00 00 00 00 63 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 74 72 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5C [08:51:24]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetShiftState done [08:51:24]FM_GetShiftState done [08:51:24]req_shift_opened done [08:51:24]requested_item shift.open_date is exist - process it [08:51:24]req_shift_open_date [08:51:24]req_shift_open_date done [08:51:24]produce_requested_data done [08:51:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2174,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [08:51:24]process_action_free close_receipt [08:51:24]json_value_free [08:51:24]json_value_free done [08:51:24]process_json_proto returns [08:51:24]Send response to host [08:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2174,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [08:51:24]free response buf [08:51:24]execute_script done [08:51:24]execute_script returns [08:51:24]free content buf [08:51:24]Sock 9.Close socket [08:51:24]Sock 9.Thread stoped [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]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:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:47]accept exits with 8 [08:59:47]New connection [08:59:47]New thread 3067460964 created [08:59:47]Thread 3067317604 joined [08:59:47]Waiting for new connection... [08:59:47] Sock 8.Parse request [08:59:47]Sock 8.Check first char [08:59:47]Sock 8.First char is OK [08:59:47]request: POST /json_proto HTTP/1.0 [08:59:47]Method: POST [08:59:47]URL: /json_proto [08:59:47]Method is POST - this is cgi request [08:59:47]url: /json_proto [08:59:47]query_string will be loaded in cgi processing [08:59:47]execute_cgi json_proto POST (null) [08:59:47]execute_cgi path=json_proto method=POST [08:59:47]POST find Content-Length [08:59:47]Host: 172.17.45.132:8080 [08:59:47]Content-Length: 609 [08:59:47]Content-Type: application/json [08:59:47] [08:59:47]POST finish read [08:59:47]Found Content-Length = 609 [08:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126468", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "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:59:47]execute_script... [08:59:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126468", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "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:59:47]POST & json_proto [08:59:47]process_json_proto [08:59:47]json parsed OK: [08:59:47]protocol is kg_v1.0 [08:59:47]action value=close_receipt [08:59:47]process_action close_receipt [08:59:47]cmd_close_receipt [08:59:47]MH_GetDate [08:59:47]Write to MH i2c: F0 00 00 75 72 D6 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: F0 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: F0 09 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: F0 09 00 75 72 00 0D 5A A7 66 E3 0B 90 66 37 [08:59:47]GetLastDocTimeStamp 1722243090 [08:59:47]current date 1722243597 [08:59:47]FM_GetShiftState [08:59:47]SAM_PROTO_GetShiftState [08:59:47]wFMCommunicate request_size=4 [08:59:47]MH_SAM_APDU [08:59:47]CAPDU: 80 13 01 00 [08:59:47]Write to MH i2c: E2 08 00 76 72 80 13 01 00 00 00 00 00 65 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:47]Read from MH i2c: E2 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 0E 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: E2 0E 00 76 72 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5E [08:59:47]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [08:59:47]wFMCommunicate OK [08:59:47]SAM_PROTO_GetShiftState done [08:59:47]FM_GetShiftState done [08:59:47]opened in 1722213119 [08:59:47]opened+sec_in_day 1722299519 [08:59:47]quantity*price = 13000 [08:59:47]sum+1 = 13001 [08:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 24 29.07.2024 08:59 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2175 ФПД: 92878551527121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085957&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2175&fm=92878551527121&tin=02508201610067®Number=0000000000189667&sum=13000 0 [08:59:48]StoreToDocumentArchive [08:59:48]shift 15 fd 2175 [08:59:48]save to /storage/0015/doc_00002175 [08:59:48]save last doc name /storage/0015/doc_00002175 to /storage/kkm_last_doc_name [08:59:48]save OK [08:59:48]Clear old archive folders... [08:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=261 [08:59:48]tlvbuf is 020483A0 [08:59:48]SAM_PROTO_ClearQueue [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 09 00 00 [08:59:48]Write to MH i2c: E2 08 00 83 72 80 09 00 00 00 00 00 00 67 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 83 72 00 90 00 69 [08:59:48]RAPDU: 90 00 [08:59:48]wFMCommunicate OK [08:59:48]SAM_PROTO_ClearQueue done [08:59:48]KKMCreateOFDPacket [08:59:48]OFDProtocolAddRootSTLVToBuf [08:59:48]FM_MakeSignedData [08:59:48]FM_MakeSignedData [08:59:48]SAM_PROTO_SignData [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 0D 01 02 [08:59:48]Write to MH i2c: E2 08 00 84 72 80 0D 01 02 00 00 00 00 6F [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 03 00 84 72 00 90 00 6A [08:59:48]RAPDU: 90 00 [08:59:48]wFMCommunicate OK [08:59:48]wFMCommunicate request_size=255 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 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 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 18 00 00 00 F4 03 04 00 0D 5A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 [08:59:48]Write to MH i2c: E2 02 01 85 72 80 0D 02 02 FA 00 03 00 05 01 1E 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 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 18 00 00 00 F4 03 04 00 0D 5A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 BB [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:49]OFD Sender: No OFD packet to send [08:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 85 72 00 90 00 6B [08:59:49]RAPDU: 90 00 [08:59:49]wFMCommunicate OK [08:59:49]wFMCommunicate request_size=20 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 0D 02 02 0F 00 7F 08 00 00 35 04 06 00 54 78 F9 12 2E D1 [08:59:49]Write to MH i2c: E2 17 00 86 72 80 0D 02 02 0F 00 00 7F 08 00 00 35 04 06 00 54 78 F9 12 2E D1 00 00 2C [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 03 00 86 72 00 90 00 6C [08:59:49]RAPDU: 90 00 [08:59:49]wFMCommunicate OK [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 0D 03 02 [08:59:49]Write to MH i2c: E2 08 00 87 72 80 0D 03 02 00 00 00 00 74 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 0B 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 0B 00 87 72 00 12 48 BB 91 8F C6 6C 2B 90 00 07 [08:59:49]RAPDU: 12 48 BB 91 8F C6 6C 2B 90 00 [08:59:49]wFMCommunicate OK [08:59:49]SAM_PROTO_SignData done [08:59:49]FM_MakeSignedData done [08:59:49]CreateOFDProtocolMessage [08:59:49]wFMCommunicate request_size=4 [08:59:49]MH_SAM_APDU [08:59:49]CAPDU: 80 11 00 00 [08:59:49]Write to MH i2c: E2 08 00 88 72 80 11 00 00 00 00 00 00 74 [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:49]Read from MH i2c: E2 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 17 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: E2 17 00 88 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C4 [08:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:59:49]wFMCommunicate OK [08:59:49]CreateOFDProtocolMessage done [08:59:49]OFDSenderStorePacket 2175 [08:59:49]StoreOFDPacket docnum=2175 [08:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 19 01 00 00 9C B2 11 01 55 58 5A 03 01 00 03 00 05 01 1E 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 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 18 00 00 00 F4 03 04 00 0D 5A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7F 08 00 00 35 04 06 00 54 78 F9 12 2E D1 12 48 BB 91 8F C6 6C 2B [08:59:49]CheckFolder [08:59:49]dirname=/storage/ofd_packets [08:59:49]CheckFolder done [08:59:49]ProducePacketName [08:59:49]name=ofd_packets/00002175 [08:59:49]NVStorageSaveData ofd_packets/00002175 [08:59:49]File name is /storage/ofd_packets/00002175 [08:59:49]Write 311 bytes [08:59:49]NVStorageSaveData done [08:59:49]OFDSenderStorePacket done [08:59:49]KKMCreateOFDPacket done [08:59:49]NVStorageSaveData kkm_last_timestamp [08:59:49]File name is /storage/kkm_last_timestamp [08:59:49]Write 4 bytes [08:59:49]NVStorageSaveData done [08:59:49]ExternCall_PrintAddStr [08:59:49]wPrintStart [08:59:49]Write to MH i2c: 01 00 00 89 72 FB [08:59:49]Write i2c OK [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 07 00 [08:59:49]MH_I2C_Read... [08:59:49]Read from MH i2c: 01 07 00 89 72 00 00 00 00 00 FF 0F 10 [08:59:49]RasterBufferAndPrint [08:59:49]line Счет N : (3)126468 [08:59:49]line ИНН: 02508201610067 [08:59:49]line Контрольно-Кассовый Чек [08:59:49]line ПРОДАЖА [08:59:49]line Товар: 48741156 [08:59:49]line Сигареты LD Blue [08:59:49]line 1.000 * 130.00 [08:59:49]line = 130.00 [08:59:49]line НДС 12% НСП 1% [08:59:49]line > о реализуемом товаре [08:59:49]line ИТОГО: 130.00 [08:59:49]line НСП 1% : 1.15 [08:59:49]line НДС 12% : 13.80 [08:59:49]line Наличными: 130.00 [08:59:49]line Безнал.: 0.00 [08:59:49]line Место: АЗС № 127 "Партнер Нефть" [08:59:49]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [08:59:49]line СНО: Общий режим [08:59:49]line Чек 24 29.07.2024 08:59 [08:59:49]line Смена: 15 ФФД: 1.0 [08:59:49]line ЗНМ: 0300000161 [08:59:49]line РНМ: 0000000000189667 [08:59:49]line Версия ККМ: v1.0 [08:59:49]line ФМ: 0000000002094248 [08:59:49]line ФД: 2175 [08:59:49]line ФПД: 92878551527121 [08:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085957&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2175&fm=92878551527121&tin=02508201610067®Number=0000000000189667&sum=13000 [08:59:49]line 0 [08:59:49]OFD Sender: Processing packet 2175 [packets to send 1, broken 0] [08:59:49]ProducePacketName [08:59:49]name=ofd_packets/00002175 [08:59:49]OFD Sender: To server: pG, [08:59:49]CommunicateWithHost lk.salyk.kg:30040 [08:59:49]ConnectInit lk.salyk.kg [08:59:49]written 0, free lines is 4095 [08:59:49]Connected sock=10 [08:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 19 01 00 00 9C B2 11 01 55 58 5A 03 01 00 03 00 05 01 1E 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 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 18 00 00 00 F4 03 04 00 0D 5A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 7F 08 00 00 35 04 06 00 54 78 F9 12 2E D1 12 48 BB 91 8F C6 6C 2B [08:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 12 7C 47 00 AE 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 32 30 39 34 32 34 38 10 04 04 00 7F 08 00 00 F4 03 04 00 7A 05 A7 66 B6 04 01 00 00 4F A2 C7 BD 4A CB 6B BF [08:59:50]CommunicateWithHost err = 0 [08:59:50]CheckOFDResponse [08:59:50]1017 (14) - 77093643461234 [08:59:50]1041 (16) - 0000000002094248 [08:59:50]1040 (4) - 2175 [08:59:50]1012 (4) - 29.07.2024 02:59 [08:59:50]1206 (1) - 0 [08:59:50]OFD Sender: Remove packet 2175 [08:59:50]ProducePacketName [08:59:50]name=ofd_packets/00002175 [08:59:50]NVStorageDeleteData [08:59:50]Write to MH i2c: 01 00 00 B1 72 23 [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: 01 07 00 B1 72 00 00 00 00 00 14 0D 4B [08:59:50]RasterBufferAndPrint [08:59:50]line [08:59:50]line [08:59:50]line [08:59:50]line [08:59:50]line [08:59:50]written 0, free lines is 3358 [08:59:50]MH_Cut [08:59:50]Write to MH i2c: D1 01 00 B8 72 01 FC [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: D1 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: D1 01 00 [08:59:50]MH_I2C_Read... [08:59:50]Read from MH i2c: D1 01 00 B8 72 00 FB [08:59:50]Write to MH i2c: 01 00 00 B9 72 2B [08:59:50]Write i2c OK [08:59:50]MH_I2C_Read... [08:59:50]OFD Sender: No OFD packet to send [08:59:50]*** Cut start [08:59:50]*** Partial cut [08:59:50]*** CUTSNS_PIN = 1 [08:59:50]*** CUTSNS_PIN = 0 [08:59:51]*** Brake cut motor [08:59:51]Read from MH i2c: 01 [08:59:51]MH_I2C_Read... [08:59:51]*** Stop cut motor [08:59:51]*** Cut end [08:59:51]Read from MH i2c: 01 07 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: 01 07 00 B9 72 00 00 00 00 00 FF 0F 40 [08:59:51]process_action close_receipt done [08:59:51]requested_data is exist [08:59:51]produce_requested_data [08:59:51]requested_item fm.sn is exist - process it [08:59:51]wFMCommunicate request_size=4 [08:59:51]MH_SAM_APDU [08:59:51]CAPDU: 80 11 00 00 [08:59:51]Write to MH i2c: E2 08 00 BA 72 80 11 00 00 00 00 00 00 A6 [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:51]Read from MH i2c: E2 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 17 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 17 00 BA 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F6 [08:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [08:59:51]wFMCommunicate OK [08:59:51]requested_item fd.num is exist - process it [08:59:51]SAM_PROTO_GetFieldsCounters [08:59:51]wFMCommunicate request_size=4 [08:59:51]MH_SAM_APDU [08:59:51]CAPDU: 80 13 00 00 [08:59:51]Write to MH i2c: E2 08 00 BB 72 80 13 00 00 00 00 00 00 A9 [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:51]Read from MH i2c: E2 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 62 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 62 00 BB 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7F 08 00 00 0E 04 04 00 0F 00 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 B1 [08:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 7F 08 00 00 0E 04 04 00 0F 00 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:59:51]wFMCommunicate OK [08:59:51]SAM_PROTO_GetFieldsCounters done [08:59:51]requested_item shift.num is exist - process it [08:59:51]requested_item shift.opened is exist - process it [08:59:51]req_shift_opened [08:59:51]FM_GetShiftState [08:59:51]SAM_PROTO_GetShiftState [08:59:51]wFMCommunicate request_size=4 [08:59:51]MH_SAM_APDU [08:59:51]CAPDU: 80 13 01 00 [08:59:51]Write to MH i2c: E2 08 00 BC 72 80 13 01 00 00 00 00 00 AB [08:59:51]Write i2c OK [08:59:51]MH_I2C_Read... [08:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:51]Read from MH i2c: E2 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 0E 00 [08:59:51]MH_I2C_Read... [08:59:51]Read from MH i2c: E2 0E 00 BC 72 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A4 [08:59:51]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [08:59:51]wFMCommunicate OK [08:59:51]SAM_PROTO_GetShiftState done [08:59:51]FM_GetShiftState done [08:59:51]req_shift_opened done [08:59:51]requested_item shift.open_date is exist - process it [08:59:51]req_shift_open_date [08:59:51]req_shift_open_date done [08:59:51]produce_requested_data done [08:59:51]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2175,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [08:59:51]process_action_free close_receipt [08:59:51]json_value_free [08:59:51]json_value_free done [08:59:51]process_json_proto returns [08:59:51]Send response to host [08:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2175,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [08:59:51]free response buf [08:59:51]execute_script done [08:59:51]execute_script returns [08:59:51]free content buf [08:59:51]Sock 8.Close socket [08:59:51]Sock 8.Thread stoped [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:24]accept exits with 9 [09:14:24]New connection [09:14:24]New thread 3067317604 created [09:14:24]Thread 3067460964 joined [09:14:24]Waiting for new connection... [09:14:24] Sock 9.Parse request [09:14:24]Sock 9.Check first char [09:14:24]Sock 9.First char is OK [09:14:24]request: POST /json_proto HTTP/1.0 [09:14:24]Method: POST [09:14:24]URL: /json_proto [09:14:24]Method is POST - this is cgi request [09:14:24]url: /json_proto [09:14:24]query_string will be loaded in cgi processing [09:14:24]execute_cgi json_proto POST (null) [09:14:24]execute_cgi path=json_proto method=POST [09:14:24]POST find Content-Length [09:14:24]Host: 172.17.45.132:8080 [09:14:24]Content-Length: 677 [09:14:24]Content-Type: application/json [09:14:24] [09:14:24]POST finish read [09:14:24]Found Content-Length = 677 [09:14:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:24]execute_script... [09:14:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:24]POST & json_proto [09:14:24]process_json_proto [09:14:24]json parsed OK: [09:14:24]protocol is kg_v1.0 [09:14:24]action value=close_receipt [09:14:24]process_action close_receipt [09:14:24]cmd_close_receipt [09:14:24]MH_GetDate [09:14:24]Write to MH i2c: F0 00 00 BD 72 1E [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: F0 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: F0 09 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: F0 09 00 BD 72 00 7A 5D A7 66 E3 0B 90 66 EF [09:14:24]GetLastDocTimeStamp 1722243597 [09:14:24]current date 1722244474 [09:14:24]FM_GetShiftState [09:14:24]SAM_PROTO_GetShiftState [09:14:24]wFMCommunicate request_size=4 [09:14:24]MH_SAM_APDU [09:14:24]CAPDU: 80 13 01 00 [09:14:24]Write to MH i2c: E2 08 00 BE 72 80 13 01 00 00 00 00 00 AD [09:14:24]Write i2c OK [09:14:24]MH_I2C_Read... [09:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:24]Read from MH i2c: E2 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 0E 00 [09:14:24]MH_I2C_Read... [09:14:24]Read from MH i2c: E2 0E 00 BE 72 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A6 [09:14:24]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:14:24]wFMCommunicate OK [09:14:24]SAM_PROTO_GetShiftState done [09:14:24]FM_GetShiftState done [09:14:24]opened in 1722213119 [09:14:24]opened+sec_in_day 1722299519 [09:14:24]quantity*price = 50036 [09:14:24]sum+1 = 50037 [09:14:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 25 29.07.2024 09:14 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2176 ФПД: 49631072288678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091434&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2176&fm=49631072288678&tin=02508201610067®Number=0000000000189667&sum=50000 [09:14:25]StoreToDocumentArchive [09:14:25]shift 15 fd 2176 [09:14:25]save to /storage/0015/doc_00002176 [09:14:25]save last doc name /storage/0015/doc_00002176 to /storage/kkm_last_doc_name [09:14:25]save OK [09:14:25]Clear old archive folders... [09:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:25]tlvbuf is 01FE7D10 [09:14:25]SAM_PROTO_ClearQueue [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 09 00 00 [09:14:25]Write to MH i2c: E2 08 00 CB 72 80 09 00 00 00 00 00 00 AF [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 CB 72 00 90 00 B1 [09:14:25]RAPDU: 90 00 [09:14:25]wFMCommunicate OK [09:14:25]SAM_PROTO_ClearQueue done [09:14:25]KKMCreateOFDPacket [09:14:25]OFDProtocolAddRootSTLVToBuf [09:14:25]FM_MakeSignedData [09:14:25]FM_MakeSignedData [09:14:25]SAM_PROTO_SignData [09:14:25]wFMCommunicate request_size=4 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 0D 01 02 [09:14:25]Write to MH i2c: E2 08 00 CC 72 80 0D 01 02 00 00 00 00 B7 [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:25]Read from MH i2c: E2 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 [09:14:25]MH_I2C_Read... [09:14:25]Read from MH i2c: E2 03 00 CC 72 00 90 00 B2 [09:14:25]RAPDU: 90 00 [09:14:25]wFMCommunicate OK [09:14:25]wFMCommunicate request_size=255 [09:14:25]MH_SAM_APDU [09:14:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 7A 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 80 08 00 00 35 04 06 00 2D [09:14:25]Write to MH i2c: E2 02 01 CD 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 7A 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 80 08 00 00 35 04 06 00 2D 00 00 FD [09:14:25]Write i2c OK [09:14:25]MH_I2C_Read... [09:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:26]Read from MH i2c: E2 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 03 00 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 03 00 CD 72 00 90 00 B3 [09:14:26]RAPDU: 90 00 [09:14:26]wFMCommunicate OK [09:14:26]wFMCommunicate request_size=10 [09:14:26]MH_SAM_APDU [09:14:26]CAPDU: 80 0D 02 02 05 23 A2 6E FF A6 [09:14:26]Write to MH i2c: E2 0D 00 CE 72 80 0D 02 02 05 00 23 A2 6E FF A6 00 00 9C [09:14:26]OFD Sender: No OFD packet to send [09:14:26]Write i2c OK [09:14:26]MH_I2C_Read... [09:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:26]Read from MH i2c: E2 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 03 00 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 03 00 CE 72 00 90 00 B4 [09:14:26]RAPDU: 90 00 [09:14:26]wFMCommunicate OK [09:14:26]wFMCommunicate request_size=4 [09:14:26]MH_SAM_APDU [09:14:26]CAPDU: 80 0D 03 02 [09:14:26]Write to MH i2c: E2 08 00 CF 72 80 0D 03 02 00 00 00 00 BC [09:14:26]Write i2c OK [09:14:26]MH_I2C_Read... [09:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:26]Read from MH i2c: E2 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 0B 00 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 0B 00 CF 72 00 EA 8A 21 58 63 C6 91 D3 90 00 37 [09:14:26]RAPDU: EA 8A 21 58 63 C6 91 D3 90 00 [09:14:26]wFMCommunicate OK [09:14:26]SAM_PROTO_SignData done [09:14:26]FM_MakeSignedData done [09:14:26]CreateOFDProtocolMessage [09:14:26]wFMCommunicate request_size=4 [09:14:26]MH_SAM_APDU [09:14:26]CAPDU: 80 11 00 00 [09:14:26]Write to MH i2c: E2 08 00 D0 72 80 11 00 00 00 00 00 00 BC [09:14:26]Write i2c OK [09:14:26]MH_I2C_Read... [09:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:26]Read from MH i2c: E2 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 17 00 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: E2 17 00 D0 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0C [09:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:14:26]wFMCommunicate OK [09:14:26]CreateOFDProtocolMessage done [09:14:26]OFDSenderStorePacket 2176 [09:14:26]StoreOFDPacket docnum=2176 [09:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 7C 33 07 01 E0 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 7A 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 80 08 00 00 35 04 06 00 2D 23 A2 6E FF A6 EA 8A 21 58 63 C6 91 D3 [09:14:26]CheckFolder [09:14:26]dirname=/storage/ofd_packets [09:14:26]CheckFolder done [09:14:26]ProducePacketName [09:14:26]name=ofd_packets/00002176 [09:14:26]NVStorageSaveData ofd_packets/00002176 [09:14:26]File name is /storage/ofd_packets/00002176 [09:14:26]Write 301 bytes [09:14:26]NVStorageSaveData done [09:14:26]OFDSenderStorePacket done [09:14:26]KKMCreateOFDPacket done [09:14:26]NVStorageSaveData kkm_last_timestamp [09:14:26]File name is /storage/kkm_last_timestamp [09:14:26]Write 4 bytes [09:14:26]NVStorageSaveData done [09:14:26]ExternCall_PrintAddStr [09:14:26]wPrintStart [09:14:26]Write to MH i2c: 01 00 00 D1 72 43 [09:14:26]Write i2c OK [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: 01 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: 01 07 00 [09:14:26]MH_I2C_Read... [09:14:26]Read from MH i2c: 01 07 00 D1 72 00 00 00 00 00 FF 0F 58 [09:14:26]RasterBufferAndPrint [09:14:26]line Счет N : (1)609680 [09:14:26]line ИНН: 02508201610067 [09:14:26]line Контрольно-Кассовый Чек [09:14:26]line ПРОДАЖА [09:14:26]line ТРК (МРК, ГНК) : 52 [09:14:26]line Товар: 2710124130 [09:14:26]line Аи-92-К-2 [09:14:26]line 7.380 * 67.80 [09:14:26]line = 500.36 [09:14:26]line НДС 12% НСП 1% [09:14:26]line > о реализуемом товаре [09:14:26]line ОКРУГЛЕНИЕ: -0.36 [09:14:26]line ИТОГО: 500.00 [09:14:26]line Внесено: 500.00 [09:14:26]line СДАЧА: 0.00 [09:14:26]line НСП 1% : 4.43 [09:14:26]line НДС 12% : 53.14 [09:14:26]line Наличными: 500.00 [09:14:26]line Безнал.: 0.00 [09:14:26]line Место: АЗС № 127 "Партнер Нефть" [09:14:26]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:14:26]line СНО: Общий режим [09:14:26]line Чек 25 29.07.2024 09:14 [09:14:26]line Смена: 15 ФФД: 1.0 [09:14:26]line ЗНМ: 0300000161 [09:14:26]line РНМ: 0000000000189667 [09:14:26]line Версия ККМ: v1.0 [09:14:26]line ФМ: 0000000002094248 [09:14:26]line ФД: 2176 [09:14:26]line ФПД: 49631072288678 [09:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091434&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2176&fm=49631072288678&tin=02508201610067®Number=0000000000189667&sum=50000 [09:14:26]OFD Sender: Processing packet 2176 [packets to send 1, broken 0] [09:14:26]ProducePacketName [09:14:26]name=ofd_packets/00002176 [09:14:26]OFD Sender: To server: pG, [09:14:26]CommunicateWithHost lk.salyk.kg:30040 [09:14:26]ConnectInit lk.salyk.kg [09:14:26]written 0, free lines is 4095 [09:14:27]Write to MH i2c: 01 00 00 FC 72 6E [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: 01 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: 01 07 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: 01 07 00 FC 72 00 00 00 00 00 EC 0C 6D [09:14:27]RasterBufferAndPrint [09:14:27]line [09:14:27]line [09:14:27]line [09:14:27]line [09:14:27]line [09:14:27]written 0, free lines is 3314 [09:14:27]MH_Cut [09:14:27]Write to MH i2c: D1 01 00 03 73 01 48 [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: D1 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: D1 01 00 [09:14:27]MH_I2C_Read... [09:14:27]Read from MH i2c: D1 01 00 03 73 00 47 [09:14:27]Write to MH i2c: 01 00 00 04 73 77 [09:14:27]Write i2c OK [09:14:27]MH_I2C_Read... [09:14:27]*** Cut start [09:14:27]*** Partial cut [09:14:27]*** CUTSNS_PIN = 1 [09:14:27]*** CUTSNS_PIN = 0 [09:14:28]*** Brake cut motor [09:14:28]Read from MH i2c: 01 [09:14:28]MH_I2C_Read... [09:14:28]*** Stop cut motor [09:14:28]*** Cut end [09:14:28]Read from MH i2c: 01 07 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: 01 07 00 04 73 00 00 00 00 00 FF 0F 8C [09:14:28]process_action close_receipt done [09:14:28]requested_data is exist [09:14:28]produce_requested_data [09:14:28]requested_item fm.sn is exist - process it [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 11 00 00 [09:14:28]Write to MH i2c: E2 08 00 05 73 80 11 00 00 00 00 00 00 F2 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 17 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 17 00 05 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 42 [09:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:14:28]wFMCommunicate OK [09:14:28]requested_item fd.num is exist - process it [09:14:28]SAM_PROTO_GetFieldsCounters [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 13 00 00 [09:14:28]Write to MH i2c: E2 08 00 06 73 80 13 00 00 00 00 00 00 F5 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 62 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 62 00 06 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 80 08 00 00 0E 04 04 00 0F 00 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 01 [09:14:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 80 08 00 00 0E 04 04 00 0F 00 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 [09:14:28]wFMCommunicate OK [09:14:28]SAM_PROTO_GetFieldsCounters done [09:14:28]requested_item shift.num is exist - process it [09:14:28]requested_item shift.opened is exist - process it [09:14:28]req_shift_opened [09:14:28]FM_GetShiftState [09:14:28]SAM_PROTO_GetShiftState [09:14:28]wFMCommunicate request_size=4 [09:14:28]MH_SAM_APDU [09:14:28]CAPDU: 80 13 01 00 [09:14:28]Write to MH i2c: E2 08 00 07 73 80 13 01 00 00 00 00 00 F7 [09:14:28]Write i2c OK [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 [09:14:28]MH_I2C_Read... [09:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:28]Read from MH i2c: E2 0E 00 [09:14:28]MH_I2C_Read... [09:14:28]Read from MH i2c: E2 0E 00 07 73 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F0 [09:14:28]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:14:28]wFMCommunicate OK [09:14:28]SAM_PROTO_GetShiftState done [09:14:28]FM_GetShiftState done [09:14:28]req_shift_opened done [09:14:28]requested_item shift.open_date is exist - process it [09:14:28]req_shift_open_date [09:14:28]req_shift_open_date done [09:14:28]produce_requested_data done [09:14:28]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2176,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:14:28]process_action_free close_receipt [09:14:28]json_value_free [09:14:28]json_value_free done [09:14:28]process_json_proto returns [09:14:28]Send response to host [09:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2176,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:14:28]free response buf [09:14:28]execute_script done [09:14:28]execute_script returns [09:14:28]free content buf [09:14:28]Sock 9.Close socket [09:14:28]Sock 9.Thread stoped [09:14:31]ConnectInit Can't take IP for lk.salyk.kg [09:14:31]CommunicateWithHost connect error [09:14:31]CommunicateWithHost err = -1 [09:14:31]OFD Sender: Server communicate error [09:14:36]OFD Sender: Processing packet 2176 [packets to send 1, broken 0] [09:14:36]ProducePacketName [09:14:36]name=ofd_packets/00002176 [09:14:36]OFD Sender: To server: pG, [09:14:36]CommunicateWithHost lk.salyk.kg:30040 [09:14:36]ConnectInit lk.salyk.kg [09:14:41]ConnectInit Can't take IP for lk.salyk.kg [09:14:41]CommunicateWithHost connect error [09:14:41]CommunicateWithHost err = -1 [09:14:41]OFD Sender: Server communicate error [09:14:44]accept exits with 10 [09:14:44]New connection [09:14:44]New thread 3067460964 created [09:14:44]Thread 3067317604 joined [09:14:44]Waiting for new connection... [09:14:44] Sock 10.Parse request [09:14:44]Sock 10.Check first char [09:14:44]Sock 10.First char is OK [09:14:44]request: POST /json_proto HTTP/1.0 [09:14:44]Method: POST [09:14:44]URL: /json_proto [09:14:44]Method is POST - this is cgi request [09:14:44]url: /json_proto [09:14:44]query_string will be loaded in cgi processing [09:14:44]execute_cgi json_proto POST (null) [09:14:44]execute_cgi path=json_proto method=POST [09:14:44]POST find Content-Length [09:14:44]Host: 172.17.45.132:8080 [09:14:44]Content-Length: 677 [09:14:44]Content-Type: application/json [09:14:44] [09:14:44]POST finish read [09:14:44]Found Content-Length = 677 [09:14:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:44]execute_script... [09:14:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:44]POST & json_proto [09:14:44]process_json_proto [09:14:44]json parsed OK: [09:14:44]protocol is kg_v1.0 [09:14:44]action value=close_receipt [09:14:44]process_action close_receipt [09:14:44]cmd_close_receipt [09:14:44]MH_GetDate [09:14:44]Write to MH i2c: F0 00 00 08 73 6A [09:14:44]Write i2c OK [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: F0 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: F0 09 00 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: F0 09 00 08 73 00 8E 5D A7 66 E3 0B 90 66 4F [09:14:44]GetLastDocTimeStamp 1722244474 [09:14:44]current date 1722244494 [09:14:44]FM_GetShiftState [09:14:44]SAM_PROTO_GetShiftState [09:14:44]wFMCommunicate request_size=4 [09:14:44]MH_SAM_APDU [09:14:44]CAPDU: 80 13 01 00 [09:14:44]Write to MH i2c: E2 08 00 09 73 80 13 01 00 00 00 00 00 F9 [09:14:44]Write i2c OK [09:14:44]MH_I2C_Read... [09:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:44]Read from MH i2c: E2 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: E2 0E 00 [09:14:44]MH_I2C_Read... [09:14:44]Read from MH i2c: E2 0E 00 09 73 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F2 [09:14:44]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:14:44]wFMCommunicate OK [09:14:44]SAM_PROTO_GetShiftState done [09:14:44]FM_GetShiftState done [09:14:44]opened in 1722213119 [09:14:44]opened+sec_in_day 1722299519 [09:14:44]quantity*price = 50036 [09:14:44]sum+1 = 50037 [09:14:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 26 29.07.2024 09:14 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2177 ФПД: 158172584455107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091454&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2177&fm=158172584455107&tin=02508201610067®Number=0000000000189667&sum=50000 [09:14:45]StoreToDocumentArchive [09:14:45]shift 15 fd 2177 [09:14:45]save to /storage/0015/doc_00002177 [09:14:45]save last doc name /storage/0015/doc_00002177 to /storage/kkm_last_doc_name [09:14:45]save OK [09:14:45]Clear old archive folders... [09:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:45]tlvbuf is 01F757A0 [09:14:45]SAM_PROTO_ClearQueue [09:14:45]wFMCommunicate request_size=4 [09:14:45]MH_SAM_APDU [09:14:45]CAPDU: 80 09 00 00 [09:14:45]Write to MH i2c: E2 08 00 16 73 80 09 00 00 00 00 00 00 FB [09:14:45]Write i2c OK [09:14:45]MH_I2C_Read... [09:14:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:45]Read from MH i2c: E2 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 03 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 03 00 16 73 00 90 00 FD [09:14:45]RAPDU: 90 00 [09:14:45]wFMCommunicate OK [09:14:45]SAM_PROTO_ClearQueue done [09:14:45]KKMCreateOFDPacket [09:14:45]OFDProtocolAddRootSTLVToBuf [09:14:45]FM_MakeSignedData [09:14:45]FM_MakeSignedData [09:14:45]SAM_PROTO_SignData [09:14:45]wFMCommunicate request_size=4 [09:14:45]MH_SAM_APDU [09:14:45]CAPDU: 80 0D 01 02 [09:14:45]Write to MH i2c: E2 08 00 17 73 80 0D 01 02 00 00 00 00 03 [09:14:45]Write i2c OK [09:14:45]MH_I2C_Read... [09:14:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:45]Read from MH i2c: E2 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 03 00 [09:14:45]MH_I2C_Read... [09:14:45]Read from MH i2c: E2 03 00 17 73 00 90 00 FE [09:14:45]RAPDU: 90 00 [09:14:45]wFMCommunicate OK [09:14:45]wFMCommunicate request_size=255 [09:14:45]MH_SAM_APDU [09:14:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 8E 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 08 00 00 35 04 06 00 8F [09:14:45]Write to MH i2c: E2 02 01 18 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 8E 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 08 00 00 35 04 06 00 8F 00 00 C1 [09:14:45]Write i2c OK [09:14:45]MH_I2C_Read... [09:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:46]Read from MH i2c: E2 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 03 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 03 00 18 73 00 90 00 FF [09:14:46]RAPDU: 90 00 [09:14:46]wFMCommunicate OK [09:14:46]wFMCommunicate request_size=10 [09:14:46]MH_SAM_APDU [09:14:46]CAPDU: 80 0D 02 02 05 DB 6C B5 AB C3 [09:14:46]Write to MH i2c: E2 0D 00 19 73 80 0D 02 02 05 00 DB 6C B5 AB C3 00 00 7A [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:46]Read from MH i2c: E2 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 03 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 03 00 19 73 00 90 00 00 [09:14:46]RAPDU: 90 00 [09:14:46]wFMCommunicate OK [09:14:46]wFMCommunicate request_size=4 [09:14:46]MH_SAM_APDU [09:14:46]CAPDU: 80 0D 03 02 [09:14:46]Write to MH i2c: E2 08 00 1A 73 80 0D 03 02 00 00 00 00 08 [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:46]Read from MH i2c: E2 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 0B 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 0B 00 1A 73 00 0D C7 3E 81 15 13 9B 78 90 00 D7 [09:14:46]RAPDU: 0D C7 3E 81 15 13 9B 78 90 00 [09:14:46]wFMCommunicate OK [09:14:46]SAM_PROTO_SignData done [09:14:46]FM_MakeSignedData done [09:14:46]CreateOFDProtocolMessage [09:14:46]wFMCommunicate request_size=4 [09:14:46]MH_SAM_APDU [09:14:46]CAPDU: 80 11 00 00 [09:14:46]Write to MH i2c: E2 08 00 1B 73 80 11 00 00 00 00 00 00 08 [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:46]Read from MH i2c: E2 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 17 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: E2 17 00 1B 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 58 [09:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:14:46]wFMCommunicate OK [09:14:46]CreateOFDProtocolMessage done [09:14:46]OFDSenderStorePacket 2177 [09:14:46]StoreOFDPacket docnum=2177 [09:14:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 FA 3E 07 01 43 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 8E 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 81 08 00 00 35 04 06 00 8F DB 6C B5 AB C3 0D C7 3E 81 15 13 9B 78 [09:14:46]CheckFolder [09:14:46]dirname=/storage/ofd_packets [09:14:46]CheckFolder done [09:14:46]ProducePacketName [09:14:46]name=ofd_packets/00002177 [09:14:46]NVStorageSaveData ofd_packets/00002177 [09:14:46]File name is /storage/ofd_packets/00002177 [09:14:46]Write 301 bytes [09:14:46]NVStorageSaveData done [09:14:46]OFDSenderStorePacket done [09:14:46]KKMCreateOFDPacket done [09:14:46]NVStorageSaveData kkm_last_timestamp [09:14:46]File name is /storage/kkm_last_timestamp [09:14:46]Write 4 bytes [09:14:46]NVStorageSaveData done [09:14:46]ExternCall_PrintAddStr [09:14:46]wPrintStart [09:14:46]Write to MH i2c: 01 00 00 1C 73 8F [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: 01 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: 01 07 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: 01 07 00 1C 73 00 00 00 00 00 FF 0F A4 [09:14:46]RasterBufferAndPrint [09:14:46]line Счет N : (1)609681 [09:14:46]line ИНН: 02508201610067 [09:14:46]line Контрольно-Кассовый Чек [09:14:46]line ПРОДАЖА [09:14:46]line ТРК (МРК, ГНК) : 62 [09:14:46]line Товар: 2710124130 [09:14:46]line Аи-92-К-2 [09:14:46]line 7.380 * 67.80 [09:14:46]line = 500.36 [09:14:46]line НДС 12% НСП 1% [09:14:46]line > о реализуемом товаре [09:14:46]line ОКРУГЛЕНИЕ: -0.36 [09:14:46]line ИТОГО: 500.00 [09:14:46]line Внесено: 500.00 [09:14:46]line СДАЧА: 0.00 [09:14:46]line НСП 1% : 4.43 [09:14:46]line НДС 12% : 53.14 [09:14:46]line Наличными: 500.00 [09:14:46]line Безнал.: 0.00 [09:14:46]line Место: АЗС № 127 "Партнер Нефть" [09:14:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:14:46]line СНО: Общий режим [09:14:46]line Чек 26 29.07.2024 09:14 [09:14:46]line Смена: 15 ФФД: 1.0 [09:14:46]line ЗНМ: 0300000161 [09:14:46]line РНМ: 0000000000189667 [09:14:46]line Версия ККМ: v1.0 [09:14:46]line ФМ: 0000000002094248 [09:14:46]line ФД: 2177 [09:14:46]line ФПД: 158172584455107 [09:14:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091454&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2177&fm=158172584455107&tin=02508201610067®Number=0000000000189667&sum=50000 [09:14:46]OFD Sender: Processing packet 2176 [packets to send 2, broken 0] [09:14:46]ProducePacketName [09:14:46]name=ofd_packets/00002176 [09:14:46]OFD Sender: To server: pG, [09:14:46]CommunicateWithHost lk.salyk.kg:30040 [09:14:46]ConnectInit lk.salyk.kg [09:14:46]written 0, free lines is 4095 [09:14:46]Write to MH i2c: 01 00 00 47 73 BA [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: 01 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: 01 07 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: 01 07 00 47 73 00 00 00 00 00 EA 0C B7 [09:14:46]RasterBufferAndPrint [09:14:46]line [09:14:46]line [09:14:46]line [09:14:46]line [09:14:46]line [09:14:46]written 0, free lines is 3321 [09:14:46]MH_Cut [09:14:46]Write to MH i2c: D1 01 00 4E 73 01 93 [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: D1 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: D1 01 00 [09:14:46]MH_I2C_Read... [09:14:46]Read from MH i2c: D1 01 00 4E 73 00 92 [09:14:46]Write to MH i2c: 01 00 00 4F 73 C2 [09:14:46]Write i2c OK [09:14:46]MH_I2C_Read... [09:14:47]*** Cut start [09:14:47]*** Partial cut [09:14:47]*** CUTSNS_PIN = 1 [09:14:47]*** CUTSNS_PIN = 0 [09:14:47]*** Brake cut motor [09:14:48]Read from MH i2c: 01 [09:14:48]MH_I2C_Read... [09:14:48]*** Stop cut motor [09:14:48]*** Cut end [09:14:48]Read from MH i2c: 01 07 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: 01 07 00 4F 73 00 00 00 00 00 FF 0F D7 [09:14:48]process_action close_receipt done [09:14:48]requested_data is exist [09:14:48]produce_requested_data [09:14:48]requested_item fm.sn is exist - process it [09:14:48]wFMCommunicate request_size=4 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 11 00 00 [09:14:48]Write to MH i2c: E2 08 00 50 73 80 11 00 00 00 00 00 00 3D [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 17 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 17 00 50 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8D [09:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:14:48]wFMCommunicate OK [09:14:48]requested_item fd.num is exist - process it [09:14:48]SAM_PROTO_GetFieldsCounters [09:14:48]wFMCommunicate request_size=4 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 13 00 00 [09:14:48]Write to MH i2c: E2 08 00 51 73 80 13 00 00 00 00 00 00 40 [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 62 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 62 00 51 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 81 08 00 00 0E 04 04 00 0F 00 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 50 [09:14:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 81 08 00 00 0E 04 04 00 0F 00 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 [09:14:48]wFMCommunicate OK [09:14:48]SAM_PROTO_GetFieldsCounters done [09:14:48]requested_item shift.num is exist - process it [09:14:48]requested_item shift.opened is exist - process it [09:14:48]req_shift_opened [09:14:48]FM_GetShiftState [09:14:48]SAM_PROTO_GetShiftState [09:14:48]wFMCommunicate request_size=4 [09:14:48]MH_SAM_APDU [09:14:48]CAPDU: 80 13 01 00 [09:14:48]Write to MH i2c: E2 08 00 52 73 80 13 01 00 00 00 00 00 42 [09:14:48]Write i2c OK [09:14:48]MH_I2C_Read... [09:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:48]Read from MH i2c: E2 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 0E 00 [09:14:48]MH_I2C_Read... [09:14:48]Read from MH i2c: E2 0E 00 52 73 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3B [09:14:48]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:14:48]wFMCommunicate OK [09:14:48]SAM_PROTO_GetShiftState done [09:14:48]FM_GetShiftState done [09:14:48]req_shift_opened done [09:14:48]requested_item shift.open_date is exist - process it [09:14:48]req_shift_open_date [09:14:48]req_shift_open_date done [09:14:48]produce_requested_data done [09:14:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2177,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:14:48]process_action_free close_receipt [09:14:48]json_value_free [09:14:48]json_value_free done [09:14:48]process_json_proto returns [09:14:48]Send response to host [09:14:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2177,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:14:48]free response buf [09:14:48]execute_script done [09:14:48]execute_script returns [09:14:48]free content buf [09:14:48]Sock 10.Close socket [09:14:48]Sock 10.Thread stoped [09:14:51]accept exits with 9 [09:14:51]New connection [09:14:51]New thread 3067317604 created [09:14:51]Thread 3067460964 joined [09:14:51]Waiting for new connection... [09:14:51] Sock 9.Parse request [09:14:51]Sock 9.Check first char [09:14:51]Sock 9.First char is OK [09:14:51]request: POST /json_proto HTTP/1.0 [09:14:51]Method: POST [09:14:51]URL: /json_proto [09:14:51]Method is POST - this is cgi request [09:14:51]url: /json_proto [09:14:51]query_string will be loaded in cgi processing [09:14:51]execute_cgi json_proto POST (null) [09:14:51]execute_cgi path=json_proto method=POST [09:14:51]POST find Content-Length [09:14:51]Host: 172.17.45.132:8080 [09:14:51]Content-Length: 799 [09:14:51]Content-Type: application/json [09:14:51] [09:14:51]POST finish read [09:14:51]Found Content-Length = 799 [09:14:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 33.030, "sum" : 2500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:51]execute_script... [09:14:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 33.030, "sum" : 2500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:51]POST & json_proto [09:14:51]process_json_proto [09:14:51]json parsed OK: [09:14:51]protocol is kg_v1.0 [09:14:51]action value=close_receipt [09:14:51]process_action close_receipt [09:14:51]cmd_close_receipt [09:14:51]MH_GetDate [09:14:51]Write to MH i2c: F0 00 00 53 73 B5 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: F0 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: F0 09 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: F0 09 00 53 73 00 95 5D A7 66 E3 0B 90 66 A1 [09:14:51]GetLastDocTimeStamp 1722244494 [09:14:51]current date 1722244501 [09:14:51]FM_GetShiftState [09:14:51]SAM_PROTO_GetShiftState [09:14:51]wFMCommunicate request_size=4 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 13 01 00 [09:14:51]Write to MH i2c: E2 08 00 54 73 80 13 01 00 00 00 00 00 44 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 0E 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 0E 00 54 73 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3D [09:14:51]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:14:51]wFMCommunicate OK [09:14:51]SAM_PROTO_GetShiftState done [09:14:51]FM_GetShiftState done [09:14:51]opened in 1722213119 [09:14:51]opened+sec_in_day 1722299519 [09:14:51]quantity*price = 250037 [09:14:51]sum+1 = 250038 [09:14:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870069000091 Сластена 120гр, кукурузные палочки 1.000 * 47.00 = 47.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010740733 Чипсы Чипсоны шашлык 40г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 132.00 НСП 1% : 1.17 НДС 12% : 14.02 Наличными: 132.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 28 29.07.2024 09:16 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2179 ФПД: 154848438759857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091605&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2179&fm=154848438759857&tin=02508201610067®Number=0000000000189667&sum=13200 0 [09:15:56]StoreToDocumentArchive [09:15:56]shift 15 fd 2179 [09:15:56]save to /storage/0015/doc_00002179 [09:15:56]save last doc name /storage/0015/doc_00002179 to /storage/kkm_last_doc_name [09:15:56]save OK [09:15:56]Clear old archive folders... [09:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=530 [09:15:56]tlvbuf is 020D1730 [09:15:56]SAM_PROTO_ClearQueue [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 09 00 00 [09:15:56]Write to MH i2c: E2 08 00 AB 73 80 09 00 00 00 00 00 00 90 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 AB 73 00 90 00 92 [09:15:56]RAPDU: 90 00 [09:15:56]wFMCommunicate OK [09:15:56]SAM_PROTO_ClearQueue done [09:15:56]KKMCreateOFDPacket [09:15:56]OFDProtocolAddRootSTLVToBuf [09:15:56]FM_MakeSignedData [09:15:56]FM_MakeSignedData [09:15:56]SAM_PROTO_SignData [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 0D 01 02 [09:15:56]Write to MH i2c: E2 08 00 AC 73 80 0D 01 02 00 00 00 00 98 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 AC 73 00 90 00 93 [09:15:56]RAPDU: 90 00 [09:15:56]wFMCommunicate OK [09:15:56]wFMCommunicate request_size=255 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 0D 02 02 FA 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 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 81 00 8A 04 0D 00 34 38 37 30 30 36 39 30 30 30 30 39 31 06 04 3D 00 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 31 32 30 D0 B3 D1 80 2C 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [09:15:57]Write to MH i2c: E2 02 01 AD 73 80 0D 02 02 FA 00 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 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 81 00 8A 04 0D 00 34 38 37 30 30 36 39 30 30 30 30 39 31 06 04 3D 00 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 31 32 30 D0 B3 D1 80 2C 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 EF [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 AD 73 00 90 00 94 [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=255 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 0D 02 02 FA 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 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 1C 00 00 00 F4 03 04 00 D5 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [09:15:57]Write to MH i2c: E2 02 01 AE 73 80 0D 02 02 FA 00 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 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 1C 00 00 00 F4 03 04 00 D5 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 22 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 AE 73 00 90 00 95 [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=39 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 08 00 00 35 04 06 00 8C D5 76 2F B1 B1 [09:15:58]Write to MH i2c: E2 2A 00 AF 73 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 08 00 00 35 04 06 00 8C D5 76 2F B1 B1 00 00 47 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 03 00 AF 73 00 90 00 96 [09:15:58]RAPDU: 90 00 [09:15:58]wFMCommunicate OK [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 0D 03 02 [09:15:58]Write to MH i2c: E2 08 00 B0 73 80 0D 03 02 00 00 00 00 9E [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0B 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 0B 00 B0 73 00 D9 E1 78 C2 67 EC 66 3A 90 00 86 [09:15:58]RAPDU: D9 E1 78 C2 67 EC 66 3A 90 00 [09:15:58]wFMCommunicate OK [09:15:58]SAM_PROTO_SignData done [09:15:58]FM_MakeSignedData done [09:15:58]CreateOFDProtocolMessage [09:15:58]wFMCommunicate request_size=4 [09:15:58]MH_SAM_APDU [09:15:58]CAPDU: 80 11 00 00 [09:15:58]Write to MH i2c: E2 08 00 B1 73 80 11 00 00 00 00 00 00 9E [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:58]Read from MH i2c: E2 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 17 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: E2 17 00 B1 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EE [09:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:15:58]wFMCommunicate OK [09:15:58]CreateOFDProtocolMessage done [09:15:58]OFDSenderStorePacket 2179 [09:15:58]StoreOFDPacket docnum=2179 [09:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 02 00 00 D9 FB 1E 02 5E 96 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 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 81 00 8A 04 0D 00 34 38 37 30 30 36 39 30 30 30 30 39 31 06 04 3D 00 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 31 32 30 D0 B3 D1 80 2C 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 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 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 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 1C 00 00 00 F4 03 04 00 D5 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 08 00 00 35 04 06 00 8C D5 76 2F B1 B1 D9 E1 78 C2 67 EC 66 3A [09:15:58]CheckFolder [09:15:58]dirname=/storage/ofd_packets [09:15:58]CheckFolder done [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00002179 [09:15:58]NVStorageSaveData ofd_packets/00002179 [09:15:58]File name is /storage/ofd_packets/00002179 [09:15:58]Write 580 bytes [09:15:58]NVStorageSaveData done [09:15:58]OFDSenderStorePacket done [09:15:58]KKMCreateOFDPacket done [09:15:58]NVStorageSaveData kkm_last_timestamp [09:15:58]File name is /storage/kkm_last_timestamp [09:15:58]Write 4 bytes [09:15:58]NVStorageSaveData done [09:15:58]ExternCall_PrintAddStr [09:15:58]wPrintStart [09:15:58]Write to MH i2c: 01 00 00 B2 73 25 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 B2 73 00 00 00 00 00 FF 0F 3A [09:15:58]RasterBufferAndPrint [09:15:58]line Счет N : (3)126469 [09:15:58]line ИНН: 02508201610067 [09:15:58]line Контрольно-Кассовый Чек [09:15:58]line ПРОДАЖА [09:15:58]line Товар: 4607120852456 [09:15:58]line Кириешки Light 80 г сл-сыр [09:15:58]line 1.000 * 40.00 [09:15:58]line = 40.00 [09:15:58]line НДС 12% НСП 1% [09:15:58]line > о реализуемом товаре [09:15:58]line Товар: 4870069000091 [09:15:58]line Сластена 120гр, кукурузные палочки [09:15:58]line 1.000 * 47.00 [09:15:58]line = 47.00 [09:15:58]line НДС 12% НСП 1% [09:15:58]line > о реализуемом товаре [09:15:58]line Товар: 4607010740733 [09:15:58]line Чипсы Чипсоны шашлык 40г [09:15:58]line 1.000 * 45.00 [09:15:58]line = 45.00 [09:15:58]line НДС 12% НСП 1% [09:15:58]line > о реализуемом товаре [09:15:58]line ИТОГО: 132.00 [09:15:58]line НСП 1% : 1.17 [09:15:58]line НДС 12% : 14.02 [09:15:58]line Наличными: 132.00 [09:15:58]line Безнал.: 0.00 [09:15:58]line Место: АЗС № 127 "Партнер Нефть" [09:15:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:15:58]line СНО: Общий режим [09:15:58]line Чек 28 29.07.2024 09:16 [09:15:58]line Смена: 15 ФФД: 1.0 [09:15:58]line ЗНМ: 0300000161 [09:15:58]line РНМ: 0000000000189667 [09:15:58]line Версия ККМ: v1.0 [09:15:58]line ФМ: 0000000002094248 [09:15:58]line ФД: 2179 [09:15:58]line ФПД: 154848438759857 [09:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091605&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2179&fm=154848438759857&tin=02508201610067®Number=0000000000189667&sum=13200 [09:15:58]line 0 [09:15:58]written 0, free lines is 4095 [09:15:58]OFD Sender: Processing packet 2179 [packets to send 1, broken 0] [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00002179 [09:15:58]OFD Sender: To server: pG, [09:15:58]CommunicateWithHost lk.salyk.kg:30040 [09:15:58]ConnectInit lk.salyk.kg [09:15:58]Connected sock=11 [09:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 02 00 00 D9 FB 1E 02 5E 96 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 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 81 00 8A 04 0D 00 34 38 37 30 30 36 39 30 30 30 30 39 31 06 04 3D 00 D0 A1 D0 BB D0 B0 D1 81 D1 82 D0 B5 D0 BD D0 B0 20 31 32 30 D0 B3 D1 80 2C 20 D0 BA D1 83 D0 BA D1 83 D1 80 D1 83 D0 B7 D0 BD D1 8B D0 B5 20 D0 BF D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 12 00 00 00 00 13 04 06 00 5C 12 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 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 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 1C 00 00 00 F4 03 04 00 D5 5D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 83 08 00 00 35 04 06 00 8C D5 76 2F B1 B1 D9 E1 78 C2 67 EC 66 3A [09:15:58]Write to MH i2c: 01 00 00 E7 73 5A [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 E7 73 00 00 00 00 00 A7 0C 14 [09:15:58]RasterBufferAndPrint [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]written 0, free lines is 3273 [09:15:59]MH_Cut [09:15:59]Write to MH i2c: D1 01 00 EE 73 01 33 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 01 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: D1 01 00 EE 73 00 32 [09:15:59]Write to MH i2c: 01 00 00 EF 73 62 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 33 52 47 00 D6 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 32 30 39 34 32 34 38 10 04 04 00 83 08 00 00 F4 03 04 00 43 09 A7 66 B6 04 01 00 00 8A B1 61 65 6E 17 10 F3 [09:15:59]CommunicateWithHost err = 0 [09:15:59]CheckOFDResponse [09:15:59]1017 (14) - 77093643461234 [09:15:59]1041 (16) - 0000000002094248 [09:15:59]1040 (4) - 2179 [09:15:59]1012 (4) - 29.07.2024 03:15 [09:15:59]1206 (1) - 0 [09:15:59]OFD Sender: Remove packet 2179 [09:15:59]ProducePacketName [09:15:59]name=ofd_packets/00002179 [09:15:59]NVStorageDeleteData [09:15:59]*** Cut start [09:15:59]*** Partial cut [09:15:59]*** CUTSNS_PIN = 1 [09:15:59]*** CUTSNS_PIN = 0 [09:15:59]OFD Sender: No OFD packet to send [09:16:00]*** Brake cut motor [09:16:00]Read from MH i2c: 01 [09:16:00]MH_I2C_Read... [09:16:00]*** Stop cut motor [09:16:00]*** Cut end [09:16:00]Read from MH i2c: 01 07 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 EF 73 00 00 00 00 00 FF 0F 77 [09:16:00]process_action close_receipt done [09:16:00]requested_data is exist [09:16:00]produce_requested_data [09:16:00]requested_item fm.sn is exist - process it [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 11 00 00 [09:16:00]Write to MH i2c: E2 08 00 F0 73 80 11 00 00 00 00 00 00 DD [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 17 00 F0 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2D [09:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:16:00]wFMCommunicate OK [09:16:00]requested_item fd.num is exist - process it [09:16:00]SAM_PROTO_GetFieldsCounters [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 13 00 00 [09:16:00]Write to MH i2c: E2 08 00 F1 73 80 13 00 00 00 00 00 00 E0 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 62 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 62 00 F1 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 83 08 00 00 0E 04 04 00 0F 00 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 F8 [09:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 83 08 00 00 0E 04 04 00 0F 00 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 [09:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_GetFieldsCounters done [09:16:00]requested_item shift.num is exist - process it [09:16:00]requested_item shift.opened is exist - process it [09:16:00]req_shift_opened [09:16:00]FM_GetShiftState [09:16:00]SAM_PROTO_GetShiftState [09:16:00]wFMCommunicate request_size=4 [09:16:00]MH_SAM_APDU [09:16:00]CAPDU: 80 13 01 00 [09:16:00]Write to MH i2c: E2 08 00 F2 73 80 13 01 00 00 00 00 00 E2 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 F2 73 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DB [09:16:00]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_GetShiftState done [09:16:00]FM_GetShiftState done [09:16:00]req_shift_opened done [09:16:00]requested_item shift.open_date is exist - process it [09:16:00]req_shift_open_date [09:16:00]req_shift_open_date done [09:16:00]produce_requested_data done [09:16:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2179,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:16:00]process_action_free close_receipt [09:16:00]json_value_free [09:16:00]json_value_free done [09:16:00]process_json_proto returns [09:16:00]Send response to host [09:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2179,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:16:00]free response buf [09:16:00]execute_script done [09:16:00]execute_script returns [09:16:00]free content buf [09:16:00]Sock 10.Close socket [09:16:00]Sock 10.Thread stoped [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:31]ConnectInit Can't connect to host [09:16:34]OFD Sender: No OFD packet to send [09:16:36]ConnectInit Can't connect to host [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:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:33]accept exits with 8 [09:22:33]New connection [09:22:33]New thread 3067317604 created [09:22:33]Thread 3067460964 joined [09:22:33]Waiting for new connection... [09:22:33] Sock 8.Parse request [09:22:33]Sock 8.Check first char [09:22:33]Sock 8.First char is OK [09:22:33]request: POST /json_proto HTTP/1.0 [09:22:33]Method: POST [09:22:33]URL: /json_proto [09:22:33]Method is POST - this is cgi request [09:22:33]url: /json_proto [09:22:33]query_string will be loaded in cgi processing [09:22:33]execute_cgi json_proto POST (null) [09:22:33]execute_cgi path=json_proto method=POST [09:22:33]POST find Content-Length [09:22:33]Host: 172.17.45.132:8080 [09:22:33]Content-Length: 682 [09:22:33]Content-Type: application/json [09:22:33] [09:22:33]POST finish read [09:22:33]Found Content-Length = 682 [09:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:33]execute_script... [09:22:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:33]POST & json_proto [09:22:33]process_json_proto [09:22:33]json parsed OK: [09:22:33]protocol is kg_v1.0 [09:22:33]action value=close_receipt [09:22:33]process_action close_receipt [09:22:33]cmd_close_receipt [09:22:33]MH_GetDate [09:22:33]Write to MH i2c: F0 00 00 F3 73 55 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: F0 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: F0 09 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: F0 09 00 F3 73 00 64 5F A7 66 E3 0B 90 66 12 [09:22:33]GetLastDocTimeStamp 1722244565 [09:22:33]current date 1722244964 [09:22:33]FM_GetShiftState [09:22:33]SAM_PROTO_GetShiftState [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 13 01 00 [09:22:33]Write to MH i2c: E2 08 00 F4 73 80 13 01 00 00 00 00 00 E4 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0E 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0E 00 F4 73 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DD [09:22:33]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_GetShiftState done [09:22:33]FM_GetShiftState done [09:22:33]opened in 1722213119 [09:22:33]opened+sec_in_day 1722299519 [09:22:33]quantity*price = 100023 [09:22:33]sum+1 = 100024 [09:22:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 29 29.07.2024 09:22 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2180 ФПД: 102719320412035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092244&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2180&fm=102719320412035&tin=02508201610067®Number=0000000000189667&sum=100000 [09:22:35]StoreToDocumentArchive [09:22:35]shift 15 fd 2180 [09:22:35]save to /storage/0015/doc_00002180 [09:22:35]save last doc name /storage/0015/doc_00002180 to /storage/kkm_last_doc_name [09:22:35]save OK [09:22:35]Clear old archive folders... [09:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:35]tlvbuf is 01F38350 [09:22:35]SAM_PROTO_ClearQueue [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 09 00 00 [09:22:35]Write to MH i2c: E2 08 00 01 74 80 09 00 00 00 00 00 00 E7 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 03 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 03 00 01 74 00 90 00 E9 [09:22:35]RAPDU: 90 00 [09:22:35]wFMCommunicate OK [09:22:35]SAM_PROTO_ClearQueue done [09:22:35]KKMCreateOFDPacket [09:22:35]OFDProtocolAddRootSTLVToBuf [09:22:35]FM_MakeSignedData [09:22:35]FM_MakeSignedData [09:22:35]SAM_PROTO_SignData [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 0D 01 02 [09:22:35]Write to MH i2c: E2 08 00 02 74 80 0D 01 02 00 00 00 00 EF [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]OFD Sender: No OFD packet to send [09:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 03 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 03 00 02 74 00 90 00 EA [09:22:35]RAPDU: 90 00 [09:22:35]wFMCommunicate OK [09:22:35]wFMCommunicate request_size=255 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 64 5F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 84 08 00 00 35 04 06 00 5D [09:22:35]Write to MH i2c: E2 02 01 03 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 64 5F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 84 08 00 00 35 04 06 00 5D 00 00 61 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:35]Read from MH i2c: E2 03 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 03 00 03 74 00 90 00 EB [09:22:35]RAPDU: 90 00 [09:22:35]wFMCommunicate OK [09:22:35]wFMCommunicate request_size=10 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 0D 02 02 05 6C 34 9A CF 83 [09:22:35]Write to MH i2c: E2 0D 00 04 74 80 0D 02 02 05 00 6C 34 9A CF 83 00 00 88 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 03 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 03 00 04 74 00 90 00 EC [09:22:35]RAPDU: 90 00 [09:22:35]wFMCommunicate OK [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 0D 03 02 [09:22:35]Write to MH i2c: E2 08 00 05 74 80 0D 03 02 00 00 00 00 F4 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 0B 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 0B 00 05 74 00 94 E2 3C 29 BA 2C 05 E5 90 00 A0 [09:22:35]RAPDU: 94 E2 3C 29 BA 2C 05 E5 90 00 [09:22:35]wFMCommunicate OK [09:22:35]SAM_PROTO_SignData done [09:22:35]FM_MakeSignedData done [09:22:35]CreateOFDProtocolMessage [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 11 00 00 [09:22:35]Write to MH i2c: E2 08 00 06 74 80 11 00 00 00 00 00 00 F4 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 17 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 17 00 06 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 44 [09:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:22:35]wFMCommunicate OK [09:22:35]CreateOFDProtocolMessage done [09:22:35]OFDSenderStorePacket 2180 [09:22:35]StoreOFDPacket docnum=2180 [09:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F1 55 07 01 DF 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 64 5F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 84 08 00 00 35 04 06 00 5D 6C 34 9A CF 83 94 E2 3C 29 BA 2C 05 E5 [09:22:35]CheckFolder [09:22:35]dirname=/storage/ofd_packets [09:22:35]CheckFolder done [09:22:35]ProducePacketName [09:22:35]name=ofd_packets/00002180 [09:22:35]NVStorageSaveData ofd_packets/00002180 [09:22:35]File name is /storage/ofd_packets/00002180 [09:22:35]Write 301 bytes [09:22:35]NVStorageSaveData done [09:22:35]OFDSenderStorePacket done [09:22:35]KKMCreateOFDPacket done [09:22:35]NVStorageSaveData kkm_last_timestamp [09:22:35]File name is /storage/kkm_last_timestamp [09:22:35]Write 4 bytes [09:22:35]NVStorageSaveData done [09:22:35]ExternCall_PrintAddStr [09:22:35]wPrintStart [09:22:35]Write to MH i2c: 01 00 00 07 74 7B [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 07 74 00 00 00 00 00 FF 0F 90 [09:22:35]RasterBufferAndPrint [09:22:35]line Счет N : (1)609687 [09:22:35]line ИНН: 02508201610067 [09:22:35]line Контрольно-Кассовый Чек [09:22:35]line ПРОДАЖА [09:22:35]line ТРК (МРК, ГНК) : 43 [09:22:35]line Товар: 2710124500 [09:22:35]line Аи-95-К-3 [09:22:35]line 13.390 * 74.70 [09:22:35]line = 1000.23 [09:22:35]line НДС 12% НСП 1% [09:22:35]line > о реализуемом товаре [09:22:35]line ОКРУГЛЕНИЕ: -0.23 [09:22:35]line ИТОГО: 1000.00 [09:22:35]line Внесено: 1000.00 [09:22:35]line СДАЧА: 0.00 [09:22:35]line НСП 1% : 8.85 [09:22:35]line НДС 12% : 106.22 [09:22:35]line Наличными: 1000.00 [09:22:35]line Безнал.: 0.00 [09:22:35]line Место: АЗС № 127 "Партнер Нефть" [09:22:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:22:35]line СНО: Общий режим [09:22:35]line Чек 29 29.07.2024 09:22 [09:22:35]line Смена: 15 ФФД: 1.0 [09:22:35]line ЗНМ: 0300000161 [09:22:35]line РНМ: 0000000000189667 [09:22:35]line Версия ККМ: v1.0 [09:22:35]line ФМ: 0000000002094248 [09:22:35]line ФД: 2180 [09:22:35]line ФПД: 102719320412035 [09:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092244&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2180&fm=102719320412035&tin=02508201610067®Number=0000000000189667&sum=100000 [09:22:35]OFD Sender: Processing packet 2180 [packets to send 1, broken 0] [09:22:35]ProducePacketName [09:22:35]name=ofd_packets/00002180 [09:22:35]OFD Sender: To server: pG, [09:22:35]CommunicateWithHost lk.salyk.kg:30040 [09:22:35]ConnectInit lk.salyk.kg [09:22:35]written 0, free lines is 4095 [09:22:35]Connected sock=10 [09:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F1 55 07 01 DF 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 64 5F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 84 08 00 00 35 04 06 00 5D 6C 34 9A CF 83 94 E2 3C 29 BA 2C 05 E5 [09:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D7 62 47 00 E7 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 84 08 00 00 F4 03 04 00 D1 0A A7 66 B6 04 01 00 00 89 0A 75 08 EA F2 48 30 [09:22:36]CommunicateWithHost err = 0 [09:22:36]CheckOFDResponse [09:22:36]1017 (14) - 77093643461234 [09:22:36]1041 (16) - 0000000002094248 [09:22:36]1040 (4) - 2180 [09:22:36]1012 (4) - 29.07.2024 03:21 [09:22:36]1206 (1) - 0 [09:22:36]OFD Sender: Remove packet 2180 [09:22:36]ProducePacketName [09:22:36]name=ofd_packets/00002180 [09:22:36]NVStorageDeleteData [09:22:36]Write to MH i2c: 01 00 00 32 74 A6 [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: 01 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: 01 07 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: 01 07 00 32 74 00 00 00 00 00 E9 0C A2 [09:22:36]RasterBufferAndPrint [09:22:36]line [09:22:36]line [09:22:36]line [09:22:36]line [09:22:36]line [09:22:36]written 0, free lines is 3311 [09:22:36]MH_Cut [09:22:36]Write to MH i2c: D1 01 00 39 74 01 7F [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: D1 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: D1 01 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: D1 01 00 39 74 00 7E [09:22:36]Write to MH i2c: 01 00 00 3A 74 AE [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]OFD Sender: No OFD packet to send [09:22:36]*** Cut start [09:22:36]*** Partial cut [09:22:36]*** CUTSNS_PIN = 1 [09:22:37]*** CUTSNS_PIN = 0 [09:22:37]*** Brake cut motor [09:22:37]Read from MH i2c: 01 [09:22:37]MH_I2C_Read... [09:22:37]*** Stop cut motor [09:22:37]*** Cut end [09:22:37]Read from MH i2c: 01 07 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: 01 07 00 3A 74 00 00 00 00 00 FF 0F C3 [09:22:37]process_action close_receipt done [09:22:37]requested_data is exist [09:22:37]produce_requested_data [09:22:37]requested_item fm.sn is exist - process it [09:22:37]wFMCommunicate request_size=4 [09:22:37]MH_SAM_APDU [09:22:37]CAPDU: 80 11 00 00 [09:22:37]Write to MH i2c: E2 08 00 3B 74 80 11 00 00 00 00 00 00 29 [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 17 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 17 00 3B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 79 [09:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:22:37]wFMCommunicate OK [09:22:37]requested_item fd.num is exist - process it [09:22:37]SAM_PROTO_GetFieldsCounters [09:22:37]wFMCommunicate request_size=4 [09:22:37]MH_SAM_APDU [09:22:37]CAPDU: 80 13 00 00 [09:22:37]Write to MH i2c: E2 08 00 3C 74 80 13 00 00 00 00 00 00 2C [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 62 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 62 00 3C 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 84 08 00 00 0E 04 04 00 0F 00 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 48 [09:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 84 08 00 00 0E 04 04 00 0F 00 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 [09:22:37]wFMCommunicate OK [09:22:37]SAM_PROTO_GetFieldsCounters done [09:22:37]requested_item shift.num is exist - process it [09:22:37]requested_item shift.opened is exist - process it [09:22:37]req_shift_opened [09:22:37]FM_GetShiftState [09:22:37]SAM_PROTO_GetShiftState [09:22:37]wFMCommunicate request_size=4 [09:22:37]MH_SAM_APDU [09:22:37]CAPDU: 80 13 01 00 [09:22:37]Write to MH i2c: E2 08 00 3D 74 80 13 01 00 00 00 00 00 2E [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:37]Read from MH i2c: E2 0E 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 0E 00 3D 74 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 27 [09:22:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:22:37]wFMCommunicate OK [09:22:37]SAM_PROTO_GetShiftState done [09:22:37]FM_GetShiftState done [09:22:37]req_shift_opened done [09:22:37]requested_item shift.open_date is exist - process it [09:22:37]req_shift_open_date [09:22:37]req_shift_open_date done [09:22:37]produce_requested_data done [09:22:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2180,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:22:37]process_action_free close_receipt [09:22:37]json_value_free [09:22:37]json_value_free done [09:22:37]process_json_proto returns [09:22:37]Send response to host [09:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2180,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:22:37]free response buf [09:22:37]execute_script done [09:22:37]execute_script returns [09:22:37]free content buf [09:22:37]Sock 8.Close socket [09:22:37]Sock 8.Thread stoped [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:00]accept exits with 9 [09:25:00]New connection [09:25:00]New thread 3067460964 created [09:25:00]Thread 3067317604 joined [09:25:00]Waiting for new connection... [09:25:00] Sock 9.Parse request [09:25:00]Sock 9.Check first char [09:25:00]Sock 9.First char is OK [09:25:00]request: POST /json_proto HTTP/1.0 [09:25:00]Method: POST [09:25:00]URL: /json_proto [09:25:00]Method is POST - this is cgi request [09:25:00]url: /json_proto [09:25:00]query_string will be loaded in cgi processing [09:25:00]execute_cgi json_proto POST (null) [09:25:00]execute_cgi path=json_proto method=POST [09:25:00]POST find Content-Length [09:25:00]Host: 172.17.45.132:8080 [09:25:00]Content-Length: 1194 [09:25:00]Content-Type: application/json [09:25:00] [09:25:00]POST finish read [09:25:00]Found Content-Length = 1194 [09:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)609691\u000A29.07.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 14.730 x 67.80\u000A\u0418\u0422\u041E\u0413: 998.69\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:00]execute_script... [09:25:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)609691\u000A29.07.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 14.730 x 67.80\u000A\u0418\u0422\u041E\u0413: 998.69\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:00]POST & json_proto [09:25:00]process_json_proto [09:25:00]json parsed OK: [09:25:00]protocol is kg_v1.0 [09:25:00]action value=print_text [09:25:00]process_action print_text [09:25:00]cmd_print_text [09:25:00]ExternCall_PrintAddStr [09:25:00]wPrintStart [09:25:00]Write to MH i2c: 01 00 00 3E 74 B2 [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: 01 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: 01 07 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: 01 07 00 3E 74 00 00 00 00 00 FF 0F C7 [09:25:00]RasterBufferAndPrint [09:25:00]line *****ТОВАРНЫЙ ЧЕК***** [09:25:00]line АЗС 127 [09:25:00]line Партнер нефть [09:25:00]line 02508201610067 [09:25:00]line Кассир : Мансуров А. [09:25:00]line Счет N : (1)609691 [09:25:00]line 29.07.2024 09:14 [09:25:00]line ПРОДАЖА [09:25:00]line ТРК (МРК, ГНК): 52 [09:25:00]line Вид ГСМ : 2710124130 [09:25:00]line Аи-92-К-2 [09:25:00]line 14.730 x 67.80 [09:25:00]line ИТОГ: 998.69 [09:25:00]line Тип оплаты: Талоны: Топливная Карта [09:25:00]line 99943 [09:25:00]line ______________________ [09:25:00]line (подпись) [09:25:00]written 0, free lines is 4095 [09:25:00]Write to MH i2c: 01 00 00 52 74 C6 [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: 01 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: 01 07 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: 01 07 00 52 74 00 00 00 00 00 11 0E EC [09:25:00]RasterBufferAndPrint [09:25:00]line [09:25:00]line [09:25:00]line [09:25:00]line [09:25:00]line [09:25:00]written 0, free lines is 3602 [09:25:00]MH_Cut [09:25:00]Write to MH i2c: D1 01 00 59 74 01 9F [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: D1 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: D1 01 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: D1 01 00 59 74 00 9E [09:25:00]Write to MH i2c: 01 00 00 5A 74 CE [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]*** Cut start [09:25:00]*** Partial cut [09:25:00]*** CUTSNS_PIN = 1 [09:25:00]*** CUTSNS_PIN = 0 [09:25:01]*** Brake cut motor [09:25:01]Read from MH i2c: 01 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: 01 07 00 [09:25:01]MH_I2C_Read... [09:25:01]*** Stop cut motor [09:25:01]*** Cut end [09:25:01]Read from MH i2c: 01 07 00 5A 74 00 00 00 00 00 FF 0F E3 [09:25:01]process_action print_text done [09:25:01]requested_data is exist [09:25:01]produce_requested_data [09:25:01]requested_item fm.sn is exist - process it [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 11 00 00 [09:25:01]Write to MH i2c: E2 08 00 5B 74 80 11 00 00 00 00 00 00 49 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 17 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 17 00 5B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 99 [09:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:25:01]wFMCommunicate OK [09:25:01]requested_item fd.num is exist - process it [09:25:01]SAM_PROTO_GetFieldsCounters [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 13 00 00 [09:25:01]Write to MH i2c: E2 08 00 5C 74 80 13 00 00 00 00 00 00 4C [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 62 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 62 00 5C 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 84 08 00 00 0E 04 04 00 0F 00 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 68 [09:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 84 08 00 00 0E 04 04 00 0F 00 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 [09:25:01]wFMCommunicate OK [09:25:01]SAM_PROTO_GetFieldsCounters done [09:25:01]requested_item shift.num is exist - process it [09:25:01]requested_item shift.opened is exist - process it [09:25:01]req_shift_opened [09:25:01]FM_GetShiftState [09:25:01]SAM_PROTO_GetShiftState [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 13 01 00 [09:25:01]Write to MH i2c: E2 08 00 5D 74 80 13 01 00 00 00 00 00 4E [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 0E 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 0E 00 5D 74 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 47 [09:25:01]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:25:01]wFMCommunicate OK [09:25:01]SAM_PROTO_GetShiftState done [09:25:01]FM_GetShiftState done [09:25:01]req_shift_opened done [09:25:01]requested_item shift.open_date is exist - process it [09:25:01]req_shift_open_date [09:25:01]req_shift_open_date done [09:25:01]produce_requested_data done [09:25:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2180,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:25:01]process_action_free print_text [09:25:01]json_value_free [09:25:01]json_value_free done [09:25:01]process_json_proto returns [09:25:01]Send response to host [09:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2180,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:25:01]free response buf [09:25:01]execute_script done [09:25:01]execute_script returns [09:25:01]free content buf [09:25:01]Sock 9.Close socket [09:25:01]Sock 9.Thread stoped [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]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:28]accept exits with 8 [09:32:28]New connection [09:32:28]New thread 3067317604 created [09:32:28]Thread 3067460964 joined [09:32:28]Waiting for new connection... [09:32:28] Sock 8.Parse request [09:32:28]Sock 8.Check first char [09:32:28]Sock 8.First char is OK [09:32:28]request: POST /json_proto HTTP/1.0 [09:32:28]Method: POST [09:32:28]URL: /json_proto [09:32:28]Method is POST - this is cgi request [09:32:28]url: /json_proto [09:32:28]query_string will be loaded in cgi processing [09:32:28]execute_cgi json_proto POST (null) [09:32:28]execute_cgi path=json_proto method=POST [09:32:28]POST find Content-Length [09:32:28]Host: 172.17.45.132:8080 [09:32:28]Content-Length: 655 [09:32:28]Content-Type: application/json [09:32:28] [09:32:28]POST finish read [09:32:28]Found Content-Length = 655 [09:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126470", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:28]execute_script... [09: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)126470", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 127.00, "quantity" : 1.000, "sum" : 127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:28]POST & json_proto [09:32:28]process_json_proto [09:32:28]json parsed OK: [09:32:28]protocol is kg_v1.0 [09:32:28]action value=close_receipt [09:32:28]process_action close_receipt [09:32:28]cmd_close_receipt [09:32:28]MH_GetDate [09:32:28]Write to MH i2c: F0 00 00 5E 74 C1 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: F0 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: F0 09 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: F0 09 00 5E 74 00 B6 61 A7 66 E3 0B 90 66 D2 [09:32:28]GetLastDocTimeStamp 1722244964 [09:32:28]current date 1722245558 [09:32:28]FM_GetShiftState [09:32:28]SAM_PROTO_GetShiftState [09:32:28]wFMCommunicate request_size=4 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 13 01 00 [09:32:28]Write to MH i2c: E2 08 00 5F 74 80 13 01 00 00 00 00 00 50 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:28]Read from MH i2c: E2 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 0E 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 0E 00 5F 74 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 49 [09:32:28]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:32:28]wFMCommunicate OK [09:32:28]SAM_PROTO_GetShiftState done [09:32:28]FM_GetShiftState done [09:32:28]opened in 1722213119 [09:32:28]opened+sec_in_day 1722299519 [09:32:28]quantity*price = 12700 [09:32:28]sum+1 = 12701 [09:32:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 127.00 НСП 1% : 1.12 НДС 12% : 13.49 Наличными: 127.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 30 29.07.2024 09:32 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2181 ФПД: 75828620751238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093238&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2181&fm=75828620751238&tin=02508201610067®Number=0000000000189667&sum=12700 0 [09:32:29]StoreToDocumentArchive [09:32:29]shift 15 fd 2181 [09:32:29]save to /storage/0015/doc_00002181 [09:32:29]save last doc name /storage/0015/doc_00002181 to /storage/kkm_last_doc_name [09:32:29]save OK [09:32:29]Clear old archive folders... [09:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:32:29]tlvbuf is 02035D30 [09:32:29]SAM_PROTO_ClearQueue [09:32:29]wFMCommunicate request_size=4 [09:32:29]MH_SAM_APDU [09:32:29]CAPDU: 80 09 00 00 [09:32:29]Write to MH i2c: E2 08 00 6C 74 80 09 00 00 00 00 00 00 52 [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:29]Read from MH i2c: E2 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 03 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 03 00 6C 74 00 90 00 54 [09:32:29]RAPDU: 90 00 [09:32:29]wFMCommunicate OK [09:32:29]SAM_PROTO_ClearQueue done [09:32:29]KKMCreateOFDPacket [09:32:29]OFDProtocolAddRootSTLVToBuf [09:32:29]FM_MakeSignedData [09:32:29]FM_MakeSignedData [09:32:29]SAM_PROTO_SignData [09:32:29]wFMCommunicate request_size=4 [09:32:29]MH_SAM_APDU [09:32:29]CAPDU: 80 0D 01 02 [09:32:29]Write to MH i2c: E2 08 00 6D 74 80 0D 01 02 00 00 00 00 5A [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:29]Read from MH i2c: E2 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 03 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 03 00 6D 74 00 90 00 55 [09:32:29]RAPDU: 90 00 [09:32:29]wFMCommunicate OK [09:32:29]wFMCommunicate request_size=255 [09:32:29]MH_SAM_APDU [09:32:29]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 [09:32:29]Write to MH i2c: E2 02 01 6E 74 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 00 00 3D [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 03 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 03 00 6E 74 00 90 00 56 [09:32:30]RAPDU: 90 00 [09:32:30]wFMCommunicate OK [09:32:30]wFMCommunicate request_size=38 [09:32:30]MH_SAM_APDU [09:32:30]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 08 00 00 35 04 06 00 44 F7 3A 00 F1 86 [09:32:30]Write to MH i2c: E2 29 00 6F 74 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 08 00 00 35 04 06 00 44 F7 3A 00 F1 86 00 00 5C [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 03 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 03 00 6F 74 00 90 00 57 [09:32:30]RAPDU: 90 00 [09:32:30]wFMCommunicate OK [09:32:30]wFMCommunicate request_size=4 [09:32:30]MH_SAM_APDU [09:32:30]CAPDU: 80 0D 03 02 [09:32:30]Write to MH i2c: E2 08 00 70 74 80 0D 03 02 00 00 00 00 5F [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 0B 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 0B 00 70 74 00 B9 04 88 70 B8 AE 13 E3 90 00 71 [09:32:30]RAPDU: B9 04 88 70 B8 AE 13 E3 90 00 [09:32:30]wFMCommunicate OK [09:32:30]SAM_PROTO_SignData done [09:32:30]FM_MakeSignedData done [09:32:30]CreateOFDProtocolMessage [09:32:30]wFMCommunicate request_size=4 [09:32:30]MH_SAM_APDU [09:32:30]CAPDU: 80 11 00 00 [09:32:30]Write to MH i2c: E2 08 00 71 74 80 11 00 00 00 00 00 00 5F [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 17 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 17 00 71 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AF [09:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:32:30]wFMCommunicate OK [09:32:30]CreateOFDProtocolMessage done [09:32:30]OFDSenderStorePacket 2181 [09:32:30]StoreOFDPacket docnum=2181 [09:32:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 57 B2 23 01 55 AB 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 08 00 00 35 04 06 00 44 F7 3A 00 F1 86 B9 04 88 70 B8 AE 13 E3 [09:32:30]CheckFolder [09:32:30]dirname=/storage/ofd_packets [09:32:30]CheckFolder done [09:32:30]ProducePacketName [09:32:30]name=ofd_packets/00002181 [09:32:30]NVStorageSaveData ofd_packets/00002181 [09:32:30]File name is /storage/ofd_packets/00002181 [09:32:30]Write 329 bytes [09:32:30]NVStorageSaveData done [09:32:30]OFDSenderStorePacket done [09:32:30]KKMCreateOFDPacket done [09:32:30]NVStorageSaveData kkm_last_timestamp [09:32:30]File name is /storage/kkm_last_timestamp [09:32:30]Write 4 bytes [09:32:30]NVStorageSaveData done [09:32:30]ExternCall_PrintAddStr [09:32:30]wPrintStart [09:32:30]Write to MH i2c: 01 00 00 72 74 E6 [09:32:30]OFD Sender: Processing packet 2181 [packets to send 1, broken 0] [09:32:30]ProducePacketName [09:32:30]name=ofd_packets/00002181 [09:32:30]OFD Sender: To server: pG, [09:32:30]CommunicateWithHost lk.salyk.kg:30040 [09:32:30]ConnectInit lk.salyk.kg [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: 01 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: 01 07 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: 01 07 00 72 74 00 00 00 00 00 FF 0F FB [09:32:30]RasterBufferAndPrint [09:32:30]line Счет N : (3)126470 [09:32:30]line ИНН: 02508201610067 [09:32:30]line Контрольно-Кассовый Чек [09:32:30]line ПРОДАЖА [09:32:30]line Товар: 4860019001414 [09:32:30]line Вода Боржоми 0,75л ПЭТ [09:32:30]line 1.000 * 127.00 [09:32:30]line = 127.00 [09:32:30]line НДС 12% НСП 1% [09:32:30]line > о реализуемом товаре [09:32:30]line ИТОГО: 127.00 [09:32:30]line НСП 1% : 1.12 [09:32:30]line НДС 12% : 13.49 [09:32:30]line Наличными: 127.00 [09:32:30]line Безнал.: 0.00 [09:32:30]line Место: АЗС № 127 "Партнер Нефть" [09:32:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:32:30]line СНО: Общий режим [09:32:30]line Чек 30 29.07.2024 09:32 [09:32:30]line Смена: 15 ФФД: 1.0 [09:32:30]line ЗНМ: 0300000161 [09:32:30]line РНМ: 0000000000189667 [09:32:30]line Версия ККМ: v1.0 [09:32:30]line ФМ: 0000000002094248 [09:32:30]line ФД: 2181 [09:32:30]line ФПД: 75828620751238 [09:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093238&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2181&fm=75828620751238&tin=02508201610067®Number=0000000000189667&sum=12700 [09:32:30]line 0 [09:32:30]Connected sock=9 [09:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 57 B2 23 01 55 AB 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 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 37 35 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 9C 31 00 00 00 00 13 04 06 00 9C 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 9C 31 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 85 08 00 00 35 04 06 00 44 F7 3A 00 F1 86 B9 04 88 70 B8 AE 13 E3 [09:32:30]written 0, free lines is 4095 [09:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 61 78 47 00 49 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 32 30 39 34 32 34 38 10 04 04 00 85 08 00 00 F4 03 04 00 23 0D A7 66 B6 04 01 00 00 FA DF D9 2D DB EE B3 CD [09:32:30]CommunicateWithHost err = 0 [09:32:30]CheckOFDResponse [09:32:30]1017 (14) - 77093643461234 [09:32:30]1041 (16) - 0000000002094248 [09:32:30]1040 (4) - 2181 [09:32:30]1012 (4) - 29.07.2024 03:31 [09:32:30]1206 (1) - 0 [09:32:30]OFD Sender: Remove packet 2181 [09:32:30]ProducePacketName [09:32:30]name=ofd_packets/00002181 [09:32:30]NVStorageDeleteData [09:32:31]Write to MH i2c: 01 00 00 9A 74 0E [09:32:31]Write i2c OK [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: 01 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: 01 07 00 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: 01 07 00 9A 74 00 00 00 00 00 15 0D 37 [09:32:31]RasterBufferAndPrint [09:32:31]line [09:32:31]line [09:32:31]line [09:32:31]line [09:32:31]line [09:32:31]written 0, free lines is 3360 [09:32:31]MH_Cut [09:32:31]Write to MH i2c: D1 01 00 A1 74 01 E7 [09:32:31]Write i2c OK [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: D1 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: D1 01 00 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: D1 01 00 A1 74 00 E6 [09:32:31]Write to MH i2c: 01 00 00 A2 74 16 [09:32:31]Write i2c OK [09:32:31]MH_I2C_Read... [09:32:31]OFD Sender: No OFD packet to send [09:32:31]*** Cut start [09:32:31]*** Partial cut [09:32:31]*** CUTSNS_PIN = 1 [09:32:31]*** CUTSNS_PIN = 0 [09:32:31]*** Brake cut motor [09:32:32]Read from MH i2c: 01 [09:32:32]MH_I2C_Read... [09:32:32]*** Stop cut motor [09:32:32]*** Cut end [09:32:32]Read from MH i2c: 01 07 00 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: 01 07 00 A2 74 00 00 00 00 00 FF 0F 2B [09:32:32]process_action close_receipt done [09:32:32]requested_data is exist [09:32:32]produce_requested_data [09:32:32]requested_item fm.sn is exist - process it [09:32:32]wFMCommunicate request_size=4 [09:32:32]MH_SAM_APDU [09:32:32]CAPDU: 80 11 00 00 [09:32:32]Write to MH i2c: E2 08 00 A3 74 80 11 00 00 00 00 00 00 91 [09:32:32]Write i2c OK [09:32:32]MH_I2C_Read... [09:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:32]Read from MH i2c: E2 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 17 00 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 17 00 A3 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E1 [09:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:32:32]wFMCommunicate OK [09:32:32]requested_item fd.num is exist - process it [09:32:32]SAM_PROTO_GetFieldsCounters [09:32:32]wFMCommunicate request_size=4 [09:32:32]MH_SAM_APDU [09:32:32]CAPDU: 80 13 00 00 [09:32:32]Write to MH i2c: E2 08 00 A4 74 80 13 00 00 00 00 00 00 94 [09:32:32]Write i2c OK [09:32:32]MH_I2C_Read... [09:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:32]Read from MH i2c: E2 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 62 00 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 62 00 A4 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 85 08 00 00 0E 04 04 00 0F 00 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 B4 [09:32:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 85 08 00 00 0E 04 04 00 0F 00 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 [09:32:32]wFMCommunicate OK [09:32:32]SAM_PROTO_GetFieldsCounters done [09:32:32]requested_item shift.num is exist - process it [09:32:32]requested_item shift.opened is exist - process it [09:32:32]req_shift_opened [09:32:32]FM_GetShiftState [09:32:32]SAM_PROTO_GetShiftState [09:32:32]wFMCommunicate request_size=4 [09:32:32]MH_SAM_APDU [09:32:32]CAPDU: 80 13 01 00 [09:32:32]Write to MH i2c: E2 08 00 A5 74 80 13 01 00 00 00 00 00 96 [09:32:32]Write i2c OK [09:32:32]MH_I2C_Read... [09:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:32]Read from MH i2c: E2 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 0E 00 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 0E 00 A5 74 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8F [09:32:32]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:32:32]wFMCommunicate OK [09:32:32]SAM_PROTO_GetShiftState done [09:32:32]FM_GetShiftState done [09:32:32]req_shift_opened done [09:32:32]requested_item shift.open_date is exist - process it [09:32:32]req_shift_open_date [09:32:32]req_shift_open_date done [09:32:32]produce_requested_data done [09:32:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2181,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:32:32]process_action_free close_receipt [09:32:32]json_value_free [09:32:32]json_value_free done [09:32:32]process_json_proto returns [09:32:32]Send response to host [09:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2181,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:32:32]free response buf [09:32:32]execute_script done [09:32:32]execute_script returns [09:32:32]free content buf [09:32:32]Sock 8.Close socket [09:32:32]Sock 8.Thread stoped [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:33]accept exits with 10 [09:33:33]New connection [09:33:33]New thread 3067460964 created [09:33:33]Thread 3067317604 joined [09:33:33]Waiting for new connection... [09:33:33] Sock 10.Parse request [09:33:33]Sock 10.Check first char [09:33:33]Sock 10.First char is OK [09:33:33]request: POST /json_proto HTTP/1.0 [09:33:33]Method: POST [09:33:33]URL: /json_proto [09:33:33]Method is POST - this is cgi request [09:33:33]url: /json_proto [09:33:33]query_string will be loaded in cgi processing [09:33:33]execute_cgi json_proto POST (null) [09:33:33]execute_cgi path=json_proto method=POST [09:33:33]POST find Content-Length [09:33:33]Host: 172.17.45.132:8080 [09:33:33]Content-Length: 622 [09:33:33]Content-Type: application/json [09:33:33] [09:33:33]POST finish read [09:33:33]Found Content-Length = 622 [09:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126471", "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" ] } } [09:33:33]execute_script... [09:33: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)126471", "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" ] } } [09:33:33]POST & json_proto [09:33:33]process_json_proto [09:33:33]json parsed OK: [09:33:33]protocol is kg_v1.0 [09:33:33]action value=close_receipt [09:33:33]process_action close_receipt [09:33:33]cmd_close_receipt [09:33:33]MH_GetDate [09:33:33]Write to MH i2c: F0 00 00 A6 74 09 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: F0 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: F0 09 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: F0 09 00 A6 74 00 F7 61 A7 66 E3 0B 90 66 5B [09:33:33]GetLastDocTimeStamp 1722245558 [09:33:33]current date 1722245623 [09:33:33]FM_GetShiftState [09:33:33]SAM_PROTO_GetShiftState [09:33:33]wFMCommunicate request_size=4 [09:33:33]MH_SAM_APDU [09:33:33]CAPDU: 80 13 01 00 [09:33:33]Write to MH i2c: E2 08 00 A7 74 80 13 01 00 00 00 00 00 98 [09:33:33]Write i2c OK [09:33:33]MH_I2C_Read... [09:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:33]Read from MH i2c: E2 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0E 00 [09:33:33]MH_I2C_Read... [09:33:33]Read from MH i2c: E2 0E 00 A7 74 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 91 [09:33:33]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:33:33]wFMCommunicate OK [09:33:33]SAM_PROTO_GetShiftState done [09:33:33]FM_GetShiftState done [09:33:33]opened in 1722213119 [09:33:33]opened+sec_in_day 1722299519 [09:33:33]quantity*price = 15000 [09:33:33]sum+1 = 15001 [09:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 31 29.07.2024 09:33 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2182 ФПД: 108228753533820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093343&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2182&fm=108228753533820&tin=02508201610067®Number=0000000000189667&sum=15000 0 [09:33:34]StoreToDocumentArchive [09:33:34]shift 15 fd 2182 [09:33:34]save to /storage/0015/doc_00002182 [09:33:34]save last doc name /storage/0015/doc_00002182 to /storage/kkm_last_doc_name [09:33:34]save OK [09:33:34]Clear old archive folders... [09:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:33:34]tlvbuf is 02198DA0 [09:33:34]SAM_PROTO_ClearQueue [09:33:34]wFMCommunicate request_size=4 [09:33:34]MH_SAM_APDU [09:33:34]CAPDU: 80 09 00 00 [09:33:34]Write to MH i2c: E2 08 00 B4 74 80 09 00 00 00 00 00 00 9A [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:34]Read from MH i2c: E2 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 03 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 03 00 B4 74 00 90 00 9C [09:33:34]RAPDU: 90 00 [09:33:34]wFMCommunicate OK [09:33:34]SAM_PROTO_ClearQueue done [09:33:34]KKMCreateOFDPacket [09:33:34]OFDProtocolAddRootSTLVToBuf [09:33:34]FM_MakeSignedData [09:33:34]FM_MakeSignedData [09:33:34]SAM_PROTO_SignData [09:33:34]wFMCommunicate request_size=4 [09:33:34]MH_SAM_APDU [09:33:34]CAPDU: 80 0D 01 02 [09:33:34]Write to MH i2c: E2 08 00 B5 74 80 0D 01 02 00 00 00 00 A2 [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:34]Read from MH i2c: E2 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 03 00 [09:33:34]MH_I2C_Read... [09:33:34]Read from MH i2c: E2 03 00 B5 74 00 90 00 9D [09:33:34]RAPDU: 90 00 [09:33:34]wFMCommunicate OK [09:33:34]wFMCommunicate request_size=255 [09:33:34]MH_SAM_APDU [09:33:34]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 1F 00 00 00 F4 03 04 00 F7 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [09:33:34]Write to MH i2c: E2 02 01 B6 74 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 1F 00 00 00 F4 03 04 00 F7 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 DE [09:33:34]Write i2c OK [09:33:34]MH_I2C_Read... [09:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:35]Read from MH i2c: E2 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 03 00 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 03 00 B6 74 00 90 00 9E [09:33:35]RAPDU: 90 00 [09:33:35]wFMCommunicate OK [09:33:35]wFMCommunicate request_size=33 [09:33:35]MH_SAM_APDU [09:33:35]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 08 00 00 35 04 06 00 62 6E F8 68 AB 7C [09:33:35]Write to MH i2c: E2 24 00 B7 74 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 08 00 00 35 04 06 00 62 6E F8 68 AB 7C 00 00 16 [09:33:35]Write i2c OK [09:33:35]MH_I2C_Read... [09:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:35]Read from MH i2c: E2 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 03 00 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 03 00 B7 74 00 90 00 9F [09:33:35]RAPDU: 90 00 [09:33:35]wFMCommunicate OK [09:33:35]wFMCommunicate request_size=4 [09:33:35]MH_SAM_APDU [09:33:35]CAPDU: 80 0D 03 02 [09:33:35]Write to MH i2c: E2 08 00 B8 74 80 0D 03 02 00 00 00 00 A7 [09:33:35]Write i2c OK [09:33:35]MH_I2C_Read... [09:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:35]Read from MH i2c: E2 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 0B 00 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 0B 00 B8 74 00 F2 20 CF 30 11 E1 D8 EC 90 00 6F [09:33:35]RAPDU: F2 20 CF 30 11 E1 D8 EC 90 00 [09:33:35]wFMCommunicate OK [09:33:35]SAM_PROTO_SignData done [09:33:35]FM_MakeSignedData done [09:33:35]CreateOFDProtocolMessage [09:33:35]wFMCommunicate request_size=4 [09:33:35]MH_SAM_APDU [09:33:35]CAPDU: 80 11 00 00 [09:33:35]Write to MH i2c: E2 08 00 B9 74 80 11 00 00 00 00 00 00 A7 [09:33:35]Write i2c OK [09:33:35]MH_I2C_Read... [09:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:35]Read from MH i2c: E2 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 17 00 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: E2 17 00 B9 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F7 [09:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:33:35]wFMCommunicate OK [09:33:35]CreateOFDProtocolMessage done [09:33:35]OFDSenderStorePacket 2182 [09:33:35]StoreOFDPacket docnum=2182 [09:33:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 31 C8 1E 01 AB D2 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 1F 00 00 00 F4 03 04 00 F7 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 08 00 00 35 04 06 00 62 6E F8 68 AB 7C F2 20 CF 30 11 E1 D8 EC [09:33:35]CheckFolder [09:33:35]dirname=/storage/ofd_packets [09:33:35]CheckFolder done [09:33:35]ProducePacketName [09:33:35]name=ofd_packets/00002182 [09:33:35]NVStorageSaveData ofd_packets/00002182 [09:33:35]File name is /storage/ofd_packets/00002182 [09:33:35]Write 324 bytes [09:33:35]NVStorageSaveData done [09:33:35]OFDSenderStorePacket done [09:33:35]KKMCreateOFDPacket done [09:33:35]NVStorageSaveData kkm_last_timestamp [09:33:35]File name is /storage/kkm_last_timestamp [09:33:35]Write 4 bytes [09:33:35]NVStorageSaveData done [09:33:35]ExternCall_PrintAddStr [09:33:35]wPrintStart [09:33:35]Write to MH i2c: 01 00 00 BA 74 2E [09:33:35]Write i2c OK [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: 01 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: 01 07 00 [09:33:35]MH_I2C_Read... [09:33:35]Read from MH i2c: 01 07 00 BA 74 00 00 00 00 00 FF 0F 43 [09:33:35]RasterBufferAndPrint [09:33:35]line Счет N : (3)126471 [09:33:35]line ИНН: 02508201610067 [09:33:35]line Контрольно-Кассовый Чек [09:33:35]line ПРОДАЖА [09:33:35]line Товар: 4640030091645 [09:33:35]line Сигареты ESSE Exchange M [09:33:35]line 1.000 * 150.00 [09:33:35]line = 150.00 [09:33:35]line НДС 12% НСП 1% [09:33:35]line > о реализуемом товаре [09:33:35]line ИТОГО: 150.00 [09:33:35]line НСП 1% : 1.33 [09:33:35]line НДС 12% : 15.93 [09:33:35]line Наличными: 150.00 [09:33:35]line Безнал.: 0.00 [09:33:35]line Место: АЗС № 127 "Партнер Нефть" [09:33:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:33:35]line СНО: Общий режим [09:33:35]line Чек 31 29.07.2024 09:33 [09:33:35]line Смена: 15 ФФД: 1.0 [09:33:35]line ЗНМ: 0300000161 [09:33:35]line РНМ: 0000000000189667 [09:33:35]line Версия ККМ: v1.0 [09:33:35]line ФМ: 0000000002094248 [09:33:35]line ФД: 2182 [09:33:35]line ФПД: 108228753533820 [09:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093343&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2182&fm=108228753533820&tin=02508201610067®Number=0000000000189667&sum=15000 [09:33:35]line 0 [09:33:35]OFD Sender: Processing packet 2182 [packets to send 1, broken 0] [09:33:35]ProducePacketName [09:33:35]name=ofd_packets/00002182 [09:33:35]OFD Sender: To server: pG, [09:33:35]CommunicateWithHost lk.salyk.kg:30040 [09:33:35]ConnectInit lk.salyk.kg [09:33:35]written 0, free lines is 4095 [09:33:35]Connected sock=8 [09:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 31 C8 1E 01 AB D2 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 1F 00 00 00 F4 03 04 00 F7 61 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 08 00 00 35 04 06 00 62 6E F8 68 AB 7C F2 20 CF 30 11 E1 D8 EC [09:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8F FA 47 00 4A E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 86 08 00 00 F4 03 04 00 64 0D A7 66 B6 04 01 00 00 FA 4B 67 C7 57 25 16 B1 [09:33:36]CommunicateWithHost err = 0 [09:33:36]CheckOFDResponse [09:33:36]1017 (14) - 77093643461234 [09:33:36]1041 (16) - 0000000002094248 [09:33:36]1040 (4) - 2182 [09:33:36]1012 (4) - 29.07.2024 03:32 [09:33:36]1206 (1) - 0 [09:33:36]OFD Sender: Remove packet 2182 [09:33:36]ProducePacketName [09:33:36]name=ofd_packets/00002182 [09:33:36]NVStorageDeleteData [09:33:36]Write to MH i2c: 01 00 00 E2 74 56 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 07 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 07 00 E2 74 00 00 00 00 00 0D 0D 77 [09:33:36]RasterBufferAndPrint [09:33:36]line [09:33:36]line [09:33:36]line [09:33:36]line [09:33:36]line [09:33:36]written 0, free lines is 3350 [09:33:36]MH_Cut [09:33:36]Write to MH i2c: D1 01 00 E9 74 01 2F [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: D1 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: D1 01 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: D1 01 00 E9 74 00 2E [09:33:36]Write to MH i2c: 01 00 00 EA 74 5E [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]OFD Sender: No OFD packet to send [09:33:36]*** Cut start [09:33:36]*** Partial cut [09:33:36]*** CUTSNS_PIN = 1 [09:33:36]*** CUTSNS_PIN = 0 [09:33:37]*** Brake cut motor [09:33:37]Read from MH i2c: 01 [09:33:37]MH_I2C_Read... [09:33:37]*** Stop cut motor [09:33:37]*** Cut end [09:33:37]Read from MH i2c: 01 07 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 07 00 EA 74 00 00 00 00 00 FF 0F 73 [09:33:37]process_action close_receipt done [09:33:37]requested_data is exist [09:33:37]produce_requested_data [09:33:37]requested_item fm.sn is exist - process it [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 11 00 00 [09:33:37]Write to MH i2c: E2 08 00 EB 74 80 11 00 00 00 00 00 00 D9 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 EB 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 29 [09:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:33:37]wFMCommunicate OK [09:33:37]requested_item fd.num is exist - process it [09:33:37]SAM_PROTO_GetFieldsCounters [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 13 00 00 [09:33:37]Write to MH i2c: E2 08 00 EC 74 80 13 00 00 00 00 00 00 DC [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 62 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 62 00 EC 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 86 08 00 00 0E 04 04 00 0F 00 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 00 [09:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 86 08 00 00 0E 04 04 00 0F 00 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 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_GetFieldsCounters done [09:33:37]requested_item shift.num is exist - process it [09:33:37]requested_item shift.opened is exist - process it [09:33:37]req_shift_opened [09:33:37]FM_GetShiftState [09:33:37]SAM_PROTO_GetShiftState [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 13 01 00 [09:33:37]Write to MH i2c: E2 08 00 ED 74 80 13 01 00 00 00 00 00 DE [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0E 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0E 00 ED 74 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D7 [09:33:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_GetShiftState done [09:33:37]FM_GetShiftState done [09:33:37]req_shift_opened done [09:33:37]requested_item shift.open_date is exist - process it [09:33:37]req_shift_open_date [09:33:37]req_shift_open_date done [09:33:37]produce_requested_data done [09:33:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2182,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:33:37]process_action_free close_receipt [09:33:37]json_value_free [09:33:37]json_value_free done [09:33:37]process_json_proto returns [09:33:37]Send response to host [09:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2182,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:33:37]free response buf [09:33:37]execute_script done [09:33:37]execute_script returns [09:33:37]free content buf [09:33:37]Sock 10.Close socket [09:33:37]Sock 10.Thread stoped [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:33]accept exits with 9 [09:58:33]New connection [09:58:33]New thread 3067317604 created [09:58:33]Thread 3067460964 joined [09:58:33]Waiting for new connection... [09:58:33] Sock 9.Parse request [09:58:33]Sock 9.Check first char [09:58:33]Sock 9.First char is OK [09:58:33]request: POST /json_proto HTTP/1.0 [09:58:33]Method: POST [09:58:33]URL: /json_proto [09:58:33]Method is POST - this is cgi request [09:58:33]url: /json_proto [09:58:33]query_string will be loaded in cgi processing [09:58:33]execute_cgi json_proto POST (null) [09:58:33]execute_cgi path=json_proto method=POST [09:58:33]POST find Content-Length [09:58:33]Host: 172.17.45.132:8080 [09:58:33]Content-Length: 652 [09:58:33]Content-Type: application/json [09:58:33] [09:58:33]POST finish read [09:58:33]Found Content-Length = 652 [09:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126472", "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 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:33]execute_script... [09:58:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126472", "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 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:33]POST & json_proto [09:58:33]process_json_proto [09:58:33]json parsed OK: [09:58:33]protocol is kg_v1.0 [09:58:33]action value=close_receipt [09:58:33]process_action close_receipt [09:58:33]cmd_close_receipt [09:58:33]MH_GetDate [09:58:33]Write to MH i2c: F0 00 00 EE 74 51 [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: F0 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: F0 09 00 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: F0 09 00 EE 74 00 D3 67 A7 66 E3 0B 90 66 85 [09:58:33]GetLastDocTimeStamp 1722245623 [09:58:33]current date 1722247123 [09:58:33]FM_GetShiftState [09:58:33]SAM_PROTO_GetShiftState [09:58:33]wFMCommunicate request_size=4 [09:58:33]MH_SAM_APDU [09:58:33]CAPDU: 80 13 01 00 [09:58:33]Write to MH i2c: E2 08 00 EF 74 80 13 01 00 00 00 00 00 E0 [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:33]Read from MH i2c: E2 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: E2 0E 00 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: E2 0E 00 EF 74 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D9 [09:58:33]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:58:33]wFMCommunicate OK [09:58:33]SAM_PROTO_GetShiftState done [09:58:33]FM_GetShiftState done [09:58:33]opened in 1722213119 [09:58:33]opened+sec_in_day 1722299519 [09:58:33]quantity*price = 25000 [09:58:33]sum+1 = 25001 [09:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 32 29.07.2024 09:58 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2183 ФПД: 23609086195539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095843&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2183&fm=23609086195539&tin=02508201610067®Number=0000000000189667&sum=25000 0 [09:58:34]StoreToDocumentArchive [09:58:34]shift 15 fd 2183 [09:58:34]save to /storage/0015/doc_00002183 [09:58:34]save last doc name /storage/0015/doc_00002183 to /storage/kkm_last_doc_name [09:58:34]save OK [09:58:34]Clear old archive folders... [09:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=284 [09:58:34]tlvbuf is 02063DE0 [09:58:34]SAM_PROTO_ClearQueue [09:58:34]wFMCommunicate request_size=4 [09:58:34]MH_SAM_APDU [09:58:34]CAPDU: 80 09 00 00 [09:58:34]Write to MH i2c: E2 08 00 FC 74 80 09 00 00 00 00 00 00 E2 [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:34]Read from MH i2c: E2 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 03 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 03 00 FC 74 00 90 00 E4 [09:58:34]RAPDU: 90 00 [09:58:34]wFMCommunicate OK [09:58:34]SAM_PROTO_ClearQueue done [09:58:34]KKMCreateOFDPacket [09:58:34]OFDProtocolAddRootSTLVToBuf [09:58:34]FM_MakeSignedData [09:58:34]FM_MakeSignedData [09:58:34]SAM_PROTO_SignData [09:58:34]wFMCommunicate request_size=4 [09:58:34]MH_SAM_APDU [09:58:34]CAPDU: 80 0D 01 02 [09:58:34]Write to MH i2c: E2 08 00 FD 74 80 0D 01 02 00 00 00 00 EA [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:34]Read from MH i2c: E2 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 03 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 03 00 FD 74 00 90 00 E5 [09:58:34]RAPDU: 90 00 [09:58:34]wFMCommunicate OK [09:58:34]wFMCommunicate request_size=255 [09:58:34]MH_SAM_APDU [09:58:34]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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 67 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [09:58:34]Write to MH i2c: E2 02 01 FE 74 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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 67 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 AC [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 FE 74 00 90 00 E6 [09:58:35]RAPDU: 90 00 [09:58:35]wFMCommunicate OK [09:58:35]wFMCommunicate request_size=43 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 08 00 00 35 04 06 00 15 78 EB 32 37 53 [09:58:35]Write to MH i2c: E2 2E 00 FF 74 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 08 00 00 35 04 06 00 15 78 EB 32 37 53 00 00 95 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 FF 74 00 90 00 E7 [09:58:35]RAPDU: 90 00 [09:58:35]wFMCommunicate OK [09:58:35]wFMCommunicate request_size=4 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 0D 03 02 [09:58:35]Write to MH i2c: E2 08 00 00 75 80 0D 03 02 00 00 00 00 F0 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 0B 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 0B 00 00 75 00 A0 98 CD E0 3B 78 8A D8 90 00 EB [09:58:35]RAPDU: A0 98 CD E0 3B 78 8A D8 90 00 [09:58:35]wFMCommunicate OK [09:58:35]SAM_PROTO_SignData done [09:58:35]FM_MakeSignedData done [09:58:35]CreateOFDProtocolMessage [09:58:35]wFMCommunicate request_size=4 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 11 00 00 [09:58:35]Write to MH i2c: E2 08 00 01 75 80 11 00 00 00 00 00 00 F0 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 17 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 17 00 01 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [09:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:58:35]wFMCommunicate OK [09:58:35]CreateOFDProtocolMessage done [09:58:35]OFDSenderStorePacket 2183 [09:58:35]StoreOFDPacket docnum=2183 [09:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 BD 6B 28 01 D2 85 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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 67 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 08 00 00 35 04 06 00 15 78 EB 32 37 53 A0 98 CD E0 3B 78 8A D8 [09:58:35]CheckFolder [09:58:35]dirname=/storage/ofd_packets [09:58:35]CheckFolder done [09:58:35]ProducePacketName [09:58:35]name=ofd_packets/00002183 [09:58:35]NVStorageSaveData ofd_packets/00002183 [09:58:35]File name is /storage/ofd_packets/00002183 [09:58:35]Write 334 bytes [09:58:35]NVStorageSaveData done [09:58:35]OFDSenderStorePacket done [09:58:35]KKMCreateOFDPacket done [09:58:35]NVStorageSaveData kkm_last_timestamp [09:58:35]File name is /storage/kkm_last_timestamp [09:58:35]Write 4 bytes [09:58:35]NVStorageSaveData done [09:58:35]ExternCall_PrintAddStr [09:58:35]wPrintStart [09:58:35]Write to MH i2c: 01 00 00 02 75 77 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: 01 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: 01 07 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: 01 07 00 02 75 00 00 00 00 00 FF 0F 8C [09:58:35]RasterBufferAndPrint [09:58:35]line Счет N : (3)126472 [09:58:35]line ИНН: 02508201610067 [09:58:35]line Контрольно-Кассовый Чек [09:58:35]line ПРОДАЖА [09:58:35]line Товар: 2000036190018 [09:58:35]line Кофе Американо XL(GABB TRADE) [09:58:35]line 2.000 * 125.00 [09:58:35]line = 250.00 [09:58:35]line НДС 12% НСП 1% [09:58:35]line > о реализуемом товаре [09:58:35]line ИТОГО: 250.00 [09:58:35]line НСП 1% : 2.21 [09:58:35]line НДС 12% : 26.55 [09:58:35]line Наличными: 250.00 [09:58:35]line Безнал.: 0.00 [09:58:35]line Место: АЗС № 127 "Партнер Нефть" [09:58:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [09:58:35]line СНО: Общий режим [09:58:35]line Чек 32 29.07.2024 09:58 [09:58:35]line Смена: 15 ФФД: 1.0 [09:58:35]line ЗНМ: 0300000161 [09:58:35]line РНМ: 0000000000189667 [09:58:35]line Версия ККМ: v1.0 [09:58:35]line ФМ: 0000000002094248 [09:58:35]line ФД: 2183 [09:58:35]line ФПД: 23609086195539 [09:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095843&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2183&fm=23609086195539&tin=02508201610067®Number=0000000000189667&sum=25000 [09:58:35]line 0 [09:58:35]OFD Sender: Processing packet 2183 [packets to send 1, broken 0] [09:58:35]ProducePacketName [09:58:35]name=ofd_packets/00002183 [09:58:35]OFD Sender: To server: pG, [09:58:35]CommunicateWithHost lk.salyk.kg:30040 [09:58:35]ConnectInit lk.salyk.kg [09:58:35]written 0, free lines is 4095 [09:58:35]Connected sock=10 [09:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 BD 6B 28 01 D2 85 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 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 67 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 08 00 00 35 04 06 00 15 78 EB 32 37 53 A0 98 CD E0 3B 78 8A D8 [09:58:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 81 AE 47 00 A1 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 87 08 00 00 F4 03 04 00 40 13 A7 66 B6 04 01 00 00 4D 3B F6 72 3E D7 70 6F [09:58:35]CommunicateWithHost err = 0 [09:58:35]CheckOFDResponse [09:58:35]1017 (14) - 77093643461234 [09:58:35]1041 (16) - 0000000002094248 [09:58:35]1040 (4) - 2183 [09:58:35]1012 (4) - 29.07.2024 03:57 [09:58:35]1206 (1) - 0 [09:58:35]OFD Sender: Remove packet 2183 [09:58:35]ProducePacketName [09:58:35]name=ofd_packets/00002183 [09:58:35]NVStorageDeleteData [09:58:35]Write to MH i2c: 01 00 00 2B 75 A0 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: 01 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: 01 07 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: 01 07 00 2B 75 00 00 00 00 00 0F 0D C3 [09:58:35]RasterBufferAndPrint [09:58:35]line [09:58:35]line [09:58:35]line [09:58:35]line [09:58:35]line [09:58:35]written 0, free lines is 3349 [09:58:35]MH_Cut [09:58:35]Write to MH i2c: D1 01 00 32 75 01 79 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: D1 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: D1 01 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: D1 01 00 32 75 00 78 [09:58:35]Write to MH i2c: 01 00 00 33 75 A8 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:36]OFD Sender: No OFD packet to send [09:58:36]*** Cut start [09:58:36]*** Partial cut [09:58:36]*** CUTSNS_PIN = 1 [09:58:36]*** CUTSNS_PIN = 0 [09:58:36]*** Brake cut motor [09:58:37]Read from MH i2c: 01 [09:58:37]MH_I2C_Read... [09:58:37]*** Stop cut motor [09:58:37]*** Cut end [09:58:37]Read from MH i2c: 01 07 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: 01 07 00 33 75 00 00 00 00 00 FF 0F BD [09:58:37]process_action close_receipt done [09:58:37]requested_data is exist [09:58:37]produce_requested_data [09:58:37]requested_item fm.sn is exist - process it [09:58:37]wFMCommunicate request_size=4 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 11 00 00 [09:58:37]Write to MH i2c: E2 08 00 34 75 80 11 00 00 00 00 00 00 23 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 17 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 17 00 34 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 73 [09:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [09:58:37]wFMCommunicate OK [09:58:37]requested_item fd.num is exist - process it [09:58:37]SAM_PROTO_GetFieldsCounters [09:58:37]wFMCommunicate request_size=4 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 13 00 00 [09:58:37]Write to MH i2c: E2 08 00 35 75 80 13 00 00 00 00 00 00 26 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 62 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 62 00 35 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 87 08 00 00 0E 04 04 00 0F 00 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 4E [09:58:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 87 08 00 00 0E 04 04 00 0F 00 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 [09:58:37]wFMCommunicate OK [09:58:37]SAM_PROTO_GetFieldsCounters done [09:58:37]requested_item shift.num is exist - process it [09:58:37]requested_item shift.opened is exist - process it [09:58:37]req_shift_opened [09:58:37]FM_GetShiftState [09:58:37]SAM_PROTO_GetShiftState [09:58:37]wFMCommunicate request_size=4 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 13 01 00 [09:58:37]Write to MH i2c: E2 08 00 36 75 80 13 01 00 00 00 00 00 28 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 0E 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 0E 00 36 75 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 21 [09:58:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [09:58:37]wFMCommunicate OK [09:58:37]SAM_PROTO_GetShiftState done [09:58:37]FM_GetShiftState done [09:58:37]req_shift_opened done [09:58:37]requested_item shift.open_date is exist - process it [09:58:37]req_shift_open_date [09:58:37]req_shift_open_date done [09:58:37]produce_requested_data done [09:58:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2183,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [09:58:37]process_action_free close_receipt [09:58:37]json_value_free [09:58:37]json_value_free done [09:58:37]process_json_proto returns [09:58:37]Send response to host [09:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2183,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [09:58:37]free response buf [09:58:37]execute_script done [09:58:37]execute_script returns [09:58:37]free content buf [09:58:37]Sock 9.Close socket [09:58:37]Sock 9.Thread stoped [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:11]accept exits with 8 [10:02:11]New connection [10:02:11]New thread 3067460964 created [10:02:11]Thread 3067317604 joined [10:02:11]Waiting for new connection... [10:02:11] Sock 8.Parse request [10:02:11]Sock 8.Check first char [10:02:11]Sock 8.First char is OK [10:02:11]request: POST /json_proto HTTP/1.0 [10:02:11]Method: POST [10:02:11]URL: /json_proto [10:02:11]Method is POST - this is cgi request [10:02:11]url: /json_proto [10:02:11]query_string will be loaded in cgi processing [10:02:11]execute_cgi json_proto POST (null) [10:02:11]execute_cgi path=json_proto method=POST [10:02:11]POST find Content-Length [10:02:11]Host: 172.17.45.132:8080 [10:02:11]Content-Length: 677 [10:02:11]Content-Type: application/json [10:02:11] [10:02:11]POST finish read [10:02:11]Found Content-Length = 677 [10:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:11]execute_script... [10:02:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:11]POST & json_proto [10:02:11]process_json_proto [10:02:11]json parsed OK: [10:02:11]protocol is kg_v1.0 [10:02:11]action value=close_receipt [10:02:11]process_action close_receipt [10:02:11]cmd_close_receipt [10:02:11]MH_GetDate [10:02:11]Write to MH i2c: F0 00 00 37 75 9B [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 09 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: F0 09 00 37 75 00 AE 68 A7 66 E3 0B 90 66 AB [10:02:11]GetLastDocTimeStamp 1722247123 [10:02:11]current date 1722247342 [10:02:11]FM_GetShiftState [10:02:11]SAM_PROTO_GetShiftState [10:02:11]wFMCommunicate request_size=4 [10:02:11]MH_SAM_APDU [10:02:11]CAPDU: 80 13 01 00 [10:02:11]Write to MH i2c: E2 08 00 38 75 80 13 01 00 00 00 00 00 2A [10:02:11]Write i2c OK [10:02:11]MH_I2C_Read... [10:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:11]Read from MH i2c: E2 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0E 00 [10:02:11]MH_I2C_Read... [10:02:11]Read from MH i2c: E2 0E 00 38 75 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 23 [10:02:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [10:02:11]wFMCommunicate OK [10:02:11]SAM_PROTO_GetShiftState done [10:02:11]FM_GetShiftState done [10:02:11]opened in 1722213119 [10:02:11]opened+sec_in_day 1722299519 [10:02:11]quantity*price = 50036 [10:02:11]sum+1 = 50037 [10:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 33 29.07.2024 10:02 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2184 ФПД: 260494187097588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100222&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2184&fm=260494187097588&tin=02508201610067®Number=0000000000189667&sum=50000 [10:02:12]StoreToDocumentArchive [10:02:12]shift 15 fd 2184 [10:02:12]save to /storage/0015/doc_00002184 [10:02:12]save last doc name /storage/0015/doc_00002184 to /storage/kkm_last_doc_name [10:02:12]save OK [10:02:12]Clear old archive folders... [10:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:12]tlvbuf is 01F48ED0 [10:02:12]SAM_PROTO_ClearQueue [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 09 00 00 [10:02:12]Write to MH i2c: E2 08 00 45 75 80 09 00 00 00 00 00 00 2C [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 45 75 00 90 00 2E [10:02:12]RAPDU: 90 00 [10:02:12]wFMCommunicate OK [10:02:12]SAM_PROTO_ClearQueue done [10:02:12]KKMCreateOFDPacket [10:02:12]OFDProtocolAddRootSTLVToBuf [10:02:12]FM_MakeSignedData [10:02:12]FM_MakeSignedData [10:02:12]SAM_PROTO_SignData [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 0D 01 02 [10:02:12]Write to MH i2c: E2 08 00 46 75 80 0D 01 02 00 00 00 00 34 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 03 00 46 75 00 90 00 2F [10:02:12]RAPDU: 90 00 [10:02:12]wFMCommunicate OK [10:02:12]wFMCommunicate request_size=255 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AE 68 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 08 00 00 35 04 06 00 EC [10:02:12]Write to MH i2c: E2 02 01 47 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AE 68 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 08 00 00 35 04 06 00 EC 00 00 88 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 47 75 00 90 00 30 [10:02:13]RAPDU: 90 00 [10:02:13]wFMCommunicate OK [10:02:13]wFMCommunicate request_size=10 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 0D 02 02 05 EB 07 7C ED F4 [10:02:13]Write to MH i2c: E2 0D 00 48 75 80 0D 02 02 05 00 EB 07 7C ED F4 00 00 90 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 03 00 48 75 00 90 00 31 [10:02:13]RAPDU: 90 00 [10:02:13]wFMCommunicate OK [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 0D 03 02 [10:02:13]Write to MH i2c: E2 08 00 49 75 80 0D 03 02 00 00 00 00 39 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0B 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 0B 00 49 75 00 95 E3 6D B0 EF 77 41 8D 90 00 03 [10:02:13]RAPDU: 95 E3 6D B0 EF 77 41 8D 90 00 [10:02:13]wFMCommunicate OK [10:02:13]SAM_PROTO_SignData done [10:02:13]FM_MakeSignedData done [10:02:13]CreateOFDProtocolMessage [10:02:13]wFMCommunicate request_size=4 [10:02:13]MH_SAM_APDU [10:02:13]CAPDU: 80 11 00 00 [10:02:13]Write to MH i2c: E2 08 00 4A 75 80 11 00 00 00 00 00 00 39 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:13]Read from MH i2c: E2 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 17 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: E2 17 00 4A 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [10:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:02:13]wFMCommunicate OK [10:02:13]CreateOFDProtocolMessage done [10:02:13]OFDSenderStorePacket 2184 [10:02:13]StoreOFDPacket docnum=2184 [10:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 92 74 07 01 A1 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AE 68 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 08 00 00 35 04 06 00 EC EB 07 7C ED F4 95 E3 6D B0 EF 77 41 8D [10:02:13]CheckFolder [10:02:13]dirname=/storage/ofd_packets [10:02:13]CheckFolder done [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00002184 [10:02:13]NVStorageSaveData ofd_packets/00002184 [10:02:13]File name is /storage/ofd_packets/00002184 [10:02:13]Write 301 bytes [10:02:13]NVStorageSaveData done [10:02:13]OFDSenderStorePacket done [10:02:13]KKMCreateOFDPacket done [10:02:13]NVStorageSaveData kkm_last_timestamp [10:02:13]File name is /storage/kkm_last_timestamp [10:02:13]Write 4 bytes [10:02:13]NVStorageSaveData done [10:02:13]ExternCall_PrintAddStr [10:02:13]wPrintStart [10:02:13]Write to MH i2c: 01 00 00 4B 75 C0 [10:02:13]Write i2c OK [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 [10:02:13]MH_I2C_Read... [10:02:13]Read from MH i2c: 01 07 00 4B 75 00 00 00 00 00 FF 0F D5 [10:02:13]RasterBufferAndPrint [10:02:13]line Счет N : (1)609712 [10:02:13]line ИНН: 02508201610067 [10:02:13]line Контрольно-Кассовый Чек [10:02:13]line ПРОДАЖА [10:02:13]line ТРК (МРК, ГНК) : 52 [10:02:13]line Товар: 2710124130 [10:02:13]line Аи-92-К-2 [10:02:13]line 7.380 * 67.80 [10:02:13]line = 500.36 [10:02:13]line НДС 12% НСП 1% [10:02:13]line > о реализуемом товаре [10:02:13]line ОКРУГЛЕНИЕ: -0.36 [10:02:13]line ИТОГО: 500.00 [10:02:13]line Внесено: 500.00 [10:02:13]line СДАЧА: 0.00 [10:02:13]line НСП 1% : 4.43 [10:02:13]line НДС 12% : 53.14 [10:02:13]line Наличными: 500.00 [10:02:13]line Безнал.: 0.00 [10:02:13]line Место: АЗС № 127 "Партнер Нефть" [10:02:13]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:02:13]line СНО: Общий режим [10:02:13]line Чек 33 29.07.2024 10:02 [10:02:13]line Смена: 15 ФФД: 1.0 [10:02:13]line ЗНМ: 0300000161 [10:02:13]line РНМ: 0000000000189667 [10:02:13]line Версия ККМ: v1.0 [10:02:13]line ФМ: 0000000002094248 [10:02:13]line ФД: 2184 [10:02:13]line ФПД: 260494187097588 [10:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100222&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2184&fm=260494187097588&tin=02508201610067®Number=0000000000189667&sum=50000 [10:02:13]OFD Sender: Processing packet 2184 [packets to send 1, broken 0] [10:02:13]ProducePacketName [10:02:13]name=ofd_packets/00002184 [10:02:13]OFD Sender: To server: pG, [10:02:13]CommunicateWithHost lk.salyk.kg:30040 [10:02:13]ConnectInit lk.salyk.kg [10:02:13]written 0, free lines is 4095 [10:02:13]Connected sock=10 [10:02:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 92 74 07 01 A1 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AE 68 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 88 08 00 00 35 04 06 00 EC EB 07 7C ED F4 95 E3 6D B0 EF 77 41 8D [10:02:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AB 63 47 00 6F 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 32 30 39 34 32 34 38 10 04 04 00 88 08 00 00 F4 03 04 00 1B 14 A7 66 B6 04 01 00 00 57 1D A9 54 EC 8E 19 3C [10:02:14]CommunicateWithHost err = 0 [10:02:14]CheckOFDResponse [10:02:14]1017 (14) - 77093643461234 [10:02:14]1041 (16) - 0000000002094248 [10:02:14]1040 (4) - 2184 [10:02:14]1012 (4) - 29.07.2024 04:01 [10:02:14]1206 (1) - 0 [10:02:14]OFD Sender: Remove packet 2184 [10:02:14]ProducePacketName [10:02:14]name=ofd_packets/00002184 [10:02:14]NVStorageDeleteData [10:02:14]Write to MH i2c: 01 00 00 76 75 EB [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 07 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: 01 07 00 76 75 00 00 00 00 00 ED 0C EB [10:02:14]RasterBufferAndPrint [10:02:14]line [10:02:14]line [10:02:14]line [10:02:14]line [10:02:14]line [10:02:14]written 0, free lines is 3315 [10:02:14]MH_Cut [10:02:14]Write to MH i2c: D1 01 00 7D 75 01 C4 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: D1 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: D1 01 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: D1 01 00 7D 75 00 C3 [10:02:14]Write to MH i2c: 01 00 00 7E 75 F3 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]OFD Sender: No OFD packet to send [10:02:14]*** Cut start [10:02:14]*** Partial cut [10:02:14]*** CUTSNS_PIN = 1 [10:02:14]*** CUTSNS_PIN = 0 [10:02:15]*** Brake cut motor [10:02:15]Read from MH i2c: 01 [10:02:15]MH_I2C_Read... [10:02:15]*** Stop cut motor [10:02:15]*** Cut end [10:02:15]Read from MH i2c: 01 07 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: 01 07 00 7E 75 00 00 00 00 00 FF 0F 08 [10:02:15]process_action close_receipt done [10:02:15]requested_data is exist [10:02:15]produce_requested_data [10:02:15]requested_item fm.sn is exist - process it [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 11 00 00 [10:02:15]Write to MH i2c: E2 08 00 7F 75 80 11 00 00 00 00 00 00 6E [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 17 00 7F 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BE [10:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:02:15]wFMCommunicate OK [10:02:15]requested_item fd.num is exist - process it [10:02:15]SAM_PROTO_GetFieldsCounters [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 00 00 [10:02:15]Write to MH i2c: E2 08 00 80 75 80 13 00 00 00 00 00 00 71 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 62 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 62 00 80 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 88 08 00 00 0E 04 04 00 0F 00 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 9D [10:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 88 08 00 00 0E 04 04 00 0F 00 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 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetFieldsCounters done [10:02:15]requested_item shift.num is exist - process it [10:02:15]requested_item shift.opened is exist - process it [10:02:15]req_shift_opened [10:02:15]FM_GetShiftState [10:02:15]SAM_PROTO_GetShiftState [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 01 00 [10:02:15]Write to MH i2c: E2 08 00 81 75 80 13 01 00 00 00 00 00 73 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 81 75 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6C [10:02:15]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetShiftState done [10:02:15]FM_GetShiftState done [10:02:15]req_shift_opened done [10:02:15]requested_item shift.open_date is exist - process it [10:02:15]req_shift_open_date [10:02:15]req_shift_open_date done [10:02:15]produce_requested_data done [10:02:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2184,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [10:02:15]process_action_free close_receipt [10:02:15]json_value_free [10:02:15]json_value_free done [10:02:15]process_json_proto returns [10:02:15]Send response to host [10:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2184,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [10:02:15]free response buf [10:02:15]execute_script done [10:02:15]execute_script returns [10:02:15]free content buf [10:02:15]Sock 8.Close socket [10:02:15]Sock 8.Thread stoped [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:19:43]ConnectInit Can't connect to host [10:19:46]ConnectInit Can't take IP for lk.salyk.kg [10:19:46]CommunicateWithHost connect error [10:19:46]CommunicateWithHost err = -1 [10:19:46]OFD Sender: Server communicate error [10:19:51]OFD Sender: Processing packet 2185 [packets to send 1, broken 0] [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00002185 [10:19:51]OFD Sender: To server: pG, [10:19:51]CommunicateWithHost lk.salyk.kg:30040 [10:19:51]ConnectInit lk.salyk.kg [10:19:52]Connected sock=8 [10:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 0B 20 21 01 6C 14 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 9A 6B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 89 08 00 00 35 04 06 00 D0 05 0A 7E 9A BF 99 4B 87 5F 06 10 2F D3 [10:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CB F0 47 00 01 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 32 30 39 34 32 34 38 10 04 04 00 89 08 00 00 F4 03 04 00 3D 18 A7 66 B6 04 01 00 00 72 CC FA 11 D8 3D 0A 3A [10:19:52]CommunicateWithHost err = 0 [10:19:52]CheckOFDResponse [10:19:52]1017 (14) - 77093643461234 [10:19:52]1041 (16) - 0000000002094248 [10:19:52]1040 (4) - 2185 [10:19:52]1012 (4) - 29.07.2024 04:19 [10:19:52]1206 (1) - 0 [10:19:52]OFD Sender: Remove packet 2185 [10:19:52]ProducePacketName [10:19:52]name=ofd_packets/00002185 [10:19:52]NVStorageDeleteData [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:43]accept exits with 10 [10:27:43]New connection [10:27:43]New thread 3067460964 created [10:27:43]Thread 3067317604 joined [10:27:43]Waiting for new connection... [10:27:43] Sock 10.Parse request [10:27:43]Sock 10.Check first char [10:27:43]Sock 10.First char is OK [10:27:43]request: POST /json_proto HTTP/1.0 [10:27:43]Method: POST [10:27:43]URL: /json_proto [10:27:43]Method is POST - this is cgi request [10:27:43]url: /json_proto [10:27:43]query_string will be loaded in cgi processing [10:27:43]execute_cgi json_proto POST (null) [10:27:43]execute_cgi path=json_proto method=POST [10:27:43]POST find Content-Length [10:27:43]Host: 172.17.45.132:8080 [10:27:43]Content-Length: 614 [10:27:43]Content-Type: application/json [10:27:43] [10:27:43]POST finish read [10:27:43]Found Content-Length = 614 [10:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126474", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:43]execute_script... [10:27: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)126474", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:43]POST & json_proto [10:27:43]process_json_proto [10:27:43]json parsed OK: [10:27:43]protocol is kg_v1.0 [10:27:43]action value=close_receipt [10:27:43]process_action close_receipt [10:27:43]cmd_close_receipt [10:27:43]MH_GetDate [10:27:43]Write to MH i2c: F0 00 00 CA 75 2E [10:27:43]Write i2c OK [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 09 00 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 09 00 CA 75 00 A9 6E A7 66 E3 0B 90 66 3F [10:27:43]GetLastDocTimeStamp 1722248090 [10:27:43]current date 1722248873 [10:27:43]FM_GetShiftState [10:27:43]SAM_PROTO_GetShiftState [10:27:43]wFMCommunicate request_size=4 [10:27:43]MH_SAM_APDU [10:27:43]CAPDU: 80 13 01 00 [10:27:43]Write to MH i2c: E2 08 00 CB 75 80 13 01 00 00 00 00 00 BD [10:27:43]Write i2c OK [10:27:43]MH_I2C_Read... [10:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:43]Read from MH i2c: E2 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: E2 0E 00 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: E2 0E 00 CB 75 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B6 [10:27:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [10:27:43]wFMCommunicate OK [10:27:43]SAM_PROTO_GetShiftState done [10:27:43]FM_GetShiftState done [10:27:43]opened in 1722213119 [10:27:43]opened+sec_in_day 1722299519 [10:27:43]quantity*price = 11100 [10:27:43]sum+1 = 11101 [10:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 35 29.07.2024 10:27 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2186 ФПД: 158661582656793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102754&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2186&fm=158661582656793&tin=02508201610067®Number=0000000000189667&sum=11100 0 [10:27:44]StoreToDocumentArchive [10:27:44]shift 15 fd 2186 [10:27:44]save to /storage/0015/doc_00002186 [10:27:44]save last doc name /storage/0015/doc_00002186 to /storage/kkm_last_doc_name [10:27:44]save OK [10:27:44]Clear old archive folders... [10:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=266 [10:27:44]tlvbuf is 020E0FA0 [10:27:44]SAM_PROTO_ClearQueue [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 09 00 00 [10:27:44]Write to MH i2c: E2 08 00 D8 75 80 09 00 00 00 00 00 00 BF [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 D8 75 00 90 00 C1 [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]SAM_PROTO_ClearQueue done [10:27:44]KKMCreateOFDPacket [10:27:44]OFDProtocolAddRootSTLVToBuf [10:27:44]FM_MakeSignedData [10:27:44]FM_MakeSignedData [10:27:44]SAM_PROTO_SignData [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 01 02 [10:27:44]Write to MH i2c: E2 08 00 D9 75 80 0D 01 02 00 00 00 00 C7 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 D9 75 00 90 00 C2 [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=255 [10:27:44]MH_SAM_APDU [10:27:44]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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 6E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 [10:27:44]Write to MH i2c: E2 02 01 DA 75 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 6E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 00 00 3A [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 DA 75 00 90 00 C3 [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=25 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 02 02 14 34 38 10 04 04 00 8A 08 00 00 35 04 06 00 90 4D 47 46 15 19 [10:27:44]Write to MH i2c: E2 1C 00 DB 75 80 0D 02 02 14 00 34 38 10 04 04 00 8A 08 00 00 35 04 06 00 90 4D 47 46 15 19 00 00 DF [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 03 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 03 00 DB 75 00 90 00 C4 [10:27:45]RAPDU: 90 00 [10:27:45]wFMCommunicate OK [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 0D 03 02 [10:27:45]Write to MH i2c: E2 08 00 DC 75 80 0D 03 02 00 00 00 00 CC [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0B 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0B 00 DC 75 00 45 AB 2E 7F 67 08 72 69 90 00 B4 [10:27:45]RAPDU: 45 AB 2E 7F 67 08 72 69 90 00 [10:27:45]wFMCommunicate OK [10:27:45]SAM_PROTO_SignData done [10:27:45]FM_MakeSignedData done [10:27:45]CreateOFDProtocolMessage [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 11 00 00 [10:27:45]Write to MH i2c: E2 08 00 DD 75 80 11 00 00 00 00 00 00 CC [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 17 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 17 00 DD 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1C [10:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:27:45]wFMCommunicate OK [10:27:45]CreateOFDProtocolMessage done [10:27:45]OFDSenderStorePacket 2186 [10:27:45]StoreOFDPacket docnum=2186 [10:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 28 5D 16 01 9E EB 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 6E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8A 08 00 00 35 04 06 00 90 4D 47 46 15 19 45 AB 2E 7F 67 08 72 69 [10:27:45]CheckFolder [10:27:45]dirname=/storage/ofd_packets [10:27:45]CheckFolder done [10:27:45]ProducePacketName [10:27:45]name=ofd_packets/00002186 [10:27:45]NVStorageSaveData ofd_packets/00002186 [10:27:45]File name is /storage/ofd_packets/00002186 [10:27:45]Write 316 bytes [10:27:45]NVStorageSaveData done [10:27:45]OFDSenderStorePacket done [10:27:45]KKMCreateOFDPacket done [10:27:45]NVStorageSaveData kkm_last_timestamp [10:27:45]File name is /storage/kkm_last_timestamp [10:27:45]Write 4 bytes [10:27:45]NVStorageSaveData done [10:27:45]ExternCall_PrintAddStr [10:27:45]wPrintStart [10:27:45]Write to MH i2c: 01 00 00 DE 75 53 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 DE 75 00 00 00 00 00 FF 0F 68 [10:27:45]RasterBufferAndPrint [10:27:45]line Счет N : (3)126474 [10:27:45]line ИНН: 02508201610067 [10:27:45]line Контрольно-Кассовый Чек [10:27:45]line ПРОДАЖА [10:27:45]line Товар: 4870001570071 [10:27:45]line Напиток Pepsi 1л [10:27:45]line 1.000 * 111.00 [10:27:45]line = 111.00 [10:27:45]line НДС 12% НСП 1% [10:27:45]line > о реализуемом товаре [10:27:45]line ИТОГО: 111.00 [10:27:45]line НСП 1% : 0.98 [10:27:45]line НДС 12% : 11.79 [10:27:45]line Наличными: 111.00 [10:27:45]line Безнал.: 0.00 [10:27:45]line Место: АЗС № 127 "Партнер Нефть" [10:27:45]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:27:45]line СНО: Общий режим [10:27:45]line Чек 35 29.07.2024 10:27 [10:27:45]line Смена: 15 ФФД: 1.0 [10:27:45]line ЗНМ: 0300000161 [10:27:45]line РНМ: 0000000000189667 [10:27:45]line Версия ККМ: v1.0 [10:27:45]line ФМ: 0000000002094248 [10:27:45]line ФД: 2186 [10:27:45]line ФПД: 158661582656793 [10:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102754&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2186&fm=158661582656793&tin=02508201610067®Number=0000000000189667&sum=11100 [10:27:45]line 0 [10:27:45]OFD Sender: Processing packet 2186 [packets to send 1, broken 0] [10:27:45]ProducePacketName [10:27:45]name=ofd_packets/00002186 [10:27:45]OFD Sender: To server: pG, [10:27:45]CommunicateWithHost lk.salyk.kg:30040 [10:27:45]ConnectInit lk.salyk.kg [10:27:45]written 0, free lines is 4095 [10:27:45]Connected sock=9 [10:27:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 28 5D 16 01 9E EB 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 6E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8A 08 00 00 35 04 06 00 90 4D 47 46 15 19 45 AB 2E 7F 67 08 72 69 [10:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3D 0A 47 00 43 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8A 08 00 00 F4 03 04 00 16 1A A7 66 B6 04 01 00 00 25 30 02 37 73 1B 2D 62 [10:27:45]CommunicateWithHost err = 0 [10:27:45]CheckOFDResponse [10:27:45]1017 (14) - 77093643461234 [10:27:45]1041 (16) - 0000000002094248 [10:27:45]1040 (4) - 2186 [10:27:45]1012 (4) - 29.07.2024 04:27 [10:27:45]1206 (1) - 0 [10:27:45]OFD Sender: Remove packet 2186 [10:27:45]ProducePacketName [10:27:45]name=ofd_packets/00002186 [10:27:45]NVStorageDeleteData [10:27:45]Write to MH i2c: 01 00 00 06 76 7C [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 06 76 00 00 00 00 00 02 0D 92 [10:27:45]RasterBufferAndPrint [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]written 0, free lines is 3336 [10:27:45]MH_Cut [10:27:45]Write to MH i2c: D1 01 00 0D 76 01 55 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: D1 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: D1 01 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: D1 01 00 0D 76 00 54 [10:27:45]Write to MH i2c: 01 00 00 0E 76 84 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:46]OFD Sender: No OFD packet to send [10:27:46]*** Cut start [10:27:46]*** Partial cut [10:27:46]*** CUTSNS_PIN = 1 [10:27:46]*** CUTSNS_PIN = 0 [10:27:46]*** Brake cut motor [10:27:47]Read from MH i2c: 01 [10:27:47]MH_I2C_Read... [10:27:47]*** Stop cut motor [10:27:47]*** Cut end [10:27:47]Read from MH i2c: 01 07 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 0E 76 00 00 00 00 00 FF 0F 99 [10:27:47]process_action close_receipt done [10:27:47]requested_data is exist [10:27:47]produce_requested_data [10:27:47]requested_item fm.sn is exist - process it [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 11 00 00 [10:27:47]Write to MH i2c: E2 08 00 0F 76 80 11 00 00 00 00 00 00 FF [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 17 00 0F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4F [10:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:27:47]wFMCommunicate OK [10:27:47]requested_item fd.num is exist - process it [10:27:47]SAM_PROTO_GetFieldsCounters [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 13 00 00 [10:27:47]Write to MH i2c: E2 08 00 10 76 80 13 00 00 00 00 00 00 02 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 62 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 62 00 10 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8A 08 00 00 0E 04 04 00 0F 00 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 36 [10:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8A 08 00 00 0E 04 04 00 0F 00 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 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_GetFieldsCounters done [10:27:47]requested_item shift.num is exist - process it [10:27:47]requested_item shift.opened is exist - process it [10:27:47]req_shift_opened [10:27:47]FM_GetShiftState [10:27:47]SAM_PROTO_GetShiftState [10:27:47]wFMCommunicate request_size=4 [10:27:47]MH_SAM_APDU [10:27:47]CAPDU: 80 13 01 00 [10:27:47]Write to MH i2c: E2 08 00 11 76 80 13 01 00 00 00 00 00 04 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:47]Read from MH i2c: E2 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0E 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: E2 0E 00 11 76 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FD [10:27:47]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [10:27:47]wFMCommunicate OK [10:27:47]SAM_PROTO_GetShiftState done [10:27:47]FM_GetShiftState done [10:27:47]req_shift_opened done [10:27:47]requested_item shift.open_date is exist - process it [10:27:47]req_shift_open_date [10:27:47]req_shift_open_date done [10:27:47]produce_requested_data done [10:27:47]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2186,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [10:27:47]process_action_free close_receipt [10:27:47]json_value_free [10:27:47]json_value_free done [10:27:47]process_json_proto returns [10:27:47]Send response to host [10:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2186,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [10:27:47]free response buf [10:27:47]execute_script done [10:27:47]execute_script returns [10:27:47]free content buf [10:27:47]Sock 10.Close socket [10:27:47]Sock 10.Thread stoped [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]accept exits with 8 [10:33:56]New connection [10:33:56]New thread 3067317604 created [10:33:56]Thread 3067460964 joined [10:33:56]Waiting for new connection... [10:33:56] Sock 8.Parse request [10:33:56]Sock 8.Check first char [10:33:56]Sock 8.First char is OK [10:33:56]request: POST /json_proto HTTP/1.0 [10:33:56]Method: POST [10:33:56]URL: /json_proto [10:33:56]Method is POST - this is cgi request [10:33:56]url: /json_proto [10:33:56]query_string will be loaded in cgi processing [10:33:56]execute_cgi json_proto POST (null) [10:33:56]execute_cgi path=json_proto method=POST [10:33:56]POST find Content-Length [10:33:56]Host: 172.17.45.132:8080 [10:33:56]Content-Length: 667 [10:33:56]Content-Type: application/json [10:33:56] [10:33:56]POST finish read [10:33:56]Found Content-Length = 667 [10:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126475", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.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" ] } } [10:33:56]execute_script... [10:33: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)126475", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.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" ] } } [10:33:56]POST & json_proto [10:33:56]process_json_proto [10:33:56]json parsed OK: [10:33:56]protocol is kg_v1.0 [10:33:56]action value=close_receipt [10:33:56]process_action close_receipt [10:33:56]cmd_close_receipt [10:33:56]MH_GetDate [10:33:56]Write to MH i2c: F0 00 00 12 76 77 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: F0 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: F0 09 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: F0 09 00 12 76 00 1F 70 A7 66 E3 0B 90 66 00 [10:33:56]GetLastDocTimeStamp 1722248874 [10:33:56]current date 1722249247 [10:33:56]FM_GetShiftState [10:33:56]SAM_PROTO_GetShiftState [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 13 01 00 [10:33:56]Write to MH i2c: E2 08 00 13 76 80 13 01 00 00 00 00 00 06 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0E 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0E 00 13 76 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FF [10:33:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [10:33:56]wFMCommunicate OK [10:33:56]SAM_PROTO_GetShiftState done [10:33:56]FM_GetShiftState done [10:33:56]opened in 1722213119 [10:33:56]opened+sec_in_day 1722299519 [10:33:56]quantity*price = 35000 [10:33:56]sum+1 = 35001 [10:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 36 29.07.2024 10:34 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2187 ФПД: 181655404527651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103407&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2187&fm=181655404527651&tin=02508201610067®Number=0000000000189667&sum=35000 0 [10:33:57]StoreToDocumentArchive [10:33:57]shift 15 fd 2187 [10:33:57]save to /storage/0015/doc_00002187 [10:33:57]save last doc name /storage/0015/doc_00002187 to /storage/kkm_last_doc_name [10:33:57]save OK [10:33:57]Clear old archive folders... [10:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=283 [10:33:57]tlvbuf is 020E09C0 [10:33:57]SAM_PROTO_ClearQueue [10:33:57]wFMCommunicate request_size=4 [10:33:57]MH_SAM_APDU [10:33:57]CAPDU: 80 09 00 00 [10:33:57]Write to MH i2c: E2 08 00 20 76 80 09 00 00 00 00 00 00 08 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:57]Read from MH i2c: E2 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 20 76 00 90 00 0A [10:33:57]RAPDU: 90 00 [10:33:57]wFMCommunicate OK [10:33:57]SAM_PROTO_ClearQueue done [10:33:57]KKMCreateOFDPacket [10:33:57]OFDProtocolAddRootSTLVToBuf [10:33:57]FM_MakeSignedData [10:33:57]FM_MakeSignedData [10:33:57]SAM_PROTO_SignData [10:33:57]wFMCommunicate request_size=4 [10:33:57]MH_SAM_APDU [10:33:57]CAPDU: 80 0D 01 02 [10:33:57]Write to MH i2c: E2 08 00 21 76 80 0D 01 02 00 00 00 00 10 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:57]Read from MH i2c: E2 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: E2 03 00 21 76 00 90 00 0B [10:33:57]RAPDU: 90 00 [10:33:57]wFMCommunicate OK [10:33:57]wFMCommunicate request_size=255 [10:33:57]MH_SAM_APDU [10:33:57]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 24 00 00 00 F4 03 04 00 1F 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 [10:33:57]Write to MH i2c: E2 02 01 22 76 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 24 00 00 00 F4 03 04 00 1F 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 00 00 66 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 22 76 00 90 00 0C [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]wFMCommunicate request_size=42 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 08 00 00 35 04 06 00 A5 36 F1 DB C0 23 [10:33:58]Write to MH i2c: E2 2D 00 23 76 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 08 00 00 35 04 06 00 A5 36 F1 DB C0 23 00 00 02 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 03 00 23 76 00 90 00 0D [10:33:58]RAPDU: 90 00 [10:33:58]wFMCommunicate OK [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 0D 03 02 [10:33:58]Write to MH i2c: E2 08 00 24 76 80 0D 03 02 00 00 00 00 15 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0B 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 0B 00 24 76 00 CA A3 2F 76 6F BD 8D E3 90 00 C4 [10:33:58]RAPDU: CA A3 2F 76 6F BD 8D E3 90 00 [10:33:58]wFMCommunicate OK [10:33:58]SAM_PROTO_SignData done [10:33:58]FM_MakeSignedData done [10:33:58]CreateOFDProtocolMessage [10:33:58]wFMCommunicate request_size=4 [10:33:58]MH_SAM_APDU [10:33:58]CAPDU: 80 11 00 00 [10:33:58]Write to MH i2c: E2 08 00 25 76 80 11 00 00 00 00 00 00 15 [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:58]Read from MH i2c: E2 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 17 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: E2 17 00 25 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [10:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:33:58]wFMCommunicate OK [10:33:58]CreateOFDProtocolMessage done [10:33:58]OFDSenderStorePacket 2187 [10:33:58]StoreOFDPacket docnum=2187 [10:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 98 0D 27 01 DC D7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 24 00 00 00 F4 03 04 00 1F 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 08 00 00 35 04 06 00 A5 36 F1 DB C0 23 CA A3 2F 76 6F BD 8D E3 [10:33:58]CheckFolder [10:33:58]dirname=/storage/ofd_packets [10:33:58]CheckFolder done [10:33:58]ProducePacketName [10:33:58]name=ofd_packets/00002187 [10:33:58]NVStorageSaveData ofd_packets/00002187 [10:33:58]File name is /storage/ofd_packets/00002187 [10:33:58]Write 333 bytes [10:33:58]NVStorageSaveData done [10:33:58]OFDSenderStorePacket done [10:33:58]KKMCreateOFDPacket done [10:33:58]NVStorageSaveData kkm_last_timestamp [10:33:58]File name is /storage/kkm_last_timestamp [10:33:58]Write 4 bytes [10:33:58]NVStorageSaveData done [10:33:58]ExternCall_PrintAddStr [10:33:58]wPrintStart [10:33:58]Write to MH i2c: 01 00 00 26 76 9C [10:33:58]Write i2c OK [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 [10:33:58]MH_I2C_Read... [10:33:58]Read from MH i2c: 01 07 00 26 76 00 00 00 00 00 FF 0F B1 [10:33:58]RasterBufferAndPrint [10:33:58]line Счет N : (3)126475 [10:33:58]line ИНН: 02508201610067 [10:33:58]line Контрольно-Кассовый Чек [10:33:58]line ПРОДАЖА [10:33:58]line Товар: 4700002082191 [10:33:58]line Водка Белое золото 0,46л [10:33:58]line 1.000 * 350.00 [10:33:58]line = 350.00 [10:33:58]line НДС 12% НСП 1% [10:33:58]line > о реализуемом товаре [10:33:58]line ИТОГО: 350.00 [10:33:58]line НСП 1% : 3.10 [10:33:58]line НДС 12% : 37.17 [10:33:58]line Наличными: 350.00 [10:33:58]line Безнал.: 0.00 [10:33:58]line Место: АЗС № 127 "Партнер Нефть" [10:33:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:33:58]line СНО: Общий режим [10:33:58]line Чек 36 29.07.2024 10:34 [10:33:58]line Смена: 15 ФФД: 1.0 [10:33:58]line ЗНМ: 0300000161 [10:33:58]line РНМ: 0000000000189667 [10:33:58]line Версия ККМ: v1.0 [10:33:58]line ФМ: 0000000002094248 [10:33:58]line ФД: 2187 [10:33:58]line ФПД: 181655404527651 [10:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103407&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2187&fm=181655404527651&tin=02508201610067®Number=0000000000189667&sum=35000 [10:33:58]OFD Sender: Processing packet 2187 [packets to send 1, broken 0] [10:33:58]ProducePacketName [10:33:58]name=ofd_packets/00002187 [10:33:58]OFD Sender: To server: pG, [10:33:58]CommunicateWithHost lk.salyk.kg:30040 [10:33:58]ConnectInit lk.salyk.kg [10:33:58]line 0 [10:33:58]written 0, free lines is 4095 [10:33:58]Connected sock=10 [10:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 98 0D 27 01 DC D7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 24 00 00 00 F4 03 04 00 1F 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 08 00 00 35 04 06 00 A5 36 F1 DB C0 23 CA A3 2F 76 6F BD 8D E3 [10:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A6 A2 47 00 38 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8B 08 00 00 F4 03 04 00 8B 1B A7 66 B6 04 01 00 00 C7 60 E4 00 F7 40 F0 5F [10:33:59]CommunicateWithHost err = 0 [10:33:59]CheckOFDResponse [10:33:59]1017 (14) - 77093643461234 [10:33:59]1041 (16) - 0000000002094248 [10:33:59]1040 (4) - 2187 [10:33:59]1012 (4) - 29.07.2024 04:33 [10:33:59]1206 (1) - 0 [10:33:59]OFD Sender: Remove packet 2187 [10:33:59]ProducePacketName [10:33:59]name=ofd_packets/00002187 [10:33:59]NVStorageDeleteData [10:33:59]Write to MH i2c: 01 00 00 4E 76 C4 [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: 01 [10:33:59]MH_I2C_Read... [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 4E 76 00 00 00 00 00 17 0D EF [10:33:59]RasterBufferAndPrint [10:33:59]line [10:33:59]line [10:33:59]line [10:33:59]line [10:33:59]line [10:33:59]written 0, free lines is 3358 [10:33:59]MH_Cut [10:33:59]Write to MH i2c: D1 01 00 55 76 01 9D [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: D1 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: D1 01 00 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: D1 01 00 55 76 00 9C [10:33:59]Write to MH i2c: 01 00 00 56 76 CC [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]OFD Sender: No OFD packet to send [10:33:59]*** Cut start [10:33:59]*** Partial cut [10:33:59]*** CUTSNS_PIN = 1 [10:33:59]*** CUTSNS_PIN = 0 [10:33:59]*** Brake cut motor [10:34:00]Read from MH i2c: 01 [10:34:00]MH_I2C_Read... [10:34:00]*** Stop cut motor [10:34:00]*** Cut end [10:34:00]Read from MH i2c: 01 07 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 07 00 56 76 00 00 00 00 00 FF 0F E1 [10:34:00]process_action close_receipt done [10:34:00]requested_data is exist [10:34:00]produce_requested_data [10:34:00]requested_item fm.sn is exist - process it [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 11 00 00 [10:34:00]Write to MH i2c: E2 08 00 57 76 80 11 00 00 00 00 00 00 47 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 57 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 97 [10:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:34:00]wFMCommunicate OK [10:34:00]requested_item fd.num is exist - process it [10:34:00]SAM_PROTO_GetFieldsCounters [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 00 00 [10:34:00]Write to MH i2c: E2 08 00 58 76 80 13 00 00 00 00 00 00 4A [10:34:00]Write i2c OK [10:34:00]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 58 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 08 00 00 0E 04 04 00 0F 00 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 82 [10:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8B 08 00 00 0E 04 04 00 0F 00 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 [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 59 76 80 13 01 00 00 00 00 00 4C [10:34:00]Write i2c OK [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 [10:34:00]MH_I2C_Read... [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 59 76 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 45 [10:34:00]RAPDU: 09 00 01 FF E2 A6 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":"0000000002094248","fd.num":2187,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [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":"0000000002094248","fd.num":2187,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [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:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:40]accept exits with 9 [10:37:40]New connection [10:37:40]New thread 3067460964 created [10:37:40]Thread 3067317604 joined [10:37:40]Waiting for new connection... [10:37:40] Sock 9.Parse request [10:37:40]Sock 9.Check first char [10:37:40]Sock 9.First char is OK [10:37:40]request: POST /json_proto HTTP/1.0 [10:37:40]Method: POST [10:37:40]URL: /json_proto [10:37:40]Method is POST - this is cgi request [10:37:40]url: /json_proto [10:37:40]query_string will be loaded in cgi processing [10:37:40]execute_cgi json_proto POST (null) [10:37:40]execute_cgi path=json_proto method=POST [10:37:40]POST find Content-Length [10:37:40]Host: 172.17.45.132:8080 [10:37:40]Content-Length: 629 [10:37:40]Content-Type: application/json [10:37:40] [10:37:40]POST finish read [10:37:40]Found Content-Length = 629 [10:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126476", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:40]execute_script... [10:37:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126476", "tax_sys" : 0, "items" : [ { "code": "4700003610553", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 10\u043B.", "price" : 115.00, "quantity" : 4.000, "sum" : 460.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:40]POST & json_proto [10:37:40]process_json_proto [10:37:40]json parsed OK: [10:37:40]protocol is kg_v1.0 [10:37:40]action value=close_receipt [10:37:40]process_action close_receipt [10:37:40]cmd_close_receipt [10:37:40]MH_GetDate [10:37:40]Write to MH i2c: F0 00 00 5A 76 BF [10:37:40]Write i2c OK [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: F0 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: F0 09 00 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: F0 09 00 5A 76 00 FF 70 A7 66 E3 0B 90 66 28 [10:37:40]GetLastDocTimeStamp 1722249247 [10:37:40]current date 1722249471 [10:37:40]FM_GetShiftState [10:37:40]SAM_PROTO_GetShiftState [10:37:40]wFMCommunicate request_size=4 [10:37:40]MH_SAM_APDU [10:37:40]CAPDU: 80 13 01 00 [10:37:40]Write to MH i2c: E2 08 00 5B 76 80 13 01 00 00 00 00 00 4E [10:37:40]Write i2c OK [10:37:40]MH_I2C_Read... [10:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:40]Read from MH i2c: E2 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: E2 0E 00 [10:37:40]MH_I2C_Read... [10:37:40]Read from MH i2c: E2 0E 00 5B 76 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 47 [10:37:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [10:37:40]wFMCommunicate OK [10:37:40]SAM_PROTO_GetShiftState done [10:37:40]FM_GetShiftState done [10:37:40]opened in 1722213119 [10:37:40]opened+sec_in_day 1722299519 [10:37:40]quantity*price = 46000 [10:37:40]sum+1 = 46001 [10:37:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 37 29.07.2024 10:37 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2188 ФПД: 111247076557028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103751&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2188&fm=111247076557028&tin=02508201610067®Number=0000000000189667&sum=46000 0 [10:37:41]StoreToDocumentArchive [10:37:41]shift 15 fd 2188 [10:37:41]save to /storage/0015/doc_00002188 [10:37:41]save last doc name /storage/0015/doc_00002188 to /storage/kkm_last_doc_name [10:37:41]save OK [10:37:41]Clear old archive folders... [10:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:37:41]tlvbuf is 01F63CE0 [10:37:41]SAM_PROTO_ClearQueue [10:37:41]wFMCommunicate request_size=4 [10:37:41]MH_SAM_APDU [10:37:41]CAPDU: 80 09 00 00 [10:37:41]Write to MH i2c: E2 08 00 68 76 80 09 00 00 00 00 00 00 50 [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:41]Read from MH i2c: E2 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 03 00 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 03 00 68 76 00 90 00 52 [10:37:41]RAPDU: 90 00 [10:37:41]wFMCommunicate OK [10:37:41]SAM_PROTO_ClearQueue done [10:37:41]KKMCreateOFDPacket [10:37:41]OFDProtocolAddRootSTLVToBuf [10:37:41]FM_MakeSignedData [10:37:41]FM_MakeSignedData [10:37:41]SAM_PROTO_SignData [10:37:41]wFMCommunicate request_size=4 [10:37:41]MH_SAM_APDU [10:37:41]CAPDU: 80 0D 01 02 [10:37:41]Write to MH i2c: E2 08 00 69 76 80 0D 01 02 00 00 00 00 58 [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:41]Read from MH i2c: E2 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 03 00 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 03 00 69 76 00 90 00 53 [10:37:41]RAPDU: 90 00 [10:37:41]wFMCommunicate OK [10:37:41]wFMCommunicate request_size=255 [10:37:41]MH_SAM_APDU [10:37:41]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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FF 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [10:37:41]Write to MH i2c: E2 02 01 6A 76 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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FF 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 FC [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 6A 76 00 90 00 54 [10:37:42]RAPDU: 90 00 [10:37:42]wFMCommunicate OK [10:37:42]wFMCommunicate request_size=28 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 8C 08 00 00 35 04 06 00 65 2D BA 7B 00 E4 [10:37:42]Write to MH i2c: E2 1F 00 6B 76 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 8C 08 00 00 35 04 06 00 65 2D BA 7B 00 E4 00 00 2A [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 6B 76 00 90 00 55 [10:37:42]RAPDU: 90 00 [10:37:42]wFMCommunicate OK [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 0D 03 02 [10:37:42]Write to MH i2c: E2 08 00 6C 76 80 0D 03 02 00 00 00 00 5D [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 0B 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 0B 00 6C 76 00 91 F7 11 B6 8A D0 08 CB 90 00 DA [10:37:42]RAPDU: 91 F7 11 B6 8A D0 08 CB 90 00 [10:37:42]wFMCommunicate OK [10:37:42]SAM_PROTO_SignData done [10:37:42]FM_MakeSignedData done [10:37:42]CreateOFDProtocolMessage [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 11 00 00 [10:37:42]Write to MH i2c: E2 08 00 6D 76 80 11 00 00 00 00 00 00 5D [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 17 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 17 00 6D 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AD [10:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:37:42]wFMCommunicate OK [10:37:42]CreateOFDProtocolMessage done [10:37:42]OFDSenderStorePacket 2188 [10:37:42]StoreOFDPacket docnum=2188 [10:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 5C 61 19 01 89 EC 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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FF 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8C 08 00 00 35 04 06 00 65 2D BA 7B 00 E4 91 F7 11 B6 8A D0 08 CB [10:37:42]CheckFolder [10:37:42]dirname=/storage/ofd_packets [10:37:42]CheckFolder done [10:37:42]ProducePacketName [10:37:42]name=ofd_packets/00002188 [10:37:42]NVStorageSaveData ofd_packets/00002188 [10:37:42]File name is /storage/ofd_packets/00002188 [10:37:42]Write 319 bytes [10:37:42]NVStorageSaveData done [10:37:42]OFDSenderStorePacket done [10:37:42]KKMCreateOFDPacket done [10:37:42]NVStorageSaveData kkm_last_timestamp [10:37:42]File name is /storage/kkm_last_timestamp [10:37:42]Write 4 bytes [10:37:42]NVStorageSaveData done [10:37:42]ExternCall_PrintAddStr [10:37:42]wPrintStart [10:37:42]Write to MH i2c: 01 00 00 6E 76 E4 [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: 01 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: 01 07 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: 01 07 00 6E 76 00 00 00 00 00 FF 0F F9 [10:37:42]RasterBufferAndPrint [10:37:42]line Счет N : (3)126476 [10:37:42]line ИНН: 02508201610067 [10:37:42]line Контрольно-Кассовый Чек [10:37:42]line ПРОДАЖА [10:37:42]line Товар: 4700003610553 [10:37:42]line Вода Энесай 10л. [10:37:42]line 4.000 * 115.00 [10:37:42]line = 460.00 [10:37:42]line НДС 12% НСП 1% [10:37:42]line > о реализуемом товаре [10:37:42]line ИТОГО: 460.00 [10:37:42]line НСП 1% : 4.07 [10:37:42]line НДС 12% : 48.85 [10:37:42]line Наличными: 460.00 [10:37:42]line Безнал.: 0.00 [10:37:42]line Место: АЗС № 127 "Партнер Нефть" [10:37:42]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [10:37:42]line СНО: Общий режим [10:37:42]line Чек 37 29.07.2024 10:37 [10:37:42]line Смена: 15 ФФД: 1.0 [10:37:42]line ЗНМ: 0300000161 [10:37:42]line РНМ: 0000000000189667 [10:37:42]line Версия ККМ: v1.0 [10:37:42]line ФМ: 0000000002094248 [10:37:42]line ФД: 2188 [10:37:42]line ФПД: 111247076557028 [10:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103751&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2188&fm=111247076557028&tin=02508201610067®Number=0000000000189667&sum=46000 [10:37:42]line 0 [10:37:42]OFD Sender: Processing packet 2188 [packets to send 1, broken 0] [10:37:42]ProducePacketName [10:37:42]name=ofd_packets/00002188 [10:37:42]OFD Sender: To server: pG, [10:37:42]CommunicateWithHost lk.salyk.kg:30040 [10:37:42]ConnectInit lk.salyk.kg [10:37:42]written 0, free lines is 4095 [10:37:42]Connected sock=10 [10:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 5C 61 19 01 89 EC 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 33 36 31 30 35 35 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 31 30 D0 BB 2E FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 B0 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FF 70 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8C 08 00 00 35 04 06 00 65 2D BA 7B 00 E4 91 F7 11 B6 8A D0 08 CB [10:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 97 53 47 00 8A 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8C 08 00 00 F4 03 04 00 6B 1C A7 66 B6 04 01 00 00 B1 94 E5 BC A2 B2 FE 1A [10:37:43]CommunicateWithHost err = 0 [10:37:43]CheckOFDResponse [10:37:43]1017 (14) - 77093643461234 [10:37:43]1041 (16) - 0000000002094248 [10:37:43]1040 (4) - 2188 [10:37:43]1012 (4) - 29.07.2024 04:36 [10:37:43]1206 (1) - 0 [10:37:43]OFD Sender: Remove packet 2188 [10:37:43]ProducePacketName [10:37:43]name=ofd_packets/00002188 [10:37:43]NVStorageDeleteData [10:37:43]Write to MH i2c: 01 00 00 96 76 0C [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 07 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 07 00 96 76 00 00 00 00 00 15 0D 35 [10:37:43]RasterBufferAndPrint [10:37:43]line [10:37:43]line [10:37:43]line [10:37:43]line [10:37:43]line [10:37:43]written 0, free lines is 3357 [10:37:43]MH_Cut [10:37:43]Write to MH i2c: D1 01 00 9D 76 01 E5 [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: D1 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: D1 01 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: D1 01 00 9D 76 00 E4 [10:37:43]Write to MH i2c: 01 00 00 9E 76 14 [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]OFD Sender: No OFD packet to send [10:37:43]*** Cut start [10:37:43]*** Partial cut [10:37:43]*** CUTSNS_PIN = 1 [10:37:43]*** CUTSNS_PIN = 0 [10:37:44]*** Brake cut motor [10:37:44]Read from MH i2c: 01 [10:37:44]MH_I2C_Read... [10:37:44]*** Stop cut motor [10:37:44]*** Cut end [10:37:44]Read from MH i2c: 01 07 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: 01 07 00 9E 76 00 00 00 00 00 FF 0F 29 [10:37:44]process_action close_receipt done [10:37:44]requested_data is exist [10:37:44]produce_requested_data [10:37:44]requested_item fm.sn is exist - process it [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 11 00 00 [10:37:44]Write to MH i2c: E2 08 00 9F 76 80 11 00 00 00 00 00 00 8F [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 17 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 17 00 9F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DF [10:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [10:37:44]wFMCommunicate OK [10:37:44]requested_item fd.num is exist - process it [10:37:44]SAM_PROTO_GetFieldsCounters [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 13 00 00 [10:37:44]Write to MH i2c: E2 08 00 A0 76 80 13 00 00 00 00 00 00 92 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 62 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 62 00 A0 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8C 08 00 00 0E 04 04 00 0F 00 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 CE [10:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 8C 08 00 00 0E 04 04 00 0F 00 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:37:44]wFMCommunicate OK [10:37:44]SAM_PROTO_GetFieldsCounters done [10:37:44]requested_item shift.num is exist - process it [10:37:44]requested_item shift.opened is exist - process it [10:37:44]req_shift_opened [10:37:44]FM_GetShiftState [10:37:44]SAM_PROTO_GetShiftState [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 13 01 00 [10:37:44]Write to MH i2c: E2 08 00 A1 76 80 13 01 00 00 00 00 00 94 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 0E 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 0E 00 A1 76 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8D [10:37:44]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [10:37:44]wFMCommunicate OK [10:37:44]SAM_PROTO_GetShiftState done [10:37:44]FM_GetShiftState done [10:37:44]req_shift_opened done [10:37:44]requested_item shift.open_date is exist - process it [10:37:44]req_shift_open_date [10:37:44]req_shift_open_date done [10:37:44]produce_requested_data done [10:37:44]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2188,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [10:37:44]process_action_free close_receipt [10:37:44]json_value_free [10:37:44]json_value_free done [10:37:44]process_json_proto returns [10:37:44]Send response to host [10:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2188,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [10:37:44]free response buf [10:37:44]execute_script done [10:37:44]execute_script returns [10:37:44]free content buf [10:37:44]Sock 9.Close socket [10:37:44]Sock 9.Thread stoped [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:45:26]ConnectInit Can't connect to host [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]recv_with_timeout no data received [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [11:02:18]ConnectInit Can't connect to host [11:02:20]ConnectInit Can't take IP for lk.salyk.kg [11:02:20]CommunicateWithHost connect error [11:02:20]CommunicateWithHost err = -1 [11:02:20]OFD Sender: Server communicate error [11:02:25]OFD Sender: Processing packet 2189 [packets to send 3, broken 0] [11:02:25]ProducePacketName [11:02:25]name=ofd_packets/00002189 [11:02:25]OFD Sender: To server: pG, [11:02:25]CommunicateWithHost lk.salyk.kg:30040 [11:02:25]ConnectInit lk.salyk.kg [11:02:25]Connected sock=8 [11:02:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 42 01 00 00 8C 84 3A 01 B0 6C 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5F 75 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8D 08 00 00 35 04 06 00 1C F3 BB 71 65 74 BB 42 B0 D7 D2 92 45 CD [11:02:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5F C8 47 00 2E 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8D 08 00 00 F4 03 04 00 37 22 A7 66 B6 04 01 00 00 C7 64 1D 48 D0 3A 8E 91 [11:02:26]CommunicateWithHost err = 0 [11:02:26]CheckOFDResponse [11:02:26]1017 (14) - 77093643461234 [11:02:26]1041 (16) - 0000000002094248 [11:02:26]1040 (4) - 2189 [11:02:26]1012 (4) - 29.07.2024 05:01 [11:02:26]1206 (1) - 0 [11:02:26]OFD Sender: Remove packet 2189 [11:02:26]ProducePacketName [11:02:26]name=ofd_packets/00002189 [11:02:26]NVStorageDeleteData [11:02:26]OFD Sender: Processing packet 2190 [packets to send 2, broken 0] [11:02:26]ProducePacketName [11:02:26]name=ofd_packets/00002190 [11:02:26]OFD Sender: To server: pG, [11:02:26]CommunicateWithHost lk.salyk.kg:30040 [11:02:26]ConnectInit lk.salyk.kg [11:02:26]Connected sock=8 [11:02:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 56 17 1B 01 CA DE 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 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 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 27 00 00 00 F4 03 04 00 12 76 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8E 08 00 00 35 04 06 00 90 BC 56 20 D0 E5 24 60 32 74 F7 F6 0C FA [11:02:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 48 57 47 00 3A 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 32 30 39 34 32 34 38 10 04 04 00 8E 08 00 00 F4 03 04 00 37 22 A7 66 B6 04 01 00 00 7C 73 88 FD 9A 9D 9A 7A [11:02:26]CommunicateWithHost err = 0 [11:02:26]CheckOFDResponse [11:02:26]1017 (14) - 77093643461234 [11:02:26]1041 (16) - 0000000002094248 [11:02:26]1040 (4) - 2190 [11:02:26]1012 (4) - 29.07.2024 05:01 [11:02:26]1206 (1) - 0 [11:02:26]OFD Sender: Remove packet 2190 [11:02:26]ProducePacketName [11:02:26]name=ofd_packets/00002190 [11:02:26]NVStorageDeleteData [11:02:27]OFD Sender: Processing packet 2191 [packets to send 1, broken 0] [11:02:27]ProducePacketName [11:02:27]name=ofd_packets/00002191 [11:02:27]OFD Sender: To server: pG, [11:02:27]CommunicateWithHost lk.salyk.kg:30040 [11:02:27]ConnectInit lk.salyk.kg [11:02:27]Connected sock=8 [11:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 5D 7D 1F 01 E4 17 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 8E 76 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 8F 08 00 00 35 04 06 00 CC 67 37 FB 20 E6 5A B7 1D 45 F2 44 85 6D [11:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B7 DA 47 00 61 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 32 30 39 34 32 34 38 10 04 04 00 8F 08 00 00 F4 03 04 00 38 22 A7 66 B6 04 01 00 00 D4 9C 4F CE D6 04 EC 23 [11:02:27]CommunicateWithHost err = 0 [11:02:27]CheckOFDResponse [11:02:27]1017 (14) - 77093643461234 [11:02:27]1041 (16) - 0000000002094248 [11:02:27]1040 (4) - 2191 [11:02:27]1012 (4) - 29.07.2024 05:01 [11:02:27]1206 (1) - 0 [11:02:27]OFD Sender: Remove packet 2191 [11:02:27]ProducePacketName [11:02:27]name=ofd_packets/00002191 [11:02:27]NVStorageDeleteData [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:17:07]ConnectInit Can't connect to host [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:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [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:23]recv_with_timeout no data received [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:26:30]ConnectInit Can't connect to host [11:26:32]ConnectInit Can't take IP for lk.salyk.kg [11:26:32]CommunicateWithHost connect error [11:26:32]CommunicateWithHost err = -1 [11:26:32]OFD Sender: Server communicate error [11:26:37]OFD Sender: Processing packet 2192 [packets to send 1, broken 0] [11:26:37]ProducePacketName [11:26:37]name=ofd_packets/00002192 [11:26:37]OFD Sender: To server: pG, [11:26:37]CommunicateWithHost lk.salyk.kg:30040 [11:26:37]ConnectInit lk.salyk.kg [11:26:38]Connected sock=8 [11:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 03 00 00 88 8B 40 03 04 6E 5A 03 01 00 03 00 34 03 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 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 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 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB 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 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 B8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 13 00 00 00 00 07 04 06 00 C4 B8 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 FD 7B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 90 08 00 00 35 04 06 00 64 E7 B7 4B B9 B0 60 F9 44 58 46 80 0E F3 [11:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 90 10 47 00 C5 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 90 08 00 00 F4 03 04 00 E3 27 A7 66 B6 04 01 00 00 1B B9 60 B0 79 D7 6E 64 [11:26:38]CommunicateWithHost err = 0 [11:26:38]CheckOFDResponse [11:26:38]1017 (14) - 77093643461234 [11:26:38]1041 (16) - 0000000002094248 [11:26:38]1040 (4) - 2192 [11:26:38]1012 (4) - 29.07.2024 05:25 [11:26:38]1206 (1) - 0 [11:26:38]OFD Sender: Remove packet 2192 [11:26:38]ProducePacketName [11:26:38]name=ofd_packets/00002192 [11:26:38]NVStorageDeleteData [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:20]accept exits with 9 [11:32:20]New connection [11:32:20]New thread 3067317604 created [11:32:20]Thread 3067460964 joined [11:32:20]Waiting for new connection... [11:32:20] Sock 9.Parse request [11:32:20]Sock 9.Check first char [11:32:20]Sock 9.First char is OK [11:32:20]request: POST /json_proto HTTP/1.0 [11:32:20]Method: POST [11:32:20]URL: /json_proto [11:32:20]Method is POST - this is cgi request [11:32:20]url: /json_proto [11:32:20]query_string will be loaded in cgi processing [11:32:20]execute_cgi json_proto POST (null) [11:32:20]execute_cgi path=json_proto method=POST [11:32:20]POST find Content-Length [11:32:20]Host: 172.17.45.132:8080 [11:32:20]Content-Length: 1144 [11:32:20]Content-Type: application/json [11:32:20] [11:32:20]POST finish read [11:32:20]Found Content-Length = 1144 [11:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126483", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.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" ] } } [11:32:20]execute_script... [11:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126483", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.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" ] } } [11:32:20]POST & json_proto [11:32:20]process_json_proto [11:32:20]json parsed OK: [11:32:20]protocol is kg_v1.0 [11:32:20]action value=close_receipt [11:32:20]process_action close_receipt [11:32:20]cmd_close_receipt [11:32:20]MH_GetDate [11:32:20]Write to MH i2c: F0 00 00 E7 77 4D [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: F0 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: F0 09 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: F0 09 00 E7 77 00 CF 7D A7 66 E3 0B 90 66 93 [11:32:20]GetLastDocTimeStamp 1722252285 [11:32:20]current date 1722252751 [11:32:20]FM_GetShiftState [11:32:20]SAM_PROTO_GetShiftState [11:32:20]wFMCommunicate request_size=4 [11:32:20]MH_SAM_APDU [11:32:20]CAPDU: 80 13 01 00 [11:32:20]Write to MH i2c: E2 08 00 E8 77 80 13 01 00 00 00 00 00 DC [11:32:20]Write i2c OK [11:32:20]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 E8 77 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D5 [11:32:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetShiftState done [11:32:20]FM_GetShiftState done [11:32:20]opened in 1722213119 [11:32:20]opened+sec_in_day 1722299519 [11:32:20]quantity*price = 11100 [11:32:20]sum+1 = 11101 [11:32:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001157913 Вода ASU 0,5л c без газа 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.36 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 42 29.07.2024 11:32 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2193 ФПД: 81353927482203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113231&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2193&fm=81353927482203&tin=02508201610067®Number=0000000000189667&sum=15500 0 [11:32:22]StoreToDocumentArchive [11:32:22]shift 15 fd 2193 [11:32:22]save to /storage/0015/doc_00002193 [11:32:22]save last doc name /storage/0015/doc_00002193 to /storage/kkm_last_doc_name [11:32:22]save OK [11:32:22]Clear old archive folders... [11:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=482 [11:32:22]tlvbuf is 01FE7F30 [11:32:22]SAM_PROTO_ClearQueue [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 09 00 00 [11:32:22]Write to MH i2c: E2 08 00 F5 77 80 09 00 00 00 00 00 00 DE [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 F5 77 00 90 00 E0 [11:32:22]RAPDU: 90 00 [11:32:22]wFMCommunicate OK [11:32:22]SAM_PROTO_ClearQueue done [11:32:22]KKMCreateOFDPacket [11:32:22]OFDProtocolAddRootSTLVToBuf [11:32:22]FM_MakeSignedData [11:32:22]FM_MakeSignedData [11:32:22]SAM_PROTO_SignData [11:32:22]wFMCommunicate request_size=4 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 0D 01 02 [11:32:22]Write to MH i2c: E2 08 00 F6 77 80 0D 01 02 00 00 00 00 E6 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 F6 77 00 90 00 E1 [11:32:22]RAPDU: 90 00 [11:32:22]wFMCommunicate OK [11:32:22]wFMCommunicate request_size=255 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 0D 02 02 FA 03 00 E2 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 [11:32:22]Write to MH i2c: E2 02 01 F7 77 80 0D 02 02 FA 00 03 00 E2 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 00 00 59 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:22]Read from MH i2c: E2 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: E2 03 00 F7 77 00 90 00 E2 [11:32:22]RAPDU: 90 00 [11:32:22]wFMCommunicate OK [11:32:22]wFMCommunicate request_size=241 [11:32:22]MH_SAM_APDU [11:32:22]CAPDU: 80 0D 02 02 EC 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 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 88 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 2A 00 00 00 F4 03 04 00 CF 7D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 91 08 00 00 35 04 06 00 49 FD AF F2 DB 5B [11:32:22]Write to MH i2c: E2 F4 00 F8 77 80 0D 02 02 EC 00 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 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 88 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 2A 00 00 00 F4 03 04 00 CF 7D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 91 08 00 00 35 04 06 00 49 FD AF F2 DB 5B 00 00 49 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 03 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 03 00 F8 77 00 90 00 E3 [11:32:23]RAPDU: 90 00 [11:32:23]wFMCommunicate OK [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 0D 03 02 [11:32:23]Write to MH i2c: E2 08 00 F9 77 80 0D 03 02 00 00 00 00 EB [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 0B 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 0B 00 F9 77 00 D9 BB DE F2 2C 78 54 CC 90 00 14 [11:32:23]RAPDU: D9 BB DE F2 2C 78 54 CC 90 00 [11:32:23]wFMCommunicate OK [11:32:23]SAM_PROTO_SignData done [11:32:23]FM_MakeSignedData done [11:32:23]CreateOFDProtocolMessage [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 11 00 00 [11:32:23]Write to MH i2c: E2 08 00 FA 77 80 11 00 00 00 00 00 00 EB [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 17 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 17 00 FA 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3B [11:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:32:23]wFMCommunicate OK [11:32:23]CreateOFDProtocolMessage done [11:32:23]OFDSenderStorePacket 2193 [11:32:23]StoreOFDPacket docnum=2193 [11:32:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 F6 01 00 00 33 8F EE 01 EF D3 5A 03 01 00 03 00 E2 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 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 88 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 2A 00 00 00 F4 03 04 00 CF 7D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 91 08 00 00 35 04 06 00 49 FD AF F2 DB 5B D9 BB DE F2 2C 78 54 CC [11:32:23]CheckFolder [11:32:23]dirname=/storage/ofd_packets [11:32:23]CheckFolder done [11:32:23]ProducePacketName [11:32:23]name=ofd_packets/00002193 [11:32:23]NVStorageSaveData ofd_packets/00002193 [11:32:23]File name is /storage/ofd_packets/00002193 [11:32:23]Write 532 bytes [11:32:23]NVStorageSaveData done [11:32:23]OFDSenderStorePacket done [11:32:23]KKMCreateOFDPacket done [11:32:23]NVStorageSaveData kkm_last_timestamp [11:32:23]File name is /storage/kkm_last_timestamp [11:32:23]Write 4 bytes [11:32:23]NVStorageSaveData done [11:32:23]ExternCall_PrintAddStr [11:32:23]wPrintStart [11:32:23]Write to MH i2c: 01 00 00 FB 77 72 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 07 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 07 00 FB 77 00 00 00 00 00 FF 0F 87 [11:32:23]RasterBufferAndPrint [11:32:23]line Счет N : (3)126483 [11:32:23]line ИНН: 02508201610067 [11:32:23]line Контрольно-Кассовый Чек [11:32:23]line ПРОДАЖА [11:32:23]line Товар: 4870001570071 [11:32:23]line Напиток Pepsi 1л [11:32:23]line 1.000 * 111.00 [11:32:23]line = 111.00 [11:32:23]line НДС 12% НСП 1% [11:32:23]line > о реализуемом товаре [11:32:23]line Товар: 4870001157913 [11:32:23]line Вода ASU 0,5л c без газа [11:32:23]line 1.000 * 40.00 [11:32:23]line = 40.00 [11:32:23]line НДС 12% НСП 1% [11:32:23]line > о реализуемом товаре [11:32:23]line Товар: 2000031750019 [11:32:23]line Пакет Партнер Нефть [11:32:23]line 1.000 * 4.00 [11:32:23]line = 4.00 [11:32:23]line НДС 12% НСП 1% [11:32:23]line > о реализуемом товаре [11:32:23]line ИТОГО: 155.00 [11:32:23]line НСП 1% : 1.36 [11:32:23]line НДС 12% : 16.46 [11:32:23]line Наличными: 155.00 [11:32:23]line Безнал.: 0.00 [11:32:23]line Место: АЗС № 127 "Партнер Нефть" [11:32:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:32:23]line СНО: Общий режим [11:32:23]line Чек 42 29.07.2024 11:32 [11:32:23]line Смена: 15 ФФД: 1.0 [11:32:23]line ЗНМ: 0300000161 [11:32:23]line РНМ: 0000000000189667 [11:32:23]line Версия ККМ: v1.0 [11:32:23]line ФМ: 0000000002094248 [11:32:23]line ФД: 2193 [11:32:23]line ФПД: 81353927482203 [11:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113231&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2193&fm=81353927482203&tin=02508201610067®Number=0000000000189667&sum=15500 [11:32:23]line 0 [11:32:23]written 0, free lines is 4095 [11:32:23]OFD Sender: Processing packet 2193 [packets to send 1, broken 0] [11:32:23]ProducePacketName [11:32:23]name=ofd_packets/00002193 [11:32:23]OFD Sender: To server: pG, [11:32:23]CommunicateWithHost lk.salyk.kg:30040 [11:32:23]ConnectInit lk.salyk.kg [11:32:23]Connected sock=11 [11:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 F6 01 00 00 33 8F EE 01 EF D3 5A 03 01 00 03 00 E2 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 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 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 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 88 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 2A 00 00 00 F4 03 04 00 CF 7D A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 91 08 00 00 35 04 06 00 49 FD AF F2 DB 5B D9 BB DE F2 2C 78 54 CC [11:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8E 5E 47 00 0E 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 32 30 39 34 32 34 38 10 04 04 00 91 08 00 00 F4 03 04 00 3C 29 A7 66 B6 04 01 00 00 80 40 87 A8 AE 7D 50 D4 [11:32:23]CommunicateWithHost err = 0 [11:32:23]CheckOFDResponse [11:32:23]1017 (14) - 77093643461234 [11:32:23]1041 (16) - 0000000002094248 [11:32:23]1040 (4) - 2193 [11:32:23]1012 (4) - 29.07.2024 05:31 [11:32:23]1206 (1) - 0 [11:32:23]OFD Sender: Remove packet 2193 [11:32:23]ProducePacketName [11:32:23]name=ofd_packets/00002193 [11:32:23]NVStorageDeleteData [11:32:23]Write to MH i2c: 01 00 00 2F 78 A7 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 07 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 07 00 2F 78 00 00 00 00 00 88 0C 42 [11:32:23]RasterBufferAndPrint [11:32:23]line [11:32:23]line [11:32:23]line [11:32:23]line [11:32:23]line [11:32:23]written 0, free lines is 3217 [11:32:23]MH_Cut [11:32:23]Write to MH i2c: D1 01 00 36 78 01 80 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: D1 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: D1 01 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: D1 01 00 36 78 00 7F [11:32:23]Write to MH i2c: 01 00 00 37 78 AF [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:24]OFD Sender: No OFD packet to send [11:32:24]*** Cut start [11:32:24]*** Partial cut [11:32:24]*** CUTSNS_PIN = 1 [11:32:24]*** CUTSNS_PIN = 0 [11:32:24]*** Brake cut motor [11:32:25]Read from MH i2c: 01 [11:32:25]MH_I2C_Read... [11:32:25]*** Stop cut motor [11:32:25]*** Cut end [11:32:25]Read from MH i2c: 01 07 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: 01 07 00 37 78 00 00 00 00 00 FF 0F C4 [11:32:25]process_action close_receipt done [11:32:25]requested_data is exist [11:32:25]produce_requested_data [11:32:25]requested_item fm.sn is exist - process it [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 11 00 00 [11:32:25]Write to MH i2c: E2 08 00 38 78 80 11 00 00 00 00 00 00 2A [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 17 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 17 00 38 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7A [11:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:32:25]wFMCommunicate OK [11:32:25]requested_item fd.num is exist - process it [11:32:25]SAM_PROTO_GetFieldsCounters [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 13 00 00 [11:32:25]Write to MH i2c: E2 08 00 39 78 80 13 00 00 00 00 00 00 2D [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 62 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 62 00 39 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 91 08 00 00 0E 04 04 00 0F 00 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 7D [11:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 91 08 00 00 0E 04 04 00 0F 00 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 [11:32:25]wFMCommunicate OK [11:32:25]SAM_PROTO_GetFieldsCounters done [11:32:25]requested_item shift.num is exist - process it [11:32:25]requested_item shift.opened is exist - process it [11:32:25]req_shift_opened [11:32:25]FM_GetShiftState [11:32:25]SAM_PROTO_GetShiftState [11:32:25]wFMCommunicate request_size=4 [11:32:25]MH_SAM_APDU [11:32:25]CAPDU: 80 13 01 00 [11:32:25]Write to MH i2c: E2 08 00 3A 78 80 13 01 00 00 00 00 00 2F [11:32:25]Write i2c OK [11:32:25]MH_I2C_Read... [11:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:25]Read from MH i2c: E2 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 0E 00 [11:32:25]MH_I2C_Read... [11:32:25]Read from MH i2c: E2 0E 00 3A 78 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 28 [11:32:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:32:25]wFMCommunicate OK [11:32:25]SAM_PROTO_GetShiftState done [11:32:25]FM_GetShiftState done [11:32:25]req_shift_opened done [11:32:25]requested_item shift.open_date is exist - process it [11:32:25]req_shift_open_date [11:32:25]req_shift_open_date done [11:32:25]produce_requested_data done [11:32:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2193,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [11:32:25]process_action_free close_receipt [11:32:25]json_value_free [11:32:25]json_value_free done [11:32:25]process_json_proto returns [11:32:25]Send response to host [11:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2193,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [11:32:25]free response buf [11:32:25]execute_script done [11:32:25]execute_script returns [11:32:25]free content buf [11:32:25]Sock 9.Close socket [11:32:25]Sock 9.Thread stoped [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:56]accept exits with 8 [11:42:56]New connection [11:42:56]New thread 3067460964 created [11:42:56]Thread 3067317604 joined [11:42:56]Waiting for new connection... [11:42:56] Sock 8.Parse request [11:42:56]Sock 8.Check first char [11:42:56]Sock 8.First char is OK [11:42:56]request: POST /json_proto HTTP/1.0 [11:42:56]Method: POST [11:42:56]URL: /json_proto [11:42:56]Method is POST - this is cgi request [11:42:56]url: /json_proto [11:42:56]query_string will be loaded in cgi processing [11:42:56]execute_cgi json_proto POST (null) [11:42:56]execute_cgi path=json_proto method=POST [11:42:56]POST find Content-Length [11:42:56]Host: 172.17.45.132:8080 [11:42:56]Content-Length: 889 [11:42:56]Content-Type: application/json [11:42:56] [11:42:56]POST finish read [11:42:56]Found Content-Length = 889 [11:42:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126484", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:56]execute_script... [11:42: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)126484", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:56]POST & json_proto [11:42:56]process_json_proto [11:42:56]json parsed OK: [11:42:56]protocol is kg_v1.0 [11:42:56]action value=close_receipt [11:42:56]process_action close_receipt [11:42:56]cmd_close_receipt [11:42:56]MH_GetDate [11:42:56]Write to MH i2c: F0 00 00 3B 78 A2 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: F0 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: F0 09 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: F0 09 00 3B 78 00 4B 80 A7 66 E3 0B 90 66 67 [11:42:56]GetLastDocTimeStamp 1722252751 [11:42:56]current date 1722253387 [11:42:56]FM_GetShiftState [11:42:56]SAM_PROTO_GetShiftState [11:42:56]wFMCommunicate request_size=4 [11:42:56]MH_SAM_APDU [11:42:56]CAPDU: 80 13 01 00 [11:42:56]Write to MH i2c: E2 08 00 3C 78 80 13 01 00 00 00 00 00 31 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:56]Read from MH i2c: E2 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 0E 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: E2 0E 00 3C 78 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 2A [11:42:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:42:56]wFMCommunicate OK [11:42:56]SAM_PROTO_GetShiftState done [11:42:56]FM_GetShiftState done [11:42:56]opened in 1722213119 [11:42:56]opened+sec_in_day 1722299519 [11:42:56]quantity*price = 12000 [11:42:56]sum+1 = 12001 [11:42:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003610560 Вода Энесай 5л. 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 43 29.07.2024 11:43 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2194 ФПД: 278423257092409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2194&fm=278423257092409&tin=02508201610067®Number=0000000000189667&sum=18000 0 [11:42:57]StoreToDocumentArchive [11:42:57]shift 15 fd 2194 [11:42:57]save to /storage/0015/doc_00002194 [11:42:57]save last doc name /storage/0015/doc_00002194 to /storage/kkm_last_doc_name [11:42:57]save OK [11:42:57]Clear old archive folders... [11:42:57]ProcessDocumentItem done err = 0, tmpTLVsize=374 [11:42:57]tlvbuf is 021097D0 [11:42:57]SAM_PROTO_ClearQueue [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 09 00 00 [11:42:57]Write to MH i2c: E2 08 00 49 78 80 09 00 00 00 00 00 00 33 [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 49 78 00 90 00 35 [11:42:57]RAPDU: 90 00 [11:42:57]wFMCommunicate OK [11:42:57]SAM_PROTO_ClearQueue done [11:42:57]KKMCreateOFDPacket [11:42:57]OFDProtocolAddRootSTLVToBuf [11:42:57]FM_MakeSignedData [11:42:57]FM_MakeSignedData [11:42:57]SAM_PROTO_SignData [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 0D 01 02 [11:42:57]Write to MH i2c: E2 08 00 4A 78 80 0D 01 02 00 00 00 00 3B [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 03 00 4A 78 00 90 00 36 [11:42:57]RAPDU: 90 00 [11:42:57]wFMCommunicate OK [11:42:57]wFMCommunicate request_size=255 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB 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 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 [11:42:57]Write to MH i2c: E2 02 01 4B 78 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB 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 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 00 00 40 [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:58]Read from MH i2c: E2 03 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 4B 78 00 90 00 37 [11:42:58]RAPDU: 90 00 [11:42:58]wFMCommunicate OK [11:42:58]wFMCommunicate request_size=133 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 0D 02 02 80 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 2B 00 00 00 F4 03 04 00 4B 80 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 92 08 00 00 35 04 06 00 FD 39 77 56 11 39 [11:42:58]Write to MH i2c: E2 88 00 4C 78 80 0D 02 02 80 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 2B 00 00 00 F4 03 04 00 4B 80 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 92 08 00 00 35 04 06 00 FD 39 77 56 11 39 00 00 81 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 4C 78 00 90 00 38 [11:42:58]RAPDU: 90 00 [11:42:58]wFMCommunicate OK [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 0D 03 02 [11:42:58]Write to MH i2c: E2 08 00 4D 78 80 0D 03 02 00 00 00 00 40 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0B 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0B 00 4D 78 00 C9 D8 37 D6 0A EF B2 28 90 00 C2 [11:42:58]RAPDU: C9 D8 37 D6 0A EF B2 28 90 00 [11:42:58]wFMCommunicate OK [11:42:58]SAM_PROTO_SignData done [11:42:58]FM_MakeSignedData done [11:42:58]CreateOFDProtocolMessage [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 11 00 00 [11:42:58]Write to MH i2c: E2 08 00 4E 78 80 11 00 00 00 00 00 00 40 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 17 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 17 00 4E 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 90 [11:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:42:58]wFMCommunicate OK [11:42:58]CreateOFDProtocolMessage done [11:42:58]OFDSenderStorePacket 2194 [11:42:58]StoreOFDPacket docnum=2194 [11:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8A 01 00 00 F0 35 82 01 4C 7B 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB 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 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 2B 00 00 00 F4 03 04 00 4B 80 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 92 08 00 00 35 04 06 00 FD 39 77 56 11 39 C9 D8 37 D6 0A EF B2 28 [11:42:58]CheckFolder [11:42:58]dirname=/storage/ofd_packets [11:42:58]CheckFolder done [11:42:58]ProducePacketName [11:42:58]name=ofd_packets/00002194 [11:42:58]NVStorageSaveData ofd_packets/00002194 [11:42:58]File name is /storage/ofd_packets/00002194 [11:42:58]Write 424 bytes [11:42:58]NVStorageSaveData done [11:42:58]OFDSenderStorePacket done [11:42:58]KKMCreateOFDPacket done [11:42:58]NVStorageSaveData kkm_last_timestamp [11:42:58]File name is /storage/kkm_last_timestamp [11:42:58]Write 4 bytes [11:42:58]NVStorageSaveData done [11:42:58]ExternCall_PrintAddStr [11:42:58]wPrintStart [11:42:58]Write to MH i2c: 01 00 00 4F 78 C7 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 07 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 07 00 4F 78 00 00 00 00 00 FF 0F DC [11:42:58]RasterBufferAndPrint [11:42:58]line Счет N : (3)126484 [11:42:58]line ИНН: 02508201610067 [11:42:58]line Контрольно-Кассовый Чек [11:42:58]line ПРОДАЖА [11:42:58]line Товар: 4700000310043 [11:42:58]line Вода Жалалабат 27 1л [11:42:58]line 2.000 * 60.00 [11:42:58]line = 120.00 [11:42:58]line НДС 12% НСП 1% [11:42:58]line > о реализуемом товаре [11:42:58]line Товар: 4700003610560 [11:42:58]line Вода Энесай 5л. [11:42:58]line 1.000 * 60.00 [11:42:58]line = 60.00 [11:42:58]line НДС 12% НСП 1% [11:42:58]line > о реализуемом товаре [11:42:58]line ИТОГО: 180.00 [11:42:58]line НСП 1% : 1.59 [11:42:58]line НДС 12% : 19.11 [11:42:58]line Наличными: 180.00 [11:42:58]line Безнал.: 0.00 [11:42:58]line Место: АЗС № 127 "Партнер Нефть" [11:42:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:42:58]line СНО: Общий режим [11:42:58]line Чек 43 29.07.2024 11:43 [11:42:58]line Смена: 15 ФФД: 1.0 [11:42:58]line ЗНМ: 0300000161 [11:42:58]line РНМ: 0000000000189667 [11:42:58]line Версия ККМ: v1.0 [11:42:58]line ФМ: 0000000002094248 [11:42:58]line ФД: 2194 [11:42:58]line ФПД: 278423257092409 [11:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114307&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2194&fm=278423257092409&tin=02508201610067®Number=0000000000189667&sum=18000 [11:42:58]line 0 [11:42:58]OFD Sender: Processing packet 2194 [packets to send 1, broken 0] [11:42:58]ProducePacketName [11:42:58]name=ofd_packets/00002194 [11:42:58]OFD Sender: To server: pG, [11:42:58]CommunicateWithHost lk.salyk.kg:30040 [11:42:58]ConnectInit lk.salyk.kg [11:42:58]written 0, free lines is 4095 [11:42:58]Connected sock=10 [11:42:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8A 01 00 00 F0 35 82 01 4C 7B 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB 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 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 2B 00 00 00 F4 03 04 00 4B 80 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 92 08 00 00 35 04 06 00 FD 39 77 56 11 39 C9 D8 37 D6 0A EF B2 28 [11:42:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 04 60 47 00 2E 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 92 08 00 00 F4 03 04 00 B8 2B A7 66 B6 04 01 00 00 BA BF 3B D3 F7 69 EF 34 [11:42:59]CommunicateWithHost err = 0 [11:42:59]CheckOFDResponse [11:42:59]1017 (14) - 77093643461234 [11:42:59]1041 (16) - 0000000002094248 [11:42:59]1040 (4) - 2194 [11:42:59]1012 (4) - 29.07.2024 05:42 [11:42:59]1206 (1) - 0 [11:42:59]OFD Sender: Remove packet 2194 [11:42:59]ProducePacketName [11:42:59]name=ofd_packets/00002194 [11:42:59]NVStorageDeleteData [11:42:59]Write to MH i2c: 01 00 00 7D 78 F5 [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 07 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 07 00 7D 78 00 00 00 00 00 D3 0C DB [11:42:59]RasterBufferAndPrint [11:42:59]line [11:42:59]line [11:42:59]line [11:42:59]line [11:42:59]line [11:42:59]written 0, free lines is 3293 [11:42:59]MH_Cut [11:42:59]Write to MH i2c: D1 01 00 84 78 01 CE [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: D1 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: D1 01 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: D1 01 00 84 78 00 CD [11:42:59]Write to MH i2c: 01 00 00 85 78 FD [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]OFD Sender: No OFD packet to send [11:42:59]*** Cut start [11:42:59]*** Partial cut [11:42:59]*** CUTSNS_PIN = 1 [11:42:59]*** CUTSNS_PIN = 0 [11:43:00]*** Brake cut motor [11:43:00]Read from MH i2c: 01 [11:43:00]MH_I2C_Read... [11:43:00]*** Stop cut motor [11:43:00]*** Cut end [11:43:00]Read from MH i2c: 01 07 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: 01 07 00 85 78 00 00 00 00 00 FF 0F 12 [11:43:00]process_action close_receipt done [11:43:00]requested_data is exist [11:43:00]produce_requested_data [11:43:00]requested_item fm.sn is exist - process it [11:43:00]wFMCommunicate request_size=4 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 11 00 00 [11:43:00]Write to MH i2c: E2 08 00 86 78 80 11 00 00 00 00 00 00 78 [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 17 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 17 00 86 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C8 [11:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:43:00]wFMCommunicate OK [11:43:00]requested_item fd.num is exist - process it [11:43:00]SAM_PROTO_GetFieldsCounters [11:43:00]wFMCommunicate request_size=4 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 13 00 00 [11:43:00]Write to MH i2c: E2 08 00 87 78 80 13 00 00 00 00 00 00 7B [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 62 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 62 00 87 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 92 08 00 00 0E 04 04 00 0F 00 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 CF [11:43:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 92 08 00 00 0E 04 04 00 0F 00 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 [11:43:00]wFMCommunicate OK [11:43:00]SAM_PROTO_GetFieldsCounters done [11:43:00]requested_item shift.num is exist - process it [11:43:00]requested_item shift.opened is exist - process it [11:43:00]req_shift_opened [11:43:00]FM_GetShiftState [11:43:00]SAM_PROTO_GetShiftState [11:43:00]wFMCommunicate request_size=4 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 13 01 00 [11:43:00]Write to MH i2c: E2 08 00 88 78 80 13 01 00 00 00 00 00 7D [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 0E 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 0E 00 88 78 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 76 [11:43:00]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:43:00]wFMCommunicate OK [11:43:00]SAM_PROTO_GetShiftState done [11:43:00]FM_GetShiftState done [11:43:00]req_shift_opened done [11:43:00]requested_item shift.open_date is exist - process it [11:43:00]req_shift_open_date [11:43:00]req_shift_open_date done [11:43:00]produce_requested_data done [11:43:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2194,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [11:43:00]process_action_free close_receipt [11:43:00]json_value_free [11:43:00]json_value_free done [11:43:00]process_json_proto returns [11:43:00]Send response to host [11:43:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2194,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [11:43:00]free response buf [11:43:00]execute_script done [11:43:00]execute_script returns [11:43:00]free content buf [11:43:00]Sock 8.Close socket [11:43:00]Sock 8.Thread stoped [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:49]accept exits with 9 [11:52:49]New connection [11:52:49]New thread 3067317604 created [11:52:49]Thread 3067460964 joined [11:52:49]Waiting for new connection... [11:52:49] Sock 9.Parse request [11:52:49]Sock 9.Check first char [11:52:49]Sock 9.First char is OK [11:52:49]request: POST /json_proto HTTP/1.0 [11:52:49]Method: POST [11:52:49]URL: /json_proto [11:52:49]Method is POST - this is cgi request [11:52:49]url: /json_proto [11:52:49]query_string will be loaded in cgi processing [11:52:49]execute_cgi json_proto POST (null) [11:52:49]execute_cgi path=json_proto method=POST [11:52:49]POST find Content-Length [11:52:49]Host: 172.17.45.132:8080 [11:52:49]Content-Length: 894 [11:52:49]Content-Type: application/json [11:52:49] [11:52:49]POST finish read [11:52:49]Found Content-Length = 894 [11:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126485", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:49]execute_script... [11:52: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)126485", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:49]POST & json_proto [11:52:49]process_json_proto [11:52:49]json parsed OK: [11:52:49]protocol is kg_v1.0 [11:52:49]action value=close_receipt [11:52:49]process_action close_receipt [11:52:49]cmd_close_receipt [11:52:49]MH_GetDate [11:52:49]Write to MH i2c: F0 00 00 89 78 F0 [11:52:49]Write i2c OK [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: F0 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: F0 09 00 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: F0 09 00 89 78 00 9C 82 A7 66 E3 0B 90 66 08 [11:52:49]GetLastDocTimeStamp 1722253387 [11:52:49]current date 1722253980 [11:52:49]FM_GetShiftState [11:52:49]SAM_PROTO_GetShiftState [11:52:49]wFMCommunicate request_size=4 [11:52:49]MH_SAM_APDU [11:52:49]CAPDU: 80 13 01 00 [11:52:49]Write to MH i2c: E2 08 00 8A 78 80 13 01 00 00 00 00 00 7F [11:52:49]Write i2c OK [11:52:49]MH_I2C_Read... [11:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:49]Read from MH i2c: E2 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: E2 0E 00 [11:52:49]MH_I2C_Read... [11:52:49]Read from MH i2c: E2 0E 00 8A 78 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 78 [11:52:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:52:49]wFMCommunicate OK [11:52:49]SAM_PROTO_GetShiftState done [11:52:49]FM_GetShiftState done [11:52:49]opened in 1722213119 [11:52:49]opened+sec_in_day 1722299519 [11:52:49]quantity*price = 4000 [11:52:49]sum+1 = 4001 [11:52:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 3800020453407 Nestle KIT-KAT батончик chunky 36x40г 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.75 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 44 29.07.2024 11:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2195 ФПД: 38630754823552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2195&fm=38630754823552&tin=02508201610067®Number=0000000000189667&sum=12000 0 [11:52:50]StoreToDocumentArchive [11:52:50]shift 15 fd 2195 [11:52:50]save to /storage/0015/doc_00002195 [11:52:50]save last doc name /storage/0015/doc_00002195 to /storage/kkm_last_doc_name [11:52:50]save OK [11:52:50]Clear old archive folders... [11:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=396 [11:52:50]tlvbuf is 0208D460 [11:52:50]SAM_PROTO_ClearQueue [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 09 00 00 [11:52:50]Write to MH i2c: E2 08 00 97 78 80 09 00 00 00 00 00 00 81 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 97 78 00 90 00 83 [11:52:50]RAPDU: 90 00 [11:52:50]wFMCommunicate OK [11:52:50]SAM_PROTO_ClearQueue done [11:52:50]KKMCreateOFDPacket [11:52:50]OFDProtocolAddRootSTLVToBuf [11:52:50]FM_MakeSignedData [11:52:50]FM_MakeSignedData [11:52:50]SAM_PROTO_SignData [11:52:50]wFMCommunicate request_size=4 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 0D 01 02 [11:52:50]Write to MH i2c: E2 08 00 98 78 80 0D 01 02 00 00 00 00 89 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:50]Read from MH i2c: E2 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 [11:52:50]MH_I2C_Read... [11:52:50]Read from MH i2c: E2 03 00 98 78 00 90 00 84 [11:52:50]RAPDU: 90 00 [11:52:50]wFMCommunicate OK [11:52:50]wFMCommunicate request_size=255 [11:52:50]MH_SAM_APDU [11:52:50]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 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 E0 2E 00 00 00 00 EB 03 26 00 EF [11:52:50]Write to MH i2c: E2 02 01 99 78 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 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 E0 2E 00 00 00 00 EB 03 26 00 EF 00 00 16 [11:52:50]Write i2c OK [11:52:50]MH_I2C_Read... [11:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:51]Read from MH i2c: E2 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 03 00 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 03 00 99 78 00 90 00 85 [11:52:51]RAPDU: 90 00 [11:52:51]wFMCommunicate OK [11:52:51]wFMCommunicate request_size=155 [11:52:51]MH_SAM_APDU [11:52:51]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 93 08 00 00 35 04 06 00 23 22 6C 6B 2D 80 [11:52:51]Write to MH i2c: E2 9E 00 9A 78 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 93 08 00 00 35 04 06 00 23 22 6C 6B 2D 80 00 00 3C [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:51]Read from MH i2c: E2 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 03 00 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 03 00 9A 78 00 90 00 86 [11:52:51]RAPDU: 90 00 [11:52:51]wFMCommunicate OK [11:52:51]wFMCommunicate request_size=4 [11:52:51]MH_SAM_APDU [11:52:51]CAPDU: 80 0D 03 02 [11:52:51]Write to MH i2c: E2 08 00 9B 78 80 0D 03 02 00 00 00 00 8E [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:51]Read from MH i2c: E2 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 0B 00 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 0B 00 9B 78 00 20 81 67 0E B9 33 A4 54 90 00 89 [11:52:51]RAPDU: 20 81 67 0E B9 33 A4 54 90 00 [11:52:51]wFMCommunicate OK [11:52:51]SAM_PROTO_SignData done [11:52:51]FM_MakeSignedData done [11:52:51]CreateOFDProtocolMessage [11:52:51]wFMCommunicate request_size=4 [11:52:51]MH_SAM_APDU [11:52:51]CAPDU: 80 11 00 00 [11:52:51]Write to MH i2c: E2 08 00 9C 78 80 11 00 00 00 00 00 00 8E [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:51]Read from MH i2c: E2 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 17 00 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: E2 17 00 9C 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DE [11:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:52:51]wFMCommunicate OK [11:52:51]CreateOFDProtocolMessage done [11:52:51]OFDSenderStorePacket 2195 [11:52:51]StoreOFDPacket docnum=2195 [11:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A0 01 00 00 9B 1E 98 01 BF DC 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 93 08 00 00 35 04 06 00 23 22 6C 6B 2D 80 20 81 67 0E B9 33 A4 54 [11:52:51]CheckFolder [11:52:51]dirname=/storage/ofd_packets [11:52:51]CheckFolder done [11:52:51]ProducePacketName [11:52:51]name=ofd_packets/00002195 [11:52:51]NVStorageSaveData ofd_packets/00002195 [11:52:51]File name is /storage/ofd_packets/00002195 [11:52:51]Write 446 bytes [11:52:51]NVStorageSaveData done [11:52:51]OFDSenderStorePacket done [11:52:51]KKMCreateOFDPacket done [11:52:51]NVStorageSaveData kkm_last_timestamp [11:52:51]File name is /storage/kkm_last_timestamp [11:52:51]Write 4 bytes [11:52:51]NVStorageSaveData done [11:52:51]ExternCall_PrintAddStr [11:52:51]wPrintStart [11:52:51]Write to MH i2c: 01 00 00 9D 78 15 [11:52:51]Write i2c OK [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: 01 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: 01 07 00 [11:52:51]MH_I2C_Read... [11:52:51]Read from MH i2c: 01 07 00 9D 78 00 00 00 00 00 FF 0F 2A [11:52:51]RasterBufferAndPrint [11:52:51]line Счет N : (3)126485 [11:52:51]line ИНН: 02508201610067 [11:52:51]line Контрольно-Кассовый Чек [11:52:51]line ПРОДАЖА [11:52:51]line Товар: 4870001157913 [11:52:51]line Вода ASU 0,5л c без газа [11:52:51]line 1.000 * 40.00 [11:52:51]line = 40.00 [11:52:51]line НДС 12% НСП 1% [11:52:51]line > о реализуемом товаре [11:52:51]line Товар: 3800020453407 [11:52:51]line Nestle KIT-KAT батончик chunky 36x40г [11:52:51]line 1.000 * 80.00 [11:52:51]line = 80.00 [11:52:51]line НДС 12% НСП 1% [11:52:51]line > о реализуемом товаре [11:52:51]line ИТОГО: 120.00 [11:52:51]line НСП 1% : 1.06 [11:52:51]line НДС 12% : 12.75 [11:52:51]line Наличными: 120.00 [11:52:51]line Безнал.: 0.00 [11:52:51]line Место: АЗС № 127 "Партнер Нефть" [11:52:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:52:51]line СНО: Общий режим [11:52:51]line Чек 44 29.07.2024 11:53 [11:52:51]line Смена: 15 ФФД: 1.0 [11:52:51]line ЗНМ: 0300000161 [11:52:51]line РНМ: 0000000000189667 [11:52:51]line Версия ККМ: v1.0 [11:52:51]line ФМ: 0000000002094248 [11:52:51]line ФД: 2195 [11:52:51]line ФПД: 38630754823552 [11:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2195&fm=38630754823552&tin=02508201610067®Number=0000000000189667&sum=12000 [11:52:51]line 0 [11:52:51]OFD Sender: Processing packet 2195 [packets to send 1, broken 0] [11:52:51]ProducePacketName [11:52:51]name=ofd_packets/00002195 [11:52:51]OFD Sender: To server: pG, [11:52:51]CommunicateWithHost lk.salyk.kg:30040 [11:52:51]ConnectInit lk.salyk.kg [11:52:51]written 0, free lines is 4095 [11:52:51]Connected sock=10 [11:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A0 01 00 00 9B 1E 98 01 BF DC 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 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 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 9C 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 93 08 00 00 35 04 06 00 23 22 6C 6B 2D 80 20 81 67 0E B9 33 A4 54 [11:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B2 31 47 00 B0 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 93 08 00 00 F4 03 04 00 09 2E A7 66 B6 04 01 00 00 E7 6A A5 49 90 C0 E1 50 [11:52:52]CommunicateWithHost err = 0 [11:52:52]CheckOFDResponse [11:52:52]1017 (14) - 77093643461234 [11:52:52]1041 (16) - 0000000002094248 [11:52:52]1040 (4) - 2195 [11:52:52]1012 (4) - 29.07.2024 05:52 [11:52:52]1206 (1) - 0 [11:52:52]OFD Sender: Remove packet 2195 [11:52:52]ProducePacketName [11:52:52]name=ofd_packets/00002195 [11:52:52]NVStorageDeleteData [11:52:52]Write to MH i2c: 01 00 00 CC 78 44 [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: 01 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: 01 07 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: 01 07 00 CC 78 00 00 00 00 00 CB 0C 22 [11:52:52]RasterBufferAndPrint [11:52:52]line [11:52:52]line [11:52:52]line [11:52:52]line [11:52:52]line [11:52:52]written 0, free lines is 3284 [11:52:52]MH_Cut [11:52:52]Write to MH i2c: D1 01 00 D3 78 01 1D [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: D1 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: D1 01 00 [11:52:52]MH_I2C_Read... [11:52:52]Read from MH i2c: D1 01 00 D3 78 00 1C [11:52:52]Write to MH i2c: 01 00 00 D4 78 4C [11:52:52]Write i2c OK [11:52:52]MH_I2C_Read... [11:52:52]OFD Sender: No OFD packet to send [11:52:52]*** Cut start [11:52:52]*** Partial cut [11:52:52]*** CUTSNS_PIN = 1 [11:52:53]*** CUTSNS_PIN = 0 [11:52:53]*** Brake cut motor [11:52:53]Read from MH i2c: 01 [11:52:53]MH_I2C_Read... [11:52:53]*** Stop cut motor [11:52:53]*** Cut end [11:52:53]Read from MH i2c: 01 07 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: 01 07 00 D4 78 00 00 00 00 00 FF 0F 61 [11:52:53]process_action close_receipt done [11:52:53]requested_data is exist [11:52:53]produce_requested_data [11:52:53]requested_item fm.sn is exist - process it [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 11 00 00 [11:52:53]Write to MH i2c: E2 08 00 D5 78 80 11 00 00 00 00 00 00 C7 [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 17 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 17 00 D5 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 17 [11:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:52:53]wFMCommunicate OK [11:52:53]requested_item fd.num is exist - process it [11:52:53]SAM_PROTO_GetFieldsCounters [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 13 00 00 [11:52:53]Write to MH i2c: E2 08 00 D6 78 80 13 00 00 00 00 00 00 CA [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 62 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 62 00 D6 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 93 08 00 00 0E 04 04 00 0F 00 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 22 [11:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 93 08 00 00 0E 04 04 00 0F 00 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 [11:52:53]wFMCommunicate OK [11:52:53]SAM_PROTO_GetFieldsCounters done [11:52:53]requested_item shift.num is exist - process it [11:52:53]requested_item shift.opened is exist - process it [11:52:53]req_shift_opened [11:52:53]FM_GetShiftState [11:52:53]SAM_PROTO_GetShiftState [11:52:53]wFMCommunicate request_size=4 [11:52:53]MH_SAM_APDU [11:52:53]CAPDU: 80 13 01 00 [11:52:53]Write to MH i2c: E2 08 00 D7 78 80 13 01 00 00 00 00 00 CC [11:52:53]Write i2c OK [11:52:53]MH_I2C_Read... [11:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:53]Read from MH i2c: E2 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 0E 00 [11:52:53]MH_I2C_Read... [11:52:53]Read from MH i2c: E2 0E 00 D7 78 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C5 [11:52:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:52:53]wFMCommunicate OK [11:52:53]SAM_PROTO_GetShiftState done [11:52:53]FM_GetShiftState done [11:52:53]req_shift_opened done [11:52:53]requested_item shift.open_date is exist - process it [11:52:53]req_shift_open_date [11:52:53]req_shift_open_date done [11:52:53]produce_requested_data done [11:52:53]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2195,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [11:52:53]process_action_free close_receipt [11:52:53]json_value_free [11:52:53]json_value_free done [11:52:53]process_json_proto returns [11:52:53]Send response to host [11:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2195,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [11:52:53]free response buf [11:52:53]execute_script done [11:52:53]execute_script returns [11:52:53]free content buf [11:52:53]Sock 9.Close socket [11:52:53]Sock 9.Thread stoped [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:05]accept exits with 8 [11:53:05]New connection [11:53:05]New thread 3067460964 created [11:53:05]Thread 3067317604 joined [11:53:05]Waiting for new connection... [11:53:05] Sock 8.Parse request [11:53:05]Sock 8.Check first char [11:53:05]Sock 8.First char is OK [11:53:05]request: POST /json_proto HTTP/1.0 [11:53:05]Method: POST [11:53:05]URL: /json_proto [11:53:05]Method is POST - this is cgi request [11:53:05]url: /json_proto [11:53:05]query_string will be loaded in cgi processing [11:53:05]execute_cgi json_proto POST (null) [11:53:05]execute_cgi path=json_proto method=POST [11:53:05]POST find Content-Length [11:53:05]Host: 172.17.45.132:8080 [11:53:05]Content-Length: 702 [11:53:05]Content-Type: application/json [11:53:05] [11:53:05]POST finish read [11:53:05]Found Content-Length = 702 [11:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126486", "tax_sys" : 0, "items" : [ { "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:05]execute_script... [11:53: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 : (3)126486", "tax_sys" : 0, "items" : [ { "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:05]POST & json_proto [11:53:05]process_json_proto [11:53:05]json parsed OK: [11:53:05]protocol is kg_v1.0 [11:53:05]action value=close_receipt [11:53:05]process_action close_receipt [11:53:05]cmd_close_receipt [11:53:05]MH_GetDate [11:53:05]Write to MH i2c: F0 00 00 D8 78 3F [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: F0 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: F0 09 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: F0 09 00 D8 78 00 AC 82 A7 66 E3 0B 90 66 67 [11:53:05]GetLastDocTimeStamp 1722253980 [11:53:05]current date 1722253996 [11:53:05]FM_GetShiftState [11:53:05]SAM_PROTO_GetShiftState [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 13 01 00 [11:53:05]Write to MH i2c: E2 08 00 D9 78 80 13 01 00 00 00 00 00 CE [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 0E 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 0E 00 D9 78 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C7 [11:53:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:53:05]wFMCommunicate OK [11:53:05]SAM_PROTO_GetShiftState done [11:53:05]FM_GetShiftState done [11:53:05]opened in 1722213119 [11:53:05]opened+sec_in_day 1722299519 [11:53:05]quantity*price = 14300 [11:53:05]sum+1 = 14301 [11:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 45 29.07.2024 11:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2196 ФПД: 47360933597997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115316&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2196&fm=47360933597997&tin=02508201610067®Number=0000000000189667&sum=14300 0 [11:53:06]StoreToDocumentArchive [11:53:06]shift 15 fd 2196 [11:53:06]save to /storage/0015/doc_00002196 [11:53:06]save last doc name /storage/0015/doc_00002196 to /storage/kkm_last_doc_name [11:53:06]save OK [11:53:06]Clear old archive folders... [11:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:53:06]tlvbuf is 0200E5B0 [11:53:06]SAM_PROTO_ClearQueue [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 09 00 00 [11:53:06]Write to MH i2c: E2 08 00 E6 78 80 09 00 00 00 00 00 00 D0 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 E6 78 00 90 00 D2 [11:53:06]RAPDU: 90 00 [11:53:06]wFMCommunicate OK [11:53:06]SAM_PROTO_ClearQueue done [11:53:06]KKMCreateOFDPacket [11:53:06]OFDProtocolAddRootSTLVToBuf [11:53:06]FM_MakeSignedData [11:53:06]FM_MakeSignedData [11:53:06]SAM_PROTO_SignData [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 0D 01 02 [11:53:06]Write to MH i2c: E2 08 00 E7 78 80 0D 01 02 00 00 00 00 D8 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 E7 78 00 90 00 D3 [11:53:06]RAPDU: 90 00 [11:53:06]wFMCommunicate OK [11:53:06]wFMCommunicate request_size=255 [11:53:06]MH_SAM_APDU [11:53:06]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 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 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 2D 00 00 00 F4 03 04 00 AC 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:53:06]Write to MH i2c: E2 02 01 E8 78 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 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 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 2D 00 00 00 F4 03 04 00 AC 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 5E [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 E8 78 00 90 00 D4 [11:53:06]RAPDU: 90 00 [11:53:06]wFMCommunicate OK [11:53:06]wFMCommunicate request_size=53 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 0D 02 02 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 94 08 00 00 35 04 06 00 2B 13 13 9F 93 2D [11:53:06]Write to MH i2c: E2 38 00 E9 78 80 0D 02 02 30 00 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 94 08 00 00 35 04 06 00 2B 13 13 9F 93 2D 00 00 25 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 03 00 E9 78 00 90 00 D5 [11:53:06]RAPDU: 90 00 [11:53:06]wFMCommunicate OK [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 0D 03 02 [11:53:06]Write to MH i2c: E2 08 00 EA 78 80 0D 03 02 00 00 00 00 DD [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:07]Read from MH i2c: E2 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 0B 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 0B 00 EA 78 00 5E C1 FF A3 B6 54 76 A7 90 00 C6 [11:53:07]RAPDU: 5E C1 FF A3 B6 54 76 A7 90 00 [11:53:07]wFMCommunicate OK [11:53:07]SAM_PROTO_SignData done [11:53:07]FM_MakeSignedData done [11:53:07]CreateOFDProtocolMessage [11:53:07]wFMCommunicate request_size=4 [11:53:07]MH_SAM_APDU [11:53:07]CAPDU: 80 11 00 00 [11:53:07]Write to MH i2c: E2 08 00 EB 78 80 11 00 00 00 00 00 00 DD [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:07]Read from MH i2c: E2 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 17 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 17 00 EB 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2D [11:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:53:07]wFMCommunicate OK [11:53:07]CreateOFDProtocolMessage done [11:53:07]OFDSenderStorePacket 2196 [11:53:07]StoreOFDPacket docnum=2196 [11:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 1B 89 32 01 1A F8 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 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 2D 00 00 00 F4 03 04 00 AC 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 94 08 00 00 35 04 06 00 2B 13 13 9F 93 2D 5E C1 FF A3 B6 54 76 A7 [11:53:07]CheckFolder [11:53:07]dirname=/storage/ofd_packets [11:53:07]CheckFolder done [11:53:07]ProducePacketName [11:53:07]name=ofd_packets/00002196 [11:53:07]NVStorageSaveData ofd_packets/00002196 [11:53:07]File name is /storage/ofd_packets/00002196 [11:53:07]Write 344 bytes [11:53:07]NVStorageSaveData done [11:53:07]OFDSenderStorePacket done [11:53:07]KKMCreateOFDPacket done [11:53:07]NVStorageSaveData kkm_last_timestamp [11:53:07]File name is /storage/kkm_last_timestamp [11:53:07]Write 4 bytes [11:53:07]NVStorageSaveData done [11:53:07]ExternCall_PrintAddStr [11:53:07]wPrintStart [11:53:07]Write to MH i2c: 01 00 00 EC 78 64 [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: 01 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: 01 07 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: 01 07 00 EC 78 00 00 00 00 00 FF 0F 79 [11:53:07]RasterBufferAndPrint [11:53:07]line Счет N : (3)126486 [11:53:07]line ИНН: 02508201610067 [11:53:07]line Контрольно-Кассовый Чек [11:53:07]line ПРОДАЖА [11:53:07]line Товар: 4607035653513 [11:53:07]line Вафли Голландские карамел 290 [11:53:07]line 1.000 * 143.00 [11:53:07]line = 143.00 [11:53:07]line НДС 12% НСП 1% [11:53:07]line > о реализуемом товаре [11:53:07]line ИТОГО: 143.00 [11:53:07]line НСП 1% : 1.26 [11:53:07]line НДС 12% : 15.19 [11:53:07]line Наличными: 143.00 [11:53:07]line Безнал.: 0.00 [11:53:07]line Место: АЗС № 127 "Партнер Нефть" [11:53:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:53:07]line СНО: Общий режим [11:53:07]line Чек 45 29.07.2024 11:53 [11:53:07]line Смена: 15 ФФД: 1.0 [11:53:07]line ЗНМ: 0300000161 [11:53:07]line РНМ: 0000000000189667 [11:53:07]line Версия ККМ: v1.0 [11:53:07]line ФМ: 0000000002094248 [11:53:07]line ФД: 2196 [11:53:07]line ФПД: 47360933597997 [11:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115316&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2196&fm=47360933597997&tin=02508201610067®Number=0000000000189667&sum=14300 [11:53:07]line 0 [11:53:07]OFD Sender: Processing packet 2196 [packets to send 1, broken 0] [11:53:07]ProducePacketName [11:53:07]name=ofd_packets/00002196 [11:53:07]OFD Sender: To server: pG, [11:53:07]CommunicateWithHost lk.salyk.kg:30040 [11:53:07]ConnectInit lk.salyk.kg [11:53:07]written 0, free lines is 4095 [11:53:07]Connected sock=11 [11:53:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 1B 89 32 01 1A F8 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 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 2D 00 00 00 F4 03 04 00 AC 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 94 08 00 00 35 04 06 00 2B 13 13 9F 93 2D 5E C1 FF A3 B6 54 76 A7 [11:53:07]Write to MH i2c: 01 00 00 15 79 8E [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: 01 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: 01 07 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: 01 07 00 15 79 00 00 00 00 00 01 0D A3 [11:53:07]RasterBufferAndPrint [11:53:07]line [11:53:07]line [11:53:07]line [11:53:07]line [11:53:07]line [11:53:07]written 0, free lines is 3338 [11:53:07]MH_Cut [11:53:07]Write to MH i2c: D1 01 00 1C 79 01 67 [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: D1 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: D1 01 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: D1 01 00 1C 79 00 66 [11:53:07]Write to MH i2c: 01 00 00 1D 79 96 [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 09 8A 47 00 D7 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 94 08 00 00 F4 03 04 00 18 2E A7 66 B6 04 01 00 00 EC 40 62 E2 4A 63 76 90 [11:53:07]CommunicateWithHost err = 0 [11:53:07]CheckOFDResponse [11:53:07]1017 (14) - 77093643461234 [11:53:07]1041 (16) - 0000000002094248 [11:53:07]1040 (4) - 2196 [11:53:07]1012 (4) - 29.07.2024 05:52 [11:53:07]1206 (1) - 0 [11:53:07]OFD Sender: Remove packet 2196 [11:53:07]ProducePacketName [11:53:07]name=ofd_packets/00002196 [11:53:07]NVStorageDeleteData [11:53:08]OFD Sender: No OFD packet to send [11:53:08]*** Cut start [11:53:08]*** Partial cut [11:53:08]*** CUTSNS_PIN = 1 [11:53:08]*** CUTSNS_PIN = 0 [11:53:08]*** Brake cut motor [11:53:09]Read from MH i2c: 01 [11:53:09]MH_I2C_Read... [11:53:09]*** Stop cut motor [11:53:09]*** Cut end [11:53:09]Read from MH i2c: 01 07 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: 01 07 00 1D 79 00 00 00 00 00 FF 0F AB [11:53:09]process_action close_receipt done [11:53:09]requested_data is exist [11:53:09]produce_requested_data [11:53:09]requested_item fm.sn is exist - process it [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 11 00 00 [11:53:09]Write to MH i2c: E2 08 00 1E 79 80 11 00 00 00 00 00 00 11 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 17 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 17 00 1E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 61 [11:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:53:09]wFMCommunicate OK [11:53:09]requested_item fd.num is exist - process it [11:53:09]SAM_PROTO_GetFieldsCounters [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 13 00 00 [11:53:09]Write to MH i2c: E2 08 00 1F 79 80 13 00 00 00 00 00 00 14 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 62 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 62 00 1F 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 94 08 00 00 0E 04 04 00 0F 00 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 70 [11:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 94 08 00 00 0E 04 04 00 0F 00 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:53:09]wFMCommunicate OK [11:53:09]SAM_PROTO_GetFieldsCounters done [11:53:09]requested_item shift.num is exist - process it [11:53:09]requested_item shift.opened is exist - process it [11:53:09]req_shift_opened [11:53:09]FM_GetShiftState [11:53:09]SAM_PROTO_GetShiftState [11:53:09]wFMCommunicate request_size=4 [11:53:09]MH_SAM_APDU [11:53:09]CAPDU: 80 13 01 00 [11:53:09]Write to MH i2c: E2 08 00 20 79 80 13 01 00 00 00 00 00 16 [11:53:09]Write i2c OK [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 [11:53:09]MH_I2C_Read... [11:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:09]Read from MH i2c: E2 0E 00 [11:53:09]MH_I2C_Read... [11:53:09]Read from MH i2c: E2 0E 00 20 79 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 0F [11:53:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:53:09]wFMCommunicate OK [11:53:09]SAM_PROTO_GetShiftState done [11:53:09]FM_GetShiftState done [11:53:09]req_shift_opened done [11:53:09]requested_item shift.open_date is exist - process it [11:53:09]req_shift_open_date [11:53:09]req_shift_open_date done [11:53:09]produce_requested_data done [11:53:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2196,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [11:53:09]process_action_free close_receipt [11:53:09]json_value_free [11:53:09]json_value_free done [11:53:09]process_json_proto returns [11:53:09]Send response to host [11:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2196,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [11:53:09]free response buf [11:53:09]execute_script done [11:53:09]execute_script returns [11:53:09]free content buf [11:53:09]Sock 8.Close socket [11:53:09]Sock 8.Thread stoped [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:21]accept exits with 9 [11:54:21]New connection [11:54:21]New thread 3067317604 created [11:54:21]Thread 3067460964 joined [11:54:21]Waiting for new connection... [11:54:21] Sock 9.Parse request [11:54:21]Sock 9.Check first char [11:54:21]Sock 9.First char is OK [11:54:21]request: POST /json_proto HTTP/1.0 [11:54:21]Method: POST [11:54:21]URL: /json_proto [11:54:21]Method is POST - this is cgi request [11:54:21]url: /json_proto [11:54:21]query_string will be loaded in cgi processing [11:54:21]execute_cgi json_proto POST (null) [11:54:21]execute_cgi path=json_proto method=POST [11:54:21]POST find Content-Length [11:54:21]Host: 172.17.45.132:8080 [11:54:21]Content-Length: 875 [11:54:21]Content-Type: application/json [11:54:21] [11:54:21]POST finish read [11:54:21]Found Content-Length = 875 [11:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126487", "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: O! \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" ] } } [11:54:21]execute_script... [11:54:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126487", "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: O! \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" ] } } [11:54:21]POST & json_proto [11:54:21]process_json_proto [11:54:21]json parsed OK: [11:54:21]protocol is kg_v1.0 [11:54:21]action value=close_receipt [11:54:21]process_action close_receipt [11:54:21]cmd_close_receipt [11:54:21]MH_GetDate [11:54:21]Write to MH i2c: F0 00 00 21 79 89 [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: F0 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: F0 09 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: F0 09 00 21 79 00 F8 82 A7 66 E3 0B 90 66 FD [11:54:21]GetLastDocTimeStamp 1722253996 [11:54:21]current date 1722254072 [11:54:21]FM_GetShiftState [11:54:21]SAM_PROTO_GetShiftState [11:54:21]wFMCommunicate request_size=4 [11:54:21]MH_SAM_APDU [11:54:21]CAPDU: 80 13 01 00 [11:54:21]Write to MH i2c: E2 08 00 22 79 80 13 01 00 00 00 00 00 18 [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:21]Read from MH i2c: E2 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: E2 0E 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: E2 0E 00 22 79 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 11 [11:54:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:54:21]wFMCommunicate OK [11:54:21]SAM_PROTO_GetShiftState done [11:54:21]FM_GetShiftState done [11:54:21]opened in 1722213119 [11:54:21]opened+sec_in_day 1722299519 [11:54:21]quantity*price = 9000 [11:54:21]sum+1 = 9001 [11:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 46 29.07.2024 11:54 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2197 ФПД: 109119716609626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115432&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2197&fm=109119716609626&tin=02508201610067®Number=0000000000189667&sum=9000 0 [11:54:22]StoreToDocumentArchive [11:54:22]shift 15 fd 2197 [11:54:22]save to /storage/0015/doc_00002197 [11:54:22]save last doc name /storage/0015/doc_00002197 to /storage/kkm_last_doc_name [11:54:22]save OK [11:54:22]Clear old archive folders... [11:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=305 [11:54:22]tlvbuf is 02067C20 [11:54:22]SAM_PROTO_ClearQueue [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 09 00 00 [11:54:22]Write to MH i2c: E2 08 00 2F 79 80 09 00 00 00 00 00 00 1A [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 2F 79 00 90 00 1C [11:54:22]RAPDU: 90 00 [11:54:22]wFMCommunicate OK [11:54:22]SAM_PROTO_ClearQueue done [11:54:22]KKMCreateOFDPacket [11:54:22]OFDProtocolAddRootSTLVToBuf [11:54:22]FM_MakeSignedData [11:54:22]FM_MakeSignedData [11:54:22]SAM_PROTO_SignData [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 0D 01 02 [11:54:22]Write to MH i2c: E2 08 00 30 79 80 0D 01 02 00 00 00 00 22 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 30 79 00 90 00 1D [11:54:22]RAPDU: 90 00 [11:54:22]wFMCommunicate OK [11:54:22]wFMCommunicate request_size=255 [11:54:22]MH_SAM_APDU [11:54:22]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 2E 00 00 00 F4 03 04 00 F8 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 [11:54:22]Write to MH i2c: E2 02 01 31 79 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 2E 00 00 00 F4 03 04 00 F8 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 00 00 2A [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 31 79 00 90 00 1E [11:54:22]RAPDU: 90 00 [11:54:22]wFMCommunicate OK [11:54:22]wFMCommunicate request_size=64 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 95 08 00 00 35 04 06 00 63 3E 69 F2 4E 5A [11:54:22]Write to MH i2c: E2 43 00 32 79 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 95 08 00 00 35 04 06 00 63 3E 69 F2 4E 5A 00 00 BC [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:23]Read from MH i2c: E2 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 03 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 03 00 32 79 00 90 00 1F [11:54:23]RAPDU: 90 00 [11:54:23]wFMCommunicate OK [11:54:23]wFMCommunicate request_size=4 [11:54:23]MH_SAM_APDU [11:54:23]CAPDU: 80 0D 03 02 [11:54:23]Write to MH i2c: E2 08 00 33 79 80 0D 03 02 00 00 00 00 27 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:23]Read from MH i2c: E2 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 0B 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 0B 00 33 79 00 B8 D8 88 3D 32 28 1D D4 90 00 C8 [11:54:23]RAPDU: B8 D8 88 3D 32 28 1D D4 90 00 [11:54:23]wFMCommunicate OK [11:54:23]SAM_PROTO_SignData done [11:54:23]FM_MakeSignedData done [11:54:23]CreateOFDProtocolMessage [11:54:23]wFMCommunicate request_size=4 [11:54:23]MH_SAM_APDU [11:54:23]CAPDU: 80 11 00 00 [11:54:23]Write to MH i2c: E2 08 00 34 79 80 11 00 00 00 00 00 00 27 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:23]Read from MH i2c: E2 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 17 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 17 00 34 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 77 [11:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:54:23]wFMCommunicate OK [11:54:23]CreateOFDProtocolMessage done [11:54:23]OFDSenderStorePacket 2197 [11:54:23]StoreOFDPacket docnum=2197 [11:54:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 45 01 00 00 20 4C 3D 01 F4 3D 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 2E 00 00 00 F4 03 04 00 F8 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 95 08 00 00 35 04 06 00 63 3E 69 F2 4E 5A B8 D8 88 3D 32 28 1D D4 [11:54:23]CheckFolder [11:54:23]dirname=/storage/ofd_packets [11:54:23]CheckFolder done [11:54:23]ProducePacketName [11:54:23]name=ofd_packets/00002197 [11:54:23]NVStorageSaveData ofd_packets/00002197 [11:54:23]File name is /storage/ofd_packets/00002197 [11:54:23]Write 355 bytes [11:54:23]NVStorageSaveData done [11:54:23]OFDSenderStorePacket done [11:54:23]KKMCreateOFDPacket done [11:54:23]NVStorageSaveData kkm_last_timestamp [11:54:23]File name is /storage/kkm_last_timestamp [11:54:23]Write 4 bytes [11:54:23]NVStorageSaveData done [11:54:23]ExternCall_PrintAddStr [11:54:23]wPrintStart [11:54:23]Write to MH i2c: 01 00 00 35 79 AE [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 07 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 07 00 35 79 00 00 00 00 00 FF 0F C3 [11:54:23]RasterBufferAndPrint [11:54:23]line Счет N : (3)126487 [11:54:23]line ИНН: 02508201610067 [11:54:23]line Контрольно-Кассовый Чек [11:54:23]line ПРОДАЖА [11:54:23]line Товар: 4870235681086 [11:54:23]line Grizzly волнистые Сыр с халапеньо 55 гр [11:54:23]line 1.000 * 90.00 [11:54:23]line = 90.00 [11:54:23]line НДС 12% НСП 1% [11:54:23]line > о реализуемом товаре [11:54:23]line ИТОГО: 90.00 [11:54:23]line НСП 1% : 0.80 [11:54:23]line НДС 12% : 9.56 [11:54:23]line Наличными: 0.00 [11:54:23]line Безнал.: 90.00 [11:54:23]line Место: АЗС № 127 "Партнер Нефть" [11:54:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [11:54:23]line СНО: Общий режим [11:54:23]line Чек 46 29.07.2024 11:54 [11:54:23]line Смена: 15 ФФД: 1.0 [11:54:23]line ЗНМ: 0300000161 [11:54:23]line РНМ: 0000000000189667 [11:54:23]line Версия ККМ: v1.0 [11:54:23]line Платежная система: O! деньги [11:54:23]line ФМ: 0000000002094248 [11:54:23]line ФД: 2197 [11:54:23]line ФПД: 109119716609626 [11:54:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115432&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2197&fm=109119716609626&tin=02508201610067®Number=0000000000189667&sum=9000 [11:54:23]line 0 [11:54:23]OFD Sender: Processing packet 2197 [packets to send 1, broken 0] [11:54:23]ProducePacketName [11:54:23]name=ofd_packets/00002197 [11:54:23]OFD Sender: To server: pG, [11:54:23]CommunicateWithHost lk.salyk.kg:30040 [11:54:23]ConnectInit lk.salyk.kg [11:54:23]written 0, free lines is 4095 [11:54:23]Connected sock=10 [11:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 45 01 00 00 20 4C 3D 01 F4 3D 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 2E 00 00 00 F4 03 04 00 F8 82 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 95 08 00 00 35 04 06 00 63 3E 69 F2 4E 5A B8 D8 88 3D 32 28 1D D4 [11:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8C 7B 47 00 DB 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 95 08 00 00 F4 03 04 00 64 2E A7 66 B6 04 01 00 00 4E 3B BB EB F7 AF 4D 7C [11:54:23]CommunicateWithHost err = 0 [11:54:23]CheckOFDResponse [11:54:23]1017 (14) - 77093643461234 [11:54:23]1041 (16) - 0000000002094248 [11:54:23]1040 (4) - 2197 [11:54:23]1012 (4) - 29.07.2024 05:53 [11:54:23]1206 (1) - 0 [11:54:23]OFD Sender: Remove packet 2197 [11:54:23]ProducePacketName [11:54:23]name=ofd_packets/00002197 [11:54:23]NVStorageDeleteData [11:54:23]Write to MH i2c: 01 00 00 60 79 D9 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 07 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 07 00 60 79 00 00 00 00 00 EE 0C DA [11:54:23]RasterBufferAndPrint [11:54:23]line [11:54:23]line [11:54:23]line [11:54:23]line [11:54:23]line [11:54:23]written 0, free lines is 3317 [11:54:23]MH_Cut [11:54:23]Write to MH i2c: D1 01 00 67 79 01 B2 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: D1 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: D1 01 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: D1 01 00 67 79 00 B1 [11:54:23]Write to MH i2c: 01 00 00 68 79 E1 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:24]OFD Sender: No OFD packet to send [11:54:24]*** Cut start [11:54:24]*** Partial cut [11:54:24]*** CUTSNS_PIN = 1 [11:54:24]*** CUTSNS_PIN = 0 [11:54:24]*** Brake cut motor [11:54:25]Read from MH i2c: 01 [11:54:25]MH_I2C_Read... [11:54:25]*** Stop cut motor [11:54:25]*** Cut end [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 68 79 00 00 00 00 00 FF 0F F6 [11:54:25]process_action close_receipt done [11:54:25]requested_data is exist [11:54:25]produce_requested_data [11:54:25]requested_item fm.sn is exist - process it [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 11 00 00 [11:54:25]Write to MH i2c: E2 08 00 69 79 80 11 00 00 00 00 00 00 5C [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:25]Read from MH i2c: E2 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 17 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 17 00 69 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AC [11:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [11:54:25]wFMCommunicate OK [11:54:25]requested_item fd.num is exist - process it [11:54:25]SAM_PROTO_GetFieldsCounters [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 13 00 00 [11:54:25]Write to MH i2c: E2 08 00 6A 79 80 13 00 00 00 00 00 00 5F [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:25]Read from MH i2c: E2 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 62 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 62 00 6A 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 95 08 00 00 0E 04 04 00 0F 00 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 BF [11:54:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 95 08 00 00 0E 04 04 00 0F 00 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:54:25]wFMCommunicate OK [11:54:25]SAM_PROTO_GetFieldsCounters done [11:54:25]requested_item shift.num is exist - process it [11:54:25]requested_item shift.opened is exist - process it [11:54:25]req_shift_opened [11:54:25]FM_GetShiftState [11:54:25]SAM_PROTO_GetShiftState [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 13 01 00 [11:54:25]Write to MH i2c: E2 08 00 6B 79 80 13 01 00 00 00 00 00 61 [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:25]Read from MH i2c: E2 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 0E 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 0E 00 6B 79 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5A [11:54:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [11:54:25]wFMCommunicate OK [11:54:25]SAM_PROTO_GetShiftState done [11:54:25]FM_GetShiftState done [11:54:25]req_shift_opened done [11:54:25]requested_item shift.open_date is exist - process it [11:54:25]req_shift_open_date [11:54:25]req_shift_open_date done [11:54:25]produce_requested_data done [11:54:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2197,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [11:54:25]process_action_free close_receipt [11:54:25]json_value_free [11:54:25]json_value_free done [11:54:25]process_json_proto returns [11:54:25]Send response to host [11:54:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2197,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [11:54:25]free response buf [11:54:25]execute_script done [11:54:25]execute_script returns [11:54:25]free content buf [11:54:25]Sock 9.Close socket [11:54:25]Sock 9.Thread stoped [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [12:02:27]ConnectInit Can't connect to host [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:12]accept exits with 8 [12:12:12]New connection [12:12:12]New thread 3067460964 created [12:12:12]Thread 3067317604 joined [12:12:12]Waiting for new connection... [12:12:12] Sock 8.Parse request [12:12:12]Sock 8.Check first char [12:12:12]Sock 8.First char is OK [12:12:12]request: POST /json_proto HTTP/1.0 [12:12:12]Method: POST [12:12:12]URL: /json_proto [12:12:12]Method is POST - this is cgi request [12:12:12]url: /json_proto [12:12:12]query_string will be loaded in cgi processing [12:12:12]execute_cgi json_proto POST (null) [12:12:12]execute_cgi path=json_proto method=POST [12:12:12]POST find Content-Length [12:12:12]Host: 172.17.45.132:8080 [12:12:12]Content-Length: 937 [12:12:12]Content-Type: application/json [12:12:12] [12:12:12]POST finish read [12:12:12]Found Content-Length = 937 [12:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126488", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\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" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:12]execute_script... [12: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)126488", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\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" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:12]POST & json_proto [12:12:12]process_json_proto [12:12:12]json parsed OK: [12:12:12]protocol is kg_v1.0 [12:12:12]action value=close_receipt [12:12:12]process_action close_receipt [12:12:12]cmd_close_receipt [12:12:12]MH_GetDate [12:12:12]Write to MH i2c: F0 00 00 6C 79 D4 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: F0 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: F0 09 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: F0 09 00 6C 79 00 27 87 A7 66 E3 0B 90 66 7C [12:12:12]GetLastDocTimeStamp 1722254072 [12:12:12]current date 1722255143 [12:12:12]FM_GetShiftState [12:12:12]SAM_PROTO_GetShiftState [12:12:12]wFMCommunicate request_size=4 [12:12:12]MH_SAM_APDU [12:12:12]CAPDU: 80 13 01 00 [12:12:12]Write to MH i2c: E2 08 00 6D 79 80 13 01 00 00 00 00 00 63 [12:12:12]Write i2c OK [12:12:12]MH_I2C_Read... [12:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:12]Read from MH i2c: E2 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 0E 00 [12:12:12]MH_I2C_Read... [12:12:12]Read from MH i2c: E2 0E 00 6D 79 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5C [12:12:12]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:12:12]wFMCommunicate OK [12:12:12]SAM_PROTO_GetShiftState done [12:12:12]FM_GetShiftState done [12:12:12]opened in 1722213119 [12:12:12]opened+sec_in_day 1722299519 [12:12:12]quantity*price = 4000 [12:12:12]sum+1 = 4001 [12:12:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700025313937 ВОДКА МЯГКАЯ 0,1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 47 29.07.2024 12:12 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2198 ФПД: 261943266179656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T121223&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2198&fm=261943266179656&tin=02508201610067®Number=0000000000189667&sum=10000 0 [12:12:13]StoreToDocumentArchive [12:12:13]shift 15 fd 2198 [12:12:13]save to /storage/0015/doc_00002198 [12:12:13]save last doc name /storage/0015/doc_00002198 to /storage/kkm_last_doc_name [12:12:13]save OK [12:12:13]Clear old archive folders... [12:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=399 [12:12:13]tlvbuf is 021A4DF0 [12:12:13]SAM_PROTO_ClearQueue [12:12:13]wFMCommunicate request_size=4 [12:12:13]MH_SAM_APDU [12:12:13]CAPDU: 80 09 00 00 [12:12:13]Write to MH i2c: E2 08 00 7A 79 80 09 00 00 00 00 00 00 65 [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:13]Read from MH i2c: E2 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: E2 03 00 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: E2 03 00 7A 79 00 90 00 67 [12:12:13]RAPDU: 90 00 [12:12:13]wFMCommunicate OK [12:12:13]SAM_PROTO_ClearQueue done [12:12:13]KKMCreateOFDPacket [12:12:13]OFDProtocolAddRootSTLVToBuf [12:12:13]FM_MakeSignedData [12:12:13]FM_MakeSignedData [12:12:13]SAM_PROTO_SignData [12:12:13]wFMCommunicate request_size=4 [12:12:13]MH_SAM_APDU [12:12:13]CAPDU: 80 0D 01 02 [12:12:13]Write to MH i2c: E2 08 00 7B 79 80 0D 01 02 00 00 00 00 6D [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:13]Read from MH i2c: E2 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: E2 03 00 [12:12:13]MH_I2C_Read... [12:12:13]Read from MH i2c: E2 03 00 7B 79 00 90 00 68 [12:12:13]RAPDU: 90 00 [12:12:13]wFMCommunicate OK [12:12:13]wFMCommunicate request_size=255 [12:12:13]MH_SAM_APDU [12:12:13]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 10 27 00 00 00 00 EB 03 [12:12:13]Write to MH i2c: E2 02 01 7C 79 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 10 27 00 00 00 00 EB 03 00 00 03 [12:12:13]Write i2c OK [12:12:13]MH_I2C_Read... [12:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:14]Read from MH i2c: E2 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 03 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 03 00 7C 79 00 90 00 69 [12:12:14]RAPDU: 90 00 [12:12:14]wFMCommunicate OK [12:12:14]wFMCommunicate request_size=158 [12:12:14]MH_SAM_APDU [12:12:14]CAPDU: 80 0D 02 02 99 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 2F 00 00 00 F4 03 04 00 27 87 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 96 08 00 00 35 04 06 00 EE 3C 6B 54 FA 48 [12:12:14]Write to MH i2c: E2 A1 00 7D 79 80 0D 02 02 99 00 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 2F 00 00 00 F4 03 04 00 27 87 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 96 08 00 00 35 04 06 00 EE 3C 6B 54 FA 48 00 00 75 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:14]Read from MH i2c: E2 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 03 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 03 00 7D 79 00 90 00 6A [12:12:14]RAPDU: 90 00 [12:12:14]wFMCommunicate OK [12:12:14]wFMCommunicate request_size=4 [12:12:14]MH_SAM_APDU [12:12:14]CAPDU: 80 0D 03 02 [12:12:14]Write to MH i2c: E2 08 00 7E 79 80 0D 03 02 00 00 00 00 72 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:14]Read from MH i2c: E2 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 0B 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 0B 00 7E 79 00 FC 37 89 FC 28 DC BB C1 90 00 AB [12:12:14]RAPDU: FC 37 89 FC 28 DC BB C1 90 00 [12:12:14]wFMCommunicate OK [12:12:14]SAM_PROTO_SignData done [12:12:14]FM_MakeSignedData done [12:12:14]CreateOFDProtocolMessage [12:12:14]wFMCommunicate request_size=4 [12:12:14]MH_SAM_APDU [12:12:14]CAPDU: 80 11 00 00 [12:12:14]Write to MH i2c: E2 08 00 7F 79 80 11 00 00 00 00 00 00 72 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:14]Read from MH i2c: E2 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 17 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 17 00 7F 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C2 [12:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:12:14]wFMCommunicate OK [12:12:14]CreateOFDProtocolMessage done [12:12:14]OFDSenderStorePacket 2198 [12:12:14]StoreOFDPacket docnum=2198 [12:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A3 01 00 00 C6 4F 9B 01 8A 49 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 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 2F 00 00 00 F4 03 04 00 27 87 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 96 08 00 00 35 04 06 00 EE 3C 6B 54 FA 48 FC 37 89 FC 28 DC BB C1 [12:12:14]CheckFolder [12:12:14]dirname=/storage/ofd_packets [12:12:14]CheckFolder done [12:12:14]ProducePacketName [12:12:14]name=ofd_packets/00002198 [12:12:14]NVStorageSaveData ofd_packets/00002198 [12:12:14]File name is /storage/ofd_packets/00002198 [12:12:14]Write 449 bytes [12:12:14]NVStorageSaveData done [12:12:14]OFDSenderStorePacket done [12:12:14]KKMCreateOFDPacket done [12:12:14]NVStorageSaveData kkm_last_timestamp [12:12:14]File name is /storage/kkm_last_timestamp [12:12:14]Write 4 bytes [12:12:14]NVStorageSaveData done [12:12:14]ExternCall_PrintAddStr [12:12:14]wPrintStart [12:12:14]Write to MH i2c: 01 00 00 80 79 F9 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: 01 [12:12:14]MH_I2C_Read... [12:12:14]OFD Sender: Processing packet 2198 [packets to send 1, broken 0] [12:12:14]ProducePacketName [12:12:14]name=ofd_packets/00002198 [12:12:14]OFD Sender: To server: pG, [12:12:14]CommunicateWithHost lk.salyk.kg:30040 [12:12:14]ConnectInit lk.salyk.kg [12:12:14]Read from MH i2c: 01 07 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: 01 07 00 80 79 00 00 00 00 00 FF 0F 0E [12:12:14]RasterBufferAndPrint [12:12:14]line Счет N : (3)126488 [12:12:14]line ИНН: 02508201610067 [12:12:14]line Контрольно-Кассовый Чек [12:12:14]line ПРОДАЖА [12:12:14]line Товар: 4700003010483 [12:12:14]line Напиток Let`s Go! с/с яблоко ПЭТ 0,5л [12:12:14]line 1.000 * 40.00 [12:12:14]line = 40.00 [12:12:14]line НДС 12% НСП 1% [12:12:14]line > о реализуемом товаре [12:12:14]line Товар: 4700025313937 [12:12:14]line ВОДКА МЯГКАЯ 0,1л [12:12:14]line 1.000 * 60.00 [12:12:14]line = 60.00 [12:12:14]line НДС 12% НСП 1% [12:12:14]line > о реализуемом товаре [12:12:14]line ИТОГО: 100.00 [12:12:14]line НСП 1% : 0.88 [12:12:14]line НДС 12% : 10.62 [12:12:14]line Наличными: 100.00 [12:12:14]line Безнал.: 0.00 [12:12:14]line Место: АЗС № 127 "Партнер Нефть" [12:12:14]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:12:14]line СНО: Общий режим [12:12:14]line Чек 47 29.07.2024 12:12 [12:12:14]line Смена: 15 ФФД: 1.0 [12:12:14]line ЗНМ: 0300000161 [12:12:14]line РНМ: 0000000000189667 [12:12:14]line Версия ККМ: v1.0 [12:12:14]line ФМ: 0000000002094248 [12:12:14]line ФД: 2198 [12:12:14]line ФПД: 261943266179656 [12:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T121223&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2198&fm=261943266179656&tin=02508201610067®Number=0000000000189667&sum=10000 [12:12:14]line 0 [12:12:14]written 0, free lines is 4095 [12:12:14]Connected sock=10 [12:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A3 01 00 00 C6 4F 9B 01 8A 49 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 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 2F 00 00 00 F4 03 04 00 27 87 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 96 08 00 00 35 04 06 00 EE 3C 6B 54 FA 48 FC 37 89 FC 28 DC BB C1 [12:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6C 08 47 00 47 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 32 30 39 34 32 34 38 10 04 04 00 96 08 00 00 F4 03 04 00 94 32 A7 66 B6 04 01 00 00 69 04 AD 0A 45 E9 22 27 [12:12:15]CommunicateWithHost err = 0 [12:12:15]CheckOFDResponse [12:12:15]1017 (14) - 77093643461234 [12:12:15]1041 (16) - 0000000002094248 [12:12:15]1040 (4) - 2198 [12:12:15]1012 (4) - 29.07.2024 06:11 [12:12:15]1206 (1) - 0 [12:12:15]OFD Sender: Remove packet 2198 [12:12:15]ProducePacketName [12:12:15]name=ofd_packets/00002198 [12:12:15]NVStorageDeleteData [12:12:15]Write to MH i2c: 01 00 00 AF 79 28 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: 01 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: 01 07 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: 01 07 00 AF 79 00 00 00 00 00 D1 0C 0C [12:12:15]RasterBufferAndPrint [12:12:15]line [12:12:15]line [12:12:15]line [12:12:15]line [12:12:15]line [12:12:15]written 0, free lines is 3290 [12:12:15]MH_Cut [12:12:15]Write to MH i2c: D1 01 00 B6 79 01 01 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: D1 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: D1 01 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: D1 01 00 B6 79 00 00 [12:12:15]Write to MH i2c: 01 00 00 B7 79 30 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]OFD Sender: No OFD packet to send [12:12:15]*** Cut start [12:12:15]*** Partial cut [12:12:15]*** CUTSNS_PIN = 1 [12:12:15]*** CUTSNS_PIN = 0 [12:12:16]*** Brake cut motor [12:12:16]Read from MH i2c: 01 [12:12:16]MH_I2C_Read... [12:12:16]*** Stop cut motor [12:12:16]*** Cut end [12:12:16]Read from MH i2c: 01 07 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 07 00 B7 79 00 00 00 00 00 FF 0F 45 [12:12:16]process_action close_receipt done [12:12:16]requested_data is exist [12:12:16]produce_requested_data [12:12:16]requested_item fm.sn is exist - process it [12:12:16]wFMCommunicate request_size=4 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 11 00 00 [12:12:16]Write to MH i2c: E2 08 00 B8 79 80 11 00 00 00 00 00 00 AB [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 17 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 17 00 B8 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FB [12:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:12:16]wFMCommunicate OK [12:12:16]requested_item fd.num is exist - process it [12:12:16]SAM_PROTO_GetFieldsCounters [12:12:16]wFMCommunicate request_size=4 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 13 00 00 [12:12:16]Write to MH i2c: E2 08 00 B9 79 80 13 00 00 00 00 00 00 AE [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 62 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 62 00 B9 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 96 08 00 00 0E 04 04 00 0F 00 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 12 [12:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 96 08 00 00 0E 04 04 00 0F 00 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 [12:12:16]wFMCommunicate OK [12:12:16]SAM_PROTO_GetFieldsCounters done [12:12:16]requested_item shift.num is exist - process it [12:12:16]requested_item shift.opened is exist - process it [12:12:16]req_shift_opened [12:12:16]FM_GetShiftState [12:12:16]SAM_PROTO_GetShiftState [12:12:16]wFMCommunicate request_size=4 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 13 01 00 [12:12:16]Write to MH i2c: E2 08 00 BA 79 80 13 01 00 00 00 00 00 B0 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0E 00 BA 79 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A9 [12:12:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:12:16]wFMCommunicate OK [12:12:16]SAM_PROTO_GetShiftState done [12:12:16]FM_GetShiftState done [12:12:16]req_shift_opened done [12:12:16]requested_item shift.open_date is exist - process it [12:12:16]req_shift_open_date [12:12:16]req_shift_open_date done [12:12:16]produce_requested_data done [12:12:16]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2198,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [12:12:16]process_action_free close_receipt [12:12:16]json_value_free [12:12:16]json_value_free done [12:12:16]process_json_proto returns [12:12:16]Send response to host [12:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2198,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [12:12:16]free response buf [12:12:16]execute_script done [12:12:16]execute_script returns [12:12:16]free content buf [12:12:16]Sock 8.Close socket [12:12:16]Sock 8.Thread stoped [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:53]accept exits with 9 [12:17:53]New connection [12:17:53]New thread 3067317604 created [12:17:53]Thread 3067460964 joined [12:17:53]Waiting for new connection... [12:17:53] Sock 9.Parse request [12:17:53]Sock 9.Check first char [12:17:53]Sock 9.First char is OK [12:17:53]request: POST /json_proto HTTP/1.0 [12:17:53]Method: POST [12:17:53]URL: /json_proto [12:17:53]Method is POST - this is cgi request [12:17:53]url: /json_proto [12:17:53]query_string will be loaded in cgi processing [12:17:53]execute_cgi json_proto POST (null) [12:17:53]execute_cgi path=json_proto method=POST [12:17:53]POST find Content-Length [12:17:53]Host: 172.17.45.132:8080 [12:17:53]Content-Length: 215 [12:17:53]Content-Type: application/json [12:17:53] [12:17:53]POST finish read [12:17:53]Found Content-Length = 215 [12:17:53]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" ] } } [12:17:53]execute_script... [12:17:53]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" ] } } [12:17:53]POST & json_proto [12:17:53]process_json_proto [12:17:53]json parsed OK: [12:17:53]protocol is kg_v1.0 [12:17:53]action value=get_value [12:17:53]process_action get_value [12:17:53]cmd_get_value [12:17:53]process_action get_value done [12:17:53]requested_data is exist [12:17:53]produce_requested_data [12:17:53]requested_item kkm.sn is exist - process it [12:17:53]requested_item kkm.ver is exist - process it [12:17:53]requested_item fm.sn is exist - process it [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 11 00 00 [12:17:53]Write to MH i2c: E2 08 00 BB 79 80 11 00 00 00 00 00 00 AE [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 17 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 17 00 BB 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FE [12:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:17:53]wFMCommunicate OK [12:17:53]requested_item fd.num is exist - process it [12:17:53]SAM_PROTO_GetFieldsCounters [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 13 00 00 [12:17:53]Write to MH i2c: E2 08 00 BC 79 80 13 00 00 00 00 00 00 B1 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 62 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 62 00 BC 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 96 08 00 00 0E 04 04 00 0F 00 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 15 [12:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 96 08 00 00 0E 04 04 00 0F 00 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 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_GetFieldsCounters done [12:17:53]requested_item shift.num is exist - process it [12:17:53]requested_item shift.opened is exist - process it [12:17:53]req_shift_opened [12:17:53]FM_GetShiftState [12:17:53]SAM_PROTO_GetShiftState [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 13 01 00 [12:17:53]Write to MH i2c: E2 08 00 BD 79 80 13 01 00 00 00 00 00 B3 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0E 00 BD 79 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AC [12:17:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_GetShiftState done [12:17:53]FM_GetShiftState done [12:17:53]req_shift_opened done [12:17:53]requested_item shift.open_date is exist - process it [12:17:53]req_shift_open_date [12:17:53]req_shift_open_date done [12:17:53]produce_requested_data done [12:17:53]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2198,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [12:17:53]process_action_free get_value [12:17:53]json_value_free [12:17:53]json_value_free done [12:17:53]process_json_proto returns [12:17:53]Send response to host [12:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2198,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [12:17:53]free response buf [12:17:53]execute_script done [12:17:53]execute_script returns [12:17:53]free content buf [12:17:53]Sock 9.Close socket [12:17:53]Sock 9.Thread stoped [12:17:55]OFD Sender: No OFD packet to send [12:17:56]accept exits with 10 [12:17:56]New connection [12:17:56]New thread 3067460964 created [12:17:56]Thread 3067317604 joined [12:17:56]Waiting for new connection... [12:17:56] Sock 10.Parse request [12:17:56]Sock 10.Check first char [12:17:56]Sock 10.First char is OK [12:17:56]request: POST /json_proto HTTP/1.0 [12:17:56]Method: POST [12:17:56]URL: /json_proto [12:17:56]Method is POST - this is cgi request [12:17:56]url: /json_proto [12:17:56]query_string will be loaded in cgi processing [12:17:56]execute_cgi json_proto POST (null) [12:17:56]execute_cgi path=json_proto method=POST [12:17:56]POST find Content-Length [12:17:56]Host: 172.17.45.132:8080 [12:17:56]Content-Length: 331 [12:17:56]Content-Type: application/json [12:17:56] [12:17:56]POST finish read [12:17:56]Found Content-Length = 331 [12:17:56]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" ] } } [12:17:56]execute_script... [12:17:56]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" ] } } [12:17:56]POST & json_proto [12:17:56]process_json_proto [12:17:56]json parsed OK: [12:17:56]protocol is kg_v1.0 [12:17:56]action value=get_value [12:17:56]process_action get_value [12:17:56]cmd_get_value [12:17:56]process_action get_value done [12:17:56]requested_data is exist [12:17:56]produce_requested_data [12:17:56]requested_item fm.sale.total is exist - process it [12:17:56]SAM_PROTO_GetFMData [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 13 03 00 [12:17:56]Write to MH i2c: E2 08 00 BE 79 80 13 03 00 00 00 00 00 B6 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 FD 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 FD 00 BE 79 00 C0 04 85 04 BC 04 6E 04 04 00 78 08 00 00 69 04 9F 00 6F 04 04 00 67 08 00 00 B1 04 04 00 5B 14 73 05 70 04 04 00 18 73 85 03 72 04 04 00 43 A1 ED 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5A 2A 94 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 FA 57 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 AB [12:17:56]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 78 08 00 00 69 04 9F 00 6F 04 04 00 67 08 00 00 B1 04 04 00 5B 14 73 05 70 04 04 00 18 73 85 03 72 04 04 00 43 A1 ED 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5A 2A 94 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 FA 57 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [12:17:56]wFMCommunicate OK [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 17 00 00 [12:17:56]Write to MH i2c: E2 08 00 BF 79 80 17 00 00 00 00 00 00 B8 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 FD 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 FD 00 BF 79 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 17 [12:17:57]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 17 00 00 [12:17:57]Write to MH i2c: E2 08 00 C0 79 80 17 00 00 00 00 00 00 B9 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 FD 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 FD 00 C0 79 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [12:17:57]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 17 00 00 [12:17:57]Write to MH i2c: E2 08 00 C1 79 80 17 00 00 00 00 00 00 BA [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 FD 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 FD 00 C1 79 00 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [12:17:57]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 17 00 00 [12:17:57]Write to MH i2c: E2 08 00 C2 79 80 17 00 00 00 00 00 00 BB [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 DD 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 DD 00 C2 79 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A3 [12:17:58]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:17:58]wFMCommunicate OK [12:17:58]SAM_PROTO_GetFMData done [12:17:58]requested_item fm.sale_refund.total is exist - process it [12:17:58]requested_item fm.buy.total is exist - process it [12:17:58]requested_item shift.sale.total is exist - process it [12:17:58]SAM_PROTO_GetShiftData [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 13 02 00 [12:17:58]Write to MH i2c: E2 08 00 C3 79 80 13 02 00 00 00 00 00 BA [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 FD 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 FD 00 C3 79 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 49 19 18 70 04 03 00 54 CA 0E 72 04 03 00 F5 4E 09 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 36 8F 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 95 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [12:17:58]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 49 19 18 70 04 03 00 54 CA 0E 72 04 03 00 F5 4E 09 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 36 8F 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 95 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:17:58]wFMCommunicate OK [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 17 00 00 [12:17:58]Write to MH i2c: E2 08 00 C4 79 80 17 00 00 00 00 00 00 BD [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 FD 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 FD 00 C4 79 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 DF [12:17:58]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 [12:17:58]wFMCommunicate OK [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 17 00 00 [12:17:58]Write to MH i2c: E2 08 00 C5 79 80 17 00 00 00 00 00 00 BE [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 FD 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 FD 00 C5 79 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [12:17:59]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 [12:17:59]wFMCommunicate OK [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 17 00 00 [12:17:59]Write to MH i2c: E2 08 00 C6 79 80 17 00 00 00 00 00 00 BF [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 FD 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 FD 00 C6 79 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 31 [12:17:59]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 [12:17:59]wFMCommunicate OK [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 17 00 00 [12:17:59]Write to MH i2c: E2 08 00 C7 79 80 17 00 00 00 00 00 00 C0 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 CB 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 CB 00 C7 79 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 A9 [12:17:59]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 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_GetShiftData done [12:17:59]requested_item shift.sale.total_cash is exist - process it [12:17:59]requested_item shift.sale_refund.total is exist - process it [12:17:59]requested_item shift.sale_refund.total_cash is exist - process it [12:17:59]requested_item shift.buy.total is exist - process it [12:17:59]requested_item shift.buy.total_cash is exist - process it [12:17:59]produce_requested_data done [12:17:59]produce_requested_data return {"fm.sale.total":914279.31,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":15793.37,"shift.sale.total_cash":9693.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} [12:17:59]process_action_free get_value [12:17:59]json_value_free [12:17:59]json_value_free done [12:17:59]process_json_proto returns [12:17:59]Send response to host [12:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":914279.31,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":15793.37,"shift.sale.total_cash":9693.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}}} [12:17:59]free response buf [12:17:59]execute_script done [12:17:59]execute_script returns [12:17:59]free content buf [12:17:59]Sock 10.Close socket [12:17:59]Sock 10.Thread stoped [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:48]accept exits with 8 [12:24:48]New connection [12:24:48]New thread 3067317604 created [12:24:48]Thread 3067460964 joined [12:24:48]Waiting for new connection... [12:24:48] Sock 8.Parse request [12:24:48]Sock 8.Check first char [12:24:48]Sock 8.First char is OK [12:24:48]request: POST /json_proto HTTP/1.0 [12:24:48]Method: POST [12:24:48]URL: /json_proto [12:24:48]Method is POST - this is cgi request [12:24:48]url: /json_proto [12:24:48]query_string will be loaded in cgi processing [12:24:48]execute_cgi json_proto POST (null) [12:24:48]execute_cgi path=json_proto method=POST [12:24:48]POST find Content-Length [12:24:48]Host: 172.17.45.132:8080 [12:24:48]Content-Length: 2011 [12:24:48]Content-Type: application/json [12:24:48] [12:24:48]POST finish read [12:24:48]Found Content-Length = 2011 [12:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126489", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 408.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:48]execute_script... [12:24: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)126489", "tax_sys" : 0, "items" : [ { "code": "4700003610560", "name": "\u0412\u043E\u0434\u0430 \u042D\u043D\u0435\u0441\u0430\u0439 5\u043B.", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 408.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:49]POST & json_proto [12:24:49]process_json_proto [12:24:49]json parsed OK: [12:24:49]protocol is kg_v1.0 [12:24:49]action value=close_receipt [12:24:49]process_action close_receipt [12:24:49]cmd_close_receipt [12:24:49]MH_GetDate [12:24:49]Write to MH i2c: F0 00 00 C8 79 30 [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: F0 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: F0 09 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: F0 09 00 C8 79 00 1C 8A A7 66 E3 0B 90 66 D0 [12:24:49]GetLastDocTimeStamp 1722255143 [12:24:49]current date 1722255900 [12:24:49]FM_GetShiftState [12:24:49]SAM_PROTO_GetShiftState [12:24:49]wFMCommunicate request_size=4 [12:24:49]MH_SAM_APDU [12:24:49]CAPDU: 80 13 01 00 [12:24:49]Write to MH i2c: E2 08 00 C9 79 80 13 01 00 00 00 00 00 BF [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:49]Read from MH i2c: E2 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 0E 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 0E 00 C9 79 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B8 [12:24:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:24:49]wFMCommunicate OK [12:24:49]SAM_PROTO_GetShiftState done [12:24:49]FM_GetShiftState done [12:24:49]opened in 1722213119 [12:24:49]opened+sec_in_day 1722299519 [12:24:49]quantity*price = 6000 [12:24:49]sum+1 = 6001 [12:24:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002329951 Напиток Lipton IceTea 1л зел чай Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 408.00 НСП 1% : 3.61 НДС 12% : 43.31 Наличными: 0.00 Безнал.: 408.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 48 29.07.2024 12:25 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2199 ФПД: 267084724493271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122500&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2199&fm=267084724493271&tin=02508201610067®Number=0000000000189667&sum=40800 0 [12:24:50]StoreToDocumentArchive [12:24:50]shift 15 fd 2199 [12:24:50]save to /storage/0015/doc_00002199 [12:24:50]save last doc name /storage/0015/doc_00002199 to /storage/kkm_last_doc_name [12:24:50]save OK [12:24:50]Clear old archive folders... [12:24:50]ProcessDocumentItem done err = 0, tmpTLVsize=768 [12:24:50]tlvbuf is 01FE8020 [12:24:50]SAM_PROTO_ClearQueue [12:24:50]wFMCommunicate request_size=4 [12:24:50]MH_SAM_APDU [12:24:50]CAPDU: 80 09 00 00 [12:24:50]Write to MH i2c: E2 08 00 D6 79 80 09 00 00 00 00 00 00 C1 [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:50]Read from MH i2c: E2 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 03 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 03 00 D6 79 00 90 00 C3 [12:24:50]RAPDU: 90 00 [12:24:50]wFMCommunicate OK [12:24:50]SAM_PROTO_ClearQueue done [12:24:50]KKMCreateOFDPacket [12:24:50]OFDProtocolAddRootSTLVToBuf [12:24:50]FM_MakeSignedData [12:24:50]FM_MakeSignedData [12:24:50]SAM_PROTO_SignData [12:24:50]wFMCommunicate request_size=4 [12:24:50]MH_SAM_APDU [12:24:50]CAPDU: 80 0D 01 02 [12:24:50]Write to MH i2c: E2 08 00 D7 79 80 0D 01 02 00 00 00 00 C9 [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:50]Read from MH i2c: E2 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 03 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 03 00 D7 79 00 90 00 C4 [12:24:50]RAPDU: 90 00 [12:24:50]wFMCommunicate OK [12:24:50]wFMCommunicate request_size=255 [12:24:50]MH_SAM_APDU [12:24:50]CAPDU: 80 0D 02 02 FA 03 00 00 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 38 37 30 30 30 32 [12:24:50]Write to MH i2c: E2 02 01 D8 79 80 0D 02 02 FA 00 03 00 00 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 38 37 30 30 30 32 00 00 95 [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 D8 79 00 90 00 C5 [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]wFMCommunicate request_size=255 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 0D 02 02 FA 33 32 39 39 35 31 06 04 36 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 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [12:24:51]Write to MH i2c: E2 02 01 D9 79 80 0D 02 02 FA 00 33 32 39 39 35 31 06 04 36 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 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 76 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]OFD Sender: No OFD packet to send [12:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 D9 79 00 90 00 C6 [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]wFMCommunicate request_size=255 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 0D 02 02 FA 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [12:24:51]Write to MH i2c: E2 02 01 DA 79 80 0D 02 02 FA 00 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 A4 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 DA 79 00 90 00 C7 [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]wFMCommunicate request_size=27 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 97 08 00 00 35 04 06 00 F2 E9 82 20 DB D7 [12:24:51]Write to MH i2c: E2 1E 00 DB 79 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 97 08 00 00 35 04 06 00 F2 E9 82 20 DB D7 00 00 F1 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 DB 79 00 90 00 C8 [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 0D 03 02 [12:24:51]Write to MH i2c: E2 08 00 DC 79 80 0D 03 02 00 00 00 00 D0 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 0B 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 0B 00 DC 79 00 1D 15 89 F5 6F DC 67 E3 90 00 16 [12:24:51]RAPDU: 1D 15 89 F5 6F DC 67 E3 90 00 [12:24:51]wFMCommunicate OK [12:24:51]SAM_PROTO_SignData done [12:24:51]FM_MakeSignedData done [12:24:51]CreateOFDProtocolMessage [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 11 00 00 [12:24:51]Write to MH i2c: E2 08 00 DD 79 80 11 00 00 00 00 00 00 D0 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 17 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 17 00 DD 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 20 [12:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:24:51]wFMCommunicate OK [12:24:51]CreateOFDProtocolMessage done [12:24:51]OFDSenderStorePacket 2199 [12:24:51]StoreOFDPacket docnum=2199 [12:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 14 03 00 00 CF 55 0C 03 1D 99 5A 03 01 00 03 00 00 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 97 08 00 00 35 04 06 00 F2 E9 82 20 DB D7 1D 15 89 F5 6F DC 67 E3 [12:24:51]CheckFolder [12:24:51]dirname=/storage/ofd_packets [12:24:51]CheckFolder done [12:24:51]ProducePacketName [12:24:51]name=ofd_packets/00002199 [12:24:51]NVStorageSaveData ofd_packets/00002199 [12:24:51]File name is /storage/ofd_packets/00002199 [12:24:51]Write 818 bytes [12:24:51]NVStorageSaveData done [12:24:51]OFDSenderStorePacket done [12:24:51]KKMCreateOFDPacket done [12:24:51]NVStorageSaveData kkm_last_timestamp [12:24:51]File name is /storage/kkm_last_timestamp [12:24:51]Write 4 bytes [12:24:51]NVStorageSaveData done [12:24:51]ExternCall_PrintAddStr [12:24:51]wPrintStart [12:24:51]Write to MH i2c: 01 00 00 DE 79 57 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: 01 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: 01 07 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: 01 07 00 DE 79 00 00 00 00 00 FF 0F 6C [12:24:51]RasterBufferAndPrint [12:24:51]line Счет N : (3)126489 [12:24:51]line ИНН: 02508201610067 [12:24:51]line Контрольно-Кассовый Чек [12:24:51]line ПРОДАЖА [12:24:51]line Товар: 4700003610560 [12:24:51]line Вода Энесай 5л. [12:24:51]line 1.000 * 60.00 [12:24:51]line = 60.00 [12:24:51]line НДС 12% НСП 1% [12:24:51]line > о реализуемом товаре [12:24:51]line Товар: 5449000189356 [12:24:51]line Холодный чай Fuse манго ананас 1л [12:24:51]line 1.000 * 107.00 [12:24:51]line = 107.00 [12:24:51]line НДС 12% НСП 1% [12:24:51]line > о реализуемом товаре [12:24:51]line Товар: 4870002329951 [12:24:51]line Напиток Lipton IceTea 1л зел чай Regular [12:24:51]line 1.000 * 130.00 [12:24:51]line = 130.00 [12:24:51]line НДС 12% НСП 1% [12:24:51]line > о реализуемом товаре [12:24:51]line Товар: 5449000027474 [12:24:51]line Напиток FuzeTea зел чай манго,ромашка 1л [12:24:51]line 1.000 * 107.00 [12:24:51]line = 107.00 [12:24:51]line НДС 12% НСП 1% [12:24:51]line > о реализуемом товаре [12:24:52]line Товар: 2000031750019 [12:24:52]line Пакет Партнер Нефть [12:24:52]line 1.000 * 4.00 [12:24:52]line = 4.00 [12:24:52]line НДС 12% НСП 1% [12:24:52]line > о реализуемом товаре [12:24:52]line ИТОГО: 408.00 [12:24:52]line НСП 1% : 3.61 [12:24:52]line НДС 12% : 43.31 [12:24:52]line Наличными: 0.00 [12:24:52]line Безнал.: 408.00 [12:24:52]line Место: АЗС № 127 "Партнер Нефть" [12:24:52]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:24:52]line СНО: Общий режим [12:24:52]line Чек 48 29.07.2024 12:25 [12:24:52]line Смена: 15 ФФД: 1.0 [12:24:52]line ЗНМ: 0300000161 [12:24:52]line РНМ: 0000000000189667 [12:24:52]line Версия ККМ: v1.0 [12:24:52]line Платежная система: O! деньги [12:24:52]line ФМ: 0000000002094248 [12:24:52]line ФД: 2199 [12:24:52]line ФПД: 267084724493271 [12:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122500&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2199&fm=267084724493271&tin=02508201610067®Number=0000000000189667&sum=40800 [12:24:52]OFD Sender: Processing packet 2199 [packets to send 1, broken 0] [12:24:52]ProducePacketName [12:24:52]name=ofd_packets/00002199 [12:24:52]OFD Sender: To server: pG, [12:24:52]CommunicateWithHost lk.salyk.kg:30040 [12:24:52]ConnectInit lk.salyk.kg [12:24:52]line 0 [12:24:52]written 0, free lines is 4095 [12:24:52]Connected sock=10 [12:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 14 03 00 00 CF 55 0C 03 1D 99 5A 03 01 00 03 00 00 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 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 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 9F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 97 08 00 00 35 04 06 00 F2 E9 82 20 DB D7 1D 15 89 F5 6F DC 67 E3 [12:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B0 48 47 00 AF 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 32 30 39 34 32 34 38 10 04 04 00 97 08 00 00 F4 03 04 00 89 35 A7 66 B6 04 01 00 00 D8 95 A5 1A 92 02 80 F5 [12:24:52]CommunicateWithHost err = 0 [12:24:52]CheckOFDResponse [12:24:52]1017 (14) - 77093643461234 [12:24:52]1041 (16) - 0000000002094248 [12:24:52]1040 (4) - 2199 [12:24:52]1012 (4) - 29.07.2024 06:24 [12:24:52]1206 (1) - 0 [12:24:52]OFD Sender: Remove packet 2199 [12:24:52]ProducePacketName [12:24:52]name=ofd_packets/00002199 [12:24:52]NVStorageDeleteData [12:24:53]Write to MH i2c: 01 00 00 23 7A 9D [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 23 7A 00 00 00 00 00 AC 0B 5B [12:24:53]RasterBufferAndPrint [12:24:53]line [12:24:53]line [12:24:53]line [12:24:53]line [12:24:53]line [12:24:53]written 0, free lines is 3000 [12:24:53]MH_Cut [12:24:53]Write to MH i2c: D1 01 00 2A 7A 01 76 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: D1 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: D1 01 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: D1 01 00 2A 7A 00 75 [12:24:53]Write to MH i2c: 01 00 00 2B 7A A5 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]OFD Sender: No OFD packet to send [12:24:53]*** Cut start [12:24:53]*** Partial cut [12:24:53]*** CUTSNS_PIN = 1 [12:24:53]*** CUTSNS_PIN = 0 [12:24:54]*** Brake cut motor [12:24:54]Read from MH i2c: 01 [12:24:54]MH_I2C_Read... [12:24:54]*** Stop cut motor [12:24:54]*** Cut end [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 2B 7A 00 00 00 00 00 FF 0F BA [12:24:54]process_action close_receipt done [12:24:54]requested_data is exist [12:24:54]produce_requested_data [12:24:54]requested_item fm.sn is exist - process it [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 11 00 00 [12:24:54]Write to MH i2c: E2 08 00 2C 7A 80 11 00 00 00 00 00 00 20 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 17 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 17 00 2C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 70 [12:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:24:54]wFMCommunicate OK [12:24:54]requested_item fd.num is exist - process it [12:24:54]SAM_PROTO_GetFieldsCounters [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 13 00 00 [12:24:54]Write to MH i2c: E2 08 00 2D 7A 80 13 00 00 00 00 00 00 23 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 62 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 62 00 2D 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 97 08 00 00 0E 04 04 00 0F 00 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 8B [12:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 97 08 00 00 0E 04 04 00 0F 00 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 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_GetFieldsCounters done [12:24:54]requested_item shift.num is exist - process it [12:24:54]requested_item shift.opened is exist - process it [12:24:54]req_shift_opened [12:24:54]FM_GetShiftState [12:24:54]SAM_PROTO_GetShiftState [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 13 01 00 [12:24:54]Write to MH i2c: E2 08 00 2E 7A 80 13 01 00 00 00 00 00 25 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0E 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0E 00 2E 7A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1E [12:24:54]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_GetShiftState done [12:24:54]FM_GetShiftState done [12:24:54]req_shift_opened done [12:24:54]requested_item shift.open_date is exist - process it [12:24:54]req_shift_open_date [12:24:54]req_shift_open_date done [12:24:54]produce_requested_data done [12:24:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2199,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [12:24:54]process_action_free close_receipt [12:24:54]json_value_free [12:24:54]json_value_free done [12:24:54]process_json_proto returns [12:24:54]Send response to host [12:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2199,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [12:24:54]free response buf [12:24:54]execute_script done [12:24:54]execute_script returns [12:24:54]free content buf [12:24:54]Sock 8.Close socket [12:24:54]Sock 8.Thread stoped [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:53]accept exits with 9 [12:25:53]New connection [12:25:53]New thread 3067460964 created [12:25:53]Thread 3067317604 joined [12:25:53]Waiting for new connection... [12:25:53] Sock 9.Parse request [12:25:53]Sock 9.Check first char [12:25:53]Sock 9.First char is OK [12:25:53]request: POST /json_proto HTTP/1.0 [12:25:53]Method: POST [12:25:53]URL: /json_proto [12:25:53]Method is POST - this is cgi request [12:25:53]url: /json_proto [12:25:53]query_string will be loaded in cgi processing [12:25:53]execute_cgi json_proto POST (null) [12:25:53]execute_cgi path=json_proto method=POST [12:25:53]POST find Content-Length [12:25:53]Host: 172.17.45.132:8080 [12:25:53]Content-Length: 669 [12:25:53]Content-Type: application/json [12:25:53] [12:25:53]POST finish read [12:25:53]Found Content-Length = 669 [12:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126490", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\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" ] } } [12:25:53]execute_script... [12:25: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)126490", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\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" ] } } [12:25:53]POST & json_proto [12:25:53]process_json_proto [12:25:53]json parsed OK: [12:25:53]protocol is kg_v1.0 [12:25:53]action value=close_receipt [12:25:53]process_action close_receipt [12:25:53]cmd_close_receipt [12:25:53]MH_GetDate [12:25:53]Write to MH i2c: F0 00 00 2F 7A 98 [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: F0 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: F0 09 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: F0 09 00 2F 7A 00 5C 8A A7 66 E3 0B 90 66 78 [12:25:53]GetLastDocTimeStamp 1722255900 [12:25:53]current date 1722255964 [12:25:53]FM_GetShiftState [12:25:53]SAM_PROTO_GetShiftState [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 13 01 00 [12:25:53]Write to MH i2c: E2 08 00 30 7A 80 13 01 00 00 00 00 00 27 [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 0E 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 0E 00 30 7A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 20 [12:25:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:25:53]wFMCommunicate OK [12:25:53]SAM_PROTO_GetShiftState done [12:25:53]FM_GetShiftState done [12:25:53]opened in 1722213119 [12:25:53]opened+sec_in_day 1722299519 [12:25:53]quantity*price = 5000 [12:25:53]sum+1 = 5001 [12:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 49 29.07.2024 12:26 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2200 ФПД: 155302994710675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122604&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2200&fm=155302994710675&tin=02508201610067®Number=0000000000189667&sum=5000 0 [12:25:54]StoreToDocumentArchive [12:25:54]shift 15 fd 2200 [12:25:54]save to /storage/0015/doc_00002200 [12:25:54]save last doc name /storage/0015/doc_00002200 to /storage/kkm_last_doc_name [12:25:54]save OK [12:25:54]Clear old archive folders... [12:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=292 [12:25:54]tlvbuf is 01FE7BF0 [12:25:54]SAM_PROTO_ClearQueue [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 09 00 00 [12:25:54]Write to MH i2c: E2 08 00 3D 7A 80 09 00 00 00 00 00 00 29 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 3D 7A 00 90 00 2B [12:25:54]RAPDU: 90 00 [12:25:54]wFMCommunicate OK [12:25:54]SAM_PROTO_ClearQueue done [12:25:54]KKMCreateOFDPacket [12:25:54]OFDProtocolAddRootSTLVToBuf [12:25:54]FM_MakeSignedData [12:25:54]FM_MakeSignedData [12:25:54]SAM_PROTO_SignData [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 0D 01 02 [12:25:54]Write to MH i2c: E2 08 00 3E 7A 80 0D 01 02 00 00 00 00 31 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 3E 7A 00 90 00 2C [12:25:54]RAPDU: 90 00 [12:25:54]wFMCommunicate OK [12:25:54]wFMCommunicate request_size=255 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 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 31 00 00 00 F4 03 04 00 5C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [12:25:54]Write to MH i2c: E2 02 01 3F 7A 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 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 31 00 00 00 F4 03 04 00 5C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 B5 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 03 00 3F 7A 00 90 00 2D [12:25:54]RAPDU: 90 00 [12:25:54]wFMCommunicate OK [12:25:54]wFMCommunicate request_size=51 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 0D 02 02 2E 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 98 08 00 00 35 04 06 00 8D 3F 4B D5 10 93 [12:25:54]Write to MH i2c: E2 36 00 40 7A 80 0D 02 02 2E 00 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 98 08 00 00 35 04 06 00 8D 3F 4B D5 10 93 00 00 FD [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 40 7A 00 90 00 2E [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 03 02 [12:25:55]Write to MH i2c: E2 08 00 41 7A 80 0D 03 02 00 00 00 00 36 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0B 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0B 00 41 7A 00 5E 66 CD CA 95 1D 44 DF 90 00 67 [12:25:55]RAPDU: 5E 66 CD CA 95 1D 44 DF 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_SignData done [12:25:55]FM_MakeSignedData done [12:25:55]CreateOFDProtocolMessage [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 11 00 00 [12:25:55]Write to MH i2c: E2 08 00 42 7A 80 11 00 00 00 00 00 00 36 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 17 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 17 00 42 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 86 [12:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:25:55]wFMCommunicate OK [12:25:55]CreateOFDProtocolMessage done [12:25:55]OFDSenderStorePacket 2200 [12:25:55]StoreOFDPacket docnum=2200 [12:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 38 01 00 00 7A 73 30 01 22 6A 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 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 31 00 00 00 F4 03 04 00 5C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 98 08 00 00 35 04 06 00 8D 3F 4B D5 10 93 5E 66 CD CA 95 1D 44 DF [12:25:55]CheckFolder [12:25:55]dirname=/storage/ofd_packets [12:25:55]CheckFolder done [12:25:55]ProducePacketName [12:25:55]name=ofd_packets/00002200 [12:25:55]NVStorageSaveData ofd_packets/00002200 [12:25:55]File name is /storage/ofd_packets/00002200 [12:25:55]Write 342 bytes [12:25:55]NVStorageSaveData done [12:25:55]OFDSenderStorePacket done [12:25:55]KKMCreateOFDPacket done [12:25:55]NVStorageSaveData kkm_last_timestamp [12:25:55]File name is /storage/kkm_last_timestamp [12:25:55]Write 4 bytes [12:25:55]NVStorageSaveData done [12:25:55]ExternCall_PrintAddStr [12:25:55]wPrintStart [12:25:55]Write to MH i2c: 01 00 00 43 7A BD [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 07 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 07 00 43 7A 00 00 00 00 00 FF 0F D2 [12:25:55]RasterBufferAndPrint [12:25:55]line Счет N : (3)126490 [12:25:55]line ИНН: 02508201610067 [12:25:55]line Контрольно-Кассовый Чек [12:25:55]line ПРОДАЖА [12:25:55]line Товар: 4700003010018 [12:25:55]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [12:25:55]line 1.000 * 50.00 [12:25:55]line = 50.00 [12:25:55]line НДС 12% НСП 1% [12:25:55]line > о реализуемом товаре [12:25:55]line ИТОГО: 50.00 [12:25:55]line НСП 1% : 0.44 [12:25:55]line НДС 12% : 5.31 [12:25:55]line Наличными: 50.00 [12:25:55]line Безнал.: 0.00 [12:25:55]line Место: АЗС № 127 "Партнер Нефть" [12:25:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:25:55]line СНО: Общий режим [12:25:55]line Чек 49 29.07.2024 12:26 [12:25:55]line Смена: 15 ФФД: 1.0 [12:25:55]line ЗНМ: 0300000161 [12:25:55]line РНМ: 0000000000189667 [12:25:55]line Версия ККМ: v1.0 [12:25:55]line ФМ: 0000000002094248 [12:25:55]line ФД: 2200 [12:25:55]line ФПД: 155302994710675 [12:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122604&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2200&fm=155302994710675&tin=02508201610067®Number=0000000000189667&sum=5000 [12:25:55]line 0 [12:25:55]OFD Sender: Processing packet 2200 [packets to send 1, broken 0] [12:25:55]ProducePacketName [12:25:55]name=ofd_packets/00002200 [12:25:55]OFD Sender: To server: pG, [12:25:55]CommunicateWithHost lk.salyk.kg:30040 [12:25:55]ConnectInit lk.salyk.kg [12:25:55]written 0, free lines is 4095 [12:25:55]Connected sock=10 [12:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 38 01 00 00 7A 73 30 01 22 6A 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 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 31 00 00 00 F4 03 04 00 5C 8A A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 98 08 00 00 35 04 06 00 8D 3F 4B D5 10 93 5E 66 CD CA 95 1D 44 DF [12:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 88 DA 47 00 0A 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 32 30 39 34 32 34 38 10 04 04 00 98 08 00 00 F4 03 04 00 C8 35 A7 66 B6 04 01 00 00 AA AD 5C 29 11 3E D8 E6 [12:25:55]CommunicateWithHost err = 0 [12:25:55]CheckOFDResponse [12:25:55]1017 (14) - 77093643461234 [12:25:55]1041 (16) - 0000000002094248 [12:25:55]1040 (4) - 2200 [12:25:55]1012 (4) - 29.07.2024 06:25 [12:25:55]1206 (1) - 0 [12:25:55]OFD Sender: Remove packet 2200 [12:25:55]ProducePacketName [12:25:55]name=ofd_packets/00002200 [12:25:55]NVStorageDeleteData [12:25:55]Write to MH i2c: 01 00 00 6C 7A E6 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 07 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 07 00 6C 7A 00 00 00 00 00 17 0D 11 [12:25:55]RasterBufferAndPrint [12:25:55]line [12:25:55]line [12:25:55]line [12:25:55]line [12:25:55]line [12:25:55]written 0, free lines is 3360 [12:25:55]MH_Cut [12:25:55]Write to MH i2c: D1 01 00 73 7A 01 BF [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: D1 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: D1 01 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: D1 01 00 73 7A 00 BE [12:25:55]Write to MH i2c: 01 00 00 74 7A EE [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:56]OFD Sender: No OFD packet to send [12:25:56]*** Cut start [12:25:56]*** Partial cut [12:25:56]*** CUTSNS_PIN = 1 [12:25:56]*** CUTSNS_PIN = 0 [12:25:56]*** Brake cut motor [12:25:57]Read from MH i2c: 01 [12:25:57]MH_I2C_Read... [12:25:57]*** Stop cut motor [12:25:57]*** Cut end [12:25:57]Read from MH i2c: 01 07 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 07 00 74 7A 00 00 00 00 00 FF 0F 03 [12:25:57]process_action close_receipt done [12:25:57]requested_data is exist [12:25:57]produce_requested_data [12:25:57]requested_item fm.sn is exist - process it [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 11 00 00 [12:25:57]Write to MH i2c: E2 08 00 75 7A 80 11 00 00 00 00 00 00 69 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 17 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 17 00 75 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B9 [12:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:25:57]wFMCommunicate OK [12:25:57]requested_item fd.num is exist - process it [12:25:57]SAM_PROTO_GetFieldsCounters [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 13 00 00 [12:25:57]Write to MH i2c: E2 08 00 76 7A 80 13 00 00 00 00 00 00 6C [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 62 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 62 00 76 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 98 08 00 00 0E 04 04 00 0F 00 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 D8 [12:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 98 08 00 00 0E 04 04 00 0F 00 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 [12:25:57]wFMCommunicate OK [12:25:57]SAM_PROTO_GetFieldsCounters done [12:25:57]requested_item shift.num is exist - process it [12:25:57]requested_item shift.opened is exist - process it [12:25:57]req_shift_opened [12:25:57]FM_GetShiftState [12:25:57]SAM_PROTO_GetShiftState [12:25:57]wFMCommunicate request_size=4 [12:25:57]MH_SAM_APDU [12:25:57]CAPDU: 80 13 01 00 [12:25:57]Write to MH i2c: E2 08 00 77 7A 80 13 01 00 00 00 00 00 6E [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:57]Read from MH i2c: E2 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 0E 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: E2 0E 00 77 7A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 67 [12:25:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:25:57]wFMCommunicate OK [12:25:57]SAM_PROTO_GetShiftState done [12:25:57]FM_GetShiftState done [12:25:57]req_shift_opened done [12:25:57]requested_item shift.open_date is exist - process it [12:25:57]req_shift_open_date [12:25:57]req_shift_open_date done [12:25:57]produce_requested_data done [12:25:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2200,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [12:25:57]process_action_free close_receipt [12:25:57]json_value_free [12:25:57]json_value_free done [12:25:57]process_json_proto returns [12:25:57]Send response to host [12:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2200,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [12:25:57]free response buf [12:25:57]execute_script done [12:25:57]execute_script returns [12:25:57]free content buf [12:25:57]Sock 9.Close socket [12:25:57]Sock 9.Thread stoped [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:31:24]wFMCommunicate request_size=13 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 15 02 00 08 F4 03 04 00 A6 8B A7 66 [12:31:24]Write to MH i2c: E2 10 00 82 7A 80 15 02 00 08 00 F4 03 04 00 A6 8B A7 66 00 00 C5 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 82 7A 00 90 00 70 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=25 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [12:31:24]Write to MH i2c: E2 1C 00 83 7A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 EB [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 83 7A 00 90 00 71 [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 15 03 00 [12:31:24]Write to MH i2c: E2 08 00 84 7A 80 15 03 00 00 00 00 00 7F [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]ConnectInit Can't connect to host [12:31:24]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 40 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 40 00 84 7A 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 99 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 32 00 00 00 35 04 06 00 93 23 C6 AD 73 34 90 00 24 [12:31:24]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 99 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 32 00 00 00 35 04 06 00 93 23 C6 AD 73 34 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_ProcessDocument answer len = 59 [12:31:24]SAM_PROTO_ProcessDocument done [12:31:24]SetTLVBufToDocument [12:31:24]Processing tag 1209 (04B9) [12:31:24]Malloc new data [12:31:24]Processing tag 1041 (0411) [12:31:24]Processing tag 1040 (0410) [12:31:24]Malloc new data [12:31:24]Processing tag 1038 (040E) [12:31:24]Malloc new data [12:31:24]Processing tag 1042 (0412) [12:31:24]Malloc new data [12:31:24]Processing tag 1077 (0435) [12:31:24]Malloc new data [12:31:24]SetTLVBufToDocument err=0 [12:31:24]KKMLoadAndSignReceiptData store KKM data [12:31:24]KKMLoadAndSignReceiptData err=0 [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 11 00 00 [12:31:24]Write to MH i2c: E2 08 00 85 7A 80 11 00 00 00 00 00 00 79 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 85 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C9 [12:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:31:24]wFMCommunicate OK [12:31:24]Счет N : (1)609820 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 62 Товар: 2710124130 Аи-92-К-2 7.380 * 67.80 = 500.36 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 50 29.07.2024 12:31 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2201 ФПД: 161781866394420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123134&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2201&fm=161781866394420&tin=02508201610067®Number=0000000000189667&sum=50000 [12:31:24]StoreToDocumentArchive [12:31:24]shift 15 fd 2201 [12:31:24]save to /storage/0015/doc_00002201 [12:31:24]save last doc name /storage/0015/doc_00002201 to /storage/kkm_last_doc_name [12:31:24]save OK [12:31:24]Clear old archive folders... [12:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:24]tlvbuf is 01F66380 [12:31:24]SAM_PROTO_ClearQueue [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 09 00 00 [12:31:24]Write to MH i2c: E2 08 00 86 7A 80 09 00 00 00 00 00 00 72 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 86 7A 00 90 00 74 [12:31:25]RAPDU: 90 00 [12:31:25]wFMCommunicate OK [12:31:25]SAM_PROTO_ClearQueue done [12:31:25]KKMCreateOFDPacket [12:31:25]OFDProtocolAddRootSTLVToBuf [12:31:25]FM_MakeSignedData [12:31:25]FM_MakeSignedData [12:31:25]SAM_PROTO_SignData [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 0D 01 02 [12:31:25]Write to MH i2c: E2 08 00 87 7A 80 0D 01 02 00 00 00 00 7A [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 87 7A 00 90 00 75 [12:31:25]RAPDU: 90 00 [12:31:25]wFMCommunicate OK [12:31:25]wFMCommunicate request_size=255 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A6 8B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 99 08 00 00 35 04 06 00 93 [12:31:25]Write to MH i2c: E2 02 01 88 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A6 8B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 99 08 00 00 35 04 06 00 93 00 00 B2 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 88 7A 00 90 00 76 [12:31:25]RAPDU: 90 00 [12:31:25]wFMCommunicate OK [12:31:25]wFMCommunicate request_size=10 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 0D 02 02 05 23 C6 AD 73 34 [12:31:25]Write to MH i2c: E2 0D 00 89 7A 80 0D 02 02 05 00 23 C6 AD 73 34 00 00 C4 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 03 00 89 7A 00 90 00 77 [12:31:25]RAPDU: 90 00 [12:31:25]wFMCommunicate OK [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 0D 03 02 [12:31:25]Write to MH i2c: E2 08 00 8A 7A 80 0D 03 02 00 00 00 00 7F [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0B 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0B 00 8A 7A 00 4D 12 10 8E 68 BC C3 5E 90 00 C2 [12:31:25]RAPDU: 4D 12 10 8E 68 BC C3 5E 90 00 [12:31:25]wFMCommunicate OK [12:31:25]SAM_PROTO_SignData done [12:31:25]FM_MakeSignedData done [12:31:25]CreateOFDProtocolMessage [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 11 00 00 [12:31:25]Write to MH i2c: E2 08 00 8B 7A 80 11 00 00 00 00 00 00 7F [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 17 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 17 00 8B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CF [12:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:31:25]wFMCommunicate OK [12:31:25]CreateOFDProtocolMessage done [12:31:25]OFDSenderStorePacket 2201 [12:31:25]StoreOFDPacket docnum=2201 [12:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 0F BC 07 01 9B 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A6 8B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 99 08 00 00 35 04 06 00 93 23 C6 AD 73 34 4D 12 10 8E 68 BC C3 5E [12:31:25]CheckFolder [12:31:25]dirname=/storage/ofd_packets [12:31:25]CheckFolder done [12:31:25]ProducePacketName [12:31:25]name=ofd_packets/00002201 [12:31:25]NVStorageSaveData ofd_packets/00002201 [12:31:25]File name is /storage/ofd_packets/00002201 [12:31:25]Write 301 bytes [12:31:25]NVStorageSaveData done [12:31:25]OFDSenderStorePacket done [12:31:25]KKMCreateOFDPacket done [12:31:25]NVStorageSaveData kkm_last_timestamp [12:31:25]File name is /storage/kkm_last_timestamp [12:31:25]Write 4 bytes [12:31:25]NVStorageSaveData done [12:31:25]ExternCall_PrintAddStr [12:31:25]wPrintStart [12:31:25]Write to MH i2c: 01 00 00 8C 7A 06 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 8C 7A 00 00 00 00 00 FF 0F 1B [12:31:25]RasterBufferAndPrint [12:31:25]line Счет N : (1)609820 [12:31:25]line ИНН: 02508201610067 [12:31:25]line Контрольно-Кассовый Чек [12:31:25]line ПРОДАЖА [12:31:25]line ТРК (МРК, ГНК) : 62 [12:31:25]line Товар: 2710124130 [12:31:25]line Аи-92-К-2 [12:31:25]line 7.380 * 67.80 [12:31:25]line = 500.36 [12:31:25]line НДС 12% НСП 1% [12:31:25]line > о реализуемом товаре [12:31:25]line ОКРУГЛЕНИЕ: -0.36 [12:31:25]line ИТОГО: 500.00 [12:31:25]line Внесено: 500.00 [12:31:25]line СДАЧА: 0.00 [12:31:25]line НСП 1% : 4.43 [12:31:25]line НДС 12% : 53.14 [12:31:25]line Наличными: 500.00 [12:31:25]line Безнал.: 0.00 [12:31:25]line Место: АЗС № 127 "Партнер Нефть" [12:31:25]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:31:25]line СНО: Общий режим [12:31:25]line Чек 50 29.07.2024 12:31 [12:31:25]line Смена: 15 ФФД: 1.0 [12:31:25]line ЗНМ: 0300000161 [12:31:25]line РНМ: 0000000000189667 [12:31:25]line Версия ККМ: v1.0 [12:31:25]line ФМ: 0000000002094248 [12:31:25]line ФД: 2201 [12:31:25]line ФПД: 161781866394420 [12:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123134&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2201&fm=161781866394420&tin=02508201610067®Number=0000000000189667&sum=50000 [12:31:25]OFD Sender: Processing packet 2201 [packets to send 1, broken 0] [12:31:25]ProducePacketName [12:31:25]name=ofd_packets/00002201 [12:31:25]OFD Sender: To server: pG, [12:31:25]CommunicateWithHost lk.salyk.kg:30040 [12:31:25]ConnectInit lk.salyk.kg [12:31:25]written 0, free lines is 4095 [12:31:26]Write to MH i2c: 01 00 00 B7 7A 31 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 07 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: 01 07 00 B7 7A 00 00 00 00 00 EE 0C 32 [12:31:26]RasterBufferAndPrint [12:31:26]line [12:31:26]line [12:31:26]line [12:31:26]line [12:31:26]line [12:31:26]written 0, free lines is 3316 [12:31:26]MH_Cut [12:31:26]Write to MH i2c: D1 01 00 BE 7A 01 0A [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: D1 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: D1 01 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: D1 01 00 BE 7A 00 09 [12:31:26]Write to MH i2c: 01 00 00 BF 7A 39 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** Cut start [12:31:26]*** Partial cut [12:31:26]*** CUTSNS_PIN = 1 [12:31:27]*** CUTSNS_PIN = 0 [12:31:27]*** Brake cut motor [12:31:27]Read from MH i2c: 01 [12:31:27]MH_I2C_Read... [12:31:27]*** Stop cut motor [12:31:27]*** Cut end [12:31:27]Read from MH i2c: 01 07 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 07 00 BF 7A 00 00 00 00 00 FF 0F 4E [12:31:27]process_action close_receipt done [12:31:27]requested_data is exist [12:31:27]produce_requested_data [12:31:27]requested_item fm.sn is exist - process it [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 11 00 00 [12:31:27]Write to MH i2c: E2 08 00 C0 7A 80 11 00 00 00 00 00 00 B4 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 C0 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 04 [12:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:31:27]wFMCommunicate OK [12:31:27]requested_item fd.num is exist - process it [12:31:27]SAM_PROTO_GetFieldsCounters [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 00 00 [12:31:27]Write to MH i2c: E2 08 00 C1 7A 80 13 00 00 00 00 00 00 B7 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 62 00 C1 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 99 08 00 00 0E 04 04 00 0F 00 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 27 [12:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 99 08 00 00 0E 04 04 00 0F 00 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 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetFieldsCounters done [12:31:27]requested_item shift.num is exist - process it [12:31:27]requested_item shift.opened is exist - process it [12:31:27]req_shift_opened [12:31:27]FM_GetShiftState [12:31:27]SAM_PROTO_GetShiftState [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 13 01 00 [12:31:27]Write to MH i2c: E2 08 00 C2 7A 80 13 01 00 00 00 00 00 B9 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0E 00 C2 7A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B2 [12:31:27]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_GetShiftState done [12:31:27]FM_GetShiftState done [12:31:27]req_shift_opened done [12:31:27]requested_item shift.open_date is exist - process it [12:31:27]req_shift_open_date [12:31:27]req_shift_open_date done [12:31:27]produce_requested_data done [12:31:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2201,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [12:31:27]process_action_free close_receipt [12:31:27]json_value_free [12:31:27]json_value_free done [12:31:27]process_json_proto returns [12:31:27]Send response to host [12:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2201,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [12:31:27]free response buf [12:31:27]execute_script done [12:31:27]execute_script returns [12:31:27]free content buf [12:31:27]Sock 8.Close socket [12:31:27]Sock 8.Thread stoped [12:31:30]ConnectInit Can't take IP for lk.salyk.kg [12:31:30]CommunicateWithHost connect error [12:31:30]CommunicateWithHost err = -1 [12:31:30]OFD Sender: Server communicate error [12:31:35]OFD Sender: Processing packet 2201 [packets to send 1, broken 0] [12:31:35]ProducePacketName [12:31:35]name=ofd_packets/00002201 [12:31:35]OFD Sender: To server: pG, [12:31:35]CommunicateWithHost lk.salyk.kg:30040 [12:31:35]ConnectInit lk.salyk.kg [12:31:36]Connected sock=8 [12:31:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 0F BC 07 01 9B 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A6 8B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 99 08 00 00 35 04 06 00 93 23 C6 AD 73 34 4D 12 10 8E 68 BC C3 5E [12:31:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 56 51 47 00 35 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 99 08 00 00 F4 03 04 00 1D 37 A7 66 B6 04 01 00 00 CF EE 0E 3C 09 BD 7C 08 [12:31:36]CommunicateWithHost err = 0 [12:31:36]CheckOFDResponse [12:31:36]1017 (14) - 77093643461234 [12:31:36]1041 (16) - 0000000002094248 [12:31:36]1040 (4) - 2201 [12:31:36]1012 (4) - 29.07.2024 06:30 [12:31:36]1206 (1) - 0 [12:31:36]OFD Sender: Remove packet 2201 [12:31:36]ProducePacketName [12:31:36]name=ofd_packets/00002201 [12:31:36]NVStorageDeleteData [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33: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:05]accept exits with 9 [12:34:05]New connection [12:34:05]New thread 3067460964 created [12:34:05]Thread 3067317604 joined [12:34:05]Waiting for new connection... [12:34:05] Sock 9.Parse request [12:34:05]Sock 9.Check first char [12:34:05]Sock 9.First char is OK [12:34:05]request: POST /json_proto HTTP/1.0 [12:34:05]Method: POST [12:34:05]URL: /json_proto [12:34:05]Method is POST - this is cgi request [12:34:05]url: /json_proto [12:34:05]query_string will be loaded in cgi processing [12:34:05]execute_cgi json_proto POST (null) [12:34:05]execute_cgi path=json_proto method=POST [12:34:05]POST find Content-Length [12:34:05]Host: 172.17.45.132:8080 [12:34:05]Content-Length: 630 [12:34:05]Content-Type: application/json [12:34:05] [12:34:05]POST finish read [12:34:05]Found Content-Length = 630 [12:34:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126491", "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" ] } } [12:34:05]execute_script... [12:34: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 : (3)126491", "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" ] } } [12:34:05]POST & json_proto [12:34:05]process_json_proto [12:34:05]json parsed OK: [12:34:05]protocol is kg_v1.0 [12:34:05]action value=close_receipt [12:34:05]process_action close_receipt [12:34:05]cmd_close_receipt [12:34:05]MH_GetDate [12:34:05]Write to MH i2c: F0 00 00 C3 7A 2C [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: F0 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: F0 09 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: F0 09 00 C3 7A 00 48 8C A7 66 E3 0B 90 66 FA [12:34:05]GetLastDocTimeStamp 1722256294 [12:34:05]current date 1722256456 [12:34:05]FM_GetShiftState [12:34:05]SAM_PROTO_GetShiftState [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 13 01 00 [12:34:05]Write to MH i2c: E2 08 00 C4 7A 80 13 01 00 00 00 00 00 BB [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 0E 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 0E 00 C4 7A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B4 [12:34:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:34:05]wFMCommunicate OK [12:34:05]SAM_PROTO_GetShiftState done [12:34:05]FM_GetShiftState done [12:34:05]opened in 1722213119 [12:34:05]opened+sec_in_day 1722299519 [12:34:05]quantity*price = 5000 [12:34:05]sum+1 = 5001 [12:34:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 51 29.07.2024 12:34 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2202 ФПД: 152280058409743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123416&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2202&fm=152280058409743&tin=02508201610067®Number=0000000000189667&sum=5000 0 [12:34:06]StoreToDocumentArchive [12:34:06]shift 15 fd 2202 [12:34:06]save to /storage/0015/doc_00002202 [12:34:06]save last doc name /storage/0015/doc_00002202 to /storage/kkm_last_doc_name [12:34:06]save OK [12:34:06]Clear old archive folders... [12:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:34:06]tlvbuf is 02048440 [12:34:06]SAM_PROTO_ClearQueue [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 09 00 00 [12:34:06]Write to MH i2c: E2 08 00 D1 7A 80 09 00 00 00 00 00 00 BD [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 D1 7A 00 90 00 BF [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]SAM_PROTO_ClearQueue done [12:34:06]KKMCreateOFDPacket [12:34:06]OFDProtocolAddRootSTLVToBuf [12:34:06]FM_MakeSignedData [12:34:06]FM_MakeSignedData [12:34:06]SAM_PROTO_SignData [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 0D 01 02 [12:34:06]Write to MH i2c: E2 08 00 D2 7A 80 0D 01 02 00 00 00 00 C5 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 D2 7A 00 90 00 C0 [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]wFMCommunicate request_size=255 [12:34:06]MH_SAM_APDU [12:34:06]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 33 00 00 00 F4 03 04 00 48 8C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [12:34:06]Write to MH i2c: E2 02 01 D3 7A 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 33 00 00 00 F4 03 04 00 48 8C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 05 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]OFD Sender: No OFD packet to send [12:34:06]Read from MH i2c: E2 03 00 D3 7A 00 90 00 C1 [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]wFMCommunicate request_size=28 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 9A 08 00 00 35 04 06 00 8A 7F 76 C9 B3 0F [12:34:06]Write to MH i2c: E2 1F 00 D4 7A 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 9A 08 00 00 35 04 06 00 8A 7F 76 C9 B3 0F 00 00 04 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:06]Read from MH i2c: E2 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: E2 03 00 D4 7A 00 90 00 C2 [12:34:06]RAPDU: 90 00 [12:34:06]wFMCommunicate OK [12:34:06]wFMCommunicate request_size=4 [12:34:06]MH_SAM_APDU [12:34:06]CAPDU: 80 0D 03 02 [12:34:06]Write to MH i2c: E2 08 00 D5 7A 80 0D 03 02 00 00 00 00 CA [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 0B 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 0B 00 D5 7A 00 E9 80 38 39 88 A1 3C E8 90 00 F2 [12:34:07]RAPDU: E9 80 38 39 88 A1 3C E8 90 00 [12:34:07]wFMCommunicate OK [12:34:07]SAM_PROTO_SignData done [12:34:07]FM_MakeSignedData done [12:34:07]CreateOFDProtocolMessage [12:34:07]wFMCommunicate request_size=4 [12:34:07]MH_SAM_APDU [12:34:07]CAPDU: 80 11 00 00 [12:34:07]Write to MH i2c: E2 08 00 D6 7A 80 11 00 00 00 00 00 00 CA [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 17 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 17 00 D6 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1A [12:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:34:07]wFMCommunicate OK [12:34:07]CreateOFDProtocolMessage done [12:34:07]OFDSenderStorePacket 2202 [12:34:07]StoreOFDPacket docnum=2202 [12:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 05 2F 19 01 0A CE 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 33 00 00 00 F4 03 04 00 48 8C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9A 08 00 00 35 04 06 00 8A 7F 76 C9 B3 0F E9 80 38 39 88 A1 3C E8 [12:34:07]CheckFolder [12:34:07]dirname=/storage/ofd_packets [12:34:07]CheckFolder done [12:34:07]ProducePacketName [12:34:07]name=ofd_packets/00002202 [12:34:07]NVStorageSaveData ofd_packets/00002202 [12:34:07]File name is /storage/ofd_packets/00002202 [12:34:07]Write 319 bytes [12:34:07]NVStorageSaveData done [12:34:07]OFDSenderStorePacket done [12:34:07]KKMCreateOFDPacket done [12:34:07]NVStorageSaveData kkm_last_timestamp [12:34:07]File name is /storage/kkm_last_timestamp [12:34:07]Write 4 bytes [12:34:07]NVStorageSaveData done [12:34:07]ExternCall_PrintAddStr [12:34:07]wPrintStart [12:34:07]Write to MH i2c: 01 00 00 D7 7A 51 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 D7 7A 00 00 00 00 00 FF 0F 66 [12:34:07]RasterBufferAndPrint [12:34:07]line Счет N : (3)126491 [12:34:07]line ИНН: 02508201610067 [12:34:07]line Контрольно-Кассовый Чек [12:34:07]line ПРОДАЖА [12:34:07]line Товар: 4700000160358 [12:34:07]line Вода Легенда 1л [12:34:07]line 1.000 * 50.00 [12:34:07]line = 50.00 [12:34:07]line НДС 12% НСП 1% [12:34:07]line > о реализуемом товаре [12:34:07]line ИТОГО: 50.00 [12:34:07]line НСП 1% : 0.44 [12:34:07]line НДС 12% : 5.31 [12:34:07]line Наличными: 50.00 [12:34:07]line Безнал.: 0.00 [12:34:07]line Место: АЗС № 127 "Партнер Нефть" [12:34:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:34:07]line СНО: Общий режим [12:34:07]line Чек 51 29.07.2024 12:34 [12:34:07]line Смена: 15 ФФД: 1.0 [12:34:07]line ЗНМ: 0300000161 [12:34:07]line РНМ: 0000000000189667 [12:34:07]line Версия ККМ: v1.0 [12:34:07]line ФМ: 0000000002094248 [12:34:07]line ФД: 2202 [12:34:07]line ФПД: 152280058409743 [12:34:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123416&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2202&fm=152280058409743&tin=02508201610067®Number=0000000000189667&sum=5000 [12:34:07]line 0 [12:34:07]written 0, free lines is 4095 [12:34:07]OFD Sender: Processing packet 2202 [packets to send 1, broken 0] [12:34:07]ProducePacketName [12:34:07]name=ofd_packets/00002202 [12:34:07]OFD Sender: To server: pG, [12:34:07]CommunicateWithHost lk.salyk.kg:30040 [12:34:07]ConnectInit lk.salyk.kg [12:34:07]Connected sock=10 [12:34:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 05 2F 19 01 0A CE 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 33 00 00 00 F4 03 04 00 48 8C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9A 08 00 00 35 04 06 00 8A 7F 76 C9 B3 0F E9 80 38 39 88 A1 3C E8 [12:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 31 50 47 00 95 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9A 08 00 00 F4 03 04 00 B4 37 A7 66 B6 04 01 00 00 17 95 AA F8 88 C0 9C 0D [12:34:07]CommunicateWithHost err = 0 [12:34:07]CheckOFDResponse [12:34:07]1017 (14) - 77093643461234 [12:34:07]1041 (16) - 0000000002094248 [12:34:07]1040 (4) - 2202 [12:34:07]1012 (4) - 29.07.2024 06:33 [12:34:07]1206 (1) - 0 [12:34:07]OFD Sender: Remove packet 2202 [12:34:07]ProducePacketName [12:34:07]name=ofd_packets/00002202 [12:34:07]NVStorageDeleteData [12:34:07]Write to MH i2c: 01 00 00 FF 7A 79 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 FF 7A 00 00 00 00 00 1F 0D AC [12:34:07]RasterBufferAndPrint [12:34:07]line [12:34:07]line [12:34:07]line [12:34:07]line [12:34:07]line [12:34:07]written 0, free lines is 3368 [12:34:07]MH_Cut [12:34:07]Write to MH i2c: D1 01 00 06 7B 01 53 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: D1 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: D1 01 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: D1 01 00 06 7B 00 52 [12:34:07]Write to MH i2c: 01 00 00 07 7B 82 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]OFD Sender: No OFD packet to send [12:34:08]*** Cut start [12:34:08]*** Partial cut [12:34:08]*** CUTSNS_PIN = 1 [12:34:08]*** CUTSNS_PIN = 0 [12:34:08]*** Brake cut motor [12:34:08]Read from MH i2c: 01 [12:34:08]MH_I2C_Read... [12:34:08]*** Stop cut motor [12:34:08]*** Cut end [12:34:08]Read from MH i2c: 01 07 00 [12:34:08]MH_I2C_Read... [12:34:08]Read from MH i2c: 01 07 00 07 7B 00 00 00 00 00 FF 0F 97 [12:34:08]process_action close_receipt done [12:34:08]requested_data is exist [12:34:08]produce_requested_data [12:34:08]requested_item fm.sn is exist - process it [12:34:08]wFMCommunicate request_size=4 [12:34:08]MH_SAM_APDU [12:34:08]CAPDU: 80 11 00 00 [12:34:08]Write to MH i2c: E2 08 00 08 7B 80 11 00 00 00 00 00 00 FD [12:34:08]Write i2c OK [12:34:08]MH_I2C_Read... [12:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:08]Read from MH i2c: E2 [12:34:08]MH_I2C_Read... [12:34:08]Read from MH i2c: E2 17 00 [12:34:08]MH_I2C_Read... [12:34:08]Read from MH i2c: E2 17 00 08 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4D [12:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:34:08]wFMCommunicate OK [12:34:08]requested_item fd.num is exist - process it [12:34:08]SAM_PROTO_GetFieldsCounters [12:34:08]wFMCommunicate request_size=4 [12:34:08]MH_SAM_APDU [12:34:08]CAPDU: 80 13 00 00 [12:34:08]Write to MH i2c: E2 08 00 09 7B 80 13 00 00 00 00 00 00 00 [12:34:08]Write i2c OK [12:34:08]MH_I2C_Read... [12:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:09]Read from MH i2c: E2 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 62 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 62 00 09 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 9A 08 00 00 0E 04 04 00 0F 00 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 74 [12:34:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 9A 08 00 00 0E 04 04 00 0F 00 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 [12:34:09]wFMCommunicate OK [12:34:09]SAM_PROTO_GetFieldsCounters done [12:34:09]requested_item shift.num is exist - process it [12:34:09]requested_item shift.opened is exist - process it [12:34:09]req_shift_opened [12:34:09]FM_GetShiftState [12:34:09]SAM_PROTO_GetShiftState [12:34:09]wFMCommunicate request_size=4 [12:34:09]MH_SAM_APDU [12:34:09]CAPDU: 80 13 01 00 [12:34:09]Write to MH i2c: E2 08 00 0A 7B 80 13 01 00 00 00 00 00 02 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:09]Read from MH i2c: E2 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 0E 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: E2 0E 00 0A 7B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FB [12:34:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:34:09]wFMCommunicate OK [12:34:09]SAM_PROTO_GetShiftState done [12:34:09]FM_GetShiftState done [12:34:09]req_shift_opened done [12:34:09]requested_item shift.open_date is exist - process it [12:34:09]req_shift_open_date [12:34:09]req_shift_open_date done [12:34:09]produce_requested_data done [12:34:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2202,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [12:34:09]process_action_free close_receipt [12:34:09]json_value_free [12:34:09]json_value_free done [12:34:09]process_json_proto returns [12:34:09]Send response to host [12:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2202,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [12:34:09]free response buf [12:34:09]execute_script done [12:34:09]execute_script returns [12:34:09]free content buf [12:34:09]Sock 9.Close socket [12:34:09]Sock 9.Thread stoped [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:48]accept exits with 8 [12:41:48]New connection [12:41:48]New thread 3067317604 created [12:41:48]Thread 3067460964 joined [12:41:48]Waiting for new connection... [12:41:48] Sock 8.Parse request [12:41:48]Sock 8.Check first char [12:41:48]Sock 8.First char is OK [12:41:48]request: POST /json_proto HTTP/1.0 [12:41:48]Method: POST [12:41:48]URL: /json_proto [12:41:48]Method is POST - this is cgi request [12:41:48]url: /json_proto [12:41:48]query_string will be loaded in cgi processing [12:41:48]execute_cgi json_proto POST (null) [12:41:48]execute_cgi path=json_proto method=POST [12:41:48]POST find Content-Length [12:41:48]Host: 172.17.45.132:8080 [12:41:48]Content-Length: 989 [12:41:48]Content-Type: application/json [12:41:48] [12:41:48]POST finish read [12:41:48]Found Content-Length = 989 [12:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126492", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:48]execute_script... [12:41: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)126492", "tax_sys" : 0, "items" : [ { "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:48]POST & json_proto [12:41:48]process_json_proto [12:41:48]json parsed OK: [12:41:48]protocol is kg_v1.0 [12:41:48]action value=close_receipt [12:41:48]process_action close_receipt [12:41:48]cmd_close_receipt [12:41:48]MH_GetDate [12:41:48]Write to MH i2c: F0 00 00 0B 7B 75 [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: F0 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: F0 09 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: F0 09 00 0B 7B 00 17 8E A7 66 E3 0B 90 66 14 [12:41:48]GetLastDocTimeStamp 1722256456 [12:41:48]current date 1722256919 [12:41:48]FM_GetShiftState [12:41:48]SAM_PROTO_GetShiftState [12:41:48]wFMCommunicate request_size=4 [12:41:48]MH_SAM_APDU [12:41:48]CAPDU: 80 13 01 00 [12:41:48]Write to MH i2c: E2 08 00 0C 7B 80 13 01 00 00 00 00 00 04 [12:41:48]Write i2c OK [12:41:48]MH_I2C_Read... [12:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:48]Read from MH i2c: E2 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 0E 00 [12:41:48]MH_I2C_Read... [12:41:48]Read from MH i2c: E2 0E 00 0C 7B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FD [12:41:48]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:41:48]wFMCommunicate OK [12:41:48]SAM_PROTO_GetShiftState done [12:41:48]FM_GetShiftState done [12:41:48]opened in 1722213119 [12:41:48]opened+sec_in_day 1722299519 [12:41:48]quantity*price = 4000 [12:41:48]sum+1 = 4001 [12:41:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607018771791 Минеральная вода Ессентуки 17 0,45л ст 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 52 29.07.2024 12:41 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2203 ФПД: 88460950154467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124159&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2203&fm=88460950154467&tin=02508201610067®Number=0000000000189667&sum=14500 0 [12:41:49]StoreToDocumentArchive [12:41:49]shift 15 fd 2203 [12:41:49]save to /storage/0015/doc_00002203 [12:41:49]save last doc name /storage/0015/doc_00002203 to /storage/kkm_last_doc_name [12:41:49]save OK [12:41:49]Clear old archive folders... [12:41:49]ProcessDocumentItem done err = 0, tmpTLVsize=409 [12:41:49]tlvbuf is 01F66300 [12:41:49]SAM_PROTO_ClearQueue [12:41:49]wFMCommunicate request_size=4 [12:41:49]MH_SAM_APDU [12:41:49]CAPDU: 80 09 00 00 [12:41:49]Write to MH i2c: E2 08 00 19 7B 80 09 00 00 00 00 00 00 06 [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:49]Read from MH i2c: E2 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: E2 03 00 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: E2 03 00 19 7B 00 90 00 08 [12:41:49]RAPDU: 90 00 [12:41:49]wFMCommunicate OK [12:41:49]SAM_PROTO_ClearQueue done [12:41:49]KKMCreateOFDPacket [12:41:49]OFDProtocolAddRootSTLVToBuf [12:41:49]FM_MakeSignedData [12:41:49]FM_MakeSignedData [12:41:49]SAM_PROTO_SignData [12:41:49]wFMCommunicate request_size=4 [12:41:49]MH_SAM_APDU [12:41:49]CAPDU: 80 0D 01 02 [12:41:49]Write to MH i2c: E2 08 00 1A 7B 80 0D 01 02 00 00 00 00 0E [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:49]Read from MH i2c: E2 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: E2 03 00 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: E2 03 00 1A 7B 00 90 00 09 [12:41:49]RAPDU: 90 00 [12:41:49]wFMCommunicate OK [12:41:49]wFMCommunicate request_size=255 [12:41:49]MH_SAM_APDU [12:41:49]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 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 [12:41:49]Write to MH i2c: E2 02 01 1B 7B 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 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 00 00 F1 [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:50]Read from MH i2c: E2 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 03 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 03 00 1B 7B 00 90 00 0A [12:41:50]RAPDU: 90 00 [12:41:50]wFMCommunicate OK [12:41:50]wFMCommunicate request_size=168 [12:41:50]MH_SAM_APDU [12:41:50]CAPDU: 80 0D 02 02 A3 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 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 34 00 00 00 F4 03 04 00 17 8E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9B 08 00 00 35 04 06 00 50 74 6B 82 AC E3 [12:41:50]Write to MH i2c: E2 AB 00 1C 7B 80 0D 02 02 A3 00 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 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 34 00 00 00 F4 03 04 00 17 8E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9B 08 00 00 35 04 06 00 50 74 6B 82 AC E3 00 00 BD [12:41:50]Write i2c OK [12:41:50]MH_I2C_Read... [12:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:50]Read from MH i2c: E2 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 03 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 03 00 1C 7B 00 90 00 0B [12:41:50]RAPDU: 90 00 [12:41:50]wFMCommunicate OK [12:41:50]wFMCommunicate request_size=4 [12:41:50]MH_SAM_APDU [12:41:50]CAPDU: 80 0D 03 02 [12:41:50]Write to MH i2c: E2 08 00 1D 7B 80 0D 03 02 00 00 00 00 13 [12:41:50]Write i2c OK [12:41:50]MH_I2C_Read... [12:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:50]Read from MH i2c: E2 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 0B 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 0B 00 1D 7B 00 68 7C 8F BD E0 9C F9 C1 90 00 7A [12:41:50]RAPDU: 68 7C 8F BD E0 9C F9 C1 90 00 [12:41:50]wFMCommunicate OK [12:41:50]SAM_PROTO_SignData done [12:41:50]FM_MakeSignedData done [12:41:50]CreateOFDProtocolMessage [12:41:50]wFMCommunicate request_size=4 [12:41:50]MH_SAM_APDU [12:41:50]CAPDU: 80 11 00 00 [12:41:50]Write to MH i2c: E2 08 00 1E 7B 80 11 00 00 00 00 00 00 13 [12:41:50]Write i2c OK [12:41:50]MH_I2C_Read... [12:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:50]Read from MH i2c: E2 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 17 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: E2 17 00 1E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 63 [12:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:41:50]wFMCommunicate OK [12:41:50]CreateOFDProtocolMessage done [12:41:50]OFDSenderStorePacket 2203 [12:41:50]StoreOFDPacket docnum=2203 [12:41:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AD 01 00 00 B9 B6 A5 01 0C 4C 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 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 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 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 34 00 00 00 F4 03 04 00 17 8E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9B 08 00 00 35 04 06 00 50 74 6B 82 AC E3 68 7C 8F BD E0 9C F9 C1 [12:41:50]CheckFolder [12:41:50]dirname=/storage/ofd_packets [12:41:50]CheckFolder done [12:41:50]ProducePacketName [12:41:50]name=ofd_packets/00002203 [12:41:50]NVStorageSaveData ofd_packets/00002203 [12:41:50]File name is /storage/ofd_packets/00002203 [12:41:50]Write 459 bytes [12:41:50]NVStorageSaveData done [12:41:50]OFDSenderStorePacket done [12:41:50]KKMCreateOFDPacket done [12:41:50]NVStorageSaveData kkm_last_timestamp [12:41:50]File name is /storage/kkm_last_timestamp [12:41:50]Write 4 bytes [12:41:50]NVStorageSaveData done [12:41:50]ExternCall_PrintAddStr [12:41:50]wPrintStart [12:41:50]Write to MH i2c: 01 00 00 1F 7B 9A [12:41:50]OFD Sender: Processing packet 2203 [packets to send 1, broken 0] [12:41:50]ProducePacketName [12:41:50]name=ofd_packets/00002203 [12:41:50]OFD Sender: To server: pG, [12:41:50]Write i2c OK [12:41:50]MH_I2C_Read... [12:41:50]CommunicateWithHost lk.salyk.kg:30040 [12:41:50]ConnectInit lk.salyk.kg [12:41:50]Read from MH i2c: 01 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: 01 07 00 [12:41:50]MH_I2C_Read... [12:41:50]Read from MH i2c: 01 07 00 1F 7B 00 00 00 00 00 FF 0F AF [12:41:50]RasterBufferAndPrint [12:41:50]line Счет N : (3)126492 [12:41:50]line ИНН: 02508201610067 [12:41:50]line Контрольно-Кассовый Чек [12:41:50]line ПРОДАЖА [12:41:50]line Товар: 40822426 [12:41:50]line Вода Бонаква 0,5л б/г [12:41:50]line 1.000 * 40.00 [12:41:50]line = 40.00 [12:41:50]line НДС 12% НСП 1% [12:41:50]line > о реализуемом товаре [12:41:50]line Товар: 4607018771791 [12:41:50]line Минеральная вода Ессентуки 17 0,45л ст [12:41:50]line 1.000 * 105.00 [12:41:50]line = 105.00 [12:41:50]line НДС 12% НСП 1% [12:41:50]line > о реализуемом товаре [12:41:50]line ИТОГО: 145.00 [12:41:50]line НСП 1% : 1.28 [12:41:50]line НДС 12% : 15.40 [12:41:50]line Наличными: 145.00 [12:41:50]line Безнал.: 0.00 [12:41:50]line Место: АЗС № 127 "Партнер Нефть" [12:41:50]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [12:41:50]line СНО: Общий режим [12:41:50]line Чек 52 29.07.2024 12:41 [12:41:50]line Смена: 15 ФФД: 1.0 [12:41:50]line ЗНМ: 0300000161 [12:41:50]line РНМ: 0000000000189667 [12:41:50]line Версия ККМ: v1.0 [12:41:50]line ФМ: 0000000002094248 [12:41:50]line ФД: 2203 [12:41:50]line ФПД: 88460950154467 [12:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124159&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2203&fm=88460950154467&tin=02508201610067®Number=0000000000189667&sum=14500 [12:41:50]line 0 [12:41:50]written 0, free lines is 4095 [12:41:50]Connected sock=10 [12:41:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AD 01 00 00 B9 B6 A5 01 0C 4C 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 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 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 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 34 00 00 00 F4 03 04 00 17 8E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9B 08 00 00 35 04 06 00 50 74 6B 82 AC E3 68 7C 8F BD E0 9C F9 C1 [12:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C2 F0 47 00 5F B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9B 08 00 00 F4 03 04 00 84 39 A7 66 B6 04 01 00 00 AA 8E 4C 29 BC FA 20 50 [12:41:51]CommunicateWithHost err = 0 [12:41:51]CheckOFDResponse [12:41:51]1017 (14) - 77093643461234 [12:41:51]1041 (16) - 0000000002094248 [12:41:51]1040 (4) - 2203 [12:41:51]1012 (4) - 29.07.2024 06:41 [12:41:51]1206 (1) - 0 [12:41:51]OFD Sender: Remove packet 2203 [12:41:51]ProducePacketName [12:41:51]name=ofd_packets/00002203 [12:41:51]NVStorageDeleteData [12:41:51]Write to MH i2c: 01 00 00 4E 7B C9 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: 01 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: 01 07 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: 01 07 00 4E 7B 00 00 00 00 00 C2 0C 9E [12:41:51]RasterBufferAndPrint [12:41:51]line [12:41:51]line [12:41:51]line [12:41:51]line [12:41:51]line [12:41:51]written 0, free lines is 3275 [12:41:51]MH_Cut [12:41:51]Write to MH i2c: D1 01 00 55 7B 01 A2 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: D1 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: D1 01 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: D1 01 00 55 7B 00 A1 [12:41:51]Write to MH i2c: 01 00 00 56 7B D1 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]OFD Sender: No OFD packet to send [12:41:51]*** Cut start [12:41:51]*** Partial cut [12:41:51]*** CUTSNS_PIN = 1 [12:41:52]*** CUTSNS_PIN = 0 [12:41:52]*** Brake cut motor [12:41:52]Read from MH i2c: 01 [12:41:52]MH_I2C_Read... [12:41:52]*** Stop cut motor [12:41:52]*** Cut end [12:41:52]Read from MH i2c: 01 07 00 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: 01 07 00 56 7B 00 00 00 00 00 FF 0F E6 [12:41:52]process_action close_receipt done [12:41:52]requested_data is exist [12:41:52]produce_requested_data [12:41:52]requested_item fm.sn is exist - process it [12:41:52]wFMCommunicate request_size=4 [12:41:52]MH_SAM_APDU [12:41:52]CAPDU: 80 11 00 00 [12:41:52]Write to MH i2c: E2 08 00 57 7B 80 11 00 00 00 00 00 00 4C [12:41:52]Write i2c OK [12:41:52]MH_I2C_Read... [12:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:52]Read from MH i2c: E2 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: E2 17 00 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: E2 17 00 57 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9C [12:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [12:41:52]wFMCommunicate OK [12:41:52]requested_item fd.num is exist - process it [12:41:52]SAM_PROTO_GetFieldsCounters [12:41:52]wFMCommunicate request_size=4 [12:41:52]MH_SAM_APDU [12:41:52]CAPDU: 80 13 00 00 [12:41:52]Write to MH i2c: E2 08 00 58 7B 80 13 00 00 00 00 00 00 4F [12:41:52]Write i2c OK [12:41:52]MH_I2C_Read... [12:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:52]Read from MH i2c: E2 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: E2 62 00 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: E2 62 00 58 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 9B 08 00 00 0E 04 04 00 0F 00 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 C7 [12:41:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 9B 08 00 00 0E 04 04 00 0F 00 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 [12:41:52]wFMCommunicate OK [12:41:52]SAM_PROTO_GetFieldsCounters done [12:41:52]requested_item shift.num is exist - process it [12:41:52]requested_item shift.opened is exist - process it [12:41:52]req_shift_opened [12:41:52]FM_GetShiftState [12:41:52]SAM_PROTO_GetShiftState [12:41:52]wFMCommunicate request_size=4 [12:41:52]MH_SAM_APDU [12:41:52]CAPDU: 80 13 01 00 [12:41:52]Write to MH i2c: E2 08 00 59 7B 80 13 01 00 00 00 00 00 51 [12:41:52]Write i2c OK [12:41:52]MH_I2C_Read... [12:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:52]Read from MH i2c: E2 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: E2 0E 00 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: E2 0E 00 59 7B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 4A [12:41:52]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [12:41:52]wFMCommunicate OK [12:41:52]SAM_PROTO_GetShiftState done [12:41:52]FM_GetShiftState done [12:41:52]req_shift_opened done [12:41:52]requested_item shift.open_date is exist - process it [12:41:52]req_shift_open_date [12:41:52]req_shift_open_date done [12:41:52]produce_requested_data done [12:41:52]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2203,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [12:41:52]process_action_free close_receipt [12:41:52]json_value_free [12:41:52]json_value_free done [12:41:52]process_json_proto returns [12:41:52]Send response to host [12:41:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2203,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [12:41:52]free response buf [12:41:52]execute_script done [12:41:52]execute_script returns [12:41:52]free content buf [12:41:52]Sock 8.Close socket [12:41:52]Sock 8.Thread stoped [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [13:02:28]ConnectInit Can't connect to host [13:02:31]ConnectInit Can't take IP for lk.salyk.kg [13:02:31]CommunicateWithHost connect error [13:02:31]CommunicateWithHost err = -1 [13:02:31]OFD Sender: Server communicate error [13:02:36]OFD Sender: Processing packet 2204 [packets to send 1, broken 0] [13:02:36]ProducePacketName [13:02:36]name=ofd_packets/00002204 [13:02:36]OFD Sender: To server: pG, [13:02:36]CommunicateWithHost lk.salyk.kg:30040 [13:02:36]ConnectInit lk.salyk.kg [13:02:36]Connected sock=8 [13:02:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 A7 1E 1F 01 D7 05 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 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 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 35 00 00 00 F4 03 04 00 FB 91 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9C 08 00 00 35 04 06 00 40 21 1E 9F 67 D8 B5 3E B2 19 1A 6F F1 B7 [13:02:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 83 3A 47 00 48 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 32 30 39 34 32 34 38 10 04 04 00 9C 08 00 00 F4 03 04 00 62 3E A7 66 B6 04 01 00 00 2B 36 02 67 7B F9 F3 AD [13:02:37]CommunicateWithHost err = 0 [13:02:37]CheckOFDResponse [13:02:37]1017 (14) - 77093643461234 [13:02:37]1041 (16) - 0000000002094248 [13:02:37]1040 (4) - 2204 [13:02:37]1012 (4) - 29.07.2024 07:01 [13:02:37]1206 (1) - 0 [13:02:37]OFD Sender: Remove packet 2204 [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00002204 [13:02:37]NVStorageDeleteData [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:09:43]ConnectInit Can't connect to host [13:09:47]OFD Sender: No OFD packet to send [13:24:40]ConnectInit Can't connect to host [13:24:44]OFD Sender: Processing packet 2205 [packets to send 3, broken 0] [13:24:44]ProducePacketName [13:24:44]name=ofd_packets/00002205 [13:24:44]OFD Sender: To server: pG, [13:24:44]CommunicateWithHost lk.salyk.kg:30040 [13:24:44]ConnectInit lk.salyk.kg [13:24:44]Connected sock=9 [13:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 95 2E 1B 01 52 B9 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 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 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 36 00 00 00 F4 03 04 00 8B 95 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9D 08 00 00 35 04 06 00 3A EF 31 E0 37 F4 01 87 F8 6E 1D 97 47 01 [13:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 90 1C 47 00 BB BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9D 08 00 00 F4 03 04 00 92 43 A7 66 B6 04 01 00 00 FB 6E 5B 8B D7 86 45 57 [13:24:44]CommunicateWithHost err = 0 [13:24:44]CheckOFDResponse [13:24:44]1017 (14) - 77093643461234 [13:24:44]1041 (16) - 0000000002094248 [13:24:44]1040 (4) - 2205 [13:24:44]1012 (4) - 29.07.2024 07:24 [13:24:44]1206 (1) - 0 [13:24:44]OFD Sender: Remove packet 2205 [13:24:44]ProducePacketName [13:24:44]name=ofd_packets/00002205 [13:24:44]NVStorageDeleteData [13:24:45]OFD Sender: Processing packet 2206 [packets to send 2, broken 0] [13:24:45]ProducePacketName [13:24:45]name=ofd_packets/00002206 [13:24:45]OFD Sender: To server: pG, [13:24:45]CommunicateWithHost lk.salyk.kg:30040 [13:24:45]ConnectInit lk.salyk.kg [13:24:45]Connected sock=9 [13:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 36 67 1C 01 35 79 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A9 95 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9E 08 00 00 35 04 06 00 6F 4F 27 AF CD FA C2 D3 F3 4D 9E 43 60 61 [13:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E5 41 47 00 84 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 32 30 39 34 32 34 38 10 04 04 00 9E 08 00 00 F4 03 04 00 92 43 A7 66 B6 04 01 00 00 70 B0 83 19 CB 16 45 28 [13:24:45]CommunicateWithHost err = 0 [13:24:45]CheckOFDResponse [13:24:45]1017 (14) - 77093643461234 [13:24:45]1041 (16) - 0000000002094248 [13:24:45]1040 (4) - 2206 [13:24:45]1012 (4) - 29.07.2024 07:24 [13:24:45]1206 (1) - 0 [13:24:45]OFD Sender: Remove packet 2206 [13:24:45]ProducePacketName [13:24:45]name=ofd_packets/00002206 [13:24:45]NVStorageDeleteData [13:24:46]OFD Sender: Processing packet 2207 [packets to send 1, broken 0] [13:24:46]ProducePacketName [13:24:46]name=ofd_packets/00002207 [13:24:46]OFD Sender: To server: pG, [13:24:46]CommunicateWithHost lk.salyk.kg:30040 [13:24:46]ConnectInit lk.salyk.kg [13:24:46]Connected sock=9 [13:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 C2 D9 18 01 69 A1 5A 03 01 00 03 00 0C 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 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 38 00 00 00 F4 03 04 00 F0 95 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9F 08 00 00 35 04 06 00 BD E1 57 A0 1E 06 CD 6C DE 11 E6 2C F1 54 [13:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B6 C3 47 00 67 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 9F 08 00 00 F4 03 04 00 93 43 A7 66 B6 04 01 00 00 7C 0D BC FF 88 D9 CB 23 [13:24:46]CommunicateWithHost err = 0 [13:24:46]CheckOFDResponse [13:24:46]1017 (14) - 77093643461234 [13:24:46]1041 (16) - 0000000002094248 [13:24:46]1040 (4) - 2207 [13:24:46]1012 (4) - 29.07.2024 07:24 [13:24:46]1206 (1) - 0 [13:24:46]OFD Sender: Remove packet 2207 [13:24:46]ProducePacketName [13:24:46]name=ofd_packets/00002207 [13:24:46]NVStorageDeleteData [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:37:47]ConnectInit Can't connect to host [13:37:50]ConnectInit Can't take IP for lk.salyk.kg [13:37:50]CommunicateWithHost connect error [13:37:50]CommunicateWithHost err = -1 [13:37:50]OFD Sender: Server communicate error [13:37:55]OFD Sender: Processing packet 2208 [packets to send 2, broken 0] [13:37:55]ProducePacketName [13:37:55]name=ofd_packets/00002208 [13:37:55]OFD Sender: To server: pG, [13:37:55]CommunicateWithHost lk.salyk.kg:30040 [13:37:55]ConnectInit lk.salyk.kg [13:37:55]Connected sock=9 [13:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 B4 31 04 01 B2 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CA 98 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A0 08 00 00 35 04 06 00 ED 26 33 66 59 26 2C 96 FD E4 54 64 0D 09 [13:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 63 62 47 00 7A D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A0 08 00 00 F4 03 04 00 A8 46 A7 66 B6 04 01 00 00 C5 73 30 FF C8 BE BD F5 [13:37:55]CommunicateWithHost err = 0 [13:37:55]CheckOFDResponse [13:37:55]1017 (14) - 77093643461234 [13:37:55]1041 (16) - 0000000002094248 [13:37:55]1040 (4) - 2208 [13:37:55]1012 (4) - 29.07.2024 07:37 [13:37:55]1206 (1) - 0 [13:37:55]OFD Sender: Remove packet 2208 [13:37:55]ProducePacketName [13:37:55]name=ofd_packets/00002208 [13:37:55]NVStorageDeleteData [13:37:56]OFD Sender: Processing packet 2209 [packets to send 1, broken 0] [13:37:56]ProducePacketName [13:37:56]name=ofd_packets/00002209 [13:37:56]OFD Sender: To server: pG, [13:37:56]CommunicateWithHost lk.salyk.kg:30040 [13:37:56]ConnectInit lk.salyk.kg [13:37:56]Connected sock=9 [13:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 9B F5 07 01 8A 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 D5 98 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A1 08 00 00 35 04 06 00 3E 02 E2 A7 E3 48 CB EF 5E 42 87 AD 24 C3 [13:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 18 2C 47 00 A6 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A1 08 00 00 F4 03 04 00 A9 46 A7 66 B6 04 01 00 00 89 B4 58 4E 3C 99 2A 05 [13:37:56]CommunicateWithHost err = 0 [13:37:56]CheckOFDResponse [13:37:56]1017 (14) - 77093643461234 [13:37:56]1041 (16) - 0000000002094248 [13:37:56]1040 (4) - 2209 [13:37:56]1012 (4) - 29.07.2024 07:37 [13:37:56]1206 (1) - 0 [13:37:56]OFD Sender: Remove packet 2209 [13:37:56]ProducePacketName [13:37:56]name=ofd_packets/00002209 [13:37:56]NVStorageDeleteData [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39: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:42]accept exits with 8 [13:40:42]New connection [13:40:42]New thread 3067460964 created [13:40:42]Thread 3067317604 joined [13:40:42]Waiting for new connection... [13:40:42] Sock 8.Parse request [13:40:42]Sock 8.Check first char [13:40:42]Sock 8.First char is OK [13:40:42]request: POST /json_proto HTTP/1.0 [13:40:42]Method: POST [13:40:42]URL: /json_proto [13:40:42]Method is POST - this is cgi request [13:40:42]url: /json_proto [13:40:42]query_string will be loaded in cgi processing [13:40:42]execute_cgi json_proto POST (null) [13:40:42]execute_cgi path=json_proto method=POST [13:40:42]POST find Content-Length [13:40:42]Host: 172.17.45.132:8080 [13:40:42]Content-Length: 1747 [13:40:42]Content-Type: application/json [13:40:42] [13:40:42]POST finish read [13:40:42]Found Content-Length = 1747 [13:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126497", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 206.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:42]execute_script... [13:40: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)126497", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 206.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:42]POST & json_proto [13:40:42]process_json_proto [13:40:42]json parsed OK: [13:40:42]protocol is kg_v1.0 [13:40:42]action value=close_receipt [13:40:42]process_action close_receipt [13:40:42]cmd_close_receipt [13:40:42]MH_GetDate [13:40:42]Write to MH i2c: F0 00 00 0F 7D 7B [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: F0 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: F0 09 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: F0 09 00 0F 7D 00 E5 9B A7 66 E3 0B 90 66 F5 [13:40:42]GetLastDocTimeStamp 1722259669 [13:40:42]current date 1722260453 [13:40:42]FM_GetShiftState [13:40:42]SAM_PROTO_GetShiftState [13:40:42]wFMCommunicate request_size=4 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 13 01 00 [13:40:42]Write to MH i2c: E2 08 00 10 7D 80 13 01 00 00 00 00 00 0A [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 0E 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 0E 00 10 7D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 03 [13:40:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:40:42]wFMCommunicate OK [13:40:42]SAM_PROTO_GetShiftState done [13:40:42]FM_GetShiftState done [13:40:42]opened in 1722213119 [13:40:42]opened+sec_in_day 1722299519 [13:40:42]quantity*price = 5000 [13:40:42]sum+1 = 5001 [13:40:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010740757 Чипсы Чипсоны сметана, лук 40г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010740733 Чипсы Чипсоны шашлык 40г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 206.00 НСП 1% : 1.83 НДС 12% : 21.88 Наличными: 206.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 59 29.07.2024 13:40 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2210 ФПД: 63837960152531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134053&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2210&fm=63837960152531&tin=02508201610067®Number=0000000000189667&sum=20600 0 [13:40:43]StoreToDocumentArchive [13:40:43]shift 15 fd 2210 [13:40:43]save to /storage/0015/doc_00002210 [13:40:43]save last doc name /storage/0015/doc_00002210 to /storage/kkm_last_doc_name [13:40:43]save OK [13:40:43]Clear old archive folders... [13:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=722 [13:40:43]tlvbuf is 02214D60 [13:40:43]SAM_PROTO_ClearQueue [13:40:43]wFMCommunicate request_size=4 [13:40:43]MH_SAM_APDU [13:40:43]CAPDU: 80 09 00 00 [13:40:43]Write to MH i2c: E2 08 00 1D 7D 80 09 00 00 00 00 00 00 0C [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:43]Read from MH i2c: E2 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: E2 03 00 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: E2 03 00 1D 7D 00 90 00 0E [13:40:43]RAPDU: 90 00 [13:40:43]wFMCommunicate OK [13:40:43]SAM_PROTO_ClearQueue done [13:40:43]KKMCreateOFDPacket [13:40:43]OFDProtocolAddRootSTLVToBuf [13:40:43]FM_MakeSignedData [13:40:43]FM_MakeSignedData [13:40:43]SAM_PROTO_SignData [13:40:43]wFMCommunicate request_size=4 [13:40:43]MH_SAM_APDU [13:40:43]CAPDU: 80 0D 01 02 [13:40:43]Write to MH i2c: E2 08 00 1E 7D 80 0D 01 02 00 00 00 00 14 [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:43]Read from MH i2c: E2 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: E2 03 00 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: E2 03 00 1E 7D 00 90 00 0F [13:40:43]RAPDU: 90 00 [13:40:43]wFMCommunicate OK [13:40:43]wFMCommunicate request_size=255 [13:40:43]MH_SAM_APDU [13:40:43]CAPDU: 80 0D 02 02 FA 03 00 D2 02 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 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 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 [13:40:43]Write to MH i2c: E2 02 01 1F 7D 80 0D 02 02 FA 00 03 00 D2 02 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 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 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 00 55 [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 1F 7D 00 90 00 10 [13:40:44]RAPDU: 90 00 [13:40:44]wFMCommunicate OK [13:40:44]wFMCommunicate request_size=255 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 0D 02 02 FA 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 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 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 [13:40:44]Write to MH i2c: E2 02 01 20 7D 80 0D 02 02 FA 00 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 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 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 00 00 78 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 20 7D 00 90 00 11 [13:40:44]RAPDU: 90 00 [13:40:44]wFMCommunicate OK [13:40:44]wFMCommunicate request_size=231 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 0D 02 02 E2 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 E5 9B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A2 08 00 00 35 04 06 00 3A 0F 6E F0 25 D3 [13:40:44]Write to MH i2c: E2 EA 00 21 7D 80 0D 02 02 E2 00 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 E5 9B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A2 08 00 00 35 04 06 00 3A 0F 6E F0 25 D3 00 00 F7 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 03 00 21 7D 00 90 00 12 [13:40:44]RAPDU: 90 00 [13:40:44]wFMCommunicate OK [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 0D 03 02 [13:40:44]Write to MH i2c: E2 08 00 22 7D 80 0D 03 02 00 00 00 00 1A [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0B 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0B 00 22 7D 00 5F 9D 9E 9B 21 8E E0 8B 90 00 6A [13:40:44]RAPDU: 5F 9D 9E 9B 21 8E E0 8B 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_SignData done [13:40:44]FM_MakeSignedData done [13:40:44]CreateOFDProtocolMessage [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 11 00 00 [13:40:44]Write to MH i2c: E2 08 00 23 7D 80 11 00 00 00 00 00 00 1A [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 23 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6A [13:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:40:44]wFMCommunicate OK [13:40:44]CreateOFDProtocolMessage done [13:40:44]OFDSenderStorePacket 2210 [13:40:44]StoreOFDPacket docnum=2210 [13:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 E6 02 00 00 80 83 DE 02 69 55 5A 03 01 00 03 00 D2 02 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 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 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 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 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 E5 9B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A2 08 00 00 35 04 06 00 3A 0F 6E F0 25 D3 5F 9D 9E 9B 21 8E E0 8B [13:40:44]CheckFolder [13:40:44]dirname=/storage/ofd_packets [13:40:44]CheckFolder done [13:40:44]ProducePacketName [13:40:44]name=ofd_packets/00002210 [13:40:44]NVStorageSaveData ofd_packets/00002210 [13:40:44]File name is /storage/ofd_packets/00002210 [13:40:44]Write 772 bytes [13:40:44]NVStorageSaveData done [13:40:44]OFDSenderStorePacket done [13:40:44]KKMCreateOFDPacket done [13:40:44]NVStorageSaveData kkm_last_timestamp [13:40:44]File name is /storage/kkm_last_timestamp [13:40:44]Write 4 bytes [13:40:44]NVStorageSaveData done [13:40:44]ExternCall_PrintAddStr [13:40:44]wPrintStart [13:40:44]Write to MH i2c: 01 00 00 24 7D A1 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 07 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 07 00 24 7D 00 00 00 00 00 FF 0F B6 [13:40:44]RasterBufferAndPrint [13:40:44]line Счет N : (3)126497 [13:40:44]line ИНН: 02508201610067 [13:40:45]line Контрольно-Кассовый Чек [13:40:45]line ПРОДАЖА [13:40:45]line Товар: 5449000005489 [13:40:45]line Вода Бонаква 1л б/г [13:40:45]line 1.000 * 50.00 [13:40:45]line = 50.00 [13:40:45]line НДС 12% НСП 1% [13:40:45]line > о реализуемом товаре [13:40:45]line Товар: 2000053020015 [13:40:45]line Бумажные стаканы 250мл 1шт [13:40:45]line 3.000 * 7.00 [13:40:45]line = 21.00 [13:40:45]line НДС 12% НСП 1% [13:40:45]line > о реализуемом товаре [13:40:45]line Товар: 50173617 [13:40:45]line Жев Orbit Eucalyptus [13:40:45]line 1.000 * 45.00 [13:40:45]line = 45.00 [13:40:45]line НДС 12% НСП 1% [13:40:45]line > о реализуемом товаре [13:40:45]line Товар: 4607010740757 [13:40:45]line Чипсы Чипсоны сметана, лук 40г [13:40:45]line 1.000 * 45.00 [13:40:45]line = 45.00 [13:40:45]line НДС 12% НСП 1% [13:40:45]line > о реализуемом товаре [13:40:45]line Товар: 4607010740733 [13:40:45]line Чипсы Чипсоны шашлык 40г [13:40:45]line 1.000 * 45.00 [13:40:45]line = 45.00 [13:40:45]line НДС 12% НСП 1% [13:40:45]line > о реализуемом товаре [13:40:45]line ИТОГО: 206.00 [13:40:45]line НСП 1% : 1.83 [13:40:45]line НДС 12% : 21.88 [13:40:45]line Наличными: 206.00 [13:40:45]line Безнал.: 0.00 [13:40:45]line Место: АЗС № 127 "Партнер Нефть" [13:40:45]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:40:45]line СНО: Общий режим [13:40:45]line Чек 59 29.07.2024 13:40 [13:40:45]line Смена: 15 ФФД: 1.0 [13:40:45]line ЗНМ: 0300000161 [13:40:45]line РНМ: 0000000000189667 [13:40:45]line Версия ККМ: v1.0 [13:40:45]line ФМ: 0000000002094248 [13:40:45]line ФД: 2210 [13:40:45]line ФПД: 63837960152531 [13:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134053&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2210&fm=63837960152531&tin=02508201610067®Number=0000000000189667&sum=20600 [13:40:45]OFD Sender: Processing packet 2210 [packets to send 1, broken 0] [13:40:45]ProducePacketName [13:40:45]name=ofd_packets/00002210 [13:40:45]OFD Sender: To server: pG, [13:40:45]CommunicateWithHost lk.salyk.kg:30040 [13:40:45]ConnectInit lk.salyk.kg [13:40:45]line 0 [13:40:45]written 0, free lines is 4095 [13:40:45]Connected sock=10 [13:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 E6 02 00 00 80 83 DE 02 69 55 5A 03 01 00 03 00 D2 02 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 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 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 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 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 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 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 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 E5 9B A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A2 08 00 00 35 04 06 00 3A 0F 6E F0 25 D3 5F 9D 9E 9B 21 8E E0 8B [13:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4A C3 47 00 D3 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A2 08 00 00 F4 03 04 00 52 47 A7 66 B6 04 01 00 00 27 D8 E6 90 13 83 CC A1 [13:40:45]CommunicateWithHost err = 0 [13:40:45]CheckOFDResponse [13:40:45]1017 (14) - 77093643461234 [13:40:45]1041 (16) - 0000000002094248 [13:40:45]1040 (4) - 2210 [13:40:45]1012 (4) - 29.07.2024 07:40 [13:40:45]1206 (1) - 0 [13:40:45]OFD Sender: Remove packet 2210 [13:40:45]ProducePacketName [13:40:45]name=ofd_packets/00002210 [13:40:45]NVStorageDeleteData [13:40:45]Write to MH i2c: 01 00 00 66 7D E3 [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: 01 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: 01 07 00 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: 01 07 00 66 7D 00 00 00 00 00 D2 0B C7 [13:40:45]RasterBufferAndPrint [13:40:45]line [13:40:45]line [13:40:45]line [13:40:45]line [13:40:45]line [13:40:45]written 0, free lines is 3038 [13:40:45]MH_Cut [13:40:45]Write to MH i2c: D1 01 00 6D 7D 01 BC [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: D1 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: D1 01 00 [13:40:45]MH_I2C_Read... [13:40:45]Read from MH i2c: D1 01 00 6D 7D 00 BB [13:40:45]Write to MH i2c: 01 00 00 6E 7D EB [13:40:45]Write i2c OK [13:40:45]MH_I2C_Read... [13:40:45]OFD Sender: No OFD packet to send [13:40:46]*** Cut start [13:40:46]*** Partial cut [13:40:46]*** CUTSNS_PIN = 1 [13:40:46]*** CUTSNS_PIN = 0 [13:40:46]*** Brake cut motor [13:40:47]Read from MH i2c: 01 [13:40:47]MH_I2C_Read... [13:40:47]*** Stop cut motor [13:40:47]*** Cut end [13:40:47]Read from MH i2c: 01 07 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 07 00 6E 7D 00 00 00 00 00 FF 0F 00 [13:40:47]process_action close_receipt done [13:40:47]requested_data is exist [13:40:47]produce_requested_data [13:40:47]requested_item fm.sn is exist - process it [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 11 00 00 [13:40:47]Write to MH i2c: E2 08 00 6F 7D 80 11 00 00 00 00 00 00 66 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 6F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B6 [13:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:40:47]wFMCommunicate OK [13:40:47]requested_item fd.num is exist - process it [13:40:47]SAM_PROTO_GetFieldsCounters [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 13 00 00 [13:40:47]Write to MH i2c: E2 08 00 70 7D 80 13 00 00 00 00 00 00 69 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 62 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 62 00 70 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A2 08 00 00 0E 04 04 00 0F 00 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 FD [13:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A2 08 00 00 0E 04 04 00 0F 00 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 [13:40:47]wFMCommunicate OK [13:40:47]SAM_PROTO_GetFieldsCounters done [13:40:47]requested_item shift.num is exist - process it [13:40:47]requested_item shift.opened is exist - process it [13:40:47]req_shift_opened [13:40:47]FM_GetShiftState [13:40:47]SAM_PROTO_GetShiftState [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 13 01 00 [13:40:47]Write to MH i2c: E2 08 00 71 7D 80 13 01 00 00 00 00 00 6B [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 0E 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 0E 00 71 7D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 64 [13:40:47]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:40:47]wFMCommunicate OK [13:40:47]SAM_PROTO_GetShiftState done [13:40:47]FM_GetShiftState done [13:40:47]req_shift_opened done [13:40:47]requested_item shift.open_date is exist - process it [13:40:47]req_shift_open_date [13:40:47]req_shift_open_date done [13:40:47]produce_requested_data done [13:40:47]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2210,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [13:40:47]process_action_free close_receipt [13:40:47]json_value_free [13:40:47]json_value_free done [13:40:47]process_json_proto returns [13:40:47]Send response to host [13:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2210,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [13:40:47]free response buf [13:40:47]execute_script done [13:40:47]execute_script returns [13:40:47]free content buf [13:40:47]Sock 8.Close socket [13:40:47]Sock 8.Thread stoped [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:51]accept exits with 9 [13:43:51]New connection [13:43:51]New thread 3067317604 created [13:43:51]Thread 3067460964 joined [13:43:51]Waiting for new connection... [13:43:51] Sock 9.Parse request [13:43:51]Sock 9.Check first char [13:43:51]Sock 9.First char is OK [13:43:51]request: POST /json_proto HTTP/1.0 [13:43:51]Method: POST [13:43:51]URL: /json_proto [13:43:51]Method is POST - this is cgi request [13:43:51]url: /json_proto [13:43:51]query_string will be loaded in cgi processing [13:43:51]execute_cgi json_proto POST (null) [13:43:51]execute_cgi path=json_proto method=POST [13:43:51]POST find Content-Length [13:43:51]Host: 172.17.45.132:8080 [13:43:51]Content-Length: 622 [13:43:51]Content-Type: application/json [13:43:51] [13:43:51]POST finish read [13:43:51]Found Content-Length = 622 [13:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126498", "tax_sys" : 0, "items" : [ { "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:51]execute_script... [13:43: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)126498", "tax_sys" : 0, "items" : [ { "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" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:51]POST & json_proto [13:43:51]process_json_proto [13:43:51]json parsed OK: [13:43:51]protocol is kg_v1.0 [13:43:51]action value=close_receipt [13:43:51]process_action close_receipt [13:43:51]cmd_close_receipt [13:43:51]MH_GetDate [13:43:51]Write to MH i2c: F0 00 00 72 7D DE [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: F0 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: F0 09 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: F0 09 00 72 7D 00 A2 9C A7 66 E3 0B 90 66 16 [13:43:51]GetLastDocTimeStamp 1722260453 [13:43:51]current date 1722260642 [13:43:51]FM_GetShiftState [13:43:51]SAM_PROTO_GetShiftState [13:43:51]wFMCommunicate request_size=4 [13:43:51]MH_SAM_APDU [13:43:51]CAPDU: 80 13 01 00 [13:43:51]Write to MH i2c: E2 08 00 73 7D 80 13 01 00 00 00 00 00 6D [13:43:51]Write i2c OK [13:43:51]MH_I2C_Read... [13:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:51]Read from MH i2c: E2 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 0E 00 [13:43:51]MH_I2C_Read... [13:43:51]Read from MH i2c: E2 0E 00 73 7D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 66 [13:43:51]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:43:51]wFMCommunicate OK [13:43:51]SAM_PROTO_GetShiftState done [13:43:51]FM_GetShiftState done [13:43:51]opened in 1722213119 [13:43:51]opened+sec_in_day 1722299519 [13:43:51]quantity*price = 15000 [13:43:51]sum+1 = 15001 [13:43:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 60 29.07.2024 13:44 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2211 ФПД: 270489382820568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134402&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2211&fm=270489382820568&tin=02508201610067®Number=0000000000189667&sum=15000 0 [13:43:52]StoreToDocumentArchive [13:43:52]shift 15 fd 2211 [13:43:52]save to /storage/0015/doc_00002211 [13:43:52]save last doc name /storage/0015/doc_00002211 to /storage/kkm_last_doc_name [13:43:52]save OK [13:43:52]Clear old archive folders... [13:43:52]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:43:52]tlvbuf is 020C42C0 [13:43:52]SAM_PROTO_ClearQueue [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 09 00 00 [13:43:52]Write to MH i2c: E2 08 00 80 7D 80 09 00 00 00 00 00 00 6F [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 80 7D 00 90 00 71 [13:43:52]RAPDU: 90 00 [13:43:52]wFMCommunicate OK [13:43:52]SAM_PROTO_ClearQueue done [13:43:52]KKMCreateOFDPacket [13:43:52]OFDProtocolAddRootSTLVToBuf [13:43:52]FM_MakeSignedData [13:43:52]FM_MakeSignedData [13:43:52]SAM_PROTO_SignData [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 0D 01 02 [13:43:52]Write to MH i2c: E2 08 00 81 7D 80 0D 01 02 00 00 00 00 77 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 81 7D 00 90 00 72 [13:43:52]RAPDU: 90 00 [13:43:52]wFMCommunicate OK [13:43:52]wFMCommunicate request_size=255 [13:43:52]MH_SAM_APDU [13:43:52]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 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 3C 00 00 00 F4 03 04 00 A2 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [13:43:52]Write to MH i2c: E2 02 01 82 7D 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 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 3C 00 00 00 F4 03 04 00 A2 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 BA [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 82 7D 00 90 00 73 [13:43:52]RAPDU: 90 00 [13:43:52]wFMCommunicate OK [13:43:52]wFMCommunicate request_size=33 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A3 08 00 00 35 04 06 00 F6 02 37 94 1A D8 [13:43:52]Write to MH i2c: E2 24 00 83 7D 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A3 08 00 00 35 04 06 00 F6 02 37 94 1A D8 00 00 66 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 03 00 83 7D 00 90 00 74 [13:43:52]RAPDU: 90 00 [13:43:52]wFMCommunicate OK [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 0D 03 02 [13:43:52]Write to MH i2c: E2 08 00 84 7D 80 0D 03 02 00 00 00 00 7C [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0B 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 0B 00 84 7D 00 80 1E 6C EA C4 97 2E 76 90 00 70 [13:43:52]RAPDU: 80 1E 6C EA C4 97 2E 76 90 00 [13:43:52]wFMCommunicate OK [13:43:52]SAM_PROTO_SignData done [13:43:52]FM_MakeSignedData done [13:43:52]CreateOFDProtocolMessage [13:43:52]wFMCommunicate request_size=4 [13:43:52]MH_SAM_APDU [13:43:52]CAPDU: 80 11 00 00 [13:43:52]Write to MH i2c: E2 08 00 85 7D 80 11 00 00 00 00 00 00 7C [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:52]Read from MH i2c: E2 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: E2 17 00 85 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CC [13:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:43:52]wFMCommunicate OK [13:43:52]CreateOFDProtocolMessage done [13:43:52]OFDSenderStorePacket 2211 [13:43:52]StoreOFDPacket docnum=2211 [13:43:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 8A 61 1E 01 B8 8B 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 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 3C 00 00 00 F4 03 04 00 A2 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A3 08 00 00 35 04 06 00 F6 02 37 94 1A D8 80 1E 6C EA C4 97 2E 76 [13:43:52]CheckFolder [13:43:52]dirname=/storage/ofd_packets [13:43:52]CheckFolder done [13:43:52]ProducePacketName [13:43:52]name=ofd_packets/00002211 [13:43:52]NVStorageSaveData ofd_packets/00002211 [13:43:52]File name is /storage/ofd_packets/00002211 [13:43:52]Write 324 bytes [13:43:52]NVStorageSaveData done [13:43:52]OFDSenderStorePacket done [13:43:52]KKMCreateOFDPacket done [13:43:52]NVStorageSaveData kkm_last_timestamp [13:43:52]File name is /storage/kkm_last_timestamp [13:43:52]Write 4 bytes [13:43:52]NVStorageSaveData done [13:43:52]ExternCall_PrintAddStr [13:43:52]wPrintStart [13:43:52]Write to MH i2c: 01 00 00 86 7D 03 [13:43:52]Write i2c OK [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 [13:43:52]MH_I2C_Read... [13:43:52]Read from MH i2c: 01 07 00 86 7D 00 00 00 00 00 FF 0F 18 [13:43:52]RasterBufferAndPrint [13:43:52]line Счет N : (3)126498 [13:43:52]line ИНН: 02508201610067 [13:43:52]line Контрольно-Кассовый Чек [13:43:52]line ПРОДАЖА [13:43:52]line Товар: 4640030091621 [13:43:52]line Сигареты ESSE Exchange W [13:43:52]line 1.000 * 150.00 [13:43:52]line = 150.00 [13:43:52]line НДС 12% НСП 1% [13:43:52]line > о реализуемом товаре [13:43:52]line ИТОГО: 150.00 [13:43:52]line НСП 1% : 1.33 [13:43:52]line НДС 12% : 15.93 [13:43:52]line Наличными: 150.00 [13:43:52]line Безнал.: 0.00 [13:43:52]line Место: АЗС № 127 "Партнер Нефть" [13:43:52]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:43:52]line СНО: Общий режим [13:43:52]line Чек 60 29.07.2024 13:44 [13:43:52]line Смена: 15 ФФД: 1.0 [13:43:52]line ЗНМ: 0300000161 [13:43:52]line РНМ: 0000000000189667 [13:43:52]line Версия ККМ: v1.0 [13:43:52]line ФМ: 0000000002094248 [13:43:52]line ФД: 2211 [13:43:52]line ФПД: 270489382820568 [13:43:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134402&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2211&fm=270489382820568&tin=02508201610067®Number=0000000000189667&sum=15000 [13:43:53]line 0 [13:43:53]OFD Sender: Processing packet 2211 [packets to send 1, broken 0] [13:43:53]ProducePacketName [13:43:53]name=ofd_packets/00002211 [13:43:53]OFD Sender: To server: pG, [13:43:53]CommunicateWithHost lk.salyk.kg:30040 [13:43:53]ConnectInit lk.salyk.kg [13:43:53]written 0, free lines is 4095 [13:43:53]Connected sock=10 [13:43:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 8A 61 1E 01 B8 8B 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 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 3C 00 00 00 F4 03 04 00 A2 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A3 08 00 00 35 04 06 00 F6 02 37 94 1A D8 80 1E 6C EA C4 97 2E 76 [13:43:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E5 65 47 00 83 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A3 08 00 00 F4 03 04 00 0E 48 A7 66 B6 04 01 00 00 98 15 39 1C 22 73 63 4F [13:43:53]CommunicateWithHost err = 0 [13:43:53]CheckOFDResponse [13:43:53]1017 (14) - 77093643461234 [13:43:53]1041 (16) - 0000000002094248 [13:43:53]1040 (4) - 2211 [13:43:53]1012 (4) - 29.07.2024 07:43 [13:43:53]1206 (1) - 0 [13:43:53]OFD Sender: Remove packet 2211 [13:43:53]ProducePacketName [13:43:53]name=ofd_packets/00002211 [13:43:53]NVStorageDeleteData [13:43:53]Write to MH i2c: 01 00 00 AE 7D 2B [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 07 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 07 00 AE 7D 00 00 00 00 00 28 0D 67 [13:43:53]RasterBufferAndPrint [13:43:53]line [13:43:53]line [13:43:53]line [13:43:53]line [13:43:53]line [13:43:53]written 0, free lines is 3378 [13:43:53]MH_Cut [13:43:53]Write to MH i2c: D1 01 00 B5 7D 01 04 [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: D1 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: D1 01 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: D1 01 00 B5 7D 00 03 [13:43:53]Write to MH i2c: 01 00 00 B6 7D 33 [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:54]OFD Sender: No OFD packet to send [13:43:54]*** Cut start [13:43:54]*** Partial cut [13:43:54]*** CUTSNS_PIN = 1 [13:43:54]*** CUTSNS_PIN = 0 [13:43:54]*** Brake cut motor [13:43:54]Read from MH i2c: 01 [13:43:54]MH_I2C_Read... [13:43:54]*** Stop cut motor [13:43:54]*** Cut end [13:43:54]Read from MH i2c: 01 07 00 [13:43:54]MH_I2C_Read... [13:43:54]Read from MH i2c: 01 07 00 B6 7D 00 00 00 00 00 FF 0F 48 [13:43:54]process_action close_receipt done [13:43:54]requested_data is exist [13:43:54]produce_requested_data [13:43:54]requested_item fm.sn is exist - process it [13:43:54]wFMCommunicate request_size=4 [13:43:54]MH_SAM_APDU [13:43:54]CAPDU: 80 11 00 00 [13:43:54]Write to MH i2c: E2 08 00 B7 7D 80 11 00 00 00 00 00 00 AE [13:43:54]Write i2c OK [13:43:54]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 17 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 17 00 B7 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FE [13:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:43:55]wFMCommunicate OK [13:43:55]requested_item fd.num is exist - process it [13:43:55]SAM_PROTO_GetFieldsCounters [13:43:55]wFMCommunicate request_size=4 [13:43:55]MH_SAM_APDU [13:43:55]CAPDU: 80 13 00 00 [13:43:55]Write to MH i2c: E2 08 00 B8 7D 80 13 00 00 00 00 00 00 B1 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 62 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 62 00 B8 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A3 08 00 00 0E 04 04 00 0F 00 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 49 [13:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A3 08 00 00 0E 04 04 00 0F 00 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 [13:43:55]wFMCommunicate OK [13:43:55]SAM_PROTO_GetFieldsCounters done [13:43:55]requested_item shift.num is exist - process it [13:43:55]requested_item shift.opened is exist - process it [13:43:55]req_shift_opened [13:43:55]FM_GetShiftState [13:43:55]SAM_PROTO_GetShiftState [13:43:55]wFMCommunicate request_size=4 [13:43:55]MH_SAM_APDU [13:43:55]CAPDU: 80 13 01 00 [13:43:55]Write to MH i2c: E2 08 00 B9 7D 80 13 01 00 00 00 00 00 B3 [13:43:55]Write i2c OK [13:43:55]MH_I2C_Read... [13:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:55]Read from MH i2c: E2 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 0E 00 [13:43:55]MH_I2C_Read... [13:43:55]Read from MH i2c: E2 0E 00 B9 7D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AC [13:43:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:43:55]wFMCommunicate OK [13:43:55]SAM_PROTO_GetShiftState done [13:43:55]FM_GetShiftState done [13:43:55]req_shift_opened done [13:43:55]requested_item shift.open_date is exist - process it [13:43:55]req_shift_open_date [13:43:55]req_shift_open_date done [13:43:55]produce_requested_data done [13:43:55]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2211,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [13:43:55]process_action_free close_receipt [13:43:55]json_value_free [13:43:55]json_value_free done [13:43:55]process_json_proto returns [13:43:55]Send response to host [13:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2211,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [13:43:55]free response buf [13:43:55]execute_script done [13:43:55]execute_script returns [13:43:55]free content buf [13:43:55]Sock 9.Close socket [13:43:55]Sock 9.Thread stoped [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:22]accept exits with 8 [13:44:22]New connection [13:44:22]New thread 3067460964 created [13:44:22]Thread 3067317604 joined [13:44:22]Waiting for new connection... [13:44:22] Sock 8.Parse request [13:44:22]Sock 8.Check first char [13:44:22]Sock 8.First char is OK [13:44:22]request: POST /json_proto HTTP/1.0 [13:44:22]Method: POST [13:44:22]URL: /json_proto [13:44:22]Method is POST - this is cgi request [13:44:22]url: /json_proto [13:44:22]query_string will be loaded in cgi processing [13:44:22]execute_cgi json_proto POST (null) [13:44:22]execute_cgi path=json_proto method=POST [13:44:22]POST find Content-Length [13:44:22]Host: 172.17.45.132:8080 [13:44:22]Content-Length: 630 [13:44:22]Content-Type: application/json [13:44:22] [13:44:22]POST finish read [13:44:22]Found Content-Length = 630 [13:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126499", "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" ] } } [13:44:22]execute_script... [13:44:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126499", "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" ] } } [13:44:22]POST & json_proto [13:44:22]process_json_proto [13:44:22]json parsed OK: [13:44:22]protocol is kg_v1.0 [13:44:22]action value=close_receipt [13:44:22]process_action close_receipt [13:44:22]cmd_close_receipt [13:44:22]MH_GetDate [13:44:22]Write to MH i2c: F0 00 00 BA 7D 26 [13:44:22]Write i2c OK [13:44:22]MH_I2C_Read... [13:44:22]Read from MH i2c: F0 [13:44:22]MH_I2C_Read... [13:44:22]Read from MH i2c: F0 09 00 [13:44:22]MH_I2C_Read... [13:44:22]Read from MH i2c: F0 09 00 BA 7D 00 C1 9C A7 66 E3 0B 90 66 7D [13:44:22]GetLastDocTimeStamp 1722260642 [13:44:22]current date 1722260673 [13:44:22]FM_GetShiftState [13:44:22]SAM_PROTO_GetShiftState [13:44:22]wFMCommunicate request_size=4 [13:44:22]MH_SAM_APDU [13:44:22]CAPDU: 80 13 01 00 [13:44:22]Write to MH i2c: E2 08 00 BB 7D 80 13 01 00 00 00 00 00 B5 [13:44:22]Write i2c OK [13:44:22]MH_I2C_Read... [13:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:22]Read from MH i2c: E2 [13:44:22]MH_I2C_Read... [13:44:22]Read from MH i2c: E2 0E 00 [13:44:22]MH_I2C_Read... [13:44:22]Read from MH i2c: E2 0E 00 BB 7D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AE [13:44:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:44:22]wFMCommunicate OK [13:44:22]SAM_PROTO_GetShiftState done [13:44:22]FM_GetShiftState done [13:44:22]opened in 1722213119 [13:44:22]opened+sec_in_day 1722299519 [13:44:22]quantity*price = 5000 [13:44:22]sum+1 = 5001 [13:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 61 29.07.2024 13:44 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2212 ФПД: 133171554014581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134433&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2212&fm=133171554014581&tin=02508201610067®Number=0000000000189667&sum=5000 0 [13:44:23]StoreToDocumentArchive [13:44:23]shift 15 fd 2212 [13:44:23]save to /storage/0015/doc_00002212 [13:44:23]save last doc name /storage/0015/doc_00002212 to /storage/kkm_last_doc_name [13:44:23]save OK [13:44:23]Clear old archive folders... [13:44:23]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:44:23]tlvbuf is 0200E9A0 [13:44:23]SAM_PROTO_ClearQueue [13:44:23]wFMCommunicate request_size=4 [13:44:23]MH_SAM_APDU [13:44:23]CAPDU: 80 09 00 00 [13:44:23]Write to MH i2c: E2 08 00 C8 7D 80 09 00 00 00 00 00 00 B7 [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:23]Read from MH i2c: E2 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 C8 7D 00 90 00 B9 [13:44:23]RAPDU: 90 00 [13:44:23]wFMCommunicate OK [13:44:23]SAM_PROTO_ClearQueue done [13:44:23]KKMCreateOFDPacket [13:44:23]OFDProtocolAddRootSTLVToBuf [13:44:23]FM_MakeSignedData [13:44:23]FM_MakeSignedData [13:44:23]SAM_PROTO_SignData [13:44:23]wFMCommunicate request_size=4 [13:44:23]MH_SAM_APDU [13:44:23]CAPDU: 80 0D 01 02 [13:44:23]Write to MH i2c: E2 08 00 C9 7D 80 0D 01 02 00 00 00 00 BF [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:23]Read from MH i2c: E2 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 C9 7D 00 90 00 BA [13:44:23]RAPDU: 90 00 [13:44:23]wFMCommunicate OK [13:44:23]wFMCommunicate request_size=255 [13:44:23]MH_SAM_APDU [13:44:23]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 3D 00 00 00 F4 03 04 00 C1 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [13:44:23]Write to MH i2c: E2 02 01 CA 7D 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 3D 00 00 00 F4 03 04 00 C1 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 92 [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:23]Read from MH i2c: E2 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 CA 7D 00 90 00 BB [13:44:23]RAPDU: 90 00 [13:44:23]wFMCommunicate OK [13:44:23]wFMCommunicate request_size=28 [13:44:23]MH_SAM_APDU [13:44:23]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 A4 08 00 00 35 04 06 00 79 1E 6B 2B D5 75 [13:44:23]Write to MH i2c: E2 1F 00 CB 7D 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 A4 08 00 00 35 04 06 00 79 1E 6B 2B D5 75 00 00 75 [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:23]Read from MH i2c: E2 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 03 00 CB 7D 00 90 00 BC [13:44:23]RAPDU: 90 00 [13:44:23]wFMCommunicate OK [13:44:23]wFMCommunicate request_size=4 [13:44:23]MH_SAM_APDU [13:44:23]CAPDU: 80 0D 03 02 [13:44:23]Write to MH i2c: E2 08 00 CC 7D 80 0D 03 02 00 00 00 00 C4 [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:23]Read from MH i2c: E2 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 0B 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 0B 00 CC 7D 00 68 93 76 A3 88 E7 A2 AF 90 00 99 [13:44:23]RAPDU: 68 93 76 A3 88 E7 A2 AF 90 00 [13:44:23]wFMCommunicate OK [13:44:23]SAM_PROTO_SignData done [13:44:23]FM_MakeSignedData done [13:44:23]CreateOFDProtocolMessage [13:44:23]wFMCommunicate request_size=4 [13:44:23]MH_SAM_APDU [13:44:23]CAPDU: 80 11 00 00 [13:44:23]Write to MH i2c: E2 08 00 CD 7D 80 11 00 00 00 00 00 00 C4 [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:23]Read from MH i2c: E2 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 17 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 17 00 CD 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 14 [13:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:44:23]wFMCommunicate OK [13:44:23]CreateOFDProtocolMessage done [13:44:23]OFDSenderStorePacket 2212 [13:44:23]StoreOFDPacket docnum=2212 [13:44:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 88 6B 19 01 5A B7 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 3D 00 00 00 F4 03 04 00 C1 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A4 08 00 00 35 04 06 00 79 1E 6B 2B D5 75 68 93 76 A3 88 E7 A2 AF [13:44:23]CheckFolder [13:44:23]dirname=/storage/ofd_packets [13:44:23]CheckFolder done [13:44:23]ProducePacketName [13:44:23]name=ofd_packets/00002212 [13:44:23]NVStorageSaveData ofd_packets/00002212 [13:44:23]File name is /storage/ofd_packets/00002212 [13:44:23]Write 319 bytes [13:44:23]NVStorageSaveData done [13:44:23]OFDSenderStorePacket done [13:44:23]KKMCreateOFDPacket done [13:44:23]NVStorageSaveData kkm_last_timestamp [13:44:23]File name is /storage/kkm_last_timestamp [13:44:23]Write 4 bytes [13:44:23]NVStorageSaveData done [13:44:23]ExternCall_PrintAddStr [13:44:23]wPrintStart [13:44:23]Write to MH i2c: 01 00 00 CE 7D 4B [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: 01 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: 01 07 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: 01 07 00 CE 7D 00 00 00 00 00 FF 0F 60 [13:44:23]RasterBufferAndPrint [13:44:23]line Счет N : (3)126499 [13:44:23]line ИНН: 02508201610067 [13:44:23]line Контрольно-Кассовый Чек [13:44:23]line ПРОДАЖА [13:44:23]line Товар: 4700000160358 [13:44:23]line Вода Легенда 1л [13:44:23]line 1.000 * 50.00 [13:44:23]line = 50.00 [13:44:23]line НДС 12% НСП 1% [13:44:23]line > о реализуемом товаре [13:44:23]line ИТОГО: 50.00 [13:44:23]line НСП 1% : 0.44 [13:44:23]line НДС 12% : 5.31 [13:44:23]line Наличными: 50.00 [13:44:23]line Безнал.: 0.00 [13:44:23]line Место: АЗС № 127 "Партнер Нефть" [13:44:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:44:23]line СНО: Общий режим [13:44:23]line Чек 61 29.07.2024 13:44 [13:44:23]line Смена: 15 ФФД: 1.0 [13:44:23]line ЗНМ: 0300000161 [13:44:23]line РНМ: 0000000000189667 [13:44:23]line Версия ККМ: v1.0 [13:44:23]line ФМ: 0000000002094248 [13:44:23]line ФД: 2212 [13:44:23]line ФПД: 133171554014581 [13:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134433&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2212&fm=133171554014581&tin=02508201610067®Number=0000000000189667&sum=5000 [13:44:24]line 0 [13:44:24]OFD Sender: Processing packet 2212 [packets to send 1, broken 0] [13:44:24]ProducePacketName [13:44:24]name=ofd_packets/00002212 [13:44:24]OFD Sender: To server: pG, [13:44:24]CommunicateWithHost lk.salyk.kg:30040 [13:44:24]ConnectInit lk.salyk.kg [13:44:24]written 0, free lines is 4095 [13:44:24]Connected sock=10 [13:44:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 88 6B 19 01 5A B7 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 3D 00 00 00 F4 03 04 00 C1 9C A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A4 08 00 00 35 04 06 00 79 1E 6B 2B D5 75 68 93 76 A3 88 E7 A2 AF [13:44:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2D 67 47 00 07 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A4 08 00 00 F4 03 04 00 2D 48 A7 66 B6 04 01 00 00 AC DB 50 B4 3F C7 7A 48 [13:44:24]CommunicateWithHost err = 0 [13:44:24]CheckOFDResponse [13:44:24]1017 (14) - 77093643461234 [13:44:24]1041 (16) - 0000000002094248 [13:44:24]1040 (4) - 2212 [13:44:24]1012 (4) - 29.07.2024 07:43 [13:44:24]1206 (1) - 0 [13:44:24]OFD Sender: Remove packet 2212 [13:44:24]ProducePacketName [13:44:24]name=ofd_packets/00002212 [13:44:24]NVStorageDeleteData [13:44:24]Write to MH i2c: 01 00 00 F6 7D 73 [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: 01 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: 01 07 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: 01 07 00 F6 7D 00 00 00 00 00 29 0D B0 [13:44:24]RasterBufferAndPrint [13:44:24]line [13:44:24]line [13:44:24]line [13:44:24]line [13:44:24]line [13:44:24]written 0, free lines is 3378 [13:44:24]MH_Cut [13:44:24]Write to MH i2c: D1 01 00 FD 7D 01 4C [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: D1 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: D1 01 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: D1 01 00 FD 7D 00 4B [13:44:24]Write to MH i2c: 01 00 00 FE 7D 7B [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:25]OFD Sender: No OFD packet to send [13:44:25]*** Cut start [13:44:25]*** Partial cut [13:44:25]*** CUTSNS_PIN = 1 [13:44:25]*** CUTSNS_PIN = 0 [13:44:25]*** Brake cut motor [13:44:26]Read from MH i2c: 01 [13:44:26]MH_I2C_Read... [13:44:26]*** Stop cut motor [13:44:26]*** Cut end [13:44:26]Read from MH i2c: 01 07 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: 01 07 00 FE 7D 00 00 00 00 00 FF 0F 90 [13:44:26]process_action close_receipt done [13:44:26]requested_data is exist [13:44:26]produce_requested_data [13:44:26]requested_item fm.sn is exist - process it [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 11 00 00 [13:44:26]Write to MH i2c: E2 08 00 FF 7D 80 11 00 00 00 00 00 00 F6 [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 17 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 17 00 FF 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 46 [13:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:44:26]wFMCommunicate OK [13:44:26]requested_item fd.num is exist - process it [13:44:26]SAM_PROTO_GetFieldsCounters [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 13 00 00 [13:44:26]Write to MH i2c: E2 08 00 00 7E 80 13 00 00 00 00 00 00 FA [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 62 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 62 00 00 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A4 08 00 00 0E 04 04 00 0F 00 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 96 [13:44:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A4 08 00 00 0E 04 04 00 0F 00 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 [13:44:26]wFMCommunicate OK [13:44:26]SAM_PROTO_GetFieldsCounters done [13:44:26]requested_item shift.num is exist - process it [13:44:26]requested_item shift.opened is exist - process it [13:44:26]req_shift_opened [13:44:26]FM_GetShiftState [13:44:26]SAM_PROTO_GetShiftState [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 13 01 00 [13:44:26]Write to MH i2c: E2 08 00 01 7E 80 13 01 00 00 00 00 00 FC [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 0E 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 0E 00 01 7E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F5 [13:44:26]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:44:26]wFMCommunicate OK [13:44:26]SAM_PROTO_GetShiftState done [13:44:26]FM_GetShiftState done [13:44:26]req_shift_opened done [13:44:26]requested_item shift.open_date is exist - process it [13:44:26]req_shift_open_date [13:44:26]req_shift_open_date done [13:44:26]produce_requested_data done [13:44:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2212,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [13:44:26]process_action_free close_receipt [13:44:26]json_value_free [13:44:26]json_value_free done [13:44:26]process_json_proto returns [13:44:26]Send response to host [13:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2212,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [13:44:26]free response buf [13:44:26]execute_script done [13:44:26]execute_script returns [13:44:26]free content buf [13:44:26]Sock 8.Close socket [13:44:26]Sock 8.Thread stoped [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:13]accept exits with 9 [13:52:13]New connection [13:52:13]New thread 3067317604 created [13:52:13]Thread 3067460964 joined [13:52:13]Waiting for new connection... [13:52:13] Sock 9.Parse request [13:52:13]Sock 9.Check first char [13:52:13]Sock 9.First char is OK [13:52:13]request: POST /json_proto HTTP/1.0 [13:52:13]Method: POST [13:52:13]URL: /json_proto [13:52:13]Method is POST - this is cgi request [13:52:13]url: /json_proto [13:52:13]query_string will be loaded in cgi processing [13:52:13]execute_cgi json_proto POST (null) [13:52:13]execute_cgi path=json_proto method=POST [13:52:13]POST find Content-Length [13:52:13]Host: 172.17.45.132:8080 [13:52:13]Content-Length: 626 [13:52:13]Content-Type: application/json [13:52:13] [13:52:13]POST finish read [13:52:13]Found Content-Length = 626 [13:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126500", "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" ] } } [13:52:13]execute_script... [13:52:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126500", "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" ] } } [13:52:13]POST & json_proto [13:52:13]process_json_proto [13:52:13]json parsed OK: [13:52:13]protocol is kg_v1.0 [13:52:13]action value=close_receipt [13:52:13]process_action close_receipt [13:52:13]cmd_close_receipt [13:52:13]MH_GetDate [13:52:13]Write to MH i2c: F0 00 00 02 7E 6F [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 09 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 09 00 02 7E 00 98 9E A7 66 E3 0B 90 66 9F [13:52:13]GetLastDocTimeStamp 1722260673 [13:52:13]current date 1722261144 [13:52:13]FM_GetShiftState [13:52:13]SAM_PROTO_GetShiftState [13:52:13]wFMCommunicate request_size=4 [13:52:13]MH_SAM_APDU [13:52:13]CAPDU: 80 13 01 00 [13:52:13]Write to MH i2c: E2 08 00 03 7E 80 13 01 00 00 00 00 00 FE [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 03 7E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F7 [13:52:13]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:52:13]wFMCommunicate OK [13:52:13]SAM_PROTO_GetShiftState done [13:52:13]FM_GetShiftState done [13:52:13]opened in 1722213119 [13:52:13]opened+sec_in_day 1722299519 [13:52:13]quantity*price = 15000 [13:52:13]sum+1 = 15001 [13:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 62 29.07.2024 13:52 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2213 ФПД: 77903208217186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135224&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2213&fm=77903208217186&tin=02508201610067®Number=0000000000189667&sum=15000 0 [13:52:14]StoreToDocumentArchive [13:52:14]shift 15 fd 2213 [13:52:14]save to /storage/0015/doc_00002213 [13:52:14]save last doc name /storage/0015/doc_00002213 to /storage/kkm_last_doc_name [13:52:14]save OK [13:52:14]Clear old archive folders... [13:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=278 [13:52:14]tlvbuf is 0200ECF0 [13:52:14]SAM_PROTO_ClearQueue [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 09 00 00 [13:52:14]Write to MH i2c: E2 08 00 10 7E 80 09 00 00 00 00 00 00 00 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 10 7E 00 90 00 02 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]SAM_PROTO_ClearQueue done [13:52:14]KKMCreateOFDPacket [13:52:14]OFDProtocolAddRootSTLVToBuf [13:52:14]FM_MakeSignedData [13:52:14]FM_MakeSignedData [13:52:14]SAM_PROTO_SignData [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 0D 01 02 [13:52:14]Write to MH i2c: E2 08 00 11 7E 80 0D 01 02 00 00 00 00 08 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 11 7E 00 90 00 03 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]wFMCommunicate request_size=255 [13:52:14]MH_SAM_APDU [13:52:14]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 3E 00 00 00 F4 03 04 00 98 9E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [13:52:14]Write to MH i2c: E2 02 01 12 7E 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 3E 00 00 00 F4 03 04 00 98 9E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 C9 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 12 7E 00 90 00 04 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]wFMCommunicate request_size=37 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A5 08 00 00 35 04 06 00 46 DA 41 0D 7A 62 [13:52:14]Write to MH i2c: E2 28 00 13 7E 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A5 08 00 00 35 04 06 00 46 DA 41 0D 7A 62 00 00 56 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 03 00 13 7E 00 90 00 05 [13:52:14]RAPDU: 90 00 [13:52:14]wFMCommunicate OK [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 0D 03 02 [13:52:14]Write to MH i2c: E2 08 00 14 7E 80 0D 03 02 00 00 00 00 0D [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0B 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0B 00 14 7E 00 65 DC 85 2C E5 2F 62 13 90 00 89 [13:52:14]RAPDU: 65 DC 85 2C E5 2F 62 13 90 00 [13:52:14]wFMCommunicate OK [13:52:14]SAM_PROTO_SignData done [13:52:14]FM_MakeSignedData done [13:52:14]CreateOFDProtocolMessage [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 11 00 00 [13:52:14]Write to MH i2c: E2 08 00 15 7E 80 11 00 00 00 00 00 00 0D [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 17 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 17 00 15 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5D [13:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:52:14]wFMCommunicate OK [13:52:14]CreateOFDProtocolMessage done [13:52:14]OFDSenderStorePacket 2213 [13:52:14]StoreOFDPacket docnum=2213 [13:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 B2 56 22 01 02 C0 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 3E 00 00 00 F4 03 04 00 98 9E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A5 08 00 00 35 04 06 00 46 DA 41 0D 7A 62 65 DC 85 2C E5 2F 62 13 [13:52:14]CheckFolder [13:52:14]dirname=/storage/ofd_packets [13:52:14]CheckFolder done [13:52:14]ProducePacketName [13:52:14]name=ofd_packets/00002213 [13:52:14]NVStorageSaveData ofd_packets/00002213 [13:52:14]File name is /storage/ofd_packets/00002213 [13:52:14]Write 328 bytes [13:52:14]NVStorageSaveData done [13:52:14]OFDSenderStorePacket done [13:52:14]KKMCreateOFDPacket done [13:52:14]NVStorageSaveData kkm_last_timestamp [13:52:14]File name is /storage/kkm_last_timestamp [13:52:14]Write 4 bytes [13:52:14]NVStorageSaveData done [13:52:14]ExternCall_PrintAddStr [13:52:14]wPrintStart [13:52:14]Write to MH i2c: 01 00 00 16 7E 94 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 07 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 07 00 16 7E 00 00 00 00 00 FF 0F A9 [13:52:14]RasterBufferAndPrint [13:52:14]line Счет N : (3)126500 [13:52:14]line ИНН: 02508201610067 [13:52:14]line Контрольно-Кассовый Чек [13:52:14]line ПРОДАЖА [13:52:14]line Товар: 4640030092499 [13:52:14]line Сигареты ESSE SENSE Himalaya [13:52:14]line 1.000 * 150.00 [13:52:14]line = 150.00 [13:52:14]line НДС 12% НСП 1% [13:52:14]line > о реализуемом товаре [13:52:14]line ИТОГО: 150.00 [13:52:14]line НСП 1% : 1.33 [13:52:14]line НДС 12% : 15.93 [13:52:14]line Наличными: 150.00 [13:52:14]line Безнал.: 0.00 [13:52:14]line Место: АЗС № 127 "Партнер Нефть" [13:52:14]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [13:52:14]line СНО: Общий режим [13:52:14]line Чек 62 29.07.2024 13:52 [13:52:14]line Смена: 15 ФФД: 1.0 [13:52:14]line ЗНМ: 0300000161 [13:52:14]line РНМ: 0000000000189667 [13:52:14]line Версия ККМ: v1.0 [13:52:14]line ФМ: 0000000002094248 [13:52:14]line ФД: 2213 [13:52:14]line ФПД: 77903208217186 [13:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135224&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2213&fm=77903208217186&tin=02508201610067®Number=0000000000189667&sum=15000 [13:52:15]line 0 [13:52:15]OFD Sender: Processing packet 2213 [packets to send 1, broken 0] [13:52:15]ProducePacketName [13:52:15]name=ofd_packets/00002213 [13:52:15]OFD Sender: To server: pG, [13:52:15]CommunicateWithHost lk.salyk.kg:30040 [13:52:15]ConnectInit lk.salyk.kg [13:52:15]written 0, free lines is 4095 [13:52:15]Connected sock=10 [13:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 B2 56 22 01 02 C0 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 3E 00 00 00 F4 03 04 00 98 9E A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A5 08 00 00 35 04 06 00 46 DA 41 0D 7A 62 65 DC 85 2C E5 2F 62 13 [13:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 78 3D 47 00 2A 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A5 08 00 00 F4 03 04 00 04 4A A7 66 B6 04 01 00 00 95 3B 4F 5F BA 94 39 B9 [13:52:15]CommunicateWithHost err = 0 [13:52:15]CheckOFDResponse [13:52:15]1017 (14) - 77093643461234 [13:52:15]1041 (16) - 0000000002094248 [13:52:15]1040 (4) - 2213 [13:52:15]1012 (4) - 29.07.2024 07:51 [13:52:15]1206 (1) - 0 [13:52:15]OFD Sender: Remove packet 2213 [13:52:15]ProducePacketName [13:52:15]name=ofd_packets/00002213 [13:52:15]NVStorageDeleteData [13:52:15]Write to MH i2c: 01 00 00 3F 7E BD [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 07 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 07 00 3F 7E 00 00 00 00 00 F8 0C C8 [13:52:15]RasterBufferAndPrint [13:52:15]line [13:52:15]line [13:52:15]line [13:52:15]line [13:52:15]line [13:52:15]written 0, free lines is 3329 [13:52:15]MH_Cut [13:52:15]Write to MH i2c: D1 01 00 46 7E 01 96 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: D1 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: D1 01 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: D1 01 00 46 7E 00 95 [13:52:15]Write to MH i2c: 01 00 00 47 7E C5 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:16]OFD Sender: No OFD packet to send [13:52:16]*** Cut start [13:52:16]*** Partial cut [13:52:16]*** CUTSNS_PIN = 1 [13:52:16]*** CUTSNS_PIN = 0 [13:52:16]*** Brake cut motor [13:52:17]Read from MH i2c: 01 [13:52:17]MH_I2C_Read... [13:52:17]*** Stop cut motor [13:52:17]*** Cut end [13:52:17]Read from MH i2c: 01 07 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 07 00 47 7E 00 00 00 00 00 FF 0F DA [13:52:17]process_action close_receipt done [13:52:17]requested_data is exist [13:52:17]produce_requested_data [13:52:17]requested_item fm.sn is exist - process it [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 11 00 00 [13:52:17]Write to MH i2c: E2 08 00 48 7E 80 11 00 00 00 00 00 00 40 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 48 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 90 [13:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [13:52:17]wFMCommunicate OK [13:52:17]requested_item fd.num is exist - process it [13:52:17]SAM_PROTO_GetFieldsCounters [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 13 00 00 [13:52:17]Write to MH i2c: E2 08 00 49 7E 80 13 00 00 00 00 00 00 43 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 62 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 62 00 49 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A5 08 00 00 0E 04 04 00 0F 00 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 E3 [13:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A5 08 00 00 0E 04 04 00 0F 00 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 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_GetFieldsCounters done [13:52:17]requested_item shift.num is exist - process it [13:52:17]requested_item shift.opened is exist - process it [13:52:17]req_shift_opened [13:52:17]FM_GetShiftState [13:52:17]SAM_PROTO_GetShiftState [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 13 01 00 [13:52:17]Write to MH i2c: E2 08 00 4A 7E 80 13 01 00 00 00 00 00 45 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0E 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0E 00 4A 7E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3E [13:52:17]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_GetShiftState done [13:52:17]FM_GetShiftState done [13:52:17]req_shift_opened done [13:52:17]requested_item shift.open_date is exist - process it [13:52:17]req_shift_open_date [13:52:17]req_shift_open_date done [13:52:17]produce_requested_data done [13:52:17]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2213,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [13:52:17]process_action_free close_receipt [13:52:17]json_value_free [13:52:17]json_value_free done [13:52:17]process_json_proto returns [13:52:17]Send response to host [13:58:05]ConnectInit Can't connect to host [13:58:07]OFD Sender: Processing packet 2214 [packets to send 1, broken 0] [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00002214 [13:58:07]OFD Sender: To server: pG, [13:58:07]CommunicateWithHost lk.salyk.kg:30040 [13:58:07]ConnectInit lk.salyk.kg [14:00:22]ConnectInit Can't connect to host [14:00:22]CommunicateWithHost connect error [14:00:22]CommunicateWithHost err = -1 [14:00:22]OFD Sender: Server communicate error [14:00:27]OFD Sender: Processing packet 2214 [packets to send 1, broken 0] [14:00:27]ProducePacketName [14:00:27]name=ofd_packets/00002214 [14:00:27]OFD Sender: To server: pG, [14:00:27]CommunicateWithHost lk.salyk.kg:30040 [14:00:27]ConnectInit lk.salyk.kg [14:00:27]Connected sock=8 [14:00:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A5 01 00 00 38 1B 9D 01 20 59 5A 03 01 00 03 00 91 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 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 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 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 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 3F 00 00 00 F4 03 04 00 26 9F A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A6 08 00 00 35 04 06 00 C0 11 FF 16 36 22 8F 68 9A 0C 13 BD 8B B2 [14:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 86 24 47 00 3C 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 32 30 39 34 32 34 38 10 04 04 00 A6 08 00 00 F4 03 04 00 F1 4B A7 66 B6 04 01 00 00 EB 8F 29 8A D2 F0 90 06 [14:00:28]CommunicateWithHost err = 0 [14:00:28]CheckOFDResponse [14:00:28]1017 (14) - 77093643461234 [14:00:28]1041 (16) - 0000000002094248 [14:00:28]1040 (4) - 2214 [14:00:28]1012 (4) - 29.07.2024 07:59 [14:00:28]1206 (1) - 0 [14:00:28]OFD Sender: Remove packet 2214 [14:00:28]ProducePacketName [14:00:28]name=ofd_packets/00002214 [14:00:28]NVStorageDeleteData [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:11:14]ConnectInit Can't connect to host [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:21:26]ConnectInit Can't connect to host [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:16]accept exits with 10 [14:27:16]New connection [14:27:16]New thread 3067317604 created [14:27:16]Thread 3067460964 joined [14:27:16]Waiting for new connection... [14:27:16] Sock 10.Parse request [14:27:16]Sock 10.Check first char [14:27:16]Sock 10.First char is OK [14:27:16]request: POST /json_proto HTTP/1.0 [14:27:16]Method: POST [14:27:16]URL: /json_proto [14:27:16]Method is POST - this is cgi request [14:27:16]url: /json_proto [14:27:16]query_string will be loaded in cgi processing [14:27:16]execute_cgi json_proto POST (null) [14:27:16]execute_cgi path=json_proto method=POST [14:27:16]POST find Content-Length [14:27:16]Host: 172.17.45.132:8080 [14:27:16]Content-Length: 630 [14:27:16]Content-Type: application/json [14:27:16] [14:27:16]POST finish read [14:27:16]Found Content-Length = 630 [14:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126502", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.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:27:16]execute_script... [14:27: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)126502", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 2.000, "sum" : 200.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:27:16]POST & json_proto [14:27:16]process_json_proto [14:27:16]json parsed OK: [14:27:16]protocol is kg_v1.0 [14:27:16]action value=close_receipt [14:27:16]process_action close_receipt [14:27:16]cmd_close_receipt [14:27:16]MH_GetDate [14:27:16]Write to MH i2c: F0 00 00 9A 7E 07 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: F0 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: F0 09 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: F0 09 00 9A 7E 00 CF A6 A7 66 E3 0B 90 66 76 [14:27:16]GetLastDocTimeStamp 1722261286 [14:27:16]current date 1722263247 [14:27:16]FM_GetShiftState [14:27:16]SAM_PROTO_GetShiftState [14:27:16]wFMCommunicate request_size=4 [14:27:16]MH_SAM_APDU [14:27:16]CAPDU: 80 13 01 00 [14:27:16]Write to MH i2c: E2 08 00 9B 7E 80 13 01 00 00 00 00 00 96 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:16]Read from MH i2c: E2 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 0E 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: E2 0E 00 9B 7E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8F [14:27:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [14:27:16]wFMCommunicate OK [14:27:16]SAM_PROTO_GetShiftState done [14:27:16]FM_GetShiftState done [14:27:16]opened in 1722213119 [14:27:16]opened+sec_in_day 1722299519 [14:27:16]quantity*price = 20000 [14:27:16]sum+1 = 20001 [14:27:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 64 29.07.2024 14:27 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2215 ФПД: 24682006072245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T142727&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2215&fm=24682006072245&tin=02508201610067®Number=0000000000189667&sum=20000 0 [14:27:17]StoreToDocumentArchive [14:27:17]shift 15 fd 2215 [14:27:17]save to /storage/0015/doc_00002215 [14:27:17]save last doc name /storage/0015/doc_00002215 to /storage/kkm_last_doc_name [14:27:17]save OK [14:27:17]Clear old archive folders... [14:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=270 [14:27:17]tlvbuf is 021A4B20 [14:27:17]SAM_PROTO_ClearQueue [14:27:17]wFMCommunicate request_size=4 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 09 00 00 [14:27:17]Write to MH i2c: E2 08 00 A8 7E 80 09 00 00 00 00 00 00 98 [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 A8 7E 00 90 00 9A [14:27:17]RAPDU: 90 00 [14:27:17]wFMCommunicate OK [14:27:17]SAM_PROTO_ClearQueue done [14:27:17]KKMCreateOFDPacket [14:27:17]OFDProtocolAddRootSTLVToBuf [14:27:17]FM_MakeSignedData [14:27:17]FM_MakeSignedData [14:27:17]SAM_PROTO_SignData [14:27:17]wFMCommunicate request_size=4 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 0D 01 02 [14:27:17]Write to MH i2c: E2 08 00 A9 7E 80 0D 01 02 00 00 00 00 A0 [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 A9 7E 00 90 00 9B [14:27:17]RAPDU: 90 00 [14:27:17]wFMCommunicate OK [14:27:17]wFMCommunicate request_size=255 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF A6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [14:27:17]Write to MH i2c: E2 02 01 AA 7E 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF A6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 CF [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 AA 7E 00 90 00 9C [14:27:17]RAPDU: 90 00 [14:27:17]wFMCommunicate OK [14:27:17]wFMCommunicate request_size=29 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 A7 08 00 00 35 04 06 00 16 72 BA 34 4B B5 [14:27:17]Write to MH i2c: E2 20 00 AB 7E 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 A7 08 00 00 35 04 06 00 16 72 BA 34 4B B5 00 00 8A [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 03 00 AB 7E 00 90 00 9D [14:27:17]RAPDU: 90 00 [14:27:17]wFMCommunicate OK [14:27:17]wFMCommunicate request_size=4 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 0D 03 02 [14:27:17]Write to MH i2c: E2 08 00 AC 7E 80 0D 03 02 00 00 00 00 A5 [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 0B 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 0B 00 AC 7E 00 9D 87 3E 12 45 57 6B 9E 90 00 BF [14:27:17]RAPDU: 9D 87 3E 12 45 57 6B 9E 90 00 [14:27:17]wFMCommunicate OK [14:27:17]SAM_PROTO_SignData done [14:27:17]FM_MakeSignedData done [14:27:17]CreateOFDProtocolMessage [14:27:17]wFMCommunicate request_size=4 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 11 00 00 [14:27:17]Write to MH i2c: E2 08 00 AD 7E 80 11 00 00 00 00 00 00 A5 [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 17 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 17 00 AD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F5 [14:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:27:17]wFMCommunicate OK [14:27:17]CreateOFDProtocolMessage done [14:27:17]OFDSenderStorePacket 2215 [14:27:17]StoreOFDPacket docnum=2215 [14:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 75 1E 1A 01 B1 86 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF A6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A7 08 00 00 35 04 06 00 16 72 BA 34 4B B5 9D 87 3E 12 45 57 6B 9E [14:27:17]CheckFolder [14:27:17]dirname=/storage/ofd_packets [14:27:17]CheckFolder done [14:27:17]ProducePacketName [14:27:17]name=ofd_packets/00002215 [14:27:17]NVStorageSaveData ofd_packets/00002215 [14:27:17]File name is /storage/ofd_packets/00002215 [14:27:17]Write 320 bytes [14:27:17]NVStorageSaveData done [14:27:17]OFDSenderStorePacket done [14:27:17]KKMCreateOFDPacket done [14:27:17]NVStorageSaveData kkm_last_timestamp [14:27:17]File name is /storage/kkm_last_timestamp [14:27:17]Write 4 bytes [14:27:17]NVStorageSaveData done [14:27:17]ExternCall_PrintAddStr [14:27:17]wPrintStart [14:27:17]Write to MH i2c: 01 00 00 AE 7E 2C [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: 01 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: 01 07 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: 01 07 00 AE 7E 00 00 00 00 00 FF 0F 41 [14:27:17]RasterBufferAndPrint [14:27:17]line Счет N : (3)126502 [14:27:17]line ИНН: 02508201610067 [14:27:17]line Контрольно-Кассовый Чек [14:27:17]line ПРОДАЖА [14:27:17]line Товар: 4700000480814 [14:27:17]line Пиво Живое 0,5 ст [14:27:17]line 2.000 * 100.00 [14:27:17]line = 200.00 [14:27:17]line НДС 12% НСП 1% [14:27:17]line > о реализуемом товаре [14:27:17]line ИТОГО: 200.00 [14:27:17]line НСП 1% : 1.77 [14:27:17]line НДС 12% : 21.24 [14:27:17]line Наличными: 200.00 [14:27:17]line Безнал.: 0.00 [14:27:17]line Место: АЗС № 127 "Партнер Нефть" [14:27:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:27:17]line СНО: Общий режим [14:27:17]line Чек 64 29.07.2024 14:27 [14:27:17]line Смена: 15 ФФД: 1.0 [14:27:17]line ЗНМ: 0300000161 [14:27:17]line РНМ: 0000000000189667 [14:27:17]line Версия ККМ: v1.0 [14:27:17]line ФМ: 0000000002094248 [14:27:17]line ФД: 2215 [14:27:17]line ФПД: 24682006072245 [14:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T142727&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2215&fm=24682006072245&tin=02508201610067®Number=0000000000189667&sum=20000 [14:27:18]line 0 [14:27:18]OFD Sender: Processing packet 2215 [packets to send 1, broken 0] [14:27:18]ProducePacketName [14:27:18]name=ofd_packets/00002215 [14:27:18]OFD Sender: To server: pG, [14:27:18]CommunicateWithHost lk.salyk.kg:30040 [14:27:18]ConnectInit lk.salyk.kg [14:27:18]written 0, free lines is 4095 [14:27:18]Connected sock=9 [14:27:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 75 1E 1A 01 B1 86 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF A6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A7 08 00 00 35 04 06 00 16 72 BA 34 4B B5 9D 87 3E 12 45 57 6B 9E [14:27:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 24 A1 47 00 22 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A7 08 00 00 F4 03 04 00 3B 52 A7 66 B6 04 01 00 00 6A 76 B3 15 17 3D A0 D3 [14:27:18]CommunicateWithHost err = 0 [14:27:18]CheckOFDResponse [14:27:18]1017 (14) - 77093643461234 [14:27:18]1041 (16) - 0000000002094248 [14:27:18]1040 (4) - 2215 [14:27:18]1012 (4) - 29.07.2024 08:26 [14:27:18]1206 (1) - 0 [14:27:18]OFD Sender: Remove packet 2215 [14:27:18]ProducePacketName [14:27:18]name=ofd_packets/00002215 [14:27:18]NVStorageDeleteData [14:27:18]Write to MH i2c: 01 00 00 D6 7E 54 [14:27:18]Write i2c OK [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: 01 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: 01 07 00 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: 01 07 00 D6 7E 00 00 00 00 00 1F 0D 87 [14:27:18]RasterBufferAndPrint [14:27:18]line [14:27:18]line [14:27:18]line [14:27:18]line [14:27:18]line [14:27:18]written 0, free lines is 3365 [14:27:18]MH_Cut [14:27:18]Write to MH i2c: D1 01 00 DD 7E 01 2D [14:27:18]Write i2c OK [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: D1 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: D1 01 00 [14:27:18]MH_I2C_Read... [14:27:18]Read from MH i2c: D1 01 00 DD 7E 00 2C [14:27:18]Write to MH i2c: 01 00 00 DE 7E 5C [14:27:18]Write i2c OK [14:27:18]MH_I2C_Read... [14:27:19]OFD Sender: No OFD packet to send [14:27:19]*** Cut start [14:27:19]*** Partial cut [14:27:19]*** CUTSNS_PIN = 1 [14:27:19]*** CUTSNS_PIN = 0 [14:27:19]*** Brake cut motor [14:27:19]Read from MH i2c: 01 [14:27:19]MH_I2C_Read... [14:27:19]*** Stop cut motor [14:27:19]*** Cut end [14:27:19]Read from MH i2c: 01 07 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 DE 7E 00 00 00 00 00 FF 0F 71 [14:27:19]process_action close_receipt done [14:27:20]requested_data is exist [14:27:20]produce_requested_data [14:27:20]requested_item fm.sn is exist - process it [14:27:20]wFMCommunicate request_size=4 [14:27:20]MH_SAM_APDU [14:27:20]CAPDU: 80 11 00 00 [14:27:20]Write to MH i2c: E2 08 00 DF 7E 80 11 00 00 00 00 00 00 D7 [14:27:20]Write i2c OK [14:27:20]MH_I2C_Read... [14:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:20]Read from MH i2c: E2 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 17 00 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 17 00 DF 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 27 [14:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:27:20]wFMCommunicate OK [14:27:20]requested_item fd.num is exist - process it [14:27:20]SAM_PROTO_GetFieldsCounters [14:27:20]wFMCommunicate request_size=4 [14:27:20]MH_SAM_APDU [14:27:20]CAPDU: 80 13 00 00 [14:27:20]Write to MH i2c: E2 08 00 E0 7E 80 13 00 00 00 00 00 00 DA [14:27:20]Write i2c OK [14:27:20]MH_I2C_Read... [14:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:20]Read from MH i2c: E2 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 62 00 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 62 00 E0 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A7 08 00 00 0E 04 04 00 0F 00 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 82 [14:27:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A7 08 00 00 0E 04 04 00 0F 00 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 [14:27:20]wFMCommunicate OK [14:27:20]SAM_PROTO_GetFieldsCounters done [14:27:20]requested_item shift.num is exist - process it [14:27:20]requested_item shift.opened is exist - process it [14:27:20]req_shift_opened [14:27:20]FM_GetShiftState [14:27:20]SAM_PROTO_GetShiftState [14:27:20]wFMCommunicate request_size=4 [14:27:20]MH_SAM_APDU [14:27:20]CAPDU: 80 13 01 00 [14:27:20]Write to MH i2c: E2 08 00 E1 7E 80 13 01 00 00 00 00 00 DC [14:27:20]Write i2c OK [14:27:20]MH_I2C_Read... [14:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:20]Read from MH i2c: E2 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 0E 00 [14:27:20]MH_I2C_Read... [14:27:20]Read from MH i2c: E2 0E 00 E1 7E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D5 [14:27:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [14:27:20]wFMCommunicate OK [14:27:20]SAM_PROTO_GetShiftState done [14:27:20]FM_GetShiftState done [14:27:20]req_shift_opened done [14:27:20]requested_item shift.open_date is exist - process it [14:27:20]req_shift_open_date [14:27:20]req_shift_open_date done [14:27:20]produce_requested_data done [14:27:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2215,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [14:27:20]process_action_free close_receipt [14:27:20]json_value_free [14:27:20]json_value_free done [14:27:20]process_json_proto returns [14:27:20]Send response to host [14:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2215,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [14:27:20]free response buf [14:27:20]execute_script done [14:27:20]execute_script returns [14:27:20]free content buf [14:27:20]Sock 10.Close socket [14:27:20]Sock 10.Thread stoped [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:39]accept exits with 8 [14:47:39]New connection [14:47:39]New thread 3067460964 created [14:47:39]Thread 3067317604 joined [14:47:39]Waiting for new connection... [14:47:39] Sock 8.Parse request [14:47:39]Sock 8.Check first char [14:47:39]Sock 8.First char is OK [14:47:39]request: POST /json_proto HTTP/1.0 [14:47:39]Method: POST [14:47:39]URL: /json_proto [14:47:39]Method is POST - this is cgi request [14:47:39]url: /json_proto [14:47:39]query_string will be loaded in cgi processing [14:47:39]execute_cgi json_proto POST (null) [14:47:39]execute_cgi path=json_proto method=POST [14:47:39]POST find Content-Length [14:47:39]Host: 172.17.45.132:8080 [14:47:39]Content-Length: 830 [14:47:39]Content-Type: application/json [14:47:39] [14:47:39]POST finish read [14:47:39]Found Content-Length = 830 [14:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126503", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:39]execute_script... [14:47: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)126503", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:39]POST & json_proto [14:47:39]process_json_proto [14:47:39]json parsed OK: [14:47:39]protocol is kg_v1.0 [14:47:39]action value=close_receipt [14:47:39]process_action close_receipt [14:47:39]cmd_close_receipt [14:47:39]MH_GetDate [14:47:39]Write to MH i2c: F0 00 00 E2 7E 4F [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: F0 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: F0 09 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: F0 09 00 E2 7E 00 96 AB A7 66 E3 0B 90 66 8A [14:47:39]GetLastDocTimeStamp 1722263247 [14:47:39]current date 1722264470 [14:47:39]FM_GetShiftState [14:47:39]SAM_PROTO_GetShiftState [14:47:39]wFMCommunicate request_size=4 [14:47:39]MH_SAM_APDU [14:47:39]CAPDU: 80 13 01 00 [14:47:39]Write to MH i2c: E2 08 00 E3 7E 80 13 01 00 00 00 00 00 DE [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:39]Read from MH i2c: E2 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 0E 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 0E 00 E3 7E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D7 [14:47:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [14:47:39]wFMCommunicate OK [14:47:39]SAM_PROTO_GetShiftState done [14:47:39]FM_GetShiftState done [14:47:39]opened in 1722213119 [14:47:39]opened+sec_in_day 1722299519 [14:47:39]quantity*price = 6500 [14:47:39]sum+1 = 6501 [14:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 65 29.07.2024 14:47 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2216 ФПД: 212089465337289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144750&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2216&fm=212089465337289&tin=02508201610067®Number=0000000000189667&sum=6500 0 [14:47:40]StoreToDocumentArchive [14:47:40]shift 15 fd 2216 [14:47:40]save to /storage/0015/doc_00002216 [14:47:40]save last doc name /storage/0015/doc_00002216 to /storage/kkm_last_doc_name [14:47:40]save OK [14:47:40]Clear old archive folders... [14:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:47:40]tlvbuf is 01F949C0 [14:47:40]SAM_PROTO_ClearQueue [14:47:40]wFMCommunicate request_size=4 [14:47:40]MH_SAM_APDU [14:47:40]CAPDU: 80 09 00 00 [14:47:40]Write to MH i2c: E2 08 00 F0 7E 80 09 00 00 00 00 00 00 E0 [14:47:40]Write i2c OK [14:47:40]MH_I2C_Read... [14:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:40]Read from MH i2c: E2 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 F0 7E 00 90 00 E2 [14:47:40]RAPDU: 90 00 [14:47:40]wFMCommunicate OK [14:47:40]SAM_PROTO_ClearQueue done [14:47:40]KKMCreateOFDPacket [14:47:40]OFDProtocolAddRootSTLVToBuf [14:47:40]FM_MakeSignedData [14:47:40]FM_MakeSignedData [14:47:40]SAM_PROTO_SignData [14:47:40]wFMCommunicate request_size=4 [14:47:40]MH_SAM_APDU [14:47:40]CAPDU: 80 0D 01 02 [14:47:40]Write to MH i2c: E2 08 00 F1 7E 80 0D 01 02 00 00 00 00 E8 [14:47:40]Write i2c OK [14:47:40]MH_I2C_Read... [14:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:40]Read from MH i2c: E2 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 F1 7E 00 90 00 E3 [14:47:40]RAPDU: 90 00 [14:47:40]wFMCommunicate OK [14:47:40]wFMCommunicate request_size=255 [14:47:40]MH_SAM_APDU [14:47:40]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 96 AB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [14:47:40]Write to MH i2c: E2 02 01 F2 7E 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 96 AB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 1E [14:47:40]Write i2c OK [14:47:40]MH_I2C_Read... [14:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:40]Read from MH i2c: E2 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 F2 7E 00 90 00 E4 [14:47:40]RAPDU: 90 00 [14:47:40]wFMCommunicate OK [14:47:40]wFMCommunicate request_size=43 [14:47:40]MH_SAM_APDU [14:47:40]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A8 08 00 00 35 04 06 00 C0 E4 ED 3D F5 C9 [14:47:40]Write to MH i2c: E2 2E 00 F3 7E 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A8 08 00 00 35 04 06 00 C0 E4 ED 3D F5 C9 00 00 0C [14:47:40]Write i2c OK [14:47:40]MH_I2C_Read... [14:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:40]Read from MH i2c: E2 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 03 00 F3 7E 00 90 00 E5 [14:47:40]RAPDU: 90 00 [14:47:40]wFMCommunicate OK [14:47:40]wFMCommunicate request_size=4 [14:47:40]MH_SAM_APDU [14:47:40]CAPDU: 80 0D 03 02 [14:47:40]Write to MH i2c: E2 08 00 F4 7E 80 0D 03 02 00 00 00 00 ED [14:47:40]Write i2c OK [14:47:40]MH_I2C_Read... [14:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:40]Read from MH i2c: E2 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 0B 00 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 0B 00 F4 7E 00 A7 25 59 D0 EC 67 39 F0 90 00 5F [14:47:40]RAPDU: A7 25 59 D0 EC 67 39 F0 90 00 [14:47:40]wFMCommunicate OK [14:47:40]SAM_PROTO_SignData done [14:47:40]FM_MakeSignedData done [14:47:40]CreateOFDProtocolMessage [14:47:40]wFMCommunicate request_size=4 [14:47:40]MH_SAM_APDU [14:47:40]CAPDU: 80 11 00 00 [14:47:40]Write to MH i2c: E2 08 00 F5 7E 80 11 00 00 00 00 00 00 ED [14:47:40]Write i2c OK [14:47:40]MH_I2C_Read... [14:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:40]Read from MH i2c: E2 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 17 00 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: E2 17 00 F5 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3D [14:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:47:40]wFMCommunicate OK [14:47:40]CreateOFDProtocolMessage done [14:47:40]OFDSenderStorePacket 2216 [14:47:40]StoreOFDPacket docnum=2216 [14:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 94 90 28 01 14 33 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 96 AB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A8 08 00 00 35 04 06 00 C0 E4 ED 3D F5 C9 A7 25 59 D0 EC 67 39 F0 [14:47:40]CheckFolder [14:47:40]dirname=/storage/ofd_packets [14:47:40]CheckFolder done [14:47:40]ProducePacketName [14:47:40]name=ofd_packets/00002216 [14:47:40]NVStorageSaveData ofd_packets/00002216 [14:47:40]File name is /storage/ofd_packets/00002216 [14:47:40]Write 334 bytes [14:47:40]NVStorageSaveData done [14:47:40]OFDSenderStorePacket done [14:47:40]KKMCreateOFDPacket done [14:47:40]NVStorageSaveData kkm_last_timestamp [14:47:40]File name is /storage/kkm_last_timestamp [14:47:40]Write 4 bytes [14:47:40]NVStorageSaveData done [14:47:40]ExternCall_PrintAddStr [14:47:40]wPrintStart [14:47:40]Write to MH i2c: 01 00 00 F6 7E 74 [14:47:40]Write i2c OK [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: 01 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: 01 07 00 [14:47:40]MH_I2C_Read... [14:47:40]Read from MH i2c: 01 07 00 F6 7E 00 00 00 00 00 FF 0F 89 [14:47:40]RasterBufferAndPrint [14:47:40]line Счет N : (3)126503 [14:47:40]line ИНН: 02508201610067 [14:47:40]line Контрольно-Кассовый Чек [14:47:40]line ПРОДАЖА [14:47:40]line Товар: 4700040114137 [14:47:40]line Султан чай 1л. зел лимон [14:47:40]line 1.000 * 65.00 [14:47:40]line = 65.00 [14:47:40]line НДС 12% НСП 1% [14:47:40]line > о реализуемом товаре [14:47:40]line ИТОГО: 65.00 [14:47:40]line НСП 1% : 0.57 [14:47:40]line НДС 12% : 6.90 [14:47:40]line Наличными: 0.00 [14:47:40]line Безнал.: 65.00 [14:47:40]line Место: АЗС № 127 "Партнер Нефть" [14:47:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [14:47:40]line СНО: Общий режим [14:47:40]line Чек 65 29.07.2024 14:47 [14:47:40]line Смена: 15 ФФД: 1.0 [14:47:40]line ЗНМ: 0300000161 [14:47:40]line РНМ: 0000000000189667 [14:47:41]line Версия ККМ: v1.0 [14:47:41]line Платежная система: O! деньги [14:47:41]line ФМ: 0000000002094248 [14:47:41]line ФД: 2216 [14:47:41]line ФПД: 212089465337289 [14:47:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144750&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2216&fm=212089465337289&tin=02508201610067®Number=0000000000189667&sum=6500 [14:47:41]line 0 [14:47:41]OFD Sender: Processing packet 2216 [packets to send 1, broken 0] [14:47:41]ProducePacketName [14:47:41]name=ofd_packets/00002216 [14:47:41]OFD Sender: To server: pG, [14:47:41]CommunicateWithHost lk.salyk.kg:30040 [14:47:41]ConnectInit lk.salyk.kg [14:47:41]written 0, free lines is 4095 [14:47:41]Connected sock=10 [14:47:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 94 90 28 01 14 33 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 96 AB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A8 08 00 00 35 04 06 00 C0 E4 ED 3D F5 C9 A7 25 59 D0 EC 67 39 F0 [14:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 63 97 47 00 DF F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A8 08 00 00 F4 03 04 00 02 57 A7 66 B6 04 01 00 00 1B D3 A1 55 3A 3A 45 0F [14:47:41]CommunicateWithHost err = 0 [14:47:41]CheckOFDResponse [14:47:41]1017 (14) - 77093643461234 [14:47:41]1041 (16) - 0000000002094248 [14:47:41]1040 (4) - 2216 [14:47:41]1012 (4) - 29.07.2024 08:46 [14:47:41]1206 (1) - 0 [14:47:41]OFD Sender: Remove packet 2216 [14:47:41]ProducePacketName [14:47:41]name=ofd_packets/00002216 [14:47:41]NVStorageDeleteData [14:47:41]Write to MH i2c: 01 00 00 20 7F 9F [14:47:41]Write i2c OK [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: 01 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: 01 07 00 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: 01 07 00 20 7F 00 00 00 00 00 FC 0C AE [14:47:41]RasterBufferAndPrint [14:47:41]line [14:47:41]line [14:47:41]line [14:47:41]line [14:47:41]line [14:47:41]written 0, free lines is 3330 [14:47:41]MH_Cut [14:47:41]Write to MH i2c: D1 01 00 27 7F 01 78 [14:47:41]Write i2c OK [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: D1 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: D1 01 00 [14:47:41]MH_I2C_Read... [14:47:41]Read from MH i2c: D1 01 00 27 7F 00 77 [14:47:41]Write to MH i2c: 01 00 00 28 7F A7 [14:47:41]Write i2c OK [14:47:41]MH_I2C_Read... [14:47:42]OFD Sender: No OFD packet to send [14:47:42]*** Cut start [14:47:42]*** Partial cut [14:47:42]*** CUTSNS_PIN = 1 [14:47:42]*** CUTSNS_PIN = 0 [14:47:42]*** Brake cut motor [14:47:42]Read from MH i2c: 01 [14:47:42]MH_I2C_Read... [14:47:42]*** Stop cut motor [14:47:42]*** Cut end [14:47:42]Read from MH i2c: 01 07 00 [14:47:42]MH_I2C_Read... [14:47:42]Read from MH i2c: 01 07 00 28 7F 00 00 00 00 00 FF 0F BC [14:47:42]process_action close_receipt done [14:47:42]requested_data is exist [14:47:42]produce_requested_data [14:47:42]requested_item fm.sn is exist - process it [14:47:42]wFMCommunicate request_size=4 [14:47:42]MH_SAM_APDU [14:47:42]CAPDU: 80 11 00 00 [14:47:42]Write to MH i2c: E2 08 00 29 7F 80 11 00 00 00 00 00 00 22 [14:47:42]Write i2c OK [14:47:42]MH_I2C_Read... [14:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:42]Read from MH i2c: E2 [14:47:42]MH_I2C_Read... [14:47:42]Read from MH i2c: E2 17 00 [14:47:42]MH_I2C_Read... [14:47:42]Read from MH i2c: E2 17 00 29 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 72 [14:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [14:47:42]wFMCommunicate OK [14:47:42]requested_item fd.num is exist - process it [14:47:42]SAM_PROTO_GetFieldsCounters [14:47:42]wFMCommunicate request_size=4 [14:47:42]MH_SAM_APDU [14:47:42]CAPDU: 80 13 00 00 [14:47:42]Write to MH i2c: E2 08 00 2A 7F 80 13 00 00 00 00 00 00 25 [14:47:43]Write i2c OK [14:47:43]MH_I2C_Read... [14:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:43]Read from MH i2c: E2 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: E2 62 00 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: E2 62 00 2A 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A8 08 00 00 0E 04 04 00 0F 00 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 D1 [14:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 A8 08 00 00 0E 04 04 00 0F 00 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 [14:47:43]wFMCommunicate OK [14:47:43]SAM_PROTO_GetFieldsCounters done [14:47:43]requested_item shift.num is exist - process it [14:47:43]requested_item shift.opened is exist - process it [14:47:43]req_shift_opened [14:47:43]FM_GetShiftState [14:47:43]SAM_PROTO_GetShiftState [14:47:43]wFMCommunicate request_size=4 [14:47:43]MH_SAM_APDU [14:47:43]CAPDU: 80 13 01 00 [14:47:43]Write to MH i2c: E2 08 00 2B 7F 80 13 01 00 00 00 00 00 27 [14:47:43]Write i2c OK [14:47:43]MH_I2C_Read... [14:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:43]Read from MH i2c: E2 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: E2 0E 00 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: E2 0E 00 2B 7F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 20 [14:47:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [14:47:43]wFMCommunicate OK [14:47:43]SAM_PROTO_GetShiftState done [14:47:43]FM_GetShiftState done [14:47:43]req_shift_opened done [14:47:43]requested_item shift.open_date is exist - process it [14:47:43]req_shift_open_date [14:47:43]req_shift_open_date done [14:47:43]produce_requested_data done [14:47:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2216,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [14:47:43]process_action_free close_receipt [14:47:43]json_value_free [14:47:43]json_value_free done [14:47:43]process_json_proto returns [14:47:43]Send response to host [14:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2216,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [14:47:43]free response buf [14:47:43]execute_script done [14:47:43]execute_script returns [14:47:43]free content buf [14:47:43]Sock 8.Close socket [14:47:43]Sock 8.Thread stoped [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:53:28]ConnectInit Can't connect to host [14:53:30]OFD Sender: Processing packet 2217 [packets to send 4, broken 0] [14:53:30]ProducePacketName [14:53:30]name=ofd_packets/00002217 [14:53:30]OFD Sender: To server: pG, [14:53:30]CommunicateWithHost lk.salyk.kg:30040 [14:53:30]ConnectInit lk.salyk.kg [14:59:33]ConnectInit Can't connect to host [14:59:36]OFD Sender: Processing packet 2217 [packets to send 5, broken 0] [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00002217 [14:59:36]OFD Sender: To server: pG, [14:59:36]CommunicateWithHost lk.salyk.kg:30040 [14:59:36]ConnectInit lk.salyk.kg [15:21:35]ConnectInit Can't connect to host [15:21:37]OFD Sender: Processing packet 2217 [packets to send 9, broken 0] [15:21:37]ProducePacketName [15:21:37]name=ofd_packets/00002217 [15:21:37]OFD Sender: To server: pG, [15:21:37]CommunicateWithHost lk.salyk.kg:30040 [15:21:37]ConnectInit lk.salyk.kg [15:21:40]Connected sock=9 [15:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 C5 94 40 01 BF 7D 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 1B AC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A9 08 00 00 35 04 06 00 7E 36 BE 58 CB 5D 7E B4 2C E8 10 4A B5 0C [15:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 47 02 47 00 C2 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 A9 08 00 00 F4 03 04 00 EF 5E A7 66 B6 04 01 00 00 5D 17 46 E7 8E AF D0 6E [15:21:40]CommunicateWithHost err = 0 [15:21:40]CheckOFDResponse [15:21:40]1017 (14) - 77093643461234 [15:21:40]1041 (16) - 0000000002094248 [15:21:40]1040 (4) - 2217 [15:21:40]1012 (4) - 29.07.2024 09:20 [15:21:40]1206 (1) - 0 [15:21:40]OFD Sender: Remove packet 2217 [15:21:40]ProducePacketName [15:21:40]name=ofd_packets/00002217 [15:21:40]NVStorageDeleteData [15:21:41]OFD Sender: Processing packet 2218 [packets to send 8, broken 0] [15:21:41]ProducePacketName [15:21:41]name=ofd_packets/00002218 [15:21:41]OFD Sender: To server: pG, [15:21:41]CommunicateWithHost lk.salyk.kg:30040 [15:21:41]ConnectInit lk.salyk.kg [15:21:42]Connected sock=9 [15:21:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 CD 5D 22 01 64 46 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 43 00 00 00 F4 03 04 00 69 AC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AA 08 00 00 35 04 06 00 2F 4F 63 ED 4F F1 86 50 E4 EA D3 43 E0 5A [15:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F3 F7 47 00 FA 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AA 08 00 00 F4 03 04 00 F1 5E A7 66 B6 04 01 00 00 C6 FF BF A3 F7 CE DC 23 [15:21:43]CommunicateWithHost err = 0 [15:21:43]CheckOFDResponse [15:21:43]1017 (14) - 77093643461234 [15:21:43]1041 (16) - 0000000002094248 [15:21:43]1040 (4) - 2218 [15:21:43]1012 (4) - 29.07.2024 09:20 [15:21:43]1206 (1) - 0 [15:21:43]OFD Sender: Remove packet 2218 [15:21:43]ProducePacketName [15:21:43]name=ofd_packets/00002218 [15:21:43]NVStorageDeleteData [15:21:43]OFD Sender: Processing packet 2219 [packets to send 7, broken 0] [15:21:43]ProducePacketName [15:21:43]name=ofd_packets/00002219 [15:21:43]OFD Sender: To server: pG, [15:21:43]CommunicateWithHost lk.salyk.kg:30040 [15:21:43]ConnectInit lk.salyk.kg [15:21:43]Connected sock=9 [15:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 7E 02 07 01 53 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 7D AC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AB 08 00 00 35 04 06 00 BB 08 81 26 80 FE 3F 8A A8 F4 ED 62 62 F5 [15:21:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 50 85 47 00 C3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AB 08 00 00 F4 03 04 00 F2 5E A7 66 B6 04 01 00 00 BB 49 9B 60 FD CE 40 D0 [15:21:44]CommunicateWithHost err = 0 [15:21:44]CheckOFDResponse [15:21:44]1017 (14) - 77093643461234 [15:21:44]1041 (16) - 0000000002094248 [15:21:44]1040 (4) - 2219 [15:21:44]1012 (4) - 29.07.2024 09:20 [15:21:44]1206 (1) - 0 [15:21:44]OFD Sender: Remove packet 2219 [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00002219 [15:21:44]NVStorageDeleteData [15:21:44]OFD Sender: Processing packet 2220 [packets to send 6, broken 0] [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00002220 [15:21:44]OFD Sender: To server: pG, [15:21:44]CommunicateWithHost lk.salyk.kg:30040 [15:21:44]ConnectInit lk.salyk.kg [15:21:47]Connected sock=9 [15:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 EC A0 07 01 CC 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 99 AC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AC 08 00 00 35 04 06 00 74 AB 3C 01 D5 7A AF E0 98 4C 38 D6 BB 02 [15:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 38 C6 47 00 42 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AC 08 00 00 F4 03 04 00 F6 5E A7 66 B6 04 01 00 00 A6 9F 04 8F DB 1D B1 12 [15:21:47]CommunicateWithHost err = 0 [15:21:47]CheckOFDResponse [15:21:47]1017 (14) - 77093643461234 [15:21:47]1041 (16) - 0000000002094248 [15:21:47]1040 (4) - 2220 [15:21:47]1012 (4) - 29.07.2024 09:20 [15:21:47]1206 (1) - 0 [15:21:47]OFD Sender: Remove packet 2220 [15:21:47]ProducePacketName [15:21:47]name=ofd_packets/00002220 [15:21:47]NVStorageDeleteData [15:21:48]OFD Sender: Processing packet 2221 [packets to send 5, broken 0] [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00002221 [15:21:48]OFD Sender: To server: pG, [15:21:48]CommunicateWithHost lk.salyk.kg:30040 [15:21:48]ConnectInit lk.salyk.kg [15:21:48]Connected sock=9 [15:21:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AC 01 00 00 02 39 A4 01 A3 8B 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 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 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 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 E1 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AA AD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AD 08 00 00 35 04 06 00 DB 75 56 ED 1A 9B 4C 61 C4 3F 20 71 1D F9 [15:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7A 95 47 00 97 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AD 08 00 00 F4 03 04 00 F7 5E A7 66 B6 04 01 00 00 15 9C 00 EB B7 9D 31 65 [15:21:48]CommunicateWithHost err = 0 [15:21:48]CheckOFDResponse [15:21:48]1017 (14) - 77093643461234 [15:21:48]1041 (16) - 0000000002094248 [15:21:48]1040 (4) - 2221 [15:21:48]1012 (4) - 29.07.2024 09:20 [15:21:48]1206 (1) - 0 [15:21:48]OFD Sender: Remove packet 2221 [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00002221 [15:21:48]NVStorageDeleteData [15:21:49]OFD Sender: Processing packet 2222 [packets to send 4, broken 0] [15:21:49]ProducePacketName [15:21:49]name=ofd_packets/00002222 [15:21:49]OFD Sender: To server: pG, [15:21:49]CommunicateWithHost lk.salyk.kg:30040 [15:21:49]ConnectInit lk.salyk.kg [15:21:49]Connected sock=9 [15:21:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 9F 5B 31 01 49 A0 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 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 47 00 00 00 F4 03 04 00 84 B2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AE 08 00 00 35 04 06 00 F8 B9 19 FF 72 FC A2 AA F6 AA 45 77 4A D0 [15:21:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F5 85 47 00 E9 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 32 30 39 34 32 34 38 10 04 04 00 AE 08 00 00 F4 03 04 00 F8 5E A7 66 B6 04 01 00 00 F1 8D 3E BE B8 BF B4 F1 [15:21:49]CommunicateWithHost err = 0 [15:21:49]CheckOFDResponse [15:21:49]1017 (14) - 77093643461234 [15:21:49]1041 (16) - 0000000002094248 [15:21:49]1040 (4) - 2222 [15:21:49]1012 (4) - 29.07.2024 09:20 [15:21:49]1206 (1) - 0 [15:21:49]OFD Sender: Remove packet 2222 [15:21:49]ProducePacketName [15:21:49]name=ofd_packets/00002222 [15:21:49]NVStorageDeleteData [15:21:49]OFD Sender: Processing packet 2223 [packets to send 3, broken 0] [15:21:49]ProducePacketName [15:21:49]name=ofd_packets/00002223 [15:21:49]OFD Sender: To server: pG, [15:21:49]CommunicateWithHost lk.salyk.kg:30040 [15:21:49]ConnectInit lk.salyk.kg [15:21:50]Connected sock=9 [15:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B6 01 00 00 0B 16 AE 01 69 B4 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 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 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 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 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 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 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 48 00 00 00 F4 03 04 00 8D B2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AF 08 00 00 35 04 06 00 F0 11 C6 3A D6 AA D9 04 B7 72 9E AB 2C 5E [15:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D1 91 47 00 87 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 AF 08 00 00 F4 03 04 00 F8 5E A7 66 B6 04 01 00 00 18 5B 82 70 EC 55 A8 62 [15:21:50]CommunicateWithHost err = 0 [15:21:50]CheckOFDResponse [15:21:50]1017 (14) - 77093643461234 [15:21:50]1041 (16) - 0000000002094248 [15:21:50]1040 (4) - 2223 [15:21:50]1012 (4) - 29.07.2024 09:20 [15:21:50]1206 (1) - 0 [15:21:50]OFD Sender: Remove packet 2223 [15:21:50]ProducePacketName [15:21:50]name=ofd_packets/00002223 [15:21:50]NVStorageDeleteData [15:21:50]OFD Sender: Processing packet 2224 [packets to send 2, broken 0] [15:21:50]ProducePacketName [15:21:50]name=ofd_packets/00002224 [15:21:50]OFD Sender: To server: pG, [15:21:50]CommunicateWithHost lk.salyk.kg:30040 [15:21:50]ConnectInit lk.salyk.kg [15:21:51]Connected sock=9 [15:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 15 C4 24 01 B8 04 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 93 B2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B0 08 00 00 35 04 06 00 16 A4 37 9F 9B 68 52 89 D1 EA 87 C8 84 9B [15:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 25 88 47 00 0E 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 32 30 39 34 32 34 38 10 04 04 00 B0 08 00 00 F4 03 04 00 F9 5E A7 66 B6 04 01 00 00 3B F2 70 2B B9 6C 0C F4 [15:21:51]CommunicateWithHost err = 0 [15:21:51]CheckOFDResponse [15:21:51]1017 (14) - 77093643461234 [15:21:51]1041 (16) - 0000000002094248 [15:21:51]1040 (4) - 2224 [15:21:51]1012 (4) - 29.07.2024 09:20 [15:21:51]1206 (1) - 0 [15:21:51]OFD Sender: Remove packet 2224 [15:21:51]ProducePacketName [15:21:51]name=ofd_packets/00002224 [15:21:51]NVStorageDeleteData [15:21:51]OFD Sender: Processing packet 2225 [packets to send 1, broken 0] [15:21:51]ProducePacketName [15:21:51]name=ofd_packets/00002225 [15:21:51]OFD Sender: To server: pG, [15:21:51]CommunicateWithHost lk.salyk.kg:30040 [15:21:51]ConnectInit lk.salyk.kg [15:21:51]Connected sock=9 [15:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 38 6E 1B 01 49 E8 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 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 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 4A 00 00 00 F4 03 04 00 F0 B2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B1 08 00 00 35 04 06 00 2A FB CD 1D 85 B2 2D 31 E3 50 18 A9 66 D0 [15:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DD BF 47 00 87 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B1 08 00 00 F4 03 04 00 FA 5E A7 66 B6 04 01 00 00 4D 45 15 95 4B 3F 2D 15 [15:21:52]CommunicateWithHost err = 0 [15:21:52]CheckOFDResponse [15:21:52]1017 (14) - 77093643461234 [15:21:52]1041 (16) - 0000000002094248 [15:21:52]1040 (4) - 2225 [15:21:52]1012 (4) - 29.07.2024 09:20 [15:21:52]1206 (1) - 0 [15:21:52]OFD Sender: Remove packet 2225 [15:21:52]ProducePacketName [15:21:52]name=ofd_packets/00002225 [15:21:52]NVStorageDeleteData [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:26:58]ConnectInit Can't connect to host [15:27:03]ConnectInit Can't take IP for lk.salyk.kg [15:27:03]CommunicateWithHost connect error [15:27:03]CommunicateWithHost err = -1 [15:27:03]OFD Sender: Server communicate error [15:27:08]OFD Sender: Processing packet 2226 [packets to send 1, broken 0] [15:27:08]ProducePacketName [15:27:08]name=ofd_packets/00002226 [15:27:08]OFD Sender: To server: pG, [15:27:08]CommunicateWithHost lk.salyk.kg:30040 [15:27:08]ConnectInit lk.salyk.kg [15:27:08]Connected sock=8 [15:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 2E 13 31 01 82 11 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 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 4B 00 00 00 F4 03 04 00 98 B4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B2 08 00 00 35 04 06 00 A7 A4 48 05 AA B1 91 64 E9 94 AF 82 24 81 [15:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8A 56 47 00 93 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 32 30 39 34 32 34 38 10 04 04 00 B2 08 00 00 F4 03 04 00 37 60 A7 66 B6 04 01 00 00 43 F7 DB 8B 80 56 B6 1C [15:27:08]CommunicateWithHost err = 0 [15:27:08]CheckOFDResponse [15:27:08]1017 (14) - 77093643461234 [15:27:08]1041 (16) - 0000000002094248 [15:27:08]1040 (4) - 2226 [15:27:08]1012 (4) - 29.07.2024 09:26 [15:27:08]1206 (1) - 0 [15:27:08]OFD Sender: Remove packet 2226 [15:27:08]ProducePacketName [15:27:08]name=ofd_packets/00002226 [15:27:08]NVStorageDeleteData [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:42:54]ConnectInit Can't connect to host [15:42:55]ConnectInit Can't take IP for lk.salyk.kg [15:42:55]CommunicateWithHost connect error [15:42:55]CommunicateWithHost err = -1 [15:42:55]OFD Sender: Server communicate error [15:43:00]OFD Sender: Processing packet 2227 [packets to send 3, broken 0] [15:43:00]ProducePacketName [15:43:00]name=ofd_packets/00002227 [15:43:00]OFD Sender: To server: pG, [15:43:00]CommunicateWithHost lk.salyk.kg:30040 [15:43:00]ConnectInit lk.salyk.kg [15:43:00]Connected sock=8 [15:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8D 01 00 00 F4 F6 85 01 BB 42 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 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 28 23 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 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 4C 00 00 00 F4 03 04 00 4E B6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B3 08 00 00 35 04 06 00 6F ED 12 56 85 BA 53 B3 3D 43 E5 31 0D 09 [15:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7A 7B 47 00 B6 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B3 08 00 00 F4 03 04 00 EF 63 A7 66 B6 04 01 00 00 A9 93 B0 AC 7B 85 D7 FD [15:43:00]CommunicateWithHost err = 0 [15:43:00]CheckOFDResponse [15:43:00]1017 (14) - 77093643461234 [15:43:00]1041 (16) - 0000000002094248 [15:43:00]1040 (4) - 2227 [15:43:00]1012 (4) - 29.07.2024 09:42 [15:43:00]1206 (1) - 0 [15:43:00]OFD Sender: Remove packet 2227 [15:43:00]ProducePacketName [15:43:00]name=ofd_packets/00002227 [15:43:00]NVStorageDeleteData [15:43:01]OFD Sender: Processing packet 2228 [packets to send 2, broken 0] [15:43:01]ProducePacketName [15:43:01]name=ofd_packets/00002228 [15:43:01]OFD Sender: To server: pG, [15:43:01]CommunicateWithHost lk.salyk.kg:30040 [15:43:01]ConnectInit lk.salyk.kg [15:43:01]Connected sock=8 [15:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 7A A0 31 01 2C 99 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 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 4D 00 00 00 F4 03 04 00 CA B6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B4 08 00 00 35 04 06 00 5E 68 8E 91 81 A8 4D A1 A6 1E 1E 51 66 7C [15:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 29 3C 47 00 9C A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B4 08 00 00 F4 03 04 00 F0 63 A7 66 B6 04 01 00 00 BB 99 20 EF FD 8B 93 EE [15:43:01]CommunicateWithHost err = 0 [15:43:01]CheckOFDResponse [15:43:01]1017 (14) - 77093643461234 [15:43:01]1041 (16) - 0000000002094248 [15:43:01]1040 (4) - 2228 [15:43:01]1012 (4) - 29.07.2024 09:42 [15:43:01]1206 (1) - 0 [15:43:01]OFD Sender: Remove packet 2228 [15:43:01]ProducePacketName [15:43:01]name=ofd_packets/00002228 [15:43:01]NVStorageDeleteData [15:43:02]OFD Sender: Processing packet 2229 [packets to send 1, broken 0] [15:43:02]ProducePacketName [15:43:02]name=ofd_packets/00002229 [15:43:02]OFD Sender: To server: pG, [15:43:02]CommunicateWithHost lk.salyk.kg:30040 [15:43:02]ConnectInit lk.salyk.kg [15:43:02]Connected sock=8 [15:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 77 AA 18 01 15 BE 5A 03 01 00 03 00 0C 01 1E 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 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 92 B7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B5 08 00 00 35 04 06 00 96 D6 80 A8 0E 69 69 34 EB D7 A0 03 7B EE [15:43:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 ED 4C 47 00 B7 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 32 30 39 34 32 34 38 10 04 04 00 B5 08 00 00 F4 03 04 00 F0 63 A7 66 B6 04 01 00 00 2C B3 F1 55 49 C2 2D 77 [15:43:02]CommunicateWithHost err = 0 [15:43:02]CheckOFDResponse [15:43:02]1017 (14) - 77093643461234 [15:43:02]1041 (16) - 0000000002094248 [15:43:02]1040 (4) - 2229 [15:43:02]1012 (4) - 29.07.2024 09:42 [15:43:02]1206 (1) - 0 [15:43:02]OFD Sender: Remove packet 2229 [15:43:02]ProducePacketName [15:43:02]name=ofd_packets/00002229 [15:43:02]NVStorageDeleteData [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:45]accept exits with 9 [15:43:45]New connection [15:43:45]New thread 3067157860 created [15:43:45]Thread 3067014500 joined [15:43:45]Waiting for new connection... [15:43:45] Sock 9.Parse request [15:43:45]Sock 9.Check first char [15:43:45]Sock 9.First char is OK [15:43:45]request: POST /json_proto HTTP/1.0 [15:43:45]Method: POST [15:43:45]URL: /json_proto [15:43:45]Method is POST - this is cgi request [15:43:45]url: /json_proto [15:43:45]query_string will be loaded in cgi processing [15:43:45]execute_cgi json_proto POST (null) [15:43:45]execute_cgi path=json_proto method=POST [15:43:45]POST find Content-Length [15:43:45]Host: 172.17.45.132:8080 [15:43:45]Content-Length: 987 [15:43:45]Content-Type: application/json [15:43:45] [15:43:45]POST finish read [15:43:45]Found Content-Length = 987 [15:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126516", "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 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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" ] } } [15:43:45]execute_script... [15:43: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)126516", "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 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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" ] } } [15:43:45]POST & json_proto [15:43:45]process_json_proto [15:43:45]json parsed OK: [15:43:45]protocol is kg_v1.0 [15:43:45]action value=close_receipt [15:43:45]process_action close_receipt [15:43:45]cmd_close_receipt [15:43:45]MH_GetDate [15:43:45]Write to MH i2c: F0 00 00 71 02 62 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 09 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 09 00 71 02 00 B1 B8 A7 66 E3 0B 90 66 C5 [15:43:45]GetLastDocTimeStamp 1722267538 [15:43:45]current date 1722267825 [15:43:45]FM_GetShiftState [15:43:45]SAM_PROTO_GetShiftState [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 13 01 00 [15:43:45]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0E 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EA [15:43:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:43:45]wFMCommunicate OK [15:43:45]SAM_PROTO_GetShiftState done [15:43:45]FM_GetShiftState done [15:43:45]opened in 1722213119 [15:43:45]opened+sec_in_day 1722299519 [15:43:45]quantity*price = 6000 [15:43:45]sum+1 = 6001 [15:43:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 79 29.07.2024 15:43 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2230 ФПД: 35954922095595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154345&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2230&fm=35954922095595&tin=02508201610067®Number=0000000000189667&sum=10000 0 [15:43:46]StoreToDocumentArchive [15:43:46]shift 15 fd 2230 [15:43:46]save to /storage/0015/doc_00002230 [15:43:46]save last doc name /storage/0015/doc_00002230 to /storage/kkm_last_doc_name [15:43:46]save OK [15:43:46]Clear old archive folders... [15:43:46]ProcessDocumentItem done err = 0, tmpTLVsize=405 [15:43:46]tlvbuf is 0202DFE0 [15:43:46]SAM_PROTO_ClearQueue [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 09 00 00 [15:43:46]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_ClearQueue done [15:43:46]KKMCreateOFDPacket [15:43:46]OFDProtocolAddRootSTLVToBuf [15:43:46]FM_MakeSignedData [15:43:46]FM_MakeSignedData [15:43:46]SAM_PROTO_SignData [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 01 02 [15:43:46]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=255 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 02 02 FA 03 00 95 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 FC 03 06 00 10 27 [15:43:46]Write to MH i2c: E2 02 01 81 02 80 0D 02 02 FA 00 03 00 95 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 FC 03 06 00 10 27 00 00 BD [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=164 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 02 02 9F 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 4F 00 00 00 F4 03 04 00 B1 B8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 08 00 00 35 04 06 00 20 B3 68 5C 03 EB [15:43:46]Write to MH i2c: E2 A7 00 82 02 80 0D 02 02 9F 00 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 4F 00 00 00 F4 03 04 00 B1 B8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 08 00 00 35 04 06 00 20 B3 68 5C 03 EB 00 00 52 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 03 02 [15:43:46]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0B 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0B 00 83 02 00 AE 08 A9 FD 56 DE 56 B9 90 00 A0 [15:43:46]RAPDU: AE 08 A9 FD 56 DE 56 B9 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_SignData done [15:43:46]FM_MakeSignedData done [15:43:46]CreateOFDProtocolMessage [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 11 00 00 [15:43:46]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 17 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 50 [15:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:43:46]wFMCommunicate OK [15:43:46]CreateOFDProtocolMessage done [15:43:46]OFDSenderStorePacket 2230 [15:43:46]StoreOFDPacket docnum=2230 [15:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A9 01 00 00 7E A2 A1 01 47 1A 5A 03 01 00 03 00 95 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 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 4F 00 00 00 F4 03 04 00 B1 B8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 08 00 00 35 04 06 00 20 B3 68 5C 03 EB AE 08 A9 FD 56 DE 56 B9 [15:43:46]CheckFolder [15:43:46]dirname=/storage/ofd_packets [15:43:46]CheckFolder done [15:43:46]ProducePacketName [15:43:46]name=ofd_packets/00002230 [15:43:46]NVStorageSaveData ofd_packets/00002230 [15:43:46]File name is /storage/ofd_packets/00002230 [15:43:46]Write 455 bytes [15:43:46]NVStorageSaveData done [15:43:46]OFDSenderStorePacket done [15:43:46]KKMCreateOFDPacket done [15:43:46]NVStorageSaveData kkm_last_timestamp [15:43:46]File name is /storage/kkm_last_timestamp [15:43:46]Write 4 bytes [15:43:46]NVStorageSaveData done [15:43:46]ExternCall_PrintAddStr [15:43:46]wPrintStart [15:43:46]Write to MH i2c: 01 00 00 85 02 87 [15:43:46]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]OFD Sender: Processing packet 2230 [packets to send 1, broken 0] [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00002230 [15:43:47]OFD Sender: To server: pG, [15:43:47]CommunicateWithHost lk.salyk.kg:30040 [15:43:47]ConnectInit lk.salyk.kg [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [15:43:47]RasterBufferAndPrint [15:43:47]line Счет N : (3)126516 [15:43:47]line ИНН: 02508201610067 [15:43:47]line Контрольно-Кассовый Чек [15:43:47]line ПРОДАЖА [15:43:47]line Товар: 4700000160792 [15:43:47]line Снек Курут классический (круглый) [15:43:47]line 1.000 * 60.00 [15:43:47]line = 60.00 [15:43:47]line НДС 12% НСП 1% [15:43:47]line > о реализуемом товаре [15:43:47]line Товар: 40822426 [15:43:47]line Вода Бонаква 0,5л б/г [15:43:47]line 1.000 * 40.00 [15:43:47]line = 40.00 [15:43:47]line НДС 12% НСП 1% [15:43:47]line > о реализуемом товаре [15:43:47]line ИТОГО: 100.00 [15:43:47]line НСП 1% : 0.88 [15:43:47]line НДС 12% : 10.62 [15:43:47]line Наличными: 100.00 [15:43:47]line Безнал.: 0.00 [15:43:47]line Место: АЗС № 127 "Партнер Нефть" [15:43:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:43:47]line СНО: Общий режим [15:43:47]line Чек 79 29.07.2024 15:43 [15:43:47]line Смена: 15 ФФД: 1.0 [15:43:47]line ЗНМ: 0300000161 [15:43:47]line РНМ: 0000000000189667 [15:43:47]line Версия ККМ: v1.0 [15:43:47]line ФМ: 0000000002094248 [15:43:47]line ФД: 2230 [15:43:47]line ФПД: 35954922095595 [15:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154345&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2230&fm=35954922095595&tin=02508201610067®Number=0000000000189667&sum=10000 [15:43:47]line 0 [15:43:47]written 0, free lines is 4095 [15:43:47]Connected sock=10 [15:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A9 01 00 00 7E A2 A1 01 47 1A 5A 03 01 00 03 00 95 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F 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 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 4F 00 00 00 F4 03 04 00 B1 B8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 08 00 00 35 04 06 00 20 B3 68 5C 03 EB AE 08 A9 FD 56 DE 56 B9 [15:43:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3F 43 47 00 13 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B6 08 00 00 F4 03 04 00 1E 64 A7 66 B6 04 01 00 00 E6 BB BB CF CE 91 14 50 [15:43:47]CommunicateWithHost err = 0 [15:43:47]CheckOFDResponse [15:43:47]1017 (14) - 77093643461234 [15:43:47]1041 (16) - 0000000002094248 [15:43:47]1040 (4) - 2230 [15:43:47]1012 (4) - 29.07.2024 09:42 [15:43:47]1206 (1) - 0 [15:43:47]OFD Sender: Remove packet 2230 [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00002230 [15:43:47]NVStorageDeleteData [15:43:47]Write to MH i2c: 01 00 00 B4 02 B6 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 D5 0C 9E [15:43:47]RasterBufferAndPrint [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]written 0, free lines is 3295 [15:43:47]MH_Cut [15:43:47]Write to MH i2c: D1 01 00 BB 02 01 8F [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 01 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 01 00 BB 02 00 8E [15:43:47]Write to MH i2c: 01 00 00 BC 02 BE [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:48]OFD Sender: No OFD packet to send [15:43:48]*** Cut start [15:43:48]*** Partial cut [15:43:48]*** CUTSNS_PIN = 1 [15:43:48]*** CUTSNS_PIN = 0 [15:43:48]*** Brake cut motor [15:43:49]Read from MH i2c: 01 [15:43:49]MH_I2C_Read... [15:43:49]*** Stop cut motor [15:43:49]*** Cut end [15:43:49]Read from MH i2c: 01 07 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [15:43:49]process_action close_receipt done [15:43:49]requested_data is exist [15:43:49]produce_requested_data [15:43:49]requested_item fm.sn is exist - process it [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 11 00 00 [15:43:49]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [15:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:43:49]wFMCommunicate OK [15:43:49]requested_item fd.num is exist - process it [15:43:49]SAM_PROTO_GetFieldsCounters [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 00 00 [15:43:49]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B6 08 00 00 0E 04 04 00 0F 00 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 20 [15:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B6 08 00 00 0E 04 04 00 0F 00 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:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetFieldsCounters done [15:43:49]requested_item shift.num is exist - process it [15:43:49]requested_item shift.opened is exist - process it [15:43:49]req_shift_opened [15:43:49]FM_GetShiftState [15:43:49]SAM_PROTO_GetShiftState [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 01 00 [15:43:49]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:49]Read from MH i2c: E2 0E 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 37 [15:43:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetShiftState done [15:43:49]FM_GetShiftState done [15:43:49]req_shift_opened done [15:43:49]requested_item shift.open_date is exist - process it [15:43:49]req_shift_open_date [15:43:49]req_shift_open_date done [15:43:49]produce_requested_data done [15:43:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2230,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [15:43:49]process_action_free close_receipt [15:43:49]json_value_free [15:43:49]json_value_free done [15:43:49]process_json_proto returns [15:43:49]Send response to host [15:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2230,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [15:43:49]free response buf [15:43:49]execute_script done [15:43:49]execute_script returns [15:43:49]free content buf [15:43:49]Sock 9.Close socket [15:43:49]Sock 9.Thread stoped [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:45]accept exits with 8 [15:46:45]New connection [15:46:45]New thread 3067014500 created [15:46:45]Thread 3067157860 joined [15:46:45]Waiting for new connection... [15:46:45] Sock 8.Parse request [15:46:45]Sock 8.Check first char [15:46:45]Sock 8.First char is OK [15:46:45]request: POST /json_proto HTTP/1.0 [15:46:45]Method: POST [15:46:45]URL: /json_proto [15:46:45]Method is POST - this is cgi request [15:46:45]url: /json_proto [15:46:45]query_string will be loaded in cgi processing [15:46:45]execute_cgi json_proto POST (null) [15:46:45]execute_cgi path=json_proto method=POST [15:46:45]POST find Content-Length [15:46:45]Host: 172.17.45.132:8080 [15:46:45]Content-Length: 1212 [15:46:45]Content-Type: application/json [15:46:45] [15:46:45]POST finish read [15:46:45]Found Content-Length = 1212 [15:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126517", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:45]execute_script... [15:46: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)126517", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:45]POST & json_proto [15:46:45]process_json_proto [15:46:45]json parsed OK: [15:46:45]protocol is kg_v1.0 [15:46:45]action value=close_receipt [15:46:45]process_action close_receipt [15:46:45]cmd_close_receipt [15:46:45]MH_GetDate [15:46:45]Write to MH i2c: F0 00 00 C0 02 B1 [15:46:45]Write i2c OK [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: F0 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: F0 09 00 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: F0 09 00 C0 02 00 66 B9 A7 66 E3 0B 90 66 CA [15:46:45]GetLastDocTimeStamp 1722267825 [15:46:45]current date 1722268006 [15:46:45]FM_GetShiftState [15:46:45]SAM_PROTO_GetShiftState [15:46:45]wFMCommunicate request_size=4 [15:46:45]MH_SAM_APDU [15:46:45]CAPDU: 80 13 01 00 [15:46:45]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [15:46:45]Write i2c OK [15:46:45]MH_I2C_Read... [15:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:45]Read from MH i2c: E2 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: E2 0E 00 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 39 [15:46:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:46:45]wFMCommunicate OK [15:46:45]SAM_PROTO_GetShiftState done [15:46:45]FM_GetShiftState done [15:46:45]opened in 1722213119 [15:46:45]opened+sec_in_day 1722299519 [15:46:45]quantity*price = 13000 [15:46:45]sum+1 = 13001 [15:46:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 80 29.07.2024 15:46 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2231 ФПД: 198942139355447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154646&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2231&fm=198942139355447&tin=02508201610067®Number=0000000000189667&sum=25500 0 [15:46:46]StoreToDocumentArchive [15:46:46]shift 15 fd 2231 [15:46:46]save to /storage/0015/doc_00002231 [15:46:46]save last doc name /storage/0015/doc_00002231 to /storage/kkm_last_doc_name [15:46:46]save OK [15:46:46]Clear old archive folders... [15:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=501 [15:46:46]tlvbuf is 02011230 [15:46:46]SAM_PROTO_ClearQueue [15:46:46]wFMCommunicate request_size=4 [15:46:46]MH_SAM_APDU [15:46:46]CAPDU: 80 09 00 00 [15:46:46]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [15:46:46]Write i2c OK [15:46:46]MH_I2C_Read... [15:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:46]Read from MH i2c: E2 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: E2 03 00 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [15:46:46]RAPDU: 90 00 [15:46:46]wFMCommunicate OK [15:46:46]SAM_PROTO_ClearQueue done [15:46:46]KKMCreateOFDPacket [15:46:46]OFDProtocolAddRootSTLVToBuf [15:46:46]FM_MakeSignedData [15:46:46]FM_MakeSignedData [15:46:46]SAM_PROTO_SignData [15:46:46]wFMCommunicate request_size=4 [15:46:46]MH_SAM_APDU [15:46:46]CAPDU: 80 0D 01 02 [15:46:46]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [15:46:46]Write i2c OK [15:46:46]MH_I2C_Read... [15:46:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:46]Read from MH i2c: E2 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: E2 03 00 [15:46:46]MH_I2C_Read... [15:46:46]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [15:46:46]RAPDU: 90 00 [15:46:46]wFMCommunicate OK [15:46:46]wFMCommunicate request_size=255 [15:46:46]MH_SAM_APDU [15:46:46]CAPDU: 80 0D 02 02 FA 03 00 F5 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 61 00 8A 04 0D 00 34 37 30 [15:46:46]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 F5 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 61 00 8A 04 0D 00 34 37 30 00 00 AF [15:46:46]Write i2c OK [15:46:46]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]wFMCommunicate request_size=255 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 02 02 FA 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 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 93 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 50 00 00 00 F4 03 04 00 66 B9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 08 00 00 35 04 06 00 B4 [15:46:47]Write to MH i2c: E2 02 01 D1 02 80 0D 02 02 FA 00 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 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 93 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 50 00 00 00 F4 03 04 00 66 B9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 08 00 00 35 04 06 00 B4 00 00 0D [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]wFMCommunicate request_size=10 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 02 02 05 EF D3 8C 11 37 [15:46:47]Write to MH i2c: E2 0D 00 D2 02 80 0D 02 02 05 00 EF D3 8C 11 37 00 00 EE [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 03 02 [15:46:47]Write to MH i2c: E2 08 00 D3 02 80 0D 03 02 00 00 00 00 50 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 0B 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 0B 00 D3 02 00 47 A9 4B 0E 27 5A 8F 3C 90 00 E6 [15:46:47]RAPDU: 47 A9 4B 0E 27 5A 8F 3C 90 00 [15:46:47]wFMCommunicate OK [15:46:47]SAM_PROTO_SignData done [15:46:47]FM_MakeSignedData done [15:46:47]CreateOFDProtocolMessage [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 11 00 00 [15:46:47]Write to MH i2c: E2 08 00 D4 02 80 11 00 00 00 00 00 00 50 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 17 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 17 00 D4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A0 [15:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:46:47]wFMCommunicate OK [15:46:47]CreateOFDProtocolMessage done [15:46:47]OFDSenderStorePacket 2231 [15:46:47]StoreOFDPacket docnum=2231 [15:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 09 02 00 00 0F 3E 01 02 13 F5 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 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 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 93 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 50 00 00 00 F4 03 04 00 66 B9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 08 00 00 35 04 06 00 B4 EF D3 8C 11 37 47 A9 4B 0E 27 5A 8F 3C [15:46:47]CheckFolder [15:46:47]dirname=/storage/ofd_packets [15:46:47]CheckFolder done [15:46:47]ProducePacketName [15:46:47]name=ofd_packets/00002231 [15:46:47]NVStorageSaveData ofd_packets/00002231 [15:46:47]File name is /storage/ofd_packets/00002231 [15:46:47]Write 551 bytes [15:46:47]NVStorageSaveData done [15:46:47]OFDSenderStorePacket done [15:46:47]KKMCreateOFDPacket done [15:46:47]NVStorageSaveData kkm_last_timestamp [15:46:47]File name is /storage/kkm_last_timestamp [15:46:47]Write 4 bytes [15:46:47]NVStorageSaveData done [15:46:47]ExternCall_PrintAddStr [15:46:47]wPrintStart [15:46:47]Write to MH i2c: 01 00 00 D5 02 D7 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: 01 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: 01 07 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: 01 07 00 D5 02 00 00 00 00 00 FF 0F EC [15:46:47]RasterBufferAndPrint [15:46:47]line Счет N : (3)126517 [15:46:47]line ИНН: 02508201610067 [15:46:47]line Контрольно-Кассовый Чек [15:46:47]line ПРОДАЖА [15:46:47]line Товар: 4700040114120 [15:46:47]line Султан чай 1л. чер персик [15:46:47]line 2.000 * 65.00 [15:46:47]line = 130.00 [15:46:47]line НДС 12% НСП 1% [15:46:47]line > о реализуемом товаре [15:46:47]line Товар: 4700040114137 [15:46:47]line Султан чай 1л. зел лимон [15:46:47]line 1.000 * 65.00 [15:46:47]line = 65.00 [15:46:47]line НДС 12% НСП 1% [15:46:47]line > о реализуемом товаре [15:46:47]line Товар: 4700000160204 [15:46:47]line Вода Легенда 1,5л [15:46:47]line 1.000 * 60.00 [15:46:47]line = 60.00 [15:46:47]line НДС 12% НСП 1% [15:46:47]line > о реализуемом товаре [15:46:47]line ИТОГО: 255.00 [15:46:47]line НСП 1% : 2.25 [15:46:47]line НДС 12% : 27.07 [15:46:47]line Наличными: 255.00 [15:46:47]line Безнал.: 0.00 [15:46:47]line Место: АЗС № 127 "Партнер Нефть" [15:46:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:46:47]line СНО: Общий режим [15:46:47]line Чек 80 29.07.2024 15:46 [15:46:47]line Смена: 15 ФФД: 1.0 [15:46:47]line ЗНМ: 0300000161 [15:46:47]line РНМ: 0000000000189667 [15:46:47]line Версия ККМ: v1.0 [15:46:47]line ФМ: 0000000002094248 [15:46:47]line ФД: 2231 [15:46:47]line ФПД: 198942139355447 [15:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154646&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2231&fm=198942139355447&tin=02508201610067®Number=0000000000189667&sum=25500 [15:46:47]line 0 [15:46:47]written 0, free lines is 4095 [15:46:47]OFD Sender: Processing packet 2231 [packets to send 1, broken 0] [15:46:47]ProducePacketName [15:46:47]name=ofd_packets/00002231 [15:46:47]OFD Sender: To server: pG, [15:46:47]CommunicateWithHost lk.salyk.kg:30040 [15:46:47]ConnectInit lk.salyk.kg [15:46:47]Connected sock=10 [15:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 09 02 00 00 0F 3E 01 02 13 F5 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 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 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 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 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 93 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 50 00 00 00 F4 03 04 00 66 B9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B7 08 00 00 35 04 06 00 B4 EF D3 8C 11 37 47 A9 4B 0E 27 5A 8F 3C [15:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A8 48 47 00 00 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 32 30 39 34 32 34 38 10 04 04 00 B7 08 00 00 F4 03 04 00 D2 64 A7 66 B6 04 01 00 00 55 9D 79 F1 EB FD CB 74 [15:46:48]CommunicateWithHost err = 0 [15:46:48]CheckOFDResponse [15:46:48]1017 (14) - 77093643461234 [15:46:48]1041 (16) - 0000000002094248 [15:46:48]1040 (4) - 2231 [15:46:48]1012 (4) - 29.07.2024 09:45 [15:46:48]1206 (1) - 0 [15:46:48]OFD Sender: Remove packet 2231 [15:46:48]ProducePacketName [15:46:48]name=ofd_packets/00002231 [15:46:48]NVStorageDeleteData [15:46:48]Write to MH i2c: 01 00 00 09 03 0C [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 07 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 8F 0C AE [15:46:48]RasterBufferAndPrint [15:46:48]line [15:46:48]line [15:46:48]line [15:46:48]line [15:46:48]line [15:46:48]written 0, free lines is 3224 [15:46:48]MH_Cut [15:46:48]Write to MH i2c: D1 01 00 10 03 01 E5 [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: D1 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: D1 01 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: D1 01 00 10 03 00 E4 [15:46:48]Write to MH i2c: 01 00 00 11 03 14 [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]OFD Sender: No OFD packet to send [15:46:48]*** Cut start [15:46:48]*** Partial cut [15:46:48]*** CUTSNS_PIN = 1 [15:46:49]*** CUTSNS_PIN = 0 [15:46:49]*** Brake cut motor [15:46:49]Read from MH i2c: 01 [15:46:49]MH_I2C_Read... [15:46:49]*** Stop cut motor [15:46:49]*** Cut end [15:46:49]Read from MH i2c: 01 07 00 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [15:46:49]process_action close_receipt done [15:46:49]requested_data is exist [15:46:49]produce_requested_data [15:46:49]requested_item fm.sn is exist - process it [15:46:49]wFMCommunicate request_size=4 [15:46:49]MH_SAM_APDU [15:46:49]CAPDU: 80 11 00 00 [15:46:49]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [15:46:49]Write i2c OK [15:46:49]MH_I2C_Read... [15:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:49]Read from MH i2c: E2 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: E2 17 00 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DF [15:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:46:49]wFMCommunicate OK [15:46:49]requested_item fd.num is exist - process it [15:46:49]SAM_PROTO_GetFieldsCounters [15:46:49]wFMCommunicate request_size=4 [15:46:49]MH_SAM_APDU [15:46:49]CAPDU: 80 13 00 00 [15:46:49]Write to MH i2c: E2 08 00 13 03 80 13 00 00 00 00 00 00 92 [15:46:49]Write i2c OK [15:46:49]MH_I2C_Read... [15:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:49]Read from MH i2c: E2 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: E2 62 00 [15:46:49]MH_I2C_Read... [15:46:49]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 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B7 08 00 00 0E 04 04 00 0F 00 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 7A [15:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B7 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:49]wFMCommunicate OK [15:46:49]SAM_PROTO_GetFieldsCounters done [15:46:49]requested_item shift.num is exist - process it [15:46:49]requested_item shift.opened is exist - process it [15:46:49]req_shift_opened [15:46:49]FM_GetShiftState [15:46:49]SAM_PROTO_GetShiftState [15:46:49]wFMCommunicate request_size=4 [15:46:49]MH_SAM_APDU [15:46:49]CAPDU: 80 13 01 00 [15:46:49]Write to MH i2c: E2 08 00 14 03 80 13 01 00 00 00 00 00 94 [15:46:49]Write i2c OK [15:46:49]MH_I2C_Read... [15:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:49]Read from MH i2c: E2 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: E2 0E 00 [15:46:49]MH_I2C_Read... [15:46:49]Read from MH i2c: E2 0E 00 14 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8D [15:46:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:46:49]wFMCommunicate OK [15:46:49]SAM_PROTO_GetShiftState done [15:46:49]FM_GetShiftState done [15:46:49]req_shift_opened done [15:46:49]requested_item shift.open_date is exist - process it [15:46:49]req_shift_open_date [15:46:49]req_shift_open_date done [15:46:49]produce_requested_data done [15:46:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2231,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [15:46:49]process_action_free close_receipt [15:46:49]json_value_free [15:46:49]json_value_free done [15:46:49]process_json_proto returns [15:46:49]Send response to host [15:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2231,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [15:46:49]free response buf [15:46:49]execute_script done [15:46:49]execute_script returns [15:46:49]free content buf [15:46:49]Sock 8.Close socket [15:46:49]Sock 8.Thread stoped [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:10]accept exits with 9 [15:50:10]New connection [15:50:10]New thread 3067157860 created [15:50:10]Thread 3067014500 joined [15:50:10]Waiting for new connection... [15:50:10] Sock 9.Parse request [15:50:10]Sock 9.Check first char [15:50:10]Sock 9.First char is OK [15:50:10]request: POST /json_proto HTTP/1.0 [15:50:10]Method: POST [15:50:10]URL: /json_proto [15:50:10]Method is POST - this is cgi request [15:50:10]url: /json_proto [15:50:10]query_string will be loaded in cgi processing [15:50:10]execute_cgi json_proto POST (null) [15:50:10]execute_cgi path=json_proto method=POST [15:50:10]POST find Content-Length [15:50:10]Host: 172.17.45.132:8080 [15:50:10]Content-Length: 669 [15:50:10]Content-Type: application/json [15:50:10] [15:50:10]POST finish read [15:50:10]Found Content-Length = 669 [15:50:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126518", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:10]execute_script... [15:50:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126518", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:10]POST & json_proto [15:50:10]process_json_proto [15:50:10]json parsed OK: [15:50:10]protocol is kg_v1.0 [15:50:10]action value=close_receipt [15:50:10]process_action close_receipt [15:50:10]cmd_close_receipt [15:50:10]MH_GetDate [15:50:10]Write to MH i2c: F0 00 00 15 03 07 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: F0 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: F0 09 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: F0 09 00 15 03 00 32 BA A7 66 E3 0B 90 66 ED [15:50:10]GetLastDocTimeStamp 1722268006 [15:50:10]current date 1722268210 [15:50:10]FM_GetShiftState [15:50:10]SAM_PROTO_GetShiftState [15:50:10]wFMCommunicate request_size=4 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 13 01 00 [15:50:10]Write to MH i2c: E2 08 00 16 03 80 13 01 00 00 00 00 00 96 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:10]Read from MH i2c: E2 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 0E 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 0E 00 16 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8F [15:50:10]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:50:10]wFMCommunicate OK [15:50:10]SAM_PROTO_GetShiftState done [15:50:10]FM_GetShiftState done [15:50:10]opened in 1722213119 [15:50:10]opened+sec_in_day 1722299519 [15:50:10]quantity*price = 6500 [15:50:10]sum+1 = 6501 [15:50:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 81 29.07.2024 15:50 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2232 ФПД: 192052641651617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155010&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2232&fm=192052641651617&tin=02508201610067®Number=0000000000189667&sum=6500 0 [15:50:11]StoreToDocumentArchive [15:50:11]shift 15 fd 2232 [15:50:11]save to /storage/0015/doc_00002232 [15:50:11]save last doc name /storage/0015/doc_00002232 to /storage/kkm_last_doc_name [15:50:11]save OK [15:50:11]Clear old archive folders... [15:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=284 [15:50:11]tlvbuf is 02040F90 [15:50:11]SAM_PROTO_ClearQueue [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 09 00 00 [15:50:11]Write to MH i2c: E2 08 00 23 03 80 09 00 00 00 00 00 00 98 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]SAM_PROTO_ClearQueue done [15:50:11]KKMCreateOFDPacket [15:50:11]OFDProtocolAddRootSTLVToBuf [15:50:11]FM_MakeSignedData [15:50:11]FM_MakeSignedData [15:50:11]SAM_PROTO_SignData [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 01 02 [15:50:11]Write to MH i2c: E2 08 00 24 03 80 0D 01 02 00 00 00 00 A0 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]wFMCommunicate request_size=255 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 32 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [15:50:11]Write to MH i2c: E2 02 01 25 03 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 32 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 91 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 25 03 00 90 00 9C [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]wFMCommunicate request_size=43 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 08 00 00 35 04 06 00 AE AB BD 7B DB A1 [15:50:11]Write to MH i2c: E2 2E 00 26 03 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 08 00 00 35 04 06 00 AE AB BD 7B DB A1 00 00 55 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 03 02 [15:50:11]Write to MH i2c: E2 08 00 27 03 80 0D 03 02 00 00 00 00 A5 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 0B 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 0B 00 27 03 00 40 27 A9 9D D8 24 4B 0E 90 00 A8 [15:50:11]RAPDU: 40 27 A9 9D D8 24 4B 0E 90 00 [15:50:11]wFMCommunicate OK [15:50:11]SAM_PROTO_SignData done [15:50:11]FM_MakeSignedData done [15:50:11]CreateOFDProtocolMessage [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 11 00 00 [15:50:11]Write to MH i2c: E2 08 00 28 03 80 11 00 00 00 00 00 00 A5 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 17 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 17 00 28 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F5 [15:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:50:11]wFMCommunicate OK [15:50:11]CreateOFDProtocolMessage done [15:50:11]OFDSenderStorePacket 2232 [15:50:11]StoreOFDPacket docnum=2232 [15:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 03 04 28 01 A0 E0 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 32 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 08 00 00 35 04 06 00 AE AB BD 7B DB A1 40 27 A9 9D D8 24 4B 0E [15:50:11]CheckFolder [15:50:11]dirname=/storage/ofd_packets [15:50:11]CheckFolder done [15:50:11]ProducePacketName [15:50:11]name=ofd_packets/00002232 [15:50:11]NVStorageSaveData ofd_packets/00002232 [15:50:11]File name is /storage/ofd_packets/00002232 [15:50:11]Write 334 bytes [15:50:11]NVStorageSaveData done [15:50:11]OFDSenderStorePacket done [15:50:11]KKMCreateOFDPacket done [15:50:11]NVStorageSaveData kkm_last_timestamp [15:50:11]File name is /storage/kkm_last_timestamp [15:50:11]Write 4 bytes [15:50:11]NVStorageSaveData done [15:50:11]ExternCall_PrintAddStr [15:50:11]wPrintStart [15:50:11]Write to MH i2c: 01 00 00 29 03 2C [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: 01 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: 01 07 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: 01 07 00 29 03 00 00 00 00 00 FF 0F 41 [15:50:11]RasterBufferAndPrint [15:50:11]line Счет N : (3)126518 [15:50:11]line ИНН: 02508201610067 [15:50:11]line Контрольно-Кассовый Чек [15:50:11]line ПРОДАЖА [15:50:11]line Товар: 4700040114137 [15:50:11]line Султан чай 1л. зел лимон [15:50:11]line 1.000 * 65.00 [15:50:11]line = 65.00 [15:50:11]line НДС 12% НСП 1% [15:50:11]line > о реализуемом товаре [15:50:11]line ИТОГО: 65.00 [15:50:11]line НСП 1% : 0.57 [15:50:11]line НДС 12% : 6.90 [15:50:11]line Наличными: 65.00 [15:50:11]line Безнал.: 0.00 [15:50:11]line Место: АЗС № 127 "Партнер Нефть" [15:50:11]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:50:11]line СНО: Общий режим [15:50:11]line Чек 81 29.07.2024 15:50 [15:50:11]line Смена: 15 ФФД: 1.0 [15:50:11]line ЗНМ: 0300000161 [15:50:11]line РНМ: 0000000000189667 [15:50:11]line Версия ККМ: v1.0 [15:50:11]line ФМ: 0000000002094248 [15:50:11]line ФД: 2232 [15:50:11]line ФПД: 192052641651617 [15:50:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155010&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2232&fm=192052641651617&tin=02508201610067®Number=0000000000189667&sum=6500 [15:50:12]line 0 [15:50:12]OFD Sender: Processing packet 2232 [packets to send 1, broken 0] [15:50:12]ProducePacketName [15:50:12]name=ofd_packets/00002232 [15:50:12]OFD Sender: To server: pG, [15:50:12]CommunicateWithHost lk.salyk.kg:30040 [15:50:12]ConnectInit lk.salyk.kg [15:50:12]written 0, free lines is 4095 [15:50:12]Connected sock=10 [15:50:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 03 04 28 01 A0 E0 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 32 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 08 00 00 35 04 06 00 AE AB BD 7B DB A1 40 27 A9 9D D8 24 4B 0E [15:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 39 15 47 00 07 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B8 08 00 00 F4 03 04 00 9F 65 A7 66 B6 04 01 00 00 C1 0E B6 04 EA 79 4C 82 [15:50:12]CommunicateWithHost err = 0 [15:50:12]CheckOFDResponse [15:50:12]1017 (14) - 77093643461234 [15:50:12]1041 (16) - 0000000002094248 [15:50:12]1040 (4) - 2232 [15:50:12]1012 (4) - 29.07.2024 09:49 [15:50:12]1206 (1) - 0 [15:50:12]OFD Sender: Remove packet 2232 [15:50:12]ProducePacketName [15:50:12]name=ofd_packets/00002232 [15:50:12]NVStorageDeleteData [15:50:12]Write to MH i2c: 01 00 00 51 03 54 [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 07 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 0B 0D 73 [15:50:12]RasterBufferAndPrint [15:50:12]line [15:50:12]line [15:50:12]line [15:50:12]line [15:50:12]line [15:50:12]written 0, free lines is 3348 [15:50:12]MH_Cut [15:50:12]Write to MH i2c: D1 01 00 58 03 01 2D [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: D1 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: D1 01 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: D1 01 00 58 03 00 2C [15:50:12]Write to MH i2c: 01 00 00 59 03 5C [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]OFD Sender: No OFD packet to send [15:50:13]*** Cut start [15:50:13]*** Partial cut [15:50:13]*** CUTSNS_PIN = 1 [15:50:13]*** CUTSNS_PIN = 0 [15:50:13]*** Brake cut motor [15:50:13]Read from MH i2c: 01 [15:50:13]MH_I2C_Read... [15:50:13]*** Stop cut motor [15:50:13]*** Cut end [15:50:13]Read from MH i2c: 01 07 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 FF 0F 71 [15:50:13]process_action close_receipt done [15:50:13]requested_data is exist [15:50:13]produce_requested_data [15:50:13]requested_item fm.sn is exist - process it [15:50:13]wFMCommunicate request_size=4 [15:50:13]MH_SAM_APDU [15:50:13]CAPDU: 80 11 00 00 [15:50:13]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:13]Read from MH i2c: E2 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 17 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 27 [15:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:50:13]wFMCommunicate OK [15:50:13]requested_item fd.num is exist - process it [15:50:13]SAM_PROTO_GetFieldsCounters [15:50:13]wFMCommunicate request_size=4 [15:50:13]MH_SAM_APDU [15:50:13]CAPDU: 80 13 00 00 [15:50:13]Write to MH i2c: E2 08 00 5B 03 80 13 00 00 00 00 00 00 DA [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:13]Read from MH i2c: E2 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 62 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 62 00 5B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B8 08 00 00 0E 04 04 00 0F 00 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 C6 [15:50:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B8 08 00 00 0E 04 04 00 0F 00 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 [15:50:13]wFMCommunicate OK [15:50:13]SAM_PROTO_GetFieldsCounters done [15:50:13]requested_item shift.num is exist - process it [15:50:13]requested_item shift.opened is exist - process it [15:50:13]req_shift_opened [15:50:13]FM_GetShiftState [15:50:13]SAM_PROTO_GetShiftState [15:50:13]wFMCommunicate request_size=4 [15:50:13]MH_SAM_APDU [15:50:13]CAPDU: 80 13 01 00 [15:50:13]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:14]Read from MH i2c: E2 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 0E 00 [15:50:14]MH_I2C_Read... [15:50:14]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D5 [15:50:14]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:50:14]wFMCommunicate OK [15:50:14]SAM_PROTO_GetShiftState done [15:50:14]FM_GetShiftState done [15:50:14]req_shift_opened done [15:50:14]requested_item shift.open_date is exist - process it [15:50:14]req_shift_open_date [15:50:14]req_shift_open_date done [15:50:14]produce_requested_data done [15:50:14]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2232,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [15:50:14]process_action_free close_receipt [15:50:14]json_value_free [15:50:14]json_value_free done [15:50:14]process_json_proto returns [15:50:14]Send response to host [15:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2232,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [15:50:14]free response buf [15:50:14]execute_script done [15:50:14]execute_script returns [15:50:14]free content buf [15:50:14]Sock 9.Close socket [15:50:14]Sock 9.Thread stoped [15:50: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:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:26]accept exits with 8 [15:53:26]New connection [15:53:26]New thread 3067014500 created [15:53:26]Thread 3067157860 joined [15:53:26]Waiting for new connection... [15:53:26] Sock 8.Parse request [15:53:26]Sock 8.Check first char [15:53:26]Sock 8.First char is OK [15:53:26]request: POST /json_proto HTTP/1.0 [15:53:26]Method: POST [15:53:26]URL: /json_proto [15:53:26]Method is POST - this is cgi request [15:53:26]url: /json_proto [15:53:26]query_string will be loaded in cgi processing [15:53:26]execute_cgi json_proto POST (null) [15:53:26]execute_cgi path=json_proto method=POST [15:53:26]POST find Content-Length [15:53:26]Host: 172.17.45.132:8080 [15:53:26]Content-Length: 630 [15:53:26]Content-Type: application/json [15:53:26] [15:53:26]POST finish read [15:53:26]Found Content-Length = 630 [15:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126519", "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" ] } } [15:53:26]execute_script... [15:53: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 : (3)126519", "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" ] } } [15:53:26]POST & json_proto [15:53:26]process_json_proto [15:53:26]json parsed OK: [15:53:26]protocol is kg_v1.0 [15:53:26]action value=close_receipt [15:53:26]process_action close_receipt [15:53:26]cmd_close_receipt [15:53:26]MH_GetDate [15:53:26]Write to MH i2c: F0 00 00 5D 03 4F [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: F0 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: F0 09 00 [15:53:26]MH_I2C_Read... [15:53:26]Read from MH i2c: F0 09 00 5D 03 00 F7 BA A7 66 E3 0B 90 66 FA [15:53:26]GetLastDocTimeStamp 1722268210 [15:53:26]current date 1722268407 [15:53:26]FM_GetShiftState [15:53:26]SAM_PROTO_GetShiftState [15:53:26]wFMCommunicate request_size=4 [15:53:26]MH_SAM_APDU [15:53:26]CAPDU: 80 13 01 00 [15:53:26]Write to MH i2c: E2 08 00 5E 03 80 13 01 00 00 00 00 00 DE [15:53:26]Write i2c OK [15:53:26]MH_I2C_Read... [15:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:27]Read from MH i2c: E2 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0E 00 [15:53:27]MH_I2C_Read... [15:53:27]Read from MH i2c: E2 0E 00 5E 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D7 [15:53:27]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:53:27]wFMCommunicate OK [15:53:27]SAM_PROTO_GetShiftState done [15:53:27]FM_GetShiftState done [15:53:27]opened in 1722213119 [15:53:27]opened+sec_in_day 1722299519 [15:53:27]quantity*price = 5000 [15:53:27]sum+1 = 5001 [15:53:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 82 29.07.2024 15:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2233 ФПД: 1623387171903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155327&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2233&fm=1623387171903&tin=02508201610067®Number=0000000000189667&sum=5000 0 [15:53:28]StoreToDocumentArchive [15:53:28]shift 15 fd 2233 [15:53:28]save to /storage/0015/doc_00002233 [15:53:28]save last doc name /storage/0015/doc_00002233 to /storage/kkm_last_doc_name [15:53:28]save OK [15:53:28]Clear old archive folders... [15:53:28]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:53:28]tlvbuf is 0202E820 [15:53:28]SAM_PROTO_ClearQueue [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 09 00 00 [15:53:28]Write to MH i2c: E2 08 00 6B 03 80 09 00 00 00 00 00 00 E0 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]SAM_PROTO_ClearQueue done [15:53:28]KKMCreateOFDPacket [15:53:28]OFDProtocolAddRootSTLVToBuf [15:53:28]FM_MakeSignedData [15:53:28]FM_MakeSignedData [15:53:28]SAM_PROTO_SignData [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 0D 01 02 [15:53:28]Write to MH i2c: E2 08 00 6C 03 80 0D 01 02 00 00 00 00 E8 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]wFMCommunicate request_size=255 [15:53:28]MH_SAM_APDU [15:53:28]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 52 00 00 00 F4 03 04 00 F7 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [15:53:28]Write to MH i2c: E2 02 01 6D 03 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 52 00 00 00 F4 03 04 00 F7 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 24 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]wFMCommunicate request_size=28 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 B9 08 00 00 35 04 06 00 01 79 F9 6A 6C 3F [15:53:28]Write to MH i2c: E2 1F 00 6E 03 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 B9 08 00 00 35 04 06 00 01 79 F9 6A 6C 3F 00 00 C4 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [15:53:28]RAPDU: 90 00 [15:53:28]wFMCommunicate OK [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 0D 03 02 [15:53:28]Write to MH i2c: E2 08 00 6F 03 80 0D 03 02 00 00 00 00 ED [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 0B 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 0B 00 6F 03 00 23 41 B9 22 E6 71 C5 DA 90 00 23 [15:53:28]RAPDU: 23 41 B9 22 E6 71 C5 DA 90 00 [15:53:28]wFMCommunicate OK [15:53:28]SAM_PROTO_SignData done [15:53:28]FM_MakeSignedData done [15:53:28]CreateOFDProtocolMessage [15:53:28]wFMCommunicate request_size=4 [15:53:28]MH_SAM_APDU [15:53:28]CAPDU: 80 11 00 00 [15:53:28]Write to MH i2c: E2 08 00 70 03 80 11 00 00 00 00 00 00 ED [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:28]Read from MH i2c: E2 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 17 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: E2 17 00 70 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3D [15:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:53:28]wFMCommunicate OK [15:53:28]CreateOFDProtocolMessage done [15:53:28]OFDSenderStorePacket 2233 [15:53:28]StoreOFDPacket docnum=2233 [15:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 C8 B7 19 01 01 C8 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 52 00 00 00 F4 03 04 00 F7 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B9 08 00 00 35 04 06 00 01 79 F9 6A 6C 3F 23 41 B9 22 E6 71 C5 DA [15:53:28]CheckFolder [15:53:28]dirname=/storage/ofd_packets [15:53:28]CheckFolder done [15:53:28]ProducePacketName [15:53:28]name=ofd_packets/00002233 [15:53:28]NVStorageSaveData ofd_packets/00002233 [15:53:28]File name is /storage/ofd_packets/00002233 [15:53:28]Write 319 bytes [15:53:28]NVStorageSaveData done [15:53:28]OFDSenderStorePacket done [15:53:28]KKMCreateOFDPacket done [15:53:28]NVStorageSaveData kkm_last_timestamp [15:53:28]File name is /storage/kkm_last_timestamp [15:53:28]Write 4 bytes [15:53:28]NVStorageSaveData done [15:53:28]ExternCall_PrintAddStr [15:53:28]wPrintStart [15:53:28]Write to MH i2c: 01 00 00 71 03 74 [15:53:28]Write i2c OK [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: 01 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: 01 07 00 [15:53:28]MH_I2C_Read... [15:53:28]Read from MH i2c: 01 07 00 71 03 00 00 00 00 00 FF 0F 89 [15:53:28]RasterBufferAndPrint [15:53:28]line Счет N : (3)126519 [15:53:28]line ИНН: 02508201610067 [15:53:28]line Контрольно-Кассовый Чек [15:53:28]line ПРОДАЖА [15:53:28]line Товар: 4700000160358 [15:53:28]line Вода Легенда 1л [15:53:28]line 1.000 * 50.00 [15:53:28]line = 50.00 [15:53:28]line НДС 12% НСП 1% [15:53:28]line > о реализуемом товаре [15:53:28]line ИТОГО: 50.00 [15:53:28]line НСП 1% : 0.44 [15:53:28]line НДС 12% : 5.31 [15:53:28]line Наличными: 50.00 [15:53:28]line Безнал.: 0.00 [15:53:28]line Место: АЗС № 127 "Партнер Нефть" [15:53:28]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:53:28]line СНО: Общий режим [15:53:28]line Чек 82 29.07.2024 15:53 [15:53:28]line Смена: 15 ФФД: 1.0 [15:53:28]line ЗНМ: 0300000161 [15:53:28]line РНМ: 0000000000189667 [15:53:28]line Версия ККМ: v1.0 [15:53:28]line ФМ: 0000000002094248 [15:53:28]line ФД: 2233 [15:53:28]line ФПД: 1623387171903 [15:53:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155327&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2233&fm=1623387171903&tin=02508201610067®Number=0000000000189667&sum=5000 [15:53:29]line 0 [15:53:29]OFD Sender: Processing packet 2233 [packets to send 1, broken 0] [15:53:29]ProducePacketName [15:53:29]name=ofd_packets/00002233 [15:53:29]OFD Sender: To server: pG, [15:53:29]CommunicateWithHost lk.salyk.kg:30040 [15:53:29]ConnectInit lk.salyk.kg [15:53:29]written 0, free lines is 4095 [15:53:29]Connected sock=10 [15:53:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 C8 B7 19 01 01 C8 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 52 00 00 00 F4 03 04 00 F7 BA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 B9 08 00 00 35 04 06 00 01 79 F9 6A 6C 3F 23 41 B9 22 E6 71 C5 DA [15:53:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FE 9C 47 00 53 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 32 30 39 34 32 34 38 10 04 04 00 B9 08 00 00 F4 03 04 00 63 66 A7 66 B6 04 01 00 00 C9 0C B2 18 2C A4 3F 83 [15:53:29]CommunicateWithHost err = 0 [15:53:29]CheckOFDResponse [15:53:29]1017 (14) - 77093643461234 [15:53:29]1041 (16) - 0000000002094248 [15:53:29]1040 (4) - 2233 [15:53:29]1012 (4) - 29.07.2024 09:52 [15:53:29]1206 (1) - 0 [15:53:29]OFD Sender: Remove packet 2233 [15:53:29]ProducePacketName [15:53:29]name=ofd_packets/00002233 [15:53:29]NVStorageDeleteData [15:53:29]Write to MH i2c: 01 00 00 99 03 9C [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: 01 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: 01 07 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 11 0D C1 [15:53:29]RasterBufferAndPrint [15:53:29]line [15:53:29]line [15:53:29]line [15:53:29]line [15:53:29]line [15:53:29]written 0, free lines is 3354 [15:53:29]MH_Cut [15:53:29]Write to MH i2c: D1 01 00 A0 03 01 75 [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: D1 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: D1 01 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: D1 01 00 A0 03 00 74 [15:53:29]Write to MH i2c: 01 00 00 A1 03 A4 [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]OFD Sender: No OFD packet to send [15:53:30]*** Cut start [15:53:30]*** Partial cut [15:53:30]*** CUTSNS_PIN = 1 [15:53:30]*** CUTSNS_PIN = 0 [15:53:30]*** Brake cut motor [15:53:30]Read from MH i2c: 01 [15:53:30]MH_I2C_Read... [15:53:30]*** Stop cut motor [15:53:30]*** Cut end [15:53:30]Read from MH i2c: 01 07 00 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [15:53:30]process_action close_receipt done [15:53:30]requested_data is exist [15:53:30]produce_requested_data [15:53:30]requested_item fm.sn is exist - process it [15:53:30]wFMCommunicate request_size=4 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 11 00 00 [15:53:30]Write to MH i2c: E2 08 00 A2 03 80 11 00 00 00 00 00 00 1F [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:30]Read from MH i2c: E2 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 17 00 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 17 00 A2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6F [15:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:53:30]wFMCommunicate OK [15:53:30]requested_item fd.num is exist - process it [15:53:30]SAM_PROTO_GetFieldsCounters [15:53:30]wFMCommunicate request_size=4 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 13 00 00 [15:53:30]Write to MH i2c: E2 08 00 A3 03 80 13 00 00 00 00 00 00 22 [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:30]Read from MH i2c: E2 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 62 00 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 62 00 A3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B9 08 00 00 0E 04 04 00 0F 00 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 12 [15:53:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 B9 08 00 00 0E 04 04 00 0F 00 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 [15:53:30]wFMCommunicate OK [15:53:30]SAM_PROTO_GetFieldsCounters done [15:53:30]requested_item shift.num is exist - process it [15:53:30]requested_item shift.opened is exist - process it [15:53:30]req_shift_opened [15:53:30]FM_GetShiftState [15:53:30]SAM_PROTO_GetShiftState [15:53:30]wFMCommunicate request_size=4 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 13 01 00 [15:53:30]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 0E 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1D [15:53:31]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:53:31]wFMCommunicate OK [15:53:31]SAM_PROTO_GetShiftState done [15:53:31]FM_GetShiftState done [15:53:31]req_shift_opened done [15:53:31]requested_item shift.open_date is exist - process it [15:53:31]req_shift_open_date [15:53:31]req_shift_open_date done [15:53:31]produce_requested_data done [15:53:31]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2233,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [15:53:31]process_action_free close_receipt [15:53:31]json_value_free [15:53:31]json_value_free done [15:53:31]process_json_proto returns [15:53:31]Send response to host [15:53:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2233,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [15:53:31]free response buf [15:53:31]execute_script done [15:53:31]execute_script returns [15:53:31]free content buf [15:53:31]Sock 8.Close socket [15:53:31]Sock 8.Thread stoped [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:23]accept exits with 9 [15:58:23]New connection [15:58:23]New thread 3067157860 created [15:58:23]Thread 3067014500 joined [15:58:23]Waiting for new connection... [15:58:23] Sock 9.Parse request [15:58:23]Sock 9.Check first char [15:58:23]Sock 9.First char is OK [15:58:23]request: POST /json_proto HTTP/1.0 [15:58:23]Method: POST [15:58:23]URL: /json_proto [15:58:23]Method is POST - this is cgi request [15:58:23]url: /json_proto [15:58:23]query_string will be loaded in cgi processing [15:58:23]execute_cgi json_proto POST (null) [15:58:23]execute_cgi path=json_proto method=POST [15:58:23]POST find Content-Length [15:58:23]Host: 172.17.45.132:8080 [15:58:23]Content-Length: 678 [15:58:23]Content-Type: application/json [15:58:23] [15:58:23]POST finish read [15:58:23]Found Content-Length = 678 [15:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126520", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "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" ] } } [15:58:23]execute_script... [15:58: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)126520", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "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" ] } } [15:58:23]POST & json_proto [15:58:23]process_json_proto [15:58:23]json parsed OK: [15:58:23]protocol is kg_v1.0 [15:58:23]action value=close_receipt [15:58:23]process_action close_receipt [15:58:23]cmd_close_receipt [15:58:23]MH_GetDate [15:58:23]Write to MH i2c: F0 00 00 A5 03 97 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: F0 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: F0 09 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: F0 09 00 A5 03 00 20 BC A7 66 E3 0B 90 66 6D [15:58:23]GetLastDocTimeStamp 1722268407 [15:58:23]current date 1722268704 [15:58:23]FM_GetShiftState [15:58:23]SAM_PROTO_GetShiftState [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 13 01 00 [15:58:23]Write to MH i2c: E2 08 00 A6 03 80 13 01 00 00 00 00 00 26 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 0E 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 0E 00 A6 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1F [15:58:23]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:58:23]wFMCommunicate OK [15:58:23]SAM_PROTO_GetShiftState done [15:58:23]FM_GetShiftState done [15:58:23]opened in 1722213119 [15:58:23]opened+sec_in_day 1722299519 [15:58:23]quantity*price = 11000 [15:58:23]sum+1 = 11001 [15:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 83 29.07.2024 15:58 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2234 ФПД: 195764569308006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155824&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2234&fm=195764569308006&tin=02508201610067®Number=0000000000189667&sum=11000 0 [15:58:25]StoreToDocumentArchive [15:58:25]shift 15 fd 2234 [15:58:25]save to /storage/0015/doc_00002234 [15:58:25]save last doc name /storage/0015/doc_00002234 to /storage/kkm_last_doc_name [15:58:25]save OK [15:58:25]Clear old archive folders... [15:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:58:25]tlvbuf is 020118B0 [15:58:25]SAM_PROTO_ClearQueue [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 09 00 00 [15:58:25]Write to MH i2c: E2 08 00 B3 03 80 09 00 00 00 00 00 00 28 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]SAM_PROTO_ClearQueue done [15:58:25]KKMCreateOFDPacket [15:58:25]OFDProtocolAddRootSTLVToBuf [15:58:25]FM_MakeSignedData [15:58:25]FM_MakeSignedData [15:58:25]SAM_PROTO_SignData [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 0D 01 02 [15:58:25]Write to MH i2c: E2 08 00 B4 03 80 0D 01 02 00 00 00 00 30 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]wFMCommunicate request_size=255 [15:58:25]MH_SAM_APDU [15:58:25]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 35 30 32 34 33 38 37 31 38 32 38 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 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 53 00 00 00 F4 03 04 00 20 BC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:58:25]Write to MH i2c: E2 02 01 B5 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 35 30 32 34 33 38 37 31 38 32 38 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 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 53 00 00 00 F4 03 04 00 20 BC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 5B [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]OFD Sender: No OFD packet to send [15:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]wFMCommunicate request_size=53 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 0D 02 02 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 08 00 00 35 04 06 00 B2 0B FD 9C FB 66 [15:58:25]Write to MH i2c: E2 38 00 B6 03 80 0D 02 02 30 00 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 08 00 00 35 04 06 00 B2 0B FD 9C FB 66 00 00 AA [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 0D 03 02 [15:58:25]Write to MH i2c: E2 08 00 B7 03 80 0D 03 02 00 00 00 00 35 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 0B 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 0B 00 B7 03 00 C5 3A EF F2 12 47 11 A0 90 00 20 [15:58:25]RAPDU: C5 3A EF F2 12 47 11 A0 90 00 [15:58:25]wFMCommunicate OK [15:58:25]SAM_PROTO_SignData done [15:58:25]FM_MakeSignedData done [15:58:25]CreateOFDProtocolMessage [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 11 00 00 [15:58:25]Write to MH i2c: E2 08 00 B8 03 80 11 00 00 00 00 00 00 35 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 17 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 17 00 B8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 85 [15:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:58:25]wFMCommunicate OK [15:58:25]CreateOFDProtocolMessage done [15:58:25]OFDSenderStorePacket 2234 [15:58:25]StoreOFDPacket docnum=2234 [15:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 08 A5 32 01 00 B3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 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 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 53 00 00 00 F4 03 04 00 20 BC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 08 00 00 35 04 06 00 B2 0B FD 9C FB 66 C5 3A EF F2 12 47 11 A0 [15:58:25]CheckFolder [15:58:25]dirname=/storage/ofd_packets [15:58:25]CheckFolder done [15:58:25]ProducePacketName [15:58:25]name=ofd_packets/00002234 [15:58:25]NVStorageSaveData ofd_packets/00002234 [15:58:25]File name is /storage/ofd_packets/00002234 [15:58:25]Write 344 bytes [15:58:25]NVStorageSaveData done [15:58:25]OFDSenderStorePacket done [15:58:25]KKMCreateOFDPacket done [15:58:25]NVStorageSaveData kkm_last_timestamp [15:58:25]File name is /storage/kkm_last_timestamp [15:58:25]Write 4 bytes [15:58:25]NVStorageSaveData done [15:58:25]ExternCall_PrintAddStr [15:58:25]wPrintStart [15:58:25]Write to MH i2c: 01 00 00 B9 03 BC [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: 01 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: 01 07 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 FF 0F D1 [15:58:25]RasterBufferAndPrint [15:58:25]line Счет N : (3)126520 [15:58:25]line ИНН: 02508201610067 [15:58:25]line Контрольно-Кассовый Чек [15:58:25]line ПРОДАЖА [15:58:25]line Товар: 4650243871828 [15:58:25]line Gorilla эн нап манго-кокос 0,45 ж/б [15:58:25]line 1.000 * 110.00 [15:58:25]line = 110.00 [15:58:25]line НДС 12% НСП 1% [15:58:25]line > о реализуемом товаре [15:58:25]line ИТОГО: 110.00 [15:58:25]line НСП 1% : 0.97 [15:58:25]line НДС 12% : 11.68 [15:58:25]line Наличными: 110.00 [15:58:25]line Безнал.: 0.00 [15:58:25]line Место: АЗС № 127 "Партнер Нефть" [15:58:25]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [15:58:25]line СНО: Общий режим [15:58:25]line Чек 83 29.07.2024 15:58 [15:58:25]line Смена: 15 ФФД: 1.0 [15:58:25]line ЗНМ: 0300000161 [15:58:25]line РНМ: 0000000000189667 [15:58:25]line Версия ККМ: v1.0 [15:58:25]line ФМ: 0000000002094248 [15:58:25]line ФД: 2234 [15:58:25]line ФПД: 195764569308006 [15:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155824&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2234&fm=195764569308006&tin=02508201610067®Number=0000000000189667&sum=11000 [15:58:25]line 0 [15:58:25]OFD Sender: Processing packet 2234 [packets to send 1, broken 0] [15:58:25]ProducePacketName [15:58:25]name=ofd_packets/00002234 [15:58:25]OFD Sender: To server: pG, [15:58:25]CommunicateWithHost lk.salyk.kg:30040 [15:58:25]ConnectInit lk.salyk.kg [15:58:25]written 0, free lines is 4095 [15:58:26]Connected sock=10 [15:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 3A 01 00 00 08 A5 32 01 00 B3 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 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 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 53 00 00 00 F4 03 04 00 20 BC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 08 00 00 35 04 06 00 B2 0B FD 9C FB 66 C5 3A EF F2 12 47 11 A0 [15:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 29 C6 47 00 F5 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BA 08 00 00 F4 03 04 00 8C 67 A7 66 B6 04 01 00 00 4E 5F E5 B5 C0 96 65 4F [15:58:26]CommunicateWithHost err = 0 [15:58:26]CheckOFDResponse [15:58:26]1017 (14) - 77093643461234 [15:58:26]1041 (16) - 0000000002094248 [15:58:26]1040 (4) - 2234 [15:58:26]1012 (4) - 29.07.2024 09:57 [15:58:26]1206 (1) - 0 [15:58:26]OFD Sender: Remove packet 2234 [15:58:26]ProducePacketName [15:58:26]name=ofd_packets/00002234 [15:58:26]NVStorageDeleteData [15:58:26]Write to MH i2c: 01 00 00 E2 03 E5 [15:58:26]Write i2c OK [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: 01 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: 01 07 00 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 07 0D 00 [15:58:26]RasterBufferAndPrint [15:58:26]line [15:58:26]line [15:58:26]line [15:58:26]line [15:58:26]line [15:58:26]written 0, free lines is 3344 [15:58:26]MH_Cut [15:58:26]Write to MH i2c: D1 01 00 E9 03 01 BE [15:58:26]Write i2c OK [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: D1 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: D1 01 00 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: D1 01 00 E9 03 00 BD [15:58:26]Write to MH i2c: 01 00 00 EA 03 ED [15:58:26]Write i2c OK [15:58:26]MH_I2C_Read... [15:58:26]OFD Sender: No OFD packet to send [15:58:27]*** Cut start [15:58:27]*** Partial cut [15:58:27]*** CUTSNS_PIN = 1 [15:58:27]*** CUTSNS_PIN = 0 [15:58:27]*** Brake cut motor [15:58:27]Read from MH i2c: 01 [15:58:27]MH_I2C_Read... [15:58:27]*** Stop cut motor [15:58:27]*** Cut end [15:58:27]Read from MH i2c: 01 07 00 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [15:58:27]process_action close_receipt done [15:58:27]requested_data is exist [15:58:27]produce_requested_data [15:58:27]requested_item fm.sn is exist - process it [15:58:27]wFMCommunicate request_size=4 [15:58:27]MH_SAM_APDU [15:58:27]CAPDU: 80 11 00 00 [15:58:27]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [15:58:27]Write i2c OK [15:58:27]MH_I2C_Read... [15:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:27]Read from MH i2c: E2 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 17 00 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B8 [15:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [15:58:27]wFMCommunicate OK [15:58:27]requested_item fd.num is exist - process it [15:58:27]SAM_PROTO_GetFieldsCounters [15:58:27]wFMCommunicate request_size=4 [15:58:27]MH_SAM_APDU [15:58:27]CAPDU: 80 13 00 00 [15:58:27]Write to MH i2c: E2 08 00 EC 03 80 13 00 00 00 00 00 00 6B [15:58:27]Write i2c OK [15:58:27]MH_I2C_Read... [15:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:27]Read from MH i2c: E2 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 62 00 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 62 00 EC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BA 08 00 00 0E 04 04 00 0F 00 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 5F [15:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BA 08 00 00 0E 04 04 00 0F 00 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 [15:58:27]wFMCommunicate OK [15:58:27]SAM_PROTO_GetFieldsCounters done [15:58:27]requested_item shift.num is exist - process it [15:58:27]requested_item shift.opened is exist - process it [15:58:27]req_shift_opened [15:58:27]FM_GetShiftState [15:58:27]SAM_PROTO_GetShiftState [15:58:27]wFMCommunicate request_size=4 [15:58:27]MH_SAM_APDU [15:58:27]CAPDU: 80 13 01 00 [15:58:27]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [15:58:27]Write i2c OK [15:58:27]MH_I2C_Read... [15:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:27]Read from MH i2c: E2 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 0E 00 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 66 [15:58:27]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [15:58:27]wFMCommunicate OK [15:58:27]SAM_PROTO_GetShiftState done [15:58:27]FM_GetShiftState done [15:58:27]req_shift_opened done [15:58:27]requested_item shift.open_date is exist - process it [15:58:27]req_shift_open_date [15:58:27]req_shift_open_date done [15:58:27]produce_requested_data done [15:58:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2234,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [15:58:27]process_action_free close_receipt [15:58:27]json_value_free [15:58:27]json_value_free done [15:58:27]process_json_proto returns [15:58:27]Send response to host [15:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2234,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [15:58:27]free response buf [15:58:27]execute_script done [15:58:27]execute_script returns [15:58:27]free content buf [15:58:27]Sock 9.Close socket [15:58:27]Sock 9.Thread stoped [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:03]accept exits with 8 [16:03:03]New connection [16:03:03]New thread 3067014500 created [16:03:03]Thread 3067157860 joined [16:03:03]Waiting for new connection... [16:03:03] Sock 8.Parse request [16:03:03]Sock 8.Check first char [16:03:03]Sock 8.First char is OK [16:03:03]request: POST /json_proto HTTP/1.0 [16:03:03]Method: POST [16:03:03]URL: /json_proto [16:03:03]Method is POST - this is cgi request [16:03:03]url: /json_proto [16:03:03]query_string will be loaded in cgi processing [16:03:03]execute_cgi json_proto POST (null) [16:03:03]execute_cgi path=json_proto method=POST [16:03:03]POST find Content-Length [16:03:03]Host: 172.17.45.132:8080 [16:03:03]Content-Length: 803 [16:03:03]Content-Type: application/json [16:03:03] [16:03:03]POST finish read [16:03:03]Found Content-Length = 803 [16:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:03]execute_script... [16:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:03]POST & json_proto [16:03:03]process_json_proto [16:03:03]json parsed OK: [16:03:03]protocol is kg_v1.0 [16:03:03]action value=close_receipt [16:03:03]process_action close_receipt [16:03:03]cmd_close_receipt [16:03:03]MH_GetDate [16:03:03]Write to MH i2c: F0 00 00 EE 03 E0 [16:03:03]Write i2c OK [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: F0 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: F0 09 00 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: F0 09 00 EE 03 00 38 BD A7 66 E3 0B 90 66 CF [16:03:03]GetLastDocTimeStamp 1722268704 [16:03:03]current date 1722268984 [16:03:03]FM_GetShiftState [16:03:03]SAM_PROTO_GetShiftState [16:03:03]wFMCommunicate request_size=4 [16:03:03]MH_SAM_APDU [16:03:03]CAPDU: 80 13 01 00 [16:03:03]Write to MH i2c: E2 08 00 EF 03 80 13 01 00 00 00 00 00 6F [16:03:03]Write i2c OK [16:03:03]MH_I2C_Read... [16:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:03]Read from MH i2c: E2 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: E2 0E 00 [16:03:03]MH_I2C_Read... [16:03:03]Read from MH i2c: E2 0E 00 EF 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 68 [16:03:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:03:03]wFMCommunicate OK [16:03:03]SAM_PROTO_GetShiftState done [16:03:03]FM_GetShiftState done [16:03:03]opened in 1722213119 [16:03:03]opened+sec_in_day 1722299519 [16:03:03]quantity*price = 150041 [16:03:03]sum+1 = 150042 [16:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 84 29.07.2024 16:03 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2235 ФПД: 53814920741016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T160304&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2235&fm=53814920741016&tin=02508201610067®Number=0000000000189667&sum=150041 [16:03:04]StoreToDocumentArchive [16:03:04]shift 15 fd 2235 [16:03:04]save to /storage/0015/doc_00002235 [16:03:04]save last doc name /storage/0015/doc_00002235 to /storage/kkm_last_doc_name [16:03:04]save OK [16:03:04]Clear old archive folders... [16:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:04]tlvbuf is 02032660 [16:03:04]SAM_PROTO_ClearQueue [16:03:04]wFMCommunicate request_size=4 [16:03:04]MH_SAM_APDU [16:03:04]CAPDU: 80 09 00 00 [16:03:04]Write to MH i2c: E2 08 00 FC 03 80 09 00 00 00 00 00 00 71 [16:03:04]Write i2c OK [16:03:04]MH_I2C_Read... [16:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:04]Read from MH i2c: E2 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: E2 03 00 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [16:03:04]RAPDU: 90 00 [16:03:04]wFMCommunicate OK [16:03:04]SAM_PROTO_ClearQueue done [16:03:04]KKMCreateOFDPacket [16:03:04]OFDProtocolAddRootSTLVToBuf [16:03:04]FM_MakeSignedData [16:03:04]FM_MakeSignedData [16:03:04]SAM_PROTO_SignData [16:03:04]wFMCommunicate request_size=4 [16:03:04]MH_SAM_APDU [16:03:04]CAPDU: 80 0D 01 02 [16:03:04]Write to MH i2c: E2 08 00 FD 03 80 0D 01 02 00 00 00 00 79 [16:03:04]Write i2c OK [16:03:04]MH_I2C_Read... [16:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:04]Read from MH i2c: E2 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: E2 03 00 [16:03:04]MH_I2C_Read... [16:03:04]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [16:03:04]RAPDU: 90 00 [16:03:04]wFMCommunicate OK [16:03:04]wFMCommunicate request_size=255 [16:03:04]MH_SAM_APDU [16:03:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 38 BD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 08 00 00 35 04 06 00 30 [16:03:04]Write to MH i2c: E2 02 01 FE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 38 BD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 08 00 00 35 04 06 00 30 00 00 1F [16:03:04]Write i2c OK [16:03:04]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [16:03:05]RAPDU: 90 00 [16:03:05]wFMCommunicate OK [16:03:05]wFMCommunicate request_size=10 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 0D 02 02 05 F1 C3 3C 00 98 [16:03:05]Write to MH i2c: E2 0D 00 FF 03 80 0D 02 02 05 00 F1 C3 3C 00 98 00 00 0E [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [16:03:05]RAPDU: 90 00 [16:03:05]wFMCommunicate OK [16:03:05]wFMCommunicate request_size=4 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 0D 03 02 [16:03:05]Write to MH i2c: E2 08 00 00 04 80 0D 03 02 00 00 00 00 7F [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 0B 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 0B 00 00 04 00 8A E7 7A FD 5D 64 45 E3 90 00 51 [16:03:05]RAPDU: 8A E7 7A FD 5D 64 45 E3 90 00 [16:03:05]wFMCommunicate OK [16:03:05]SAM_PROTO_SignData done [16:03:05]FM_MakeSignedData done [16:03:05]CreateOFDProtocolMessage [16:03:05]wFMCommunicate request_size=4 [16:03:05]MH_SAM_APDU [16:03:05]CAPDU: 80 11 00 00 [16:03:05]Write to MH i2c: E2 08 00 01 04 80 11 00 00 00 00 00 00 7F [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:05]Read from MH i2c: E2 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 17 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: E2 17 00 01 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CF [16:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:03:05]wFMCommunicate OK [16:03:05]CreateOFDProtocolMessage done [16:03:05]OFDSenderStorePacket 2235 [16:03:05]StoreOFDPacket docnum=2235 [16:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 13 44 07 01 E6 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 38 BD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 08 00 00 35 04 06 00 30 F1 C3 3C 00 98 8A E7 7A FD 5D 64 45 E3 [16:03:05]CheckFolder [16:03:05]dirname=/storage/ofd_packets [16:03:05]CheckFolder done [16:03:05]ProducePacketName [16:03:05]name=ofd_packets/00002235 [16:03:05]NVStorageSaveData ofd_packets/00002235 [16:03:05]File name is /storage/ofd_packets/00002235 [16:03:05]Write 301 bytes [16:03:05]NVStorageSaveData done [16:03:05]OFDSenderStorePacket done [16:03:05]KKMCreateOFDPacket done [16:03:05]NVStorageSaveData kkm_last_timestamp [16:03:05]File name is /storage/kkm_last_timestamp [16:03:05]Write 4 bytes [16:03:05]NVStorageSaveData done [16:03:05]ExternCall_PrintAddStr [16:03:05]wPrintStart [16:03:05]Write to MH i2c: 01 00 00 02 04 06 [16:03:05]Write i2c OK [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: 01 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: 01 07 00 [16:03:05]MH_I2C_Read... [16:03:05]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [16:03:05]RasterBufferAndPrint [16:03:05]line Счет N : (1)609935 [16:03:05]line ИНН: 02508201610067 [16:03:05]line Контрольно-Кассовый Чек [16:03:05]line ПРОДАЖА [16:03:05]line ТРК (МРК, ГНК) : 52 [16:03:05]line Товар: 2710124130 [16:03:05]line Аи-92-К-2 [16:03:05]line 22.130 * 67.80 [16:03:05]line = 1500.41 [16:03:05]line НДС 12% НСП 1% [16:03:05]line > о реализуемом товаре [16:03:05]line ИТОГО: 1500.41 [16:03:05]line НСП 1% : 13.28 [16:03:05]line НДС 12% : 159.34 [16:03:05]line Наличными: 0.00 [16:03:05]line Безнал.: 1500.41 [16:03:05]line Место: АЗС № 127 "Партнер Нефть" [16:03:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:03:05]line СНО: Общий режим [16:03:05]line Чек 84 29.07.2024 16:03 [16:03:05]line Смена: 15 ФФД: 1.0 [16:03:05]line ЗНМ: 0300000161 [16:03:05]line РНМ: 0000000000189667 [16:03:05]line Версия ККМ: v1.0 [16:03:05]line Платежная система: O! деньги [16:03:05]line ФМ: 0000000002094248 [16:03:05]line ФД: 2235 [16:03:05]line ФПД: 53814920741016 [16:03:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T160304&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2235&fm=53814920741016&tin=02508201610067®Number=0000000000189667&sum=150041 [16:03:05]OFD Sender: Processing packet 2235 [packets to send 1, broken 0] [16:03:05]ProducePacketName [16:03:05]name=ofd_packets/00002235 [16:03:05]OFD Sender: To server: pG, [16:03:05]CommunicateWithHost lk.salyk.kg:30040 [16:03:05]ConnectInit lk.salyk.kg [16:03:05]written 0, free lines is 4095 [16:03:05]Connected sock=10 [16:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 13 44 07 01 E6 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 38 BD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 08 00 00 35 04 06 00 30 F1 C3 3C 00 98 8A E7 7A FD 5D 64 45 E3 [16:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E2 31 47 00 15 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BB 08 00 00 F4 03 04 00 A4 68 A7 66 B6 04 01 00 00 FC F2 9A 35 7F F7 9D 82 [16:03:06]CommunicateWithHost err = 0 [16:03:06]CheckOFDResponse [16:03:06]1017 (14) - 77093643461234 [16:03:06]1041 (16) - 0000000002094248 [16:03:06]1040 (4) - 2235 [16:03:06]1012 (4) - 29.07.2024 10:02 [16:03:06]1206 (1) - 0 [16:03:06]OFD Sender: Remove packet 2235 [16:03:06]ProducePacketName [16:03:06]name=ofd_packets/00002235 [16:03:06]NVStorageDeleteData [16:03:06]Write to MH i2c: 01 00 00 2C 04 30 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 07 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 09 0D 4D [16:03:06]RasterBufferAndPrint [16:03:06]line [16:03:06]line [16:03:06]line [16:03:06]line [16:03:06]line [16:03:06]written 0, free lines is 3343 [16:03:06]MH_Cut [16:03:06]Write to MH i2c: D1 01 00 33 04 01 09 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: D1 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: D1 01 00 [16:03:06]MH_I2C_Read... [16:03:06]Read from MH i2c: D1 01 00 33 04 00 08 [16:03:06]Write to MH i2c: 01 00 00 34 04 38 [16:03:06]Write i2c OK [16:03:06]MH_I2C_Read... [16:03:06]OFD Sender: No OFD packet to send [16:03:06]*** Cut start [16:03:06]*** Partial cut [16:03:06]*** CUTSNS_PIN = 1 [16:03:06]*** CUTSNS_PIN = 0 [16:03:07]*** Brake cut motor [16:03:07]Read from MH i2c: 01 [16:03:07]MH_I2C_Read... [16:03:07]*** Stop cut motor [16:03:07]*** Cut end [16:03:07]Read from MH i2c: 01 07 00 [16:03:07]MH_I2C_Read... [16:03:07]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [16:03:07]process_action close_receipt done [16:03:07]requested_data is exist [16:03:07]produce_requested_data [16:03:07]requested_item fm.sn is exist - process it [16:03:07]wFMCommunicate request_size=4 [16:03:07]MH_SAM_APDU [16:03:07]CAPDU: 80 11 00 00 [16:03:07]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [16:03:07]Write i2c OK [16:03:07]MH_I2C_Read... [16:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:07]Read from MH i2c: E2 [16:03:07]MH_I2C_Read... [16:03:07]Read from MH i2c: E2 17 00 [16:03:07]MH_I2C_Read... [16:03:07]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 03 [16:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:03:07]wFMCommunicate OK [16:03:07]requested_item fd.num is exist - process it [16:03:07]SAM_PROTO_GetFieldsCounters [16:03:07]wFMCommunicate request_size=4 [16:03:07]MH_SAM_APDU [16:03:07]CAPDU: 80 13 00 00 [16:03:07]Write to MH i2c: E2 08 00 36 04 80 13 00 00 00 00 00 00 B6 [16:03:07]Write i2c OK [16:03:07]MH_I2C_Read... [16:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:07]Read from MH i2c: E2 [16:03:07]MH_I2C_Read... [16:03:07]Read from MH i2c: E2 62 00 [16:03:07]MH_I2C_Read... [16:03:07]Read from MH i2c: E2 62 00 36 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BB 08 00 00 0E 04 04 00 0F 00 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 AE [16:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BB 08 00 00 0E 04 04 00 0F 00 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:03:07]wFMCommunicate OK [16:03:07]SAM_PROTO_GetFieldsCounters done [16:03:07]requested_item shift.num is exist - process it [16:03:07]requested_item shift.opened is exist - process it [16:03:07]req_shift_opened [16:03:07]FM_GetShiftState [16:03:07]SAM_PROTO_GetShiftState [16:03:07]wFMCommunicate request_size=4 [16:03:07]MH_SAM_APDU [16:03:07]CAPDU: 80 13 01 00 [16:03:07]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [16:03:07]Write i2c OK [16:03:07]MH_I2C_Read... [16:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:07]Read from MH i2c: E2 [16:03:07]MH_I2C_Read... [16:03:07]Read from MH i2c: E2 0E 00 [16:03:07]MH_I2C_Read... [16:03:07]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B1 [16:03:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:03:07]wFMCommunicate OK [16:03:07]SAM_PROTO_GetShiftState done [16:03:07]FM_GetShiftState done [16:03:07]req_shift_opened done [16:03:07]requested_item shift.open_date is exist - process it [16:03:07]req_shift_open_date [16:03:07]req_shift_open_date done [16:03:07]produce_requested_data done [16:03:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2235,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:03:07]process_action_free close_receipt [16:03:07]json_value_free [16:03:07]json_value_free done [16:03:07]process_json_proto returns [16:03:07]Send response to host [16:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2235,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:03:07]free response buf [16:03:07]execute_script done [16:03:07]execute_script returns [16:03:07]free content buf [16:03:07]Sock 8.Close socket [16:03:07]Sock 8.Thread stoped [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:42]accept exits with 9 [16:15:42]New connection [16:15:42]New thread 3067157860 created [16:15:42]Thread 3067014500 joined [16:15:42]Waiting for new connection... [16:15:42] Sock 9.Parse request [16:15:42]Sock 9.Check first char [16:15:42]Sock 9.First char is OK [16:15:42]request: POST /json_proto HTTP/1.0 [16:15:42]Method: POST [16:15:42]URL: /json_proto [16:15:42]Method is POST - this is cgi request [16:15:42]url: /json_proto [16:15:42]query_string will be loaded in cgi processing [16:15:42]execute_cgi json_proto POST (null) [16:15:42]execute_cgi path=json_proto method=POST [16:15:42]POST find Content-Length [16:15:42]Host: 172.17.45.132:8080 [16:15:42]Content-Length: 634 [16:15:42]Content-Type: application/json [16:15:42] [16:15:42]POST finish read [16:15:42]Found Content-Length = 634 [16:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126521", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:42]execute_script... [16:15:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126521", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:42]POST & json_proto [16:15:42]process_json_proto [16:15:42]json parsed OK: [16:15:42]protocol is kg_v1.0 [16:15:42]action value=close_receipt [16:15:42]process_action close_receipt [16:15:42]cmd_close_receipt [16:15:42]MH_GetDate [16:15:42]Write to MH i2c: F0 00 00 38 04 2B [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 09 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 09 00 38 04 00 2F C0 A7 66 E3 0B 90 66 14 [16:15:42]GetLastDocTimeStamp 1722268984 [16:15:42]current date 1722269743 [16:15:42]FM_GetShiftState [16:15:42]SAM_PROTO_GetShiftState [16:15:42]wFMCommunicate request_size=4 [16:15:42]MH_SAM_APDU [16:15:42]CAPDU: 80 13 01 00 [16:15:42]Write to MH i2c: E2 08 00 39 04 80 13 01 00 00 00 00 00 BA [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:42]Read from MH i2c: E2 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: E2 0E 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: E2 0E 00 39 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B3 [16:15:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:15:42]wFMCommunicate OK [16:15:42]SAM_PROTO_GetShiftState done [16:15:42]FM_GetShiftState done [16:15:42]opened in 1722213119 [16:15:42]opened+sec_in_day 1722299519 [16:15:42]quantity*price = 12000 [16:15:42]sum+1 = 12001 [16:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 85 29.07.2024 16:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2236 ФПД: 61657373998501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161543&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2236&fm=61657373998501&tin=02508201610067®Number=0000000000189667&sum=12000 0 [16:15:43]StoreToDocumentArchive [16:15:43]shift 15 fd 2236 [16:15:43]save to /storage/0015/doc_00002236 [16:15:43]save last doc name /storage/0015/doc_00002236 to /storage/kkm_last_doc_name [16:15:43]save OK [16:15:43]Clear old archive folders... [16:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:15:43]tlvbuf is 0201B6E0 [16:15:43]SAM_PROTO_ClearQueue [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 09 00 00 [16:15:43]Write to MH i2c: E2 08 00 46 04 80 09 00 00 00 00 00 00 BC [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]SAM_PROTO_ClearQueue done [16:15:43]KKMCreateOFDPacket [16:15:43]OFDProtocolAddRootSTLVToBuf [16:15:43]FM_MakeSignedData [16:15:43]FM_MakeSignedData [16:15:43]SAM_PROTO_SignData [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 0D 01 02 [16:15:43]Write to MH i2c: E2 08 00 47 04 80 0D 01 02 00 00 00 00 C4 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]wFMCommunicate request_size=255 [16:15:43]MH_SAM_APDU [16:15:43]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2F C0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:15:43]Write to MH i2c: E2 02 01 48 04 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2F C0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 BB [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]wFMCommunicate request_size=30 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 BC 08 00 00 35 04 06 00 38 13 B9 DF FD A5 [16:15:43]Write to MH i2c: E2 21 00 49 04 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 BC 08 00 00 35 04 06 00 38 13 B9 DF FD A5 00 00 06 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 0D 03 02 [16:15:43]Write to MH i2c: E2 08 00 4A 04 80 0D 03 02 00 00 00 00 C9 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 0B 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 0B 00 4A 04 00 02 90 C6 06 5B D8 A1 E4 90 00 E0 [16:15:43]RAPDU: 02 90 C6 06 5B D8 A1 E4 90 00 [16:15:43]wFMCommunicate OK [16:15:43]SAM_PROTO_SignData done [16:15:43]FM_MakeSignedData done [16:15:43]CreateOFDProtocolMessage [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 11 00 00 [16:15:43]Write to MH i2c: E2 08 00 4B 04 80 11 00 00 00 00 00 00 C9 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 17 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 17 00 4B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 19 [16:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:15:43]wFMCommunicate OK [16:15:43]CreateOFDProtocolMessage done [16:15:43]OFDSenderStorePacket 2236 [16:15:43]StoreOFDPacket docnum=2236 [16:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 96 CF 1B 01 F1 14 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2F C0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 08 00 00 35 04 06 00 38 13 B9 DF FD A5 02 90 C6 06 5B D8 A1 E4 [16:15:43]CheckFolder [16:15:43]dirname=/storage/ofd_packets [16:15:43]CheckFolder done [16:15:43]ProducePacketName [16:15:43]name=ofd_packets/00002236 [16:15:43]NVStorageSaveData ofd_packets/00002236 [16:15:43]File name is /storage/ofd_packets/00002236 [16:15:43]Write 321 bytes [16:15:43]NVStorageSaveData done [16:15:43]OFDSenderStorePacket done [16:15:43]KKMCreateOFDPacket done [16:15:43]NVStorageSaveData kkm_last_timestamp [16:15:43]File name is /storage/kkm_last_timestamp [16:15:43]Write 4 bytes [16:15:43]NVStorageSaveData done [16:15:43]ExternCall_PrintAddStr [16:15:43]wPrintStart [16:15:43]Write to MH i2c: 01 00 00 4C 04 50 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: 01 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: 01 07 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 FF 0F 65 [16:15:43]RasterBufferAndPrint [16:15:43]line Счет N : (3)126521 [16:15:43]line ИНН: 02508201610067 [16:15:43]line Контрольно-Кассовый Чек [16:15:43]line ПРОДАЖА [16:15:43]line Товар: 4700025313937 [16:15:43]line ВОДКА МЯГКАЯ 0,1л [16:15:43]line 2.000 * 60.00 [16:15:43]line = 120.00 [16:15:43]line НДС 12% НСП 1% [16:15:43]line > о реализуемом товаре [16:15:43]line ИТОГО: 120.00 [16:15:43]line НСП 1% : 1.06 [16:15:43]line НДС 12% : 12.74 [16:15:43]line Наличными: 120.00 [16:15:43]line Безнал.: 0.00 [16:15:43]line Место: АЗС № 127 "Партнер Нефть" [16:15:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:15:43]line СНО: Общий режим [16:15:43]line Чек 85 29.07.2024 16:15 [16:15:43]line Смена: 15 ФФД: 1.0 [16:15:43]line ЗНМ: 0300000161 [16:15:43]line РНМ: 0000000000189667 [16:15:44]line Версия ККМ: v1.0 [16:15:44]line ФМ: 0000000002094248 [16:15:44]line ФД: 2236 [16:15:44]line ФПД: 61657373998501 [16:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161543&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2236&fm=61657373998501&tin=02508201610067®Number=0000000000189667&sum=12000 [16:15:44]line 0 [16:15:44]OFD Sender: Processing packet 2236 [packets to send 1, broken 0] [16:15:44]ProducePacketName [16:15:44]name=ofd_packets/00002236 [16:15:44]OFD Sender: To server: pG, [16:15:44]CommunicateWithHost lk.salyk.kg:30040 [16:15:44]ConnectInit lk.salyk.kg [16:15:44]written 0, free lines is 4095 [16:15:44]Connected sock=10 [16:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 96 CF 1B 01 F1 14 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 2F C0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 08 00 00 35 04 06 00 38 13 B9 DF FD A5 02 90 C6 06 5B D8 A1 E4 [16:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8E 0D 47 00 4E EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BC 08 00 00 F4 03 04 00 9B 6B A7 66 B6 04 01 00 00 C3 A8 44 DB 8C 26 74 CB [16:15:44]CommunicateWithHost err = 0 [16:15:44]CheckOFDResponse [16:15:44]1017 (14) - 77093643461234 [16:15:44]1041 (16) - 0000000002094248 [16:15:44]1040 (4) - 2236 [16:15:44]1012 (4) - 29.07.2024 10:14 [16:15:44]1206 (1) - 0 [16:15:44]OFD Sender: Remove packet 2236 [16:15:44]ProducePacketName [16:15:44]name=ofd_packets/00002236 [16:15:44]NVStorageDeleteData [16:15:44]Write to MH i2c: 01 00 00 74 04 78 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 07 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 26 0D B2 [16:15:44]RasterBufferAndPrint [16:15:44]line [16:15:44]line [16:15:44]line [16:15:44]line [16:15:44]line [16:15:44]written 0, free lines is 3372 [16:15:44]MH_Cut [16:15:44]Write to MH i2c: D1 01 00 7B 04 01 51 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: D1 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: D1 01 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: D1 01 00 7B 04 00 50 [16:15:44]Write to MH i2c: 01 00 00 7C 04 80 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:45]OFD Sender: No OFD packet to send [16:15:45]*** Cut start [16:15:45]*** Partial cut [16:15:45]*** CUTSNS_PIN = 1 [16:15:45]*** CUTSNS_PIN = 0 [16:15:45]*** Brake cut motor [16:15:45]Read from MH i2c: 01 [16:15:45]MH_I2C_Read... [16:15:45]*** Stop cut motor [16:15:45]*** Cut end [16:15:45]Read from MH i2c: 01 07 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [16:15:45]process_action close_receipt done [16:15:45]requested_data is exist [16:15:45]produce_requested_data [16:15:45]requested_item fm.sn is exist - process it [16:15:45]wFMCommunicate request_size=4 [16:15:45]MH_SAM_APDU [16:15:45]CAPDU: 80 11 00 00 [16:15:45]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:45]Read from MH i2c: E2 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 17 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4B [16:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:15:45]wFMCommunicate OK [16:15:45]requested_item fd.num is exist - process it [16:15:45]SAM_PROTO_GetFieldsCounters [16:15:45]wFMCommunicate request_size=4 [16:15:45]MH_SAM_APDU [16:15:45]CAPDU: 80 13 00 00 [16:15:45]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:46]Read from MH i2c: E2 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 62 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 62 00 7E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BC 08 00 00 0E 04 04 00 0F 00 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 FA [16:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 BC 08 00 00 0E 04 04 00 0F 00 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:15:46]wFMCommunicate OK [16:15:46]SAM_PROTO_GetFieldsCounters done [16:15:46]requested_item shift.num is exist - process it [16:15:46]requested_item shift.opened is exist - process it [16:15:46]req_shift_opened [16:15:46]FM_GetShiftState [16:15:46]SAM_PROTO_GetShiftState [16:15:46]wFMCommunicate request_size=4 [16:15:46]MH_SAM_APDU [16:15:46]CAPDU: 80 13 01 00 [16:15:46]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:46]Read from MH i2c: E2 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 0E 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F9 [16:15:46]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:15:46]wFMCommunicate OK [16:15:46]SAM_PROTO_GetShiftState done [16:15:46]FM_GetShiftState done [16:15:46]req_shift_opened done [16:15:46]requested_item shift.open_date is exist - process it [16:15:46]req_shift_open_date [16:15:46]req_shift_open_date done [16:15:46]produce_requested_data done [16:15:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2236,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:15:46]process_action_free close_receipt [16:15:46]json_value_free [16:15:46]json_value_free done [16:15:46]process_json_proto returns [16:15:46]Send response to host [16:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2236,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:15:46]free response buf [16:15:46]execute_script done [16:15:46]execute_script returns [16:15:46]free content buf [16:15:46]Sock 9.Close socket [16:15:46]Sock 9.Thread stoped [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:29:17]ConnectInit Can't connect to host [16:29:20]ConnectInit Can't take IP for lk.salyk.kg [16:29:20]CommunicateWithHost connect error [16:29:20]CommunicateWithHost err = -1 [16:29:20]OFD Sender: Server communicate error [16:29:25]OFD Sender: Processing packet 2237 [packets to send 3, broken 0] [16:29:25]ProducePacketName [16:29:25]name=ofd_packets/00002237 [16:29:25]OFD Sender: To server: pG, [16:29:25]CommunicateWithHost lk.salyk.kg:30040 [16:29:25]ConnectInit lk.salyk.kg [16:29:25]Connected sock=8 [16:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 CF 03 00 00 13 38 C7 03 22 44 5A 03 01 00 03 00 BB 03 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 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 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 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 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 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 78 37 00 00 00 00 13 04 06 00 78 37 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 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 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 5F 00 8A 04 08 00 38 30 30 35 30 31 32 34 06 04 20 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 74 69 63 20 74 61 63 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 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 FC 03 06 00 6C 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E4 C1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BD 08 00 00 35 04 06 00 39 DB A1 33 A3 07 45 E1 33 11 E1 E0 59 8A [16:29:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 64 66 47 00 7B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BD 08 00 00 F4 03 04 00 D0 6E A7 66 B6 04 01 00 00 42 1E 51 B1 0E 9D FD C4 [16:29:26]CommunicateWithHost err = 0 [16:29:26]CheckOFDResponse [16:29:26]1017 (14) - 77093643461234 [16:29:26]1041 (16) - 0000000002094248 [16:29:26]1040 (4) - 2237 [16:29:26]1012 (4) - 29.07.2024 10:28 [16:29:26]1206 (1) - 0 [16:29:26]OFD Sender: Remove packet 2237 [16:29:26]ProducePacketName [16:29:26]name=ofd_packets/00002237 [16:29:26]NVStorageDeleteData [16:29:26]OFD Sender: Processing packet 2238 [packets to send 2, broken 0] [16:29:26]ProducePacketName [16:29:26]name=ofd_packets/00002238 [16:29:26]OFD Sender: To server: pG, [16:29:26]CommunicateWithHost lk.salyk.kg:30040 [16:29:26]ConnectInit lk.salyk.kg [16:29:26]Connected sock=8 [16:29:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A7 01 00 00 5D EA 9F 01 16 A5 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 6F C2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BE 08 00 00 35 04 06 00 12 36 4F 4F 47 D6 25 F4 A6 10 F8 70 69 75 [16:29:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DA 65 47 00 E8 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 32 30 39 34 32 34 38 10 04 04 00 BE 08 00 00 F4 03 04 00 D1 6E A7 66 B6 04 01 00 00 81 49 FA AB E8 EF 9D 7A [16:29:26]CommunicateWithHost err = 0 [16:29:26]CheckOFDResponse [16:29:26]1017 (14) - 77093643461234 [16:29:26]1041 (16) - 0000000002094248 [16:29:26]1040 (4) - 2238 [16:29:26]1012 (4) - 29.07.2024 10:28 [16:29:26]1206 (1) - 0 [16:29:26]OFD Sender: Remove packet 2238 [16:29:26]ProducePacketName [16:29:26]name=ofd_packets/00002238 [16:29:26]NVStorageDeleteData [16:29:27]OFD Sender: Processing packet 2239 [packets to send 1, broken 0] [16:29:27]ProducePacketName [16:29:27]name=ofd_packets/00002239 [16:29:27]OFD Sender: To server: pG, [16:29:27]CommunicateWithHost lk.salyk.kg:30040 [16:29:27]ConnectInit lk.salyk.kg [16:29:27]Connected sock=8 [16:29:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 30 97 16 01 18 96 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 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 91 C2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 BF 08 00 00 35 04 06 00 F2 2C 3B 79 59 DB 18 EC 56 A0 8D E0 CB A2 [16:29:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9A 9E 47 00 A3 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 32 30 39 34 32 34 38 10 04 04 00 BF 08 00 00 F4 03 04 00 D2 6E A7 66 B6 04 01 00 00 74 E8 63 90 FE A7 83 44 [16:29:27]CommunicateWithHost err = 0 [16:29:27]CheckOFDResponse [16:29:27]1017 (14) - 77093643461234 [16:29:27]1041 (16) - 0000000002094248 [16:29:27]1040 (4) - 2239 [16:29:27]1012 (4) - 29.07.2024 10:28 [16:29:27]1206 (1) - 0 [16:29:27]OFD Sender: Remove packet 2239 [16:29:27]ProducePacketName [16:29:27]name=ofd_packets/00002239 [16:29:27]NVStorageDeleteData [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:05]accept exits with 11 [16:30:05]New connection [16:30:05]New thread 3067157860 created [16:30:05]Thread 3067014500 joined [16:30:05]Waiting for new connection... [16:30:05] Sock 11.Parse request [16:30:05]Sock 11.Check first char [16:30:05]Sock 11.First char is OK [16:30:05]request: POST /json_proto HTTP/1.0 [16:30:05]Method: POST [16:30:05]URL: /json_proto [16:30:05]Method is POST - this is cgi request [16:30:05]url: /json_proto [16:30:05]query_string will be loaded in cgi processing [16:30:05]execute_cgi json_proto POST (null) [16:30:05]execute_cgi path=json_proto method=POST [16:30:05]POST find Content-Length [16:30:05]Host: 172.17.45.132:8080 [16:30:05]Content-Length: 1217 [16:30:05]Content-Type: application/json [16:30:05] [16:30:05]POST finish read [16:30:05]Found Content-Length = 1217 [16:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126525", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" ] } } [16:30:05]execute_script... [16: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 : (3)126525", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" ] } } [16:30:05]POST & json_proto [16:30:05]process_json_proto [16:30:05]json parsed OK: [16:30:05]protocol is kg_v1.0 [16:30:05]action value=close_receipt [16:30:05]process_action close_receipt [16:30:05]cmd_close_receipt [16:30:05]MH_GetDate [16:30:05]Write to MH i2c: F0 00 00 89 05 7D [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 09 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 09 00 89 05 00 8E C3 A7 66 E3 0B 90 66 C8 [16:30:05]GetLastDocTimeStamp 1722270353 [16:30:05]current date 1722270606 [16:30:05]FM_GetShiftState [16:30:05]SAM_PROTO_GetShiftState [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 13 01 00 [16:30:05]Write to MH i2c: E2 08 00 8A 05 80 13 01 00 00 00 00 00 0C [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 8A 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 05 [16:30:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:30:05]wFMCommunicate OK [16:30:05]SAM_PROTO_GetShiftState done [16:30:05]FM_GetShiftState done [16:30:05]opened in 1722213119 [16:30:05]opened+sec_in_day 1722299519 [16:30:05]quantity*price = 3400 [16:30:05]sum+1 = 3401 [16:30:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.07 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 89 29.07.2024 16:30 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2240 ФПД: 214138766634714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163006&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2240&fm=214138766634714&tin=02508201610067®Number=0000000000189667&sum=18900 0 [16:30:06]StoreToDocumentArchive [16:30:06]shift 15 fd 2240 [16:30:06]save to /storage/0015/doc_00002240 [16:30:06]save last doc name /storage/0015/doc_00002240 to /storage/kkm_last_doc_name [16:30:06]save OK [16:30:06]Clear old archive folders... [16:30:06]ProcessDocumentItem done err = 0, tmpTLVsize=515 [16:30:06]tlvbuf is 0203DB50 [16:30:06]SAM_PROTO_ClearQueue [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 09 00 00 [16:30:06]Write to MH i2c: E2 08 00 97 05 80 09 00 00 00 00 00 00 0E [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]SAM_PROTO_ClearQueue done [16:30:06]KKMCreateOFDPacket [16:30:06]OFDProtocolAddRootSTLVToBuf [16:30:06]FM_MakeSignedData [16:30:06]FM_MakeSignedData [16:30:06]SAM_PROTO_SignData [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 01 02 [16:30:06]Write to MH i2c: E2 08 00 98 05 80 0D 01 02 00 00 00 00 16 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]wFMCommunicate request_size=255 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 02 02 FA 03 00 03 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 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 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 [16:30:06]Write to MH i2c: E2 02 01 99 05 80 0D 02 02 FA 00 03 00 03 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 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 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 00 00 E8 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [16:30:07]RAPDU: 90 00 [16:30:07]wFMCommunicate OK [16:30:07]wFMCommunicate request_size=255 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 0D 02 02 FA 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 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 59 00 00 00 F4 03 04 00 8E C3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 [16:30:07]Write to MH i2c: E2 02 01 9A 05 80 0D 02 02 FA 00 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 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 59 00 00 00 F4 03 04 00 8E C3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 00 00 7D [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [16:30:07]RAPDU: 90 00 [16:30:07]wFMCommunicate OK [16:30:07]wFMCommunicate request_size=24 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 0D 02 02 13 38 10 04 04 00 C0 08 00 00 35 04 06 00 C2 C2 11 1E 2E DA [16:30:07]Write to MH i2c: E2 1B 00 9B 05 80 0D 02 02 13 00 38 10 04 04 00 C0 08 00 00 35 04 06 00 C2 C2 11 1E 2E DA 00 00 52 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [16:30:07]RAPDU: 90 00 [16:30:07]wFMCommunicate OK [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 0D 03 02 [16:30:07]Write to MH i2c: E2 08 00 9C 05 80 0D 03 02 00 00 00 00 1C [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0B 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0B 00 9C 05 00 EA 75 C8 78 1A CA B1 34 90 00 85 [16:30:07]RAPDU: EA 75 C8 78 1A CA B1 34 90 00 [16:30:07]wFMCommunicate OK [16:30:07]SAM_PROTO_SignData done [16:30:07]FM_MakeSignedData done [16:30:07]CreateOFDProtocolMessage [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 11 00 00 [16:30:07]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 17 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6C [16:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:30:07]wFMCommunicate OK [16:30:07]CreateOFDProtocolMessage done [16:30:07]OFDSenderStorePacket 2240 [16:30:07]StoreOFDPacket docnum=2240 [16:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 17 02 00 00 C5 E5 0F 02 3C F5 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 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 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 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 59 00 00 00 F4 03 04 00 8E C3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C0 08 00 00 35 04 06 00 C2 C2 11 1E 2E DA EA 75 C8 78 1A CA B1 34 [16:30:07]CheckFolder [16:30:07]dirname=/storage/ofd_packets [16:30:07]CheckFolder done [16:30:07]ProducePacketName [16:30:07]name=ofd_packets/00002240 [16:30:07]NVStorageSaveData ofd_packets/00002240 [16:30:07]File name is /storage/ofd_packets/00002240 [16:30:07]Write 565 bytes [16:30:07]NVStorageSaveData done [16:30:07]OFDSenderStorePacket done [16:30:07]KKMCreateOFDPacket done [16:30:07]NVStorageSaveData kkm_last_timestamp [16:30:07]File name is /storage/kkm_last_timestamp [16:30:07]Write 4 bytes [16:30:07]NVStorageSaveData done [16:30:07]ExternCall_PrintAddStr [16:30:07]wPrintStart [16:30:07]Write to MH i2c: 01 00 00 9E 05 A3 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 FF 0F B8 [16:30:07]RasterBufferAndPrint [16:30:07]line Счет N : (3)126525 [16:30:07]line ИНН: 02508201610067 [16:30:07]line Контрольно-Кассовый Чек [16:30:07]line ПРОДАЖА [16:30:07]line Товар: 4620017451303 [16:30:07]line Кар.с жев.конф.Страйк 11.3г/50 [16:30:07]line 2.000 * 17.00 [16:30:07]line = 34.00 [16:30:07]line НДС 12% НСП 1% [16:30:07]line > о реализуемом товаре [16:30:07]line Товар: 4700000310043 [16:30:07]line Вода Жалалабат 27 1л [16:30:07]line 1.000 * 60.00 [16:30:07]line = 60.00 [16:30:07]line НДС 12% НСП 1% [16:30:07]line > о реализуемом товаре [16:30:07]line Товар: 5449000176431 [16:30:07]line Сок Piko Pulpy апельсин ПЭТ 0,5л [16:30:07]line 1.000 * 95.00 [16:30:07]line = 95.00 [16:30:07]line НДС 12% НСП 1% [16:30:07]line > о реализуемом товаре [16:30:07]line ИТОГО: 189.00 [16:30:07]line НСП 1% : 1.67 [16:30:07]line НДС 12% : 20.07 [16:30:07]line Наличными: 189.00 [16:30:07]line Безнал.: 0.00 [16:30:07]line Место: АЗС № 127 "Партнер Нефть" [16:30:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:30:07]line СНО: Общий режим [16:30:07]line Чек 89 29.07.2024 16:30 [16:30:07]line Смена: 15 ФФД: 1.0 [16:30:07]line ЗНМ: 0300000161 [16:30:07]line РНМ: 0000000000189667 [16:30:07]line Версия ККМ: v1.0 [16:30:07]line ФМ: 0000000002094248 [16:30:07]line ФД: 2240 [16:30:07]line ФПД: 214138766634714 [16:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163006&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2240&fm=214138766634714&tin=02508201610067®Number=0000000000189667&sum=18900 [16:30:07]line 0 [16:30:07]written 0, free lines is 4095 [16:30:07]OFD Sender: Processing packet 2240 [packets to send 1, broken 0] [16:30:07]ProducePacketName [16:30:07]name=ofd_packets/00002240 [16:30:07]OFD Sender: To server: pG, [16:30:07]CommunicateWithHost lk.salyk.kg:30040 [16:30:08]ConnectInit lk.salyk.kg [16:30:08]Write to MH i2c: 01 00 00 D4 05 D9 [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: 01 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: 01 07 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 58 0C 44 [16:30:08]RasterBufferAndPrint [16:30:08]line [16:30:08]line [16:30:08]line [16:30:08]line [16:30:08]line [16:30:08]written 0, free lines is 3169 [16:30:08]MH_Cut [16:30:08]Write to MH i2c: D1 01 00 DB 05 01 B2 [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 01 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 01 00 DB 05 00 B1 [16:30:08]Write to MH i2c: 01 00 00 DC 05 E1 [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]Connected sock=9 [16:30:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 17 02 00 00 C5 E5 0F 02 3C F5 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 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 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB 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 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 59 00 00 00 F4 03 04 00 8E C3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C0 08 00 00 35 04 06 00 C2 C2 11 1E 2E DA EA 75 C8 78 1A CA B1 34 [16:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 78 2A 47 00 B5 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 32 30 39 34 32 34 38 10 04 04 00 C0 08 00 00 F4 03 04 00 FB 6E A7 66 B6 04 01 00 00 C6 4B 9E 27 66 27 16 86 [16:30:08]CommunicateWithHost err = 0 [16:30:08]CheckOFDResponse [16:30:08]1017 (14) - 77093643461234 [16:30:08]1041 (16) - 0000000002094248 [16:30:08]1040 (4) - 2240 [16:30:08]1012 (4) - 29.07.2024 10:29 [16:30:08]1206 (1) - 0 [16:30:08]OFD Sender: Remove packet 2240 [16:30:08]ProducePacketName [16:30:08]name=ofd_packets/00002240 [16:30:08]NVStorageDeleteData [16:30:09]*** Cut start [16:30:09]*** Partial cut [16:30:09]*** CUTSNS_PIN = 1 [16:30:09]*** CUTSNS_PIN = 0 [16:30:09]*** Brake cut motor [16:30:09]OFD Sender: No OFD packet to send [16:30:09]Read from MH i2c: 01 [16:30:09]MH_I2C_Read... [16:30:09]*** Stop cut motor [16:30:09]*** Cut end [16:30:09]Read from MH i2c: 01 07 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [16:30:09]process_action close_receipt done [16:30:09]requested_data is exist [16:30:09]produce_requested_data [16:30:09]requested_item fm.sn is exist - process it [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 11 00 00 [16:30:09]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 17 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AC [16:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:30:09]wFMCommunicate OK [16:30:09]requested_item fd.num is exist - process it [16:30:09]SAM_PROTO_GetFieldsCounters [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 13 00 00 [16:30:09]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 62 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C0 08 00 00 0E 04 04 00 0F 00 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 6B [16:30:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C0 08 00 00 0E 04 04 00 0F 00 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:30:09]wFMCommunicate OK [16:30:09]SAM_PROTO_GetFieldsCounters done [16:30:09]requested_item shift.num is exist - process it [16:30:09]requested_item shift.opened is exist - process it [16:30:09]req_shift_opened [16:30:09]FM_GetShiftState [16:30:09]SAM_PROTO_GetShiftState [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 13 01 00 [16:30:09]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 0E 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5A [16:30:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:30:09]wFMCommunicate OK [16:30:09]SAM_PROTO_GetShiftState done [16:30:09]FM_GetShiftState done [16:30:09]req_shift_opened done [16:30:09]requested_item shift.open_date is exist - process it [16:30:09]req_shift_open_date [16:30:09]req_shift_open_date done [16:30:09]produce_requested_data done [16:30:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2240,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:30:09]process_action_free close_receipt [16:30:09]json_value_free [16:30:09]json_value_free done [16:30:09]process_json_proto returns [16:30:09]Send response to host [16:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2240,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:30:10]free response buf [16:30:10]execute_script done [16:30:10]execute_script returns [16:30:10]free content buf [16:30:10]Sock 11.Close socket [16:30:10]Sock 11.Thread stoped [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:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:19]accept exits with 8 [16:36:19]New connection [16:36:19]New thread 3067014500 created [16:36:19]Thread 3067157860 joined [16:36:19]Waiting for new connection... [16:36:19] Sock 8.Parse request [16:36:19]Sock 8.Check first char [16:36:19]Sock 8.First char is OK [16:36:19]request: POST /json_proto HTTP/1.0 [16:36:19]Method: POST [16:36:19]URL: /json_proto [16:36:19]Method is POST - this is cgi request [16:36:19]url: /json_proto [16:36:19]query_string will be loaded in cgi processing [16:36:19]execute_cgi json_proto POST (null) [16:36:19]execute_cgi path=json_proto method=POST [16:36:19]POST find Content-Length [16:36:19]Host: 172.17.45.132:8080 [16:36:19]Content-Length: 215 [16:36:19]Content-Type: application/json [16:36:19] [16:36:19]POST finish read [16:36:19]Found Content-Length = 215 [16:36:19]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" ] } } [16:36:19]execute_script... [16:36:19]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" ] } } [16:36:19]POST & json_proto [16:36:19]process_json_proto [16:36:19]json parsed OK: [16:36:19]protocol is kg_v1.0 [16:36:19]action value=get_value [16:36:19]process_action get_value [16:36:19]cmd_get_value [16:36:19]process_action get_value done [16:36:19]requested_data is exist [16:36:19]produce_requested_data [16:36:19]requested_item kkm.sn is exist - process it [16:36:19]requested_item kkm.ver is exist - process it [16:36:19]requested_item fm.sn is exist - process it [16:36:19]wFMCommunicate request_size=4 [16:36:19]MH_SAM_APDU [16:36:19]CAPDU: 80 11 00 00 [16:36:19]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:19]Read from MH i2c: E2 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 17 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AF [16:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:36:19]wFMCommunicate OK [16:36:19]requested_item fd.num is exist - process it [16:36:19]SAM_PROTO_GetFieldsCounters [16:36:19]wFMCommunicate request_size=4 [16:36:19]MH_SAM_APDU [16:36:19]CAPDU: 80 13 00 00 [16:36:19]Write to MH i2c: E2 08 00 E1 05 80 13 00 00 00 00 00 00 62 [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:20]Read from MH i2c: E2 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: E2 62 00 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: E2 62 00 E1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C0 08 00 00 0E 04 04 00 0F 00 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 6E [16:36:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C0 08 00 00 0E 04 04 00 0F 00 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:36:20]wFMCommunicate OK [16:36:20]SAM_PROTO_GetFieldsCounters done [16:36:20]requested_item shift.num is exist - process it [16:36:20]requested_item shift.opened is exist - process it [16:36:20]req_shift_opened [16:36:20]FM_GetShiftState [16:36:20]SAM_PROTO_GetShiftState [16:36:20]wFMCommunicate request_size=4 [16:36:20]MH_SAM_APDU [16:36:20]CAPDU: 80 13 01 00 [16:36:20]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [16:36:20]Write i2c OK [16:36:20]MH_I2C_Read... [16:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:20]Read from MH i2c: E2 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: E2 0E 00 [16:36:20]MH_I2C_Read... [16:36:20]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5D [16:36:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:36:20]wFMCommunicate OK [16:36:20]SAM_PROTO_GetShiftState done [16:36:20]FM_GetShiftState done [16:36:20]req_shift_opened done [16:36:20]requested_item shift.open_date is exist - process it [16:36:20]req_shift_open_date [16:36:20]req_shift_open_date done [16:36:20]produce_requested_data done [16:36:20]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2240,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:36:20]process_action_free get_value [16:36:20]json_value_free [16:36:20]json_value_free done [16:36:20]process_json_proto returns [16:36:20]Send response to host [16:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2240,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:36:20]free response buf [16:36:20]execute_script done [16:36:20]execute_script returns [16:36:20]free content buf [16:36:20]Sock 8.Close socket [16:36:20]Sock 8.Thread stoped [16:36:23]accept exits with 9 [16:36:23]New connection [16:36:23]New thread 3067157860 created [16:36:23]Thread 3067014500 joined [16:36:23]Waiting for new connection... [16:36:23] Sock 9.Parse request [16:36:23]Sock 9.Check first char [16:36:23]Sock 9.First char is OK [16:36:23]request: POST /json_proto HTTP/1.0 [16:36:23]Method: POST [16:36:23]URL: /json_proto [16:36:23]Method is POST - this is cgi request [16:36:23]url: /json_proto [16:36:23]query_string will be loaded in cgi processing [16:36:23]execute_cgi json_proto POST (null) [16:36:23]execute_cgi path=json_proto method=POST [16:36:23]POST find Content-Length [16:36:23]Host: 172.17.45.132:8080 [16:36:23]Content-Length: 331 [16:36:23]Content-Type: application/json [16:36:23] [16:36:23]POST finish read [16:36:23]Found Content-Length = 331 [16:36:23]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" ] } } [16:36:23]execute_script... [16:36: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" ] } } [16:36:23]POST & json_proto [16:36:23]process_json_proto [16:36:23]json parsed OK: [16:36:23]protocol is kg_v1.0 [16:36:23]action value=get_value [16:36:23]process_action get_value [16:36:23]cmd_get_value [16:36:23]process_action get_value done [16:36:23]requested_data is exist [16:36:23]produce_requested_data [16:36:23]requested_item fm.sale.total is exist - process it [16:36:23]SAM_PROTO_GetFMData [16:36:23]wFMCommunicate request_size=4 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 13 03 00 [16:36:23]Write to MH i2c: E2 08 00 E3 05 80 13 03 00 00 00 00 00 67 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 FD 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 FD 00 E3 05 00 C0 04 85 04 BC 04 6E 04 04 00 A2 08 00 00 69 04 9F 00 6F 04 04 00 91 08 00 00 B1 04 04 00 31 EA 82 05 70 04 04 00 60 9B 8D 03 72 04 04 00 D1 4E F5 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DE D8 95 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 D4 7B 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 57 [16:36:23]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A2 08 00 00 69 04 9F 00 6F 04 04 00 91 08 00 00 B1 04 04 00 31 EA 82 05 70 04 04 00 60 9B 8D 03 72 04 04 00 D1 4E F5 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DE D8 95 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 D4 7B 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [16:36:23]wFMCommunicate OK [16:36:23]wFMCommunicate request_size=4 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 17 00 00 [16:36:23]Write to MH i2c: E2 08 00 E4 05 80 17 00 00 00 00 00 00 69 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:36:24]Read from MH i2c: E2 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 FD 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 FD 00 E4 05 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [16:36:24]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:36:24]wFMCommunicate OK [16:36:24]wFMCommunicate request_size=4 [16:36:24]MH_SAM_APDU [16:36:24]CAPDU: 80 17 00 00 [16:36:24]Write to MH i2c: E2 08 00 E5 05 80 17 00 00 00 00 00 00 6A [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:36:24]Read from MH i2c: E2 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 FD 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 FD 00 E5 05 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [16:36:24]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:36:24]wFMCommunicate OK [16:36:24]wFMCommunicate request_size=4 [16:36:24]MH_SAM_APDU [16:36:24]CAPDU: 80 17 00 00 [16:36:24]Write to MH i2c: E2 08 00 E6 05 80 17 00 00 00 00 00 00 6B [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:36:24]Read from MH i2c: E2 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 FD 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 FD 00 E6 05 00 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [16:36:24]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:36:24]wFMCommunicate OK [16:36:24]wFMCommunicate request_size=4 [16:36:24]MH_SAM_APDU [16:36:24]CAPDU: 80 17 00 00 [16:36:24]Write to MH i2c: E2 08 00 E7 05 80 17 00 00 00 00 00 00 6C [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [16:36:24]Read from MH i2c: E2 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: E2 DD 00 [16:36:24]MH_I2C_Read... [16:36:24]OFD Sender: No OFD packet to send [16:36:24]Read from MH i2c: E2 DD 00 E7 05 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 54 [16:36:24]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:36:24]wFMCommunicate OK [16:36:24]SAM_PROTO_GetFMData done [16:36:24]requested_item fm.sale_refund.total is exist - process it [16:36:24]requested_item fm.buy.total is exist - process it [16:36:24]requested_item shift.sale.total is exist - process it [16:36:24]SAM_PROTO_GetShiftData [16:36:24]wFMCommunicate request_size=4 [16:36:24]MH_SAM_APDU [16:36:24]CAPDU: 80 13 02 00 [16:36:24]Write to MH i2c: E2 08 00 E8 05 80 13 02 00 00 00 00 00 6B [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:36:25]Read from MH i2c: E2 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 FD 00 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 FD 00 E8 05 00 AE 04 AA 04 AA 04 6E 04 04 00 59 00 00 00 69 04 9B 00 6F 04 04 00 59 00 00 00 B1 04 03 00 1F EF 27 70 04 03 00 9C F2 16 72 04 03 00 83 FC 10 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 BA 3D 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 6F 5A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A [16:36:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 59 00 00 00 69 04 9B 00 6F 04 04 00 59 00 00 00 B1 04 03 00 1F EF 27 70 04 03 00 9C F2 16 72 04 03 00 83 FC 10 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 BA 3D 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 6F 5A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:36:25]wFMCommunicate OK [16:36:25]wFMCommunicate request_size=4 [16:36:25]MH_SAM_APDU [16:36:25]CAPDU: 80 17 00 00 [16:36:25]Write to MH i2c: E2 08 00 E9 05 80 17 00 00 00 00 00 00 6E [16:36:25]Write i2c OK [16:36:25]MH_I2C_Read... [16:36:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:36:25]Read from MH i2c: E2 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 FD 00 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 FD 00 E9 05 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 90 [16:36:25]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 [16:36:25]wFMCommunicate OK [16:36:25]wFMCommunicate request_size=4 [16:36:25]MH_SAM_APDU [16:36:25]CAPDU: 80 17 00 00 [16:36:25]Write to MH i2c: E2 08 00 EA 05 80 17 00 00 00 00 00 00 6F [16:36:25]Write i2c OK [16:36:25]MH_I2C_Read... [16:36:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:36:25]Read from MH i2c: E2 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 FD 00 [16:36:25]MH_I2C_Read... [16:36:25]Read from MH i2c: E2 FD 00 EA 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 [16:36: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 [16:36:25]wFMCommunicate OK [16:36:25]wFMCommunicate request_size=4 [16:36:25]MH_SAM_APDU [16:36:25]CAPDU: 80 17 00 00 [16:36:25]Write to MH i2c: E2 08 00 EB 05 80 17 00 00 00 00 00 00 70 [16:36:25]Write i2c OK [16:36:25]MH_I2C_Read... [16:36:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:36:26]Read from MH i2c: E2 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 FD 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 FD 00 EB 05 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 E2 [16:36: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 [16:36:26]wFMCommunicate OK [16:36:26]wFMCommunicate request_size=4 [16:36:26]MH_SAM_APDU [16:36:26]CAPDU: 80 17 00 00 [16:36:26]Write to MH i2c: E2 08 00 EC 05 80 17 00 00 00 00 00 00 71 [16:36:26]Write i2c OK [16:36:26]MH_I2C_Read... [16:36:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:36:26]Read from MH i2c: E2 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 CB 00 [16:36:26]MH_I2C_Read... [16:36:26]Read from MH i2c: E2 CB 00 EC 05 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 5A [16:36: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 [16:36:26]wFMCommunicate OK [16:36:26]SAM_PROTO_GetShiftData done [16:36:26]requested_item shift.sale.total_cash is exist - process it [16:36:26]requested_item shift.sale_refund.total is exist - process it [16:36:26]requested_item shift.sale_refund.total_cash is exist - process it [16:36:26]requested_item shift.buy.total is exist - process it [16:36:26]requested_item shift.buy.total_cash is exist - process it [16:36:26]produce_requested_data done [16:36:26]produce_requested_data return {"fm.sale.total":924657.13,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":26171.19,"shift.sale.total_cash":15039.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} [16:36:26]process_action_free get_value [16:36:26]json_value_free [16:36:26]json_value_free done [16:36:26]process_json_proto returns [16:36:26]Send response to host [16:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":924657.13,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":26171.19,"shift.sale.total_cash":15039.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}}} [16:36:26]free response buf [16:36:26]execute_script done [16:36:26]execute_script returns [16:36:26]free content buf [16:36:26]Sock 9.Close socket [16:36:26]Sock 9.Thread stoped [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]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:53]accept exits with 8 [16:40:53]New connection [16:40:53]New thread 3067014500 created [16:40:53]Thread 3067157860 joined [16:40:53]Waiting for new connection... [16:40:53] Sock 8.Parse request [16:40:53]Sock 8.Check first char [16:40:53]Sock 8.First char is OK [16:40:53]request: POST /json_proto HTTP/1.0 [16:40:53]Method: POST [16:40:53]URL: /json_proto [16:40:53]Method is POST - this is cgi request [16:40:53]url: /json_proto [16:40:53]query_string will be loaded in cgi processing [16:40:53]execute_cgi json_proto POST (null) [16:40:53]execute_cgi path=json_proto method=POST [16:40:53]POST find Content-Length [16:40:53]Host: 172.17.45.132:8080 [16:40:53]Content-Length: 803 [16:40:53]Content-Type: application/json [16:40:53] [16:40:53]POST finish read [16:40:53]Found Content-Length = 803 [16:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126526", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:53]execute_script... [16:40: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)126526", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:53]POST & json_proto [16:40:53]process_json_proto [16:40:53]json parsed OK: [16:40:53]protocol is kg_v1.0 [16:40:53]action value=close_receipt [16:40:53]process_action close_receipt [16:40:53]cmd_close_receipt [16:40:53]MH_GetDate [16:40:53]Write to MH i2c: F0 00 00 ED 05 E1 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 09 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: F0 09 00 ED 05 00 16 C6 A7 66 E3 0B 90 66 B7 [16:40:53]GetLastDocTimeStamp 1722270606 [16:40:53]current date 1722271254 [16:40:53]FM_GetShiftState [16:40:53]SAM_PROTO_GetShiftState [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 13 01 00 [16:40:53]Write to MH i2c: E2 08 00 EE 05 80 13 01 00 00 00 00 00 70 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 EE 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 69 [16:40:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_GetShiftState done [16:40:53]FM_GetShiftState done [16:40:53]opened in 1722213119 [16:40:53]opened+sec_in_day 1722299519 [16:40:53]quantity*price = 30000 [16:40:53]sum+1 = 30001 [16:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 90 29.07.2024 16:40 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2241 ФПД: 237659618006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164054&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2241&fm=237659618006&tin=02508201610067®Number=0000000000189667&sum=30000 0 [16:40:54]StoreToDocumentArchive [16:40:54]shift 15 fd 2241 [16:40:54]save to /storage/0015/doc_00002241 [16:40:54]save last doc name /storage/0015/doc_00002241 to /storage/kkm_last_doc_name [16:40:54]save OK [16:40:54]Clear old archive folders... [16:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:40:54]tlvbuf is 02031A40 [16:40:54]SAM_PROTO_ClearQueue [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 09 00 00 [16:40:54]Write to MH i2c: E2 08 00 FB 05 80 09 00 00 00 00 00 00 72 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]SAM_PROTO_ClearQueue done [16:40:54]KKMCreateOFDPacket [16:40:54]OFDProtocolAddRootSTLVToBuf [16:40:54]FM_MakeSignedData [16:40:54]FM_MakeSignedData [16:40:54]SAM_PROTO_SignData [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 01 02 [16:40:54]Write to MH i2c: E2 08 00 FC 05 80 0D 01 02 00 00 00 00 7A [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]wFMCommunicate request_size=255 [16:40:54]MH_SAM_APDU [16:40:54]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 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 5A 00 00 00 F4 03 04 00 16 C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [16:40:54]Write to MH i2c: E2 02 01 FD 05 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 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 5A 00 00 00 F4 03 04 00 16 C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 26 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]wFMCommunicate request_size=37 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 08 00 00 35 04 06 00 00 37 55 9D FA D6 [16:40:54]Write to MH i2c: E2 28 00 FE 05 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 08 00 00 35 04 06 00 00 37 55 9D FA D6 00 00 93 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [16:40:54]RAPDU: 90 00 [16:40:54]wFMCommunicate OK [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 0D 03 02 [16:40:54]Write to MH i2c: E2 08 00 FF 05 80 0D 03 02 00 00 00 00 7F [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 0B 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 0B 00 FF 05 00 1C E0 E2 E5 34 5A A4 EC 90 00 61 [16:40:54]RAPDU: 1C E0 E2 E5 34 5A A4 EC 90 00 [16:40:54]wFMCommunicate OK [16:40:54]SAM_PROTO_SignData done [16:40:54]FM_MakeSignedData done [16:40:54]CreateOFDProtocolMessage [16:40:54]wFMCommunicate request_size=4 [16:40:54]MH_SAM_APDU [16:40:54]CAPDU: 80 11 00 00 [16:40:54]Write to MH i2c: E2 08 00 00 06 80 11 00 00 00 00 00 00 80 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:54]Read from MH i2c: E2 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 17 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: E2 17 00 00 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D0 [16:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:40:54]wFMCommunicate OK [16:40:54]CreateOFDProtocolMessage done [16:40:54]OFDSenderStorePacket 2241 [16:40:54]StoreOFDPacket docnum=2241 [16:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 54 52 22 01 FD AF 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 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 5A 00 00 00 F4 03 04 00 16 C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 08 00 00 35 04 06 00 00 37 55 9D FA D6 1C E0 E2 E5 34 5A A4 EC [16:40:54]CheckFolder [16:40:54]dirname=/storage/ofd_packets [16:40:54]CheckFolder done [16:40:54]ProducePacketName [16:40:54]name=ofd_packets/00002241 [16:40:54]NVStorageSaveData ofd_packets/00002241 [16:40:54]File name is /storage/ofd_packets/00002241 [16:40:54]Write 328 bytes [16:40:54]NVStorageSaveData done [16:40:54]OFDSenderStorePacket done [16:40:54]KKMCreateOFDPacket done [16:40:54]NVStorageSaveData kkm_last_timestamp [16:40:54]File name is /storage/kkm_last_timestamp [16:40:54]Write 4 bytes [16:40:54]NVStorageSaveData done [16:40:54]ExternCall_PrintAddStr [16:40:54]wPrintStart [16:40:54]Write to MH i2c: 01 00 00 01 06 07 [16:40:54]Write i2c OK [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 [16:40:54]MH_I2C_Read... [16:40:54]Read from MH i2c: 01 07 00 01 06 00 00 00 00 00 FF 0F 1C [16:40:54]RasterBufferAndPrint [16:40:54]line Счет N : (3)126526 [16:40:54]line ИНН: 02508201610067 [16:40:54]line Контрольно-Кассовый Чек [16:40:54]line ПРОДАЖА [16:40:54]line Товар: 4640030092499 [16:40:54]line Сигареты ESSE SENSE Himalaya [16:40:54]line 2.000 * 150.00 [16:40:54]line = 300.00 [16:40:54]line НДС 12% НСП 1% [16:40:54]line > о реализуемом товаре [16:40:54]line ИТОГО: 300.00 [16:40:54]line НСП 1% : 2.65 [16:40:54]line НДС 12% : 31.86 [16:40:54]line Наличными: 0.00 [16:40:54]line Безнал.: 300.00 [16:40:54]line Место: АЗС № 127 "Партнер Нефть" [16:40:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:40:54]line СНО: Общий режим [16:40:54]line Чек 90 29.07.2024 16:40 [16:40:54]line Смена: 15 ФФД: 1.0 [16:40:54]line ЗНМ: 0300000161 [16:40:54]line РНМ: 0000000000189667 [16:40:54]line Версия ККМ: v1.0 [16:40:54]line Платежная система: Бакай Банк [16:40:54]line ФМ: 0000000002094248 [16:40:54]line ФД: 2241 [16:40:54]line ФПД: 237659618006 [16:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164054&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2241&fm=237659618006&tin=02508201610067®Number=0000000000189667&sum=30000 [16:40:55]line 0 [16:40:55]OFD Sender: Processing packet 2241 [packets to send 1, broken 0] [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00002241 [16:40:55]OFD Sender: To server: pG, [16:40:55]CommunicateWithHost lk.salyk.kg:30040 [16:40:55]ConnectInit lk.salyk.kg [16:40:55]written 0, free lines is 4095 [16:40:55]Connected sock=10 [16:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 54 52 22 01 FD AF 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 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 5A 00 00 00 F4 03 04 00 16 C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C1 08 00 00 35 04 06 00 00 37 55 9D FA D6 1C E0 E2 E5 34 5A A4 EC [16:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B2 29 47 00 A5 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 32 30 39 34 32 34 38 10 04 04 00 C1 08 00 00 F4 03 04 00 82 71 A7 66 B6 04 01 00 00 68 00 CA CA 49 F2 58 77 [16:40:55]CommunicateWithHost err = 0 [16:40:55]CheckOFDResponse [16:40:55]1017 (14) - 77093643461234 [16:40:55]1041 (16) - 0000000002094248 [16:40:55]1040 (4) - 2241 [16:40:55]1012 (4) - 29.07.2024 10:40 [16:40:55]1206 (1) - 0 [16:40:55]OFD Sender: Remove packet 2241 [16:40:55]ProducePacketName [16:40:55]name=ofd_packets/00002241 [16:40:55]NVStorageDeleteData [16:40:55]Write to MH i2c: 01 00 00 2C 06 32 [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: 01 07 00 2C 06 00 00 00 00 00 ED 0C 32 [16:40:55]RasterBufferAndPrint [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]line [16:40:55]written 0, free lines is 3315 [16:40:55]MH_Cut [16:40:55]Write to MH i2c: D1 01 00 33 06 01 0B [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 [16:40:55]MH_I2C_Read... [16:40:55]Read from MH i2c: D1 01 00 33 06 00 0A [16:40:55]Write to MH i2c: 01 00 00 34 06 3A [16:40:55]Write i2c OK [16:40:55]MH_I2C_Read... [16:40:56]OFD Sender: No OFD packet to send [16:40:56]*** Cut start [16:40:56]*** Partial cut [16:40:56]*** CUTSNS_PIN = 1 [16:40:56]*** CUTSNS_PIN = 0 [16:40:56]*** Brake cut motor [16:40:57]Read from MH i2c: 01 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: 01 07 00 [16:40:57]MH_I2C_Read... [16:40:57]*** Stop cut motor [16:40:57]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 FF 0F 4F [16:40:57]process_action close_receipt done [16:40:57]requested_data is exist [16:40:57]produce_requested_data [16:40:57]requested_item fm.sn is exist - process it [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 11 00 00 [16:40:57]Write to MH i2c: E2 08 00 35 06 80 11 00 00 00 00 00 00 B5 [16:40:57]*** Cut end [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 17 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 17 00 35 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 05 [16:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:40:57]wFMCommunicate OK [16:40:57]requested_item fd.num is exist - process it [16:40:57]SAM_PROTO_GetFieldsCounters [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 13 00 00 [16:40:57]Write to MH i2c: E2 08 00 36 06 80 13 00 00 00 00 00 00 B8 [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 62 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 62 00 36 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C1 08 00 00 0E 04 04 00 0F 00 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 C8 [16:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C1 08 00 00 0E 04 04 00 0F 00 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 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetFieldsCounters done [16:40:57]requested_item shift.num is exist - process it [16:40:57]requested_item shift.opened is exist - process it [16:40:57]req_shift_opened [16:40:57]FM_GetShiftState [16:40:57]SAM_PROTO_GetShiftState [16:40:57]wFMCommunicate request_size=4 [16:40:57]MH_SAM_APDU [16:40:57]CAPDU: 80 13 01 00 [16:40:57]Write to MH i2c: E2 08 00 37 06 80 13 01 00 00 00 00 00 BA [16:40:57]Write i2c OK [16:40:57]MH_I2C_Read... [16:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:57]Read from MH i2c: E2 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 [16:40:57]MH_I2C_Read... [16:40:57]Read from MH i2c: E2 0E 00 37 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B3 [16:40:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:40:57]wFMCommunicate OK [16:40:57]SAM_PROTO_GetShiftState done [16:40:57]FM_GetShiftState done [16:40:57]req_shift_opened done [16:40:57]requested_item shift.open_date is exist - process it [16:40:57]req_shift_open_date [16:40:57]req_shift_open_date done [16:40:57]produce_requested_data done [16:40:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2241,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:40:57]process_action_free close_receipt [16:40:57]json_value_free [16:40:57]json_value_free done [16:40:57]process_json_proto returns [16:40:57]Send response to host [16:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2241,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:40:57]free response buf [16:40:57]execute_script done [16:40:57]execute_script returns [16:40:57]free content buf [16:40:57]Sock 8.Close socket [16:40:57]Sock 8.Thread stoped [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:17]accept exits with 9 [16:41:17]New connection [16:41:17]New thread 3067157860 created [16:41:17]Thread 3067014500 joined [16:41:17]Waiting for new connection... [16:41:17] Sock 9.Parse request [16:41:17]Sock 9.Check first char [16:41:17]Sock 9.First char is OK [16:41:17]request: POST /json_proto HTTP/1.0 [16:41:17]Method: POST [16:41:17]URL: /json_proto [16:41:17]Method is POST - this is cgi request [16:41:17]url: /json_proto [16:41:17]query_string will be loaded in cgi processing [16:41:17]execute_cgi json_proto POST (null) [16:41:17]execute_cgi path=json_proto method=POST [16:41:17]POST find Content-Length [16:41:17]Host: 172.17.45.132:8080 [16:41:17]Content-Length: 644 [16:41:17]Content-Type: application/json [16:41:17] [16:41:17]POST finish read [16:41:17]Found Content-Length = 644 [16:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126527", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\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" ] } } [16:41:17]execute_script... [16:41: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)126527", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\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" ] } } [16:41:17]POST & json_proto [16:41:17]process_json_proto [16:41:17]json parsed OK: [16:41:17]protocol is kg_v1.0 [16:41:17]action value=close_receipt [16:41:17]process_action close_receipt [16:41:17]cmd_close_receipt [16:41:17]MH_GetDate [16:41:17]Write to MH i2c: F0 00 00 38 06 2D [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: F0 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: F0 09 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: F0 09 00 38 06 00 2E C6 A7 66 E3 0B 90 66 1B [16:41:17]GetLastDocTimeStamp 1722271254 [16:41:17]current date 1722271278 [16:41:17]FM_GetShiftState [16:41:17]SAM_PROTO_GetShiftState [16:41:17]wFMCommunicate request_size=4 [16:41:17]MH_SAM_APDU [16:41:17]CAPDU: 80 13 01 00 [16:41:17]Write to MH i2c: E2 08 00 39 06 80 13 01 00 00 00 00 00 BC [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:17]Read from MH i2c: E2 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 0E 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 0E 00 39 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B5 [16:41:17]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:41:17]wFMCommunicate OK [16:41:17]SAM_PROTO_GetShiftState done [16:41:17]FM_GetShiftState done [16:41:17]opened in 1722213119 [16:41:17]opened+sec_in_day 1722299519 [16:41:17]quantity*price = 3500 [16:41:17]sum+1 = 3501 [16:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 91 29.07.2024 16:41 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2242 ФПД: 260431633531307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164118&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2242&fm=260431633531307&tin=02508201610067®Number=0000000000189667&sum=3500 0 [16:41:18]StoreToDocumentArchive [16:41:18]shift 15 fd 2242 [16:41:18]save to /storage/0015/doc_00002242 [16:41:18]save last doc name /storage/0015/doc_00002242 to /storage/kkm_last_doc_name [16:41:18]save OK [16:41:18]Clear old archive folders... [16:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:41:18]tlvbuf is 020365C0 [16:41:18]SAM_PROTO_ClearQueue [16:41:18]wFMCommunicate request_size=4 [16:41:18]MH_SAM_APDU [16:41:18]CAPDU: 80 09 00 00 [16:41:18]Write to MH i2c: E2 08 00 46 06 80 09 00 00 00 00 00 00 BE [16:41:18]Write i2c OK [16:41:18]MH_I2C_Read... [16:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:18]Read from MH i2c: E2 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [16:41:18]RAPDU: 90 00 [16:41:18]wFMCommunicate OK [16:41:18]SAM_PROTO_ClearQueue done [16:41:18]KKMCreateOFDPacket [16:41:18]OFDProtocolAddRootSTLVToBuf [16:41:18]FM_MakeSignedData [16:41:18]FM_MakeSignedData [16:41:18]SAM_PROTO_SignData [16:41:18]wFMCommunicate request_size=4 [16:41:18]MH_SAM_APDU [16:41:18]CAPDU: 80 0D 01 02 [16:41:18]Write to MH i2c: E2 08 00 47 06 80 0D 01 02 00 00 00 00 C6 [16:41:18]Write i2c OK [16:41:18]MH_I2C_Read... [16:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:18]Read from MH i2c: E2 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [16:41:18]RAPDU: 90 00 [16:41:18]wFMCommunicate OK [16:41:18]wFMCommunicate request_size=255 [16:41:18]MH_SAM_APDU [16:41:18]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 5B 00 00 00 F4 03 04 00 2E C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [16:41:18]Write to MH i2c: E2 02 01 48 06 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 5B 00 00 00 F4 03 04 00 2E C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 25 [16:41:18]Write i2c OK [16:41:18]MH_I2C_Read... [16:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:18]Read from MH i2c: E2 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [16:41:18]RAPDU: 90 00 [16:41:18]wFMCommunicate OK [16:41:18]wFMCommunicate request_size=34 [16:41:18]MH_SAM_APDU [16:41:18]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 08 00 00 35 04 06 00 EC DC 77 01 41 AB [16:41:18]Write to MH i2c: E2 25 00 49 06 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 08 00 00 35 04 06 00 EC DC 77 01 41 AB 00 00 7D [16:41:18]Write i2c OK [16:41:18]MH_I2C_Read... [16:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:18]Read from MH i2c: E2 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [16:41:18]RAPDU: 90 00 [16:41:18]wFMCommunicate OK [16:41:18]wFMCommunicate request_size=4 [16:41:18]MH_SAM_APDU [16:41:18]CAPDU: 80 0D 03 02 [16:41:18]Write to MH i2c: E2 08 00 4A 06 80 0D 03 02 00 00 00 00 CB [16:41:18]Write i2c OK [16:41:18]MH_I2C_Read... [16:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:18]Read from MH i2c: E2 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 0B 00 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 0B 00 4A 06 00 E3 93 25 8B 5D 51 B1 8F 90 00 E0 [16:41:18]RAPDU: E3 93 25 8B 5D 51 B1 8F 90 00 [16:41:18]wFMCommunicate OK [16:41:18]SAM_PROTO_SignData done [16:41:18]FM_MakeSignedData done [16:41:18]CreateOFDProtocolMessage [16:41:18]wFMCommunicate request_size=4 [16:41:18]MH_SAM_APDU [16:41:18]CAPDU: 80 11 00 00 [16:41:18]Write to MH i2c: E2 08 00 4B 06 80 11 00 00 00 00 00 00 CB [16:41:18]Write i2c OK [16:41:18]MH_I2C_Read... [16:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:18]Read from MH i2c: E2 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 17 00 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: E2 17 00 4B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1B [16:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:41:18]wFMCommunicate OK [16:41:18]CreateOFDProtocolMessage done [16:41:18]OFDSenderStorePacket 2242 [16:41:18]StoreOFDPacket docnum=2242 [16:41:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 81 F8 1F 01 26 20 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 5B 00 00 00 F4 03 04 00 2E C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 08 00 00 35 04 06 00 EC DC 77 01 41 AB E3 93 25 8B 5D 51 B1 8F [16:41:18]CheckFolder [16:41:18]dirname=/storage/ofd_packets [16:41:18]CheckFolder done [16:41:18]ProducePacketName [16:41:18]name=ofd_packets/00002242 [16:41:18]NVStorageSaveData ofd_packets/00002242 [16:41:18]File name is /storage/ofd_packets/00002242 [16:41:18]Write 325 bytes [16:41:18]NVStorageSaveData done [16:41:18]OFDSenderStorePacket done [16:41:18]KKMCreateOFDPacket done [16:41:18]NVStorageSaveData kkm_last_timestamp [16:41:18]File name is /storage/kkm_last_timestamp [16:41:18]Write 4 bytes [16:41:18]NVStorageSaveData done [16:41:18]ExternCall_PrintAddStr [16:41:18]wPrintStart [16:41:18]Write to MH i2c: 01 00 00 4C 06 52 [16:41:18]Write i2c OK [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: 01 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: 01 07 00 [16:41:18]MH_I2C_Read... [16:41:18]Read from MH i2c: 01 07 00 4C 06 00 00 00 00 00 FF 0F 67 [16:41:18]RasterBufferAndPrint [16:41:18]line Счет N : (3)126527 [16:41:18]line ИНН: 02508201610067 [16:41:18]line Контрольно-Кассовый Чек [16:41:18]line ПРОДАЖА [16:41:18]line Товар: 4700000310326 [16:41:18]line Вода Адыгене 1л б/г [16:41:18]line 1.000 * 35.00 [16:41:18]line = 35.00 [16:41:18]line НДС 12% НСП 1% [16:41:18]line > о реализуемом товаре [16:41:18]line ИТОГО: 35.00 [16:41:18]line НСП 1% : 0.31 [16:41:18]line НДС 12% : 3.72 [16:41:18]line Наличными: 35.00 [16:41:18]line Безнал.: 0.00 [16:41:18]line Место: АЗС № 127 "Партнер Нефть" [16:41:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:41:18]line СНО: Общий режим [16:41:18]line Чек 91 29.07.2024 16:41 [16:41:18]line Смена: 15 ФФД: 1.0 [16:41:18]line ЗНМ: 0300000161 [16:41:18]line РНМ: 0000000000189667 [16:41:18]line Версия ККМ: v1.0 [16:41:18]line ФМ: 0000000002094248 [16:41:18]line ФД: 2242 [16:41:18]line ФПД: 260431633531307 [16:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164118&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2242&fm=260431633531307&tin=02508201610067®Number=0000000000189667&sum=3500 [16:41:19]line 0 [16:41:19]OFD Sender: Processing packet 2242 [packets to send 1, broken 0] [16:41:19]ProducePacketName [16:41:19]name=ofd_packets/00002242 [16:41:19]OFD Sender: To server: pG, [16:41:19]CommunicateWithHost lk.salyk.kg:30040 [16:41:19]ConnectInit lk.salyk.kg [16:41:19]written 0, free lines is 4095 [16:41:19]Connected sock=10 [16:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 81 F8 1F 01 26 20 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 5B 00 00 00 F4 03 04 00 2E C6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 08 00 00 35 04 06 00 EC DC 77 01 41 AB E3 93 25 8B 5D 51 B1 8F [16:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BD 2C 47 00 E9 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C2 08 00 00 F4 03 04 00 9A 71 A7 66 B6 04 01 00 00 0C 3A B5 79 9A 80 3C 6B [16:41:19]CommunicateWithHost err = 0 [16:41:19]CheckOFDResponse [16:41:19]1017 (14) - 77093643461234 [16:41:19]1041 (16) - 0000000002094248 [16:41:19]1040 (4) - 2242 [16:41:19]1012 (4) - 29.07.2024 10:40 [16:41:19]1206 (1) - 0 [16:41:19]OFD Sender: Remove packet 2242 [16:41:19]ProducePacketName [16:41:19]name=ofd_packets/00002242 [16:41:19]NVStorageDeleteData [16:41:19]Write to MH i2c: 01 00 00 74 06 7A [16:41:19]Write i2c OK [16:41:19]MH_I2C_Read... [16:41:19]Read from MH i2c: 01 [16:41:19]MH_I2C_Read... [16:41:19]Read from MH i2c: 01 07 00 [16:41:19]MH_I2C_Read... [16:41:19]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 0C 0D 9A [16:41:19]RasterBufferAndPrint [16:41:19]line [16:41:19]line [16:41:19]line [16:41:19]line [16:41:19]line [16:41:19]written 0, free lines is 3347 [16:41:19]MH_Cut [16:41:19]Write to MH i2c: D1 01 00 7B 06 01 53 [16:41:19]Write i2c OK [16:41:19]MH_I2C_Read... [16:41:19]Read from MH i2c: D1 [16:41:19]MH_I2C_Read... [16:41:19]Read from MH i2c: D1 01 00 [16:41:19]MH_I2C_Read... [16:41:19]Read from MH i2c: D1 01 00 7B 06 00 52 [16:41:19]Write to MH i2c: 01 00 00 7C 06 82 [16:41:19]Write i2c OK [16:41:19]MH_I2C_Read... [16:41:20]OFD Sender: No OFD packet to send [16:41:20]*** Cut start [16:41:20]*** Partial cut [16:41:20]*** CUTSNS_PIN = 1 [16:41:20]*** CUTSNS_PIN = 0 [16:41:20]*** Brake cut motor [16:41:20]Read from MH i2c: 01 [16:41:20]MH_I2C_Read... [16:41:20]*** Stop cut motor [16:41:20]*** Cut end [16:41:20]Read from MH i2c: 01 07 00 [16:41:20]MH_I2C_Read... [16:41:20]Read from MH i2c: 01 07 00 7C 06 00 00 00 00 00 FF 0F 97 [16:41:20]process_action close_receipt done [16:41:20]requested_data is exist [16:41:20]produce_requested_data [16:41:20]requested_item fm.sn is exist - process it [16:41:20]wFMCommunicate request_size=4 [16:41:20]MH_SAM_APDU [16:41:20]CAPDU: 80 11 00 00 [16:41:20]Write to MH i2c: E2 08 00 7D 06 80 11 00 00 00 00 00 00 FD [16:41:20]Write i2c OK [16:41:20]MH_I2C_Read... [16:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:21]Read from MH i2c: E2 [16:41:21]MH_I2C_Read... [16:41:21]Read from MH i2c: E2 17 00 [16:41:21]MH_I2C_Read... [16:41:21]Read from MH i2c: E2 17 00 7D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4D [16:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:41:21]wFMCommunicate OK [16:41:21]requested_item fd.num is exist - process it [16:41:21]SAM_PROTO_GetFieldsCounters [16:41:21]wFMCommunicate request_size=4 [16:41:21]MH_SAM_APDU [16:41:21]CAPDU: 80 13 00 00 [16:41:21]Write to MH i2c: E2 08 00 7E 06 80 13 00 00 00 00 00 00 00 [16:41:21]Write i2c OK [16:41:21]MH_I2C_Read... [16:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:21]Read from MH i2c: E2 [16:41:21]MH_I2C_Read... [16:41:21]Read from MH i2c: E2 62 00 [16:41:21]MH_I2C_Read... [16:41:21]Read from MH i2c: E2 62 00 7E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C2 08 00 00 0E 04 04 00 0F 00 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 14 [16:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C2 08 00 00 0E 04 04 00 0F 00 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 [16:41:21]wFMCommunicate OK [16:41:21]SAM_PROTO_GetFieldsCounters done [16:41:21]requested_item shift.num is exist - process it [16:41:21]requested_item shift.opened is exist - process it [16:41:21]req_shift_opened [16:41:21]FM_GetShiftState [16:41:21]SAM_PROTO_GetShiftState [16:41:21]wFMCommunicate request_size=4 [16:41:21]MH_SAM_APDU [16:41:21]CAPDU: 80 13 01 00 [16:41:21]Write to MH i2c: E2 08 00 7F 06 80 13 01 00 00 00 00 00 02 [16:41:21]Write i2c OK [16:41:21]MH_I2C_Read... [16:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:21]Read from MH i2c: E2 [16:41:21]MH_I2C_Read... [16:41:21]Read from MH i2c: E2 0E 00 [16:41:21]MH_I2C_Read... [16:41:21]Read from MH i2c: E2 0E 00 7F 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FB [16:41:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:41:21]wFMCommunicate OK [16:41:21]SAM_PROTO_GetShiftState done [16:41:21]FM_GetShiftState done [16:41:21]req_shift_opened done [16:41:21]requested_item shift.open_date is exist - process it [16:41:21]req_shift_open_date [16:41:21]req_shift_open_date done [16:41:21]produce_requested_data done [16:41:21]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2242,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:41:21]process_action_free close_receipt [16:41:21]json_value_free [16:41:21]json_value_free done [16:41:21]process_json_proto returns [16:41:21]Send response to host [16:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2242,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:41:21]free response buf [16:41:21]execute_script done [16:41:21]execute_script returns [16:41:21]free content buf [16:41:21]Sock 9.Close socket [16:41:21]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:35]accept exits with 8 [16:51:35]New connection [16:51:35]New thread 3067014500 created [16:51:35]Thread 3067157860 joined [16:51:35]Waiting for new connection... [16:51:35] Sock 8.Parse request [16:51:35]Sock 8.Check first char [16:51:35]Sock 8.First char is OK [16:51:35]request: POST /json_proto HTTP/1.0 [16:51:35]Method: POST [16:51:35]URL: /json_proto [16:51:35]Method is POST - this is cgi request [16:51:35]url: /json_proto [16:51:35]query_string will be loaded in cgi processing [16:51:35]execute_cgi json_proto POST (null) [16:51:35]execute_cgi path=json_proto method=POST [16:51:35]POST find Content-Length [16:51:35]Host: 172.17.45.132:8080 [16:51:35]Content-Length: 677 [16:51:35]Content-Type: application/json [16:51:35] [16:51:35]POST finish read [16:51:35]Found Content-Length = 677 [16:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:35]execute_script... [16:51:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:35]POST & json_proto [16:51:35]process_json_proto [16:51:35]json parsed OK: [16:51:35]protocol is kg_v1.0 [16:51:35]action value=close_receipt [16:51:35]process_action close_receipt [16:51:35]cmd_close_receipt [16:51:35]MH_GetDate [16:51:35]Write to MH i2c: F0 00 00 80 06 75 [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: F0 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: F0 09 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: F0 09 00 80 06 00 98 C8 A7 66 E3 0B 90 66 CF [16:51:35]GetLastDocTimeStamp 1722271278 [16:51:35]current date 1722271896 [16:51:35]FM_GetShiftState [16:51:35]SAM_PROTO_GetShiftState [16:51:35]wFMCommunicate request_size=4 [16:51:35]MH_SAM_APDU [16:51:35]CAPDU: 80 13 01 00 [16:51:35]Write to MH i2c: E2 08 00 81 06 80 13 01 00 00 00 00 00 04 [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:35]Read from MH i2c: E2 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 0E 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 0E 00 81 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FD [16:51:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:51:35]wFMCommunicate OK [16:51:35]SAM_PROTO_GetShiftState done [16:51:35]FM_GetShiftState done [16:51:35]opened in 1722213119 [16:51:35]opened+sec_in_day 1722299519 [16:51:35]quantity*price = 60003 [16:51:35]sum+1 = 60004 [16:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 92 29.07.2024 16:51 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2243 ФПД: 194546818267058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165136&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2243&fm=194546818267058&tin=02508201610067®Number=0000000000189667&sum=60000 [16:51:36]StoreToDocumentArchive [16:51:36]shift 15 fd 2243 [16:51:36]save to /storage/0015/doc_00002243 [16:51:36]save last doc name /storage/0015/doc_00002243 to /storage/kkm_last_doc_name [16:51:36]save OK [16:51:36]Clear old archive folders... [16:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:36]tlvbuf is 02035F00 [16:51:36]SAM_PROTO_ClearQueue [16:51:36]wFMCommunicate request_size=4 [16:51:36]MH_SAM_APDU [16:51:36]CAPDU: 80 09 00 00 [16:51:36]Write to MH i2c: E2 08 00 8E 06 80 09 00 00 00 00 00 00 06 [16:51:36]Write i2c OK [16:51:36]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [16:51:37]RAPDU: 90 00 [16:51:37]wFMCommunicate OK [16:51:37]SAM_PROTO_ClearQueue done [16:51:37]KKMCreateOFDPacket [16:51:37]OFDProtocolAddRootSTLVToBuf [16:51:37]FM_MakeSignedData [16:51:37]FM_MakeSignedData [16:51:37]SAM_PROTO_SignData [16:51:37]wFMCommunicate request_size=4 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 0D 01 02 [16:51:37]Write to MH i2c: E2 08 00 8F 06 80 0D 01 02 00 00 00 00 0E [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [16:51:37]RAPDU: 90 00 [16:51:37]wFMCommunicate OK [16:51:37]wFMCommunicate request_size=255 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 98 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 08 00 00 35 04 06 00 B0 [16:51:37]Write to MH i2c: E2 02 01 90 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 98 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 08 00 00 35 04 06 00 B0 00 00 AD [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [16:51:37]RAPDU: 90 00 [16:51:37]wFMCommunicate OK [16:51:37]wFMCommunicate request_size=10 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 0D 02 02 05 F0 75 FE B7 B2 [16:51:37]Write to MH i2c: E2 0D 00 91 06 80 0D 02 02 05 00 F0 75 FE B7 B2 00 00 E7 [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [16:51:37]RAPDU: 90 00 [16:51:37]wFMCommunicate OK [16:51:37]wFMCommunicate request_size=4 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 0D 03 02 [16:51:37]Write to MH i2c: E2 08 00 92 06 80 0D 03 02 00 00 00 00 13 [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0B 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0B 00 92 06 00 54 3F DF 45 CE 01 89 E4 90 00 07 [16:51:37]RAPDU: 54 3F DF 45 CE 01 89 E4 90 00 [16:51:37]wFMCommunicate OK [16:51:37]SAM_PROTO_SignData done [16:51:37]FM_MakeSignedData done [16:51:37]CreateOFDProtocolMessage [16:51:37]wFMCommunicate request_size=4 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 11 00 00 [16:51:37]Write to MH i2c: E2 08 00 93 06 80 11 00 00 00 00 00 00 13 [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 17 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 17 00 93 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 63 [16:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:51:37]wFMCommunicate OK [16:51:37]CreateOFDProtocolMessage done [16:51:37]OFDSenderStorePacket 2243 [16:51:37]StoreOFDPacket docnum=2243 [16:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 60 D9 07 01 DA 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 98 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 08 00 00 35 04 06 00 B0 F0 75 FE B7 B2 54 3F DF 45 CE 01 89 E4 [16:51:37]CheckFolder [16:51:37]dirname=/storage/ofd_packets [16:51:37]CheckFolder done [16:51:37]ProducePacketName [16:51:37]name=ofd_packets/00002243 [16:51:37]NVStorageSaveData ofd_packets/00002243 [16:51:37]File name is /storage/ofd_packets/00002243 [16:51:37]Write 301 bytes [16:51:37]NVStorageSaveData done [16:51:37]OFDSenderStorePacket done [16:51:37]KKMCreateOFDPacket done [16:51:37]NVStorageSaveData kkm_last_timestamp [16:51:37]File name is /storage/kkm_last_timestamp [16:51:37]Write 4 bytes [16:51:37]NVStorageSaveData done [16:51:37]ExternCall_PrintAddStr [16:51:37]wPrintStart [16:51:37]Write to MH i2c: 01 00 00 94 06 9A [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: 01 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: 01 07 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [16:51:37]RasterBufferAndPrint [16:51:37]line Счет N : (1)609965 [16:51:37]line ИНН: 02508201610067 [16:51:37]line Контрольно-Кассовый Чек [16:51:37]line ПРОДАЖА [16:51:37]line ТРК (МРК, ГНК) : 62 [16:51:37]line Товар: 2710124130 [16:51:37]line Аи-92-К-2 [16:51:37]line 8.850 * 67.80 [16:51:37]line = 600.03 [16:51:37]line НДС 12% НСП 1% [16:51:37]line > о реализуемом товаре [16:51:37]line ОКРУГЛЕНИЕ: -0.03 [16:51:37]line ИТОГО: 600.00 [16:51:37]line Внесено: 600.00 [16:51:37]line СДАЧА: 0.00 [16:51:37]line НСП 1% : 5.31 [16:51:37]line НДС 12% : 63.72 [16:51:37]line Наличными: 600.00 [16:51:37]line Безнал.: 0.00 [16:51:37]line Место: АЗС № 127 "Партнер Нефть" [16:51:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:51:37]line СНО: Общий режим [16:51:37]line Чек 92 29.07.2024 16:51 [16:51:37]line Смена: 15 ФФД: 1.0 [16:51:37]line ЗНМ: 0300000161 [16:51:37]line РНМ: 0000000000189667 [16:51:37]line Версия ККМ: v1.0 [16:51:37]line ФМ: 0000000002094248 [16:51:37]line ФД: 2243 [16:51:37]line ФПД: 194546818267058 [16:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165136&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2243&fm=194546818267058&tin=02508201610067®Number=0000000000189667&sum=60000 [16:51:37]written 0, free lines is 4095 [16:51:37]OFD Sender: Processing packet 2243 [packets to send 1, broken 0] [16:51:37]ProducePacketName [16:51:37]name=ofd_packets/00002243 [16:51:37]OFD Sender: To server: pG, [16:51:37]CommunicateWithHost lk.salyk.kg:30040 [16:51:37]ConnectInit lk.salyk.kg [16:51:37]Connected sock=10 [16:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 60 D9 07 01 DA 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 98 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C3 08 00 00 35 04 06 00 B0 F0 75 FE B7 B2 54 3F DF 45 CE 01 89 E4 [16:51:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1D F8 47 00 D7 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 32 30 39 34 32 34 38 10 04 04 00 C3 08 00 00 F4 03 04 00 04 74 A7 66 B6 04 01 00 00 C3 5A B0 5E 31 CF 26 67 [16:51:38]CommunicateWithHost err = 0 [16:51:38]CheckOFDResponse [16:51:38]1017 (14) - 77093643461234 [16:51:38]1041 (16) - 0000000002094248 [16:51:38]1040 (4) - 2243 [16:51:38]1012 (4) - 29.07.2024 10:50 [16:51:38]1206 (1) - 0 [16:51:38]OFD Sender: Remove packet 2243 [16:51:38]ProducePacketName [16:51:38]name=ofd_packets/00002243 [16:51:38]NVStorageDeleteData [16:51:38]Write to MH i2c: 01 00 00 BF 06 C5 [16:51:38]Write i2c OK [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: 01 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: 01 07 00 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: 01 07 00 BF 06 00 00 00 00 00 EF 0C C7 [16:51:38]RasterBufferAndPrint [16:51:38]line [16:51:38]line [16:51:38]line [16:51:38]line [16:51:38]line [16:51:38]written 0, free lines is 3317 [16:51:38]MH_Cut [16:51:38]Write to MH i2c: D1 01 00 C6 06 01 9E [16:51:38]Write i2c OK [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: D1 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: D1 01 00 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: D1 01 00 C6 06 00 9D [16:51:38]Write to MH i2c: 01 00 00 C7 06 CD [16:51:38]Write i2c OK [16:51:38]MH_I2C_Read... [16:51:38]OFD Sender: No OFD packet to send [16:51:38]*** Cut start [16:51:38]*** Partial cut [16:51:38]*** CUTSNS_PIN = 1 [16:51:39]*** CUTSNS_PIN = 0 [16:51:39]*** Brake cut motor [16:51:39]Read from MH i2c: 01 [16:51:39]MH_I2C_Read... [16:51:39]*** Stop cut motor [16:51:39]*** Cut end [16:51:39]Read from MH i2c: 01 07 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 FF 0F E2 [16:51:39]process_action close_receipt done [16:51:39]requested_data is exist [16:51:39]produce_requested_data [16:51:39]requested_item fm.sn is exist - process it [16:51:39]wFMCommunicate request_size=4 [16:51:39]MH_SAM_APDU [16:51:39]CAPDU: 80 11 00 00 [16:51:39]Write to MH i2c: E2 08 00 C8 06 80 11 00 00 00 00 00 00 48 [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:39]Read from MH i2c: E2 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 17 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 17 00 C8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 98 [16:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:51:39]wFMCommunicate OK [16:51:39]requested_item fd.num is exist - process it [16:51:39]SAM_PROTO_GetFieldsCounters [16:51:39]wFMCommunicate request_size=4 [16:51:39]MH_SAM_APDU [16:51:39]CAPDU: 80 13 00 00 [16:51:39]Write to MH i2c: E2 08 00 C9 06 80 13 00 00 00 00 00 00 4B [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:39]Read from MH i2c: E2 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 62 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 62 00 C9 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C3 08 00 00 0E 04 04 00 0F 00 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 63 [16:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C3 08 00 00 0E 04 04 00 0F 00 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 [16:51:39]wFMCommunicate OK [16:51:39]SAM_PROTO_GetFieldsCounters done [16:51:39]requested_item shift.num is exist - process it [16:51:39]requested_item shift.opened is exist - process it [16:51:39]req_shift_opened [16:51:39]FM_GetShiftState [16:51:39]SAM_PROTO_GetShiftState [16:51:39]wFMCommunicate request_size=4 [16:51:39]MH_SAM_APDU [16:51:39]CAPDU: 80 13 01 00 [16:51:39]Write to MH i2c: E2 08 00 CA 06 80 13 01 00 00 00 00 00 4D [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:39]Read from MH i2c: E2 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 0E 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 0E 00 CA 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 46 [16:51:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:51:39]wFMCommunicate OK [16:51:39]SAM_PROTO_GetShiftState done [16:51:39]FM_GetShiftState done [16:51:39]req_shift_opened done [16:51:39]requested_item shift.open_date is exist - process it [16:51:39]req_shift_open_date [16:51:39]req_shift_open_date done [16:51:39]produce_requested_data done [16:51:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2243,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:51:39]process_action_free close_receipt [16:51:39]json_value_free [16:51:39]json_value_free done [16:51:39]process_json_proto returns [16:51:39]Send response to host [16:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2243,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:51:39]free response buf [16:51:39]execute_script done [16:51:39]execute_script returns [16:51:39]free content buf [16:51:39]Sock 8.Close socket [16:51:39]Sock 8.Thread stoped [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:17]accept exits with 9 [16:52:17]New connection [16:52:17]New thread 3067157860 created [16:52:17]Thread 3067014500 joined [16:52:17]Waiting for new connection... [16:52:17] Sock 9.Parse request [16:52:17]Sock 9.Check first char [16:52:17]Sock 9.First char is OK [16:52:17]request: POST /json_proto HTTP/1.0 [16:52:17]Method: POST [16:52:17]URL: /json_proto [16:52:17]Method is POST - this is cgi request [16:52:17]url: /json_proto [16:52:17]query_string will be loaded in cgi processing [16:52:17]execute_cgi json_proto POST (null) [16:52:17]execute_cgi path=json_proto method=POST [16:52:17]POST find Content-Length [16:52:17]Host: 172.17.45.132:8080 [16:52:17]Content-Length: 682 [16:52:17]Content-Type: application/json [16:52:17] [16:52:17]POST finish read [16:52:17]Found Content-Length = 682 [16:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 27.860, "sum" : 2081.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2081.00, "payments": [ { "type": 0, "sum" : 2081.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:17]execute_script... [16:52: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)609966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 27.860, "sum" : 2081.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2081.00, "payments": [ { "type": 0, "sum" : 2081.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:17]POST & json_proto [16:52:17]process_json_proto [16:52:17]json parsed OK: [16:52:17]protocol is kg_v1.0 [16:52:17]action value=close_receipt [16:52:17]process_action close_receipt [16:52:17]cmd_close_receipt [16:52:17]MH_GetDate [16:52:17]Write to MH i2c: F0 00 00 CB 06 C0 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: F0 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: F0 09 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: F0 09 00 CB 06 00 C2 C8 A7 66 E3 0B 90 66 44 [16:52:17]GetLastDocTimeStamp 1722271896 [16:52:17]current date 1722271938 [16:52:17]FM_GetShiftState [16:52:17]SAM_PROTO_GetShiftState [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 13 01 00 [16:52:17]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 0E 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 48 [16:52:17]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:52:17]wFMCommunicate OK [16:52:17]SAM_PROTO_GetShiftState done [16:52:17]FM_GetShiftState done [16:52:17]opened in 1722213119 [16:52:17]opened+sec_in_day 1722299519 [16:52:17]quantity*price = 208114 [16:52:17]sum+1 = 208115 [16:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2081.00 Внесено: 5000.00 СДАЧА: 2919.00 НСП 1% : 18.42 НДС 12% : 221.01 Наличными: 2081.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 93 29.07.2024 16:52 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2244 ФПД: 181746426266442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165218&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2244&fm=181746426266442&tin=02508201610067®Number=0000000000189667&sum=208100 [16:52:18]StoreToDocumentArchive [16:52:18]shift 15 fd 2244 [16:52:18]save to /storage/0015/doc_00002244 [16:52:18]save last doc name /storage/0015/doc_00002244 to /storage/kkm_last_doc_name [16:52:18]save OK [16:52:18]Clear old archive folders... [16:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:18]tlvbuf is B6DDA890 [16:52:18]SAM_PROTO_ClearQueue [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 09 00 00 [16:52:18]Write to MH i2c: E2 08 00 D9 06 80 09 00 00 00 00 00 00 51 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]SAM_PROTO_ClearQueue done [16:52:18]KKMCreateOFDPacket [16:52:18]OFDProtocolAddRootSTLVToBuf [16:52:18]FM_MakeSignedData [16:52:18]FM_MakeSignedData [16:52:18]SAM_PROTO_SignData [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 01 02 [16:52:18]Write to MH i2c: E2 08 00 DA 06 80 0D 01 02 00 00 00 00 59 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=255 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D4 6C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F2 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 56 00 00 00 00 07 04 06 00 E4 2C 03 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 C2 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C4 08 00 00 35 04 06 00 A5 [16:52:18]Write to MH i2c: E2 02 01 DB 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D4 6C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F2 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 56 00 00 00 00 07 04 06 00 E4 2C 03 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 C2 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C4 08 00 00 35 04 06 00 A5 00 00 98 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=10 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 02 02 05 4C 23 2D 43 4A [16:52:18]Write to MH i2c: E2 0D 00 DC 06 80 0D 02 02 05 00 4C 23 2D 43 4A 00 00 8F [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [16:52:18]RAPDU: 90 00 [16:52:18]wFMCommunicate OK [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 0D 03 02 [16:52:18]Write to MH i2c: E2 08 00 DD 06 80 0D 03 02 00 00 00 00 5E [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0B 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 0B 00 DD 06 00 41 F8 45 5A EE 0B 95 15 90 00 DA [16:52:18]RAPDU: 41 F8 45 5A EE 0B 95 15 90 00 [16:52:18]wFMCommunicate OK [16:52:18]SAM_PROTO_SignData done [16:52:18]FM_MakeSignedData done [16:52:18]CreateOFDProtocolMessage [16:52:18]wFMCommunicate request_size=4 [16:52:18]MH_SAM_APDU [16:52:18]CAPDU: 80 11 00 00 [16:52:18]Write to MH i2c: E2 08 00 DE 06 80 11 00 00 00 00 00 00 5E [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]OFD Sender: No OFD packet to send [16:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:18]Read from MH i2c: E2 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 17 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: E2 17 00 DE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AE [16:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:52:18]wFMCommunicate OK [16:52:18]CreateOFDProtocolMessage done [16:52:18]OFDSenderStorePacket 2244 [16:52:18]StoreOFDPacket docnum=2244 [16:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 50 9B 07 01 E1 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D4 6C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F2 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 56 00 00 00 00 07 04 06 00 E4 2C 03 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 C2 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C4 08 00 00 35 04 06 00 A5 4C 23 2D 43 4A 41 F8 45 5A EE 0B 95 15 [16:52:18]CheckFolder [16:52:18]dirname=/storage/ofd_packets [16:52:18]CheckFolder done [16:52:18]ProducePacketName [16:52:18]name=ofd_packets/00002244 [16:52:18]NVStorageSaveData ofd_packets/00002244 [16:52:18]File name is /storage/ofd_packets/00002244 [16:52:18]Write 301 bytes [16:52:18]NVStorageSaveData done [16:52:18]OFDSenderStorePacket done [16:52:18]KKMCreateOFDPacket done [16:52:18]NVStorageSaveData kkm_last_timestamp [16:52:18]File name is /storage/kkm_last_timestamp [16:52:18]Write 4 bytes [16:52:18]NVStorageSaveData done [16:52:18]ExternCall_PrintAddStr [16:52:18]wPrintStart [16:52:18]Write to MH i2c: 01 00 00 DF 06 E5 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [16:52:18]RasterBufferAndPrint [16:52:18]line Счет N : (1)609966 [16:52:18]line ИНН: 02508201610067 [16:52:18]line Контрольно-Кассовый Чек [16:52:18]line ПРОДАЖА [16:52:18]line ТРК (МРК, ГНК) : 53 [16:52:18]line Товар: 2710124500 [16:52:18]line Аи-95-К-3 [16:52:18]line 27.860 * 74.70 [16:52:18]line = 2081.14 [16:52:18]line НДС 12% НСП 1% [16:52:18]line > о реализуемом товаре [16:52:18]line ОКРУГЛЕНИЕ: -0.14 [16:52:18]line ИТОГО: 2081.00 [16:52:18]line Внесено: 5000.00 [16:52:18]line СДАЧА: 2919.00 [16:52:18]line НСП 1% : 18.42 [16:52:18]line НДС 12% : 221.01 [16:52:18]line Наличными: 2081.00 [16:52:18]line Безнал.: 0.00 [16:52:18]line Место: АЗС № 127 "Партнер Нефть" [16:52:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:52:18]line СНО: Общий режим [16:52:18]line Чек 93 29.07.2024 16:52 [16:52:18]line Смена: 15 ФФД: 1.0 [16:52:18]line ЗНМ: 0300000161 [16:52:19]line РНМ: 0000000000189667 [16:52:19]line Версия ККМ: v1.0 [16:52:19]line ФМ: 0000000002094248 [16:52:19]line ФД: 2244 [16:52:19]line ФПД: 181746426266442 [16:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165218&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2244&fm=181746426266442&tin=02508201610067®Number=0000000000189667&sum=208100 [16:52:19]OFD Sender: Processing packet 2244 [packets to send 1, broken 0] [16:52:19]ProducePacketName [16:52:19]name=ofd_packets/00002244 [16:52:19]OFD Sender: To server: pG, [16:52:19]CommunicateWithHost lk.salyk.kg:30040 [16:52:19]ConnectInit lk.salyk.kg [16:52:19]written 0, free lines is 4095 [16:52:19]Connected sock=10 [16:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 50 9B 07 01 E1 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D4 6C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F2 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 56 00 00 00 00 07 04 06 00 E4 2C 03 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 C2 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C4 08 00 00 35 04 06 00 A5 4C 23 2D 43 4A 41 F8 45 5A EE 0B 95 15 [16:52:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E5 69 47 00 FD 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 32 30 39 34 32 34 38 10 04 04 00 C4 08 00 00 F4 03 04 00 2E 74 A7 66 B6 04 01 00 00 03 5B 56 88 D5 24 05 77 [16:52:19]CommunicateWithHost err = 0 [16:52:19]CheckOFDResponse [16:52:19]1017 (14) - 77093643461234 [16:52:19]1041 (16) - 0000000002094248 [16:52:19]1040 (4) - 2244 [16:52:19]1012 (4) - 29.07.2024 10:51 [16:52:19]1206 (1) - 0 [16:52:19]OFD Sender: Remove packet 2244 [16:52:19]ProducePacketName [16:52:19]name=ofd_packets/00002244 [16:52:19]NVStorageDeleteData [16:52:19]Write to MH i2c: 01 00 00 0A 07 11 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 07 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 06 0D 2B [16:52:19]RasterBufferAndPrint [16:52:19]line [16:52:19]line [16:52:19]line [16:52:19]line [16:52:19]line [16:52:19]written 0, free lines is 3340 [16:52:19]MH_Cut [16:52:19]Write to MH i2c: D1 01 00 11 07 01 EA [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 01 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: D1 01 00 11 07 00 E9 [16:52:19]Write to MH i2c: 01 00 00 12 07 19 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:20]OFD Sender: No OFD packet to send [16:52:20]*** Cut start [16:52:20]*** Partial cut [16:52:20]*** CUTSNS_PIN = 1 [16:52:20]*** CUTSNS_PIN = 0 [16:52:20]*** Brake cut motor [16:52:20]Read from MH i2c: 01 [16:52:20]MH_I2C_Read... [16:52:20]*** Stop cut motor [16:52:20]*** Cut end [16:52:20]Read from MH i2c: 01 07 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [16:52:20]process_action close_receipt done [16:52:20]requested_data is exist [16:52:20]produce_requested_data [16:52:20]requested_item fm.sn is exist - process it [16:52:20]wFMCommunicate request_size=4 [16:52:20]MH_SAM_APDU [16:52:20]CAPDU: 80 11 00 00 [16:52:20]Write to MH i2c: E2 08 00 13 07 80 11 00 00 00 00 00 00 94 [16:52:20]Write i2c OK [16:52:20]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 17 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 17 00 13 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E4 [16:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:52:21]wFMCommunicate OK [16:52:21]requested_item fd.num is exist - process it [16:52:21]SAM_PROTO_GetFieldsCounters [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 13 00 00 [16:52:21]Write to MH i2c: E2 08 00 14 07 80 13 00 00 00 00 00 00 97 [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 62 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 62 00 14 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C4 08 00 00 0E 04 04 00 0F 00 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 B3 [16:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C4 08 00 00 0E 04 04 00 0F 00 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 [16:52:21]wFMCommunicate OK [16:52:21]SAM_PROTO_GetFieldsCounters done [16:52:21]requested_item shift.num is exist - process it [16:52:21]requested_item shift.opened is exist - process it [16:52:21]req_shift_opened [16:52:21]FM_GetShiftState [16:52:21]SAM_PROTO_GetShiftState [16:52:21]wFMCommunicate request_size=4 [16:52:21]MH_SAM_APDU [16:52:21]CAPDU: 80 13 01 00 [16:52:21]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [16:52:21]Write i2c OK [16:52:21]MH_I2C_Read... [16:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:21]Read from MH i2c: E2 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 0E 00 [16:52:21]MH_I2C_Read... [16:52:21]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 92 [16:52:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:52:21]wFMCommunicate OK [16:52:21]SAM_PROTO_GetShiftState done [16:52:21]FM_GetShiftState done [16:52:21]req_shift_opened done [16:52:21]requested_item shift.open_date is exist - process it [16:52:21]req_shift_open_date [16:52:21]req_shift_open_date done [16:52:21]produce_requested_data done [16:52:21]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2244,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:52:21]process_action_free close_receipt [16:52:21]json_value_free [16:52:21]json_value_free done [16:52:21]process_json_proto returns [16:52:21]Send response to host [16:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2244,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:52:21]free response buf [16:52:21]execute_script done [16:52:21]execute_script returns [16:52:21]free content buf [16:52:21]Sock 9.Close socket [16:52:21]Sock 9.Thread stoped [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:34]accept exits with 8 [16:52:34]New connection [16:52:34]New thread 3067014500 created [16:52:34]Thread 3067157860 joined [16:52:34]Waiting for new connection... [16:52:34] Sock 8.Parse request [16:52:34]Sock 8.Check first char [16:52:34]Sock 8.First char is OK [16:52:34]request: POST /json_proto HTTP/1.0 [16:52:34]Method: POST [16:52:34]URL: /json_proto [16:52:34]Method is POST - this is cgi request [16:52:34]url: /json_proto [16:52:34]query_string will be loaded in cgi processing [16:52:34]execute_cgi json_proto POST (null) [16:52:34]execute_cgi path=json_proto method=POST [16:52:34]POST find Content-Length [16:52:34]Host: 172.17.45.132:8080 [16:52:34]Content-Length: 728 [16:52:34]Content-Type: application/json [16:52:34] [16:52:34]POST finish read [16:52:34]Found Content-Length = 728 [16:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126528", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:34]execute_script... [16:52:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126528", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:34]POST & json_proto [16:52:34]process_json_proto [16:52:34]json parsed OK: [16:52:34]protocol is kg_v1.0 [16:52:34]action value=close_receipt [16:52:34]process_action close_receipt [16:52:34]cmd_close_receipt [16:52:34]MH_GetDate [16:52:34]Write to MH i2c: F0 00 00 16 07 0C [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: F0 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: F0 09 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: F0 09 00 16 07 00 D3 C8 A7 66 E3 0B 90 66 A1 [16:52:34]GetLastDocTimeStamp 1722271938 [16:52:34]current date 1722271955 [16:52:34]FM_GetShiftState [16:52:34]SAM_PROTO_GetShiftState [16:52:34]wFMCommunicate request_size=4 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 13 01 00 [16:52:34]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 0E 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 94 [16:52:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:52:34]wFMCommunicate OK [16:52:34]SAM_PROTO_GetShiftState done [16:52:34]FM_GetShiftState done [16:52:34]opened in 1722213119 [16:52:34]opened+sec_in_day 1722299519 [16:52:34]quantity*price = 10700 [16:52:34]sum+1 = 10701 [16:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 94 29.07.2024 16:52 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2245 ФПД: 87682382781667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165235&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2245&fm=87682382781667&tin=02508201610067®Number=0000000000189667&sum=10700 0 [16:52:35]StoreToDocumentArchive [16:52:35]shift 15 fd 2245 [16:52:35]save to /storage/0015/doc_00002245 [16:52:35]save last doc name /storage/0015/doc_00002245 to /storage/kkm_last_doc_name [16:52:35]save OK [16:52:35]Clear old archive folders... [16:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=308 [16:52:35]tlvbuf is 02015DA0 [16:52:35]SAM_PROTO_ClearQueue [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 09 00 00 [16:52:35]Write to MH i2c: E2 08 00 24 07 80 09 00 00 00 00 00 00 9D [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]SAM_PROTO_ClearQueue done [16:52:35]KKMCreateOFDPacket [16:52:35]OFDProtocolAddRootSTLVToBuf [16:52:35]FM_MakeSignedData [16:52:35]FM_MakeSignedData [16:52:35]SAM_PROTO_SignData [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 01 02 [16:52:35]Write to MH i2c: E2 08 00 25 07 80 0D 01 02 00 00 00 00 A5 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]wFMCommunicate request_size=255 [16:52:35]MH_SAM_APDU [16:52:35]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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 5E 00 00 00 F4 03 04 00 D3 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 [16:52:35]Write to MH i2c: E2 02 01 26 07 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 5E 00 00 00 F4 03 04 00 D3 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 00 00 F1 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]wFMCommunicate request_size=67 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 08 00 00 35 04 06 00 4F BF 25 47 5C E3 [16:52:35]Write to MH i2c: E2 46 00 27 07 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 08 00 00 35 04 06 00 4F BF 25 47 5C E3 00 00 8F [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 03 02 [16:52:35]Write to MH i2c: E2 08 00 28 07 80 0D 03 02 00 00 00 00 AA [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0B 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0B 00 28 07 00 9A AE 5C AA F4 A1 66 7C 90 00 70 [16:52:35]RAPDU: 9A AE 5C AA F4 A1 66 7C 90 00 [16:52:35]wFMCommunicate OK [16:52:35]SAM_PROTO_SignData done [16:52:35]FM_MakeSignedData done [16:52:35]CreateOFDProtocolMessage [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 11 00 00 [16:52:35]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 17 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FA [16:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:52:35]wFMCommunicate OK [16:52:35]CreateOFDProtocolMessage done [16:52:35]OFDSenderStorePacket 2245 [16:52:35]StoreOFDPacket docnum=2245 [16:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 60 3D 40 01 D9 E4 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 5E 00 00 00 F4 03 04 00 D3 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 08 00 00 35 04 06 00 4F BF 25 47 5C E3 9A AE 5C AA F4 A1 66 7C [16:52:35]CheckFolder [16:52:35]dirname=/storage/ofd_packets [16:52:35]CheckFolder done [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00002245 [16:52:35]NVStorageSaveData ofd_packets/00002245 [16:52:35]File name is /storage/ofd_packets/00002245 [16:52:35]Write 358 bytes [16:52:35]NVStorageSaveData done [16:52:35]OFDSenderStorePacket done [16:52:35]KKMCreateOFDPacket done [16:52:35]NVStorageSaveData kkm_last_timestamp [16:52:35]File name is /storage/kkm_last_timestamp [16:52:35]Write 4 bytes [16:52:35]NVStorageSaveData done [16:52:35]ExternCall_PrintAddStr [16:52:35]wPrintStart [16:52:35]Write to MH i2c: 01 00 00 2A 07 31 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 2A 07 00 00 00 00 00 FF 0F 46 [16:52:35]RasterBufferAndPrint [16:52:35]line Счет N : (3)126528 [16:52:35]line ИНН: 02508201610067 [16:52:35]line Контрольно-Кассовый Чек [16:52:35]line ПРОДАЖА [16:52:35]line Товар: 5449000027474 [16:52:35]line Напиток FuzeTea зел чай манго,ромашка 1л [16:52:35]line 1.000 * 107.00 [16:52:35]line = 107.00 [16:52:35]line НДС 12% НСП 1% [16:52:35]line > о реализуемом товаре [16:52:35]line ИТОГО: 107.00 [16:52:35]line НСП 1% : 0.95 [16:52:35]line НДС 12% : 11.36 [16:52:35]line Наличными: 107.00 [16:52:35]line Безнал.: 0.00 [16:52:35]line Место: АЗС № 127 "Партнер Нефть" [16:52:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:52:36]line СНО: Общий режим [16:52:36]line Чек 94 29.07.2024 16:52 [16:52:36]line Смена: 15 ФФД: 1.0 [16:52:36]line ЗНМ: 0300000161 [16:52:36]line РНМ: 0000000000189667 [16:52:36]line Версия ККМ: v1.0 [16:52:36]line ФМ: 0000000002094248 [16:52:36]line ФД: 2245 [16:52:36]line ФПД: 87682382781667 [16:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165235&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2245&fm=87682382781667&tin=02508201610067®Number=0000000000189667&sum=10700 [16:52:36]line 0 [16:52:36]OFD Sender: Processing packet 2245 [packets to send 1, broken 0] [16:52:36]ProducePacketName [16:52:36]name=ofd_packets/00002245 [16:52:36]OFD Sender: To server: pG, [16:52:36]CommunicateWithHost lk.salyk.kg:30040 [16:52:36]ConnectInit lk.salyk.kg [16:52:36]written 0, free lines is 4095 [16:52:36]Connected sock=10 [16:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 60 3D 40 01 D9 E4 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 5E 00 00 00 F4 03 04 00 D3 C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 08 00 00 35 04 06 00 4F BF 25 47 5C E3 9A AE 5C AA F4 A1 66 7C [16:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 00 DA 47 00 58 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C5 08 00 00 F4 03 04 00 3F 74 A7 66 B6 04 01 00 00 27 87 E7 11 D8 C9 10 19 [16:52:36]CommunicateWithHost err = 0 [16:52:36]CheckOFDResponse [16:52:36]1017 (14) - 77093643461234 [16:52:36]1041 (16) - 0000000002094248 [16:52:36]1040 (4) - 2245 [16:52:36]1012 (4) - 29.07.2024 10:51 [16:52:36]1206 (1) - 0 [16:52:36]OFD Sender: Remove packet 2245 [16:52:36]ProducePacketName [16:52:36]name=ofd_packets/00002245 [16:52:36]NVStorageDeleteData [16:52:36]Write to MH i2c: 01 00 00 53 07 5A [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 07 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 09 0D 77 [16:52:36]RasterBufferAndPrint [16:52:36]line [16:52:36]line [16:52:36]line [16:52:36]line [16:52:36]line [16:52:36]written 0, free lines is 3343 [16:52:36]MH_Cut [16:52:36]Write to MH i2c: D1 01 00 5A 07 01 33 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: D1 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: D1 01 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: D1 01 00 5A 07 00 32 [16:52:36]Write to MH i2c: 01 00 00 5B 07 62 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:37]OFD Sender: No OFD packet to send [16:52:37]*** Cut start [16:52:37]*** Partial cut [16:52:37]*** CUTSNS_PIN = 1 [16:52:37]*** CUTSNS_PIN = 0 [16:52:37]*** Brake cut motor [16:52:38]Read from MH i2c: 01 [16:52:38]MH_I2C_Read... [16:52:38]*** Stop cut motor [16:52:38]*** Cut end [16:52:38]Read from MH i2c: 01 07 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: 01 07 00 5B 07 00 00 00 00 00 FF 0F 77 [16:52:38]process_action close_receipt done [16:52:38]requested_data is exist [16:52:38]produce_requested_data [16:52:38]requested_item fm.sn is exist - process it [16:52:38]wFMCommunicate request_size=4 [16:52:38]MH_SAM_APDU [16:52:38]CAPDU: 80 11 00 00 [16:52:38]Write to MH i2c: E2 08 00 5C 07 80 11 00 00 00 00 00 00 DD [16:52:38]Write i2c OK [16:52:38]MH_I2C_Read... [16:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:38]Read from MH i2c: E2 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 17 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 17 00 5C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2D [16:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:52:38]wFMCommunicate OK [16:52:38]requested_item fd.num is exist - process it [16:52:38]SAM_PROTO_GetFieldsCounters [16:52:38]wFMCommunicate request_size=4 [16:52:38]MH_SAM_APDU [16:52:38]CAPDU: 80 13 00 00 [16:52:38]Write to MH i2c: E2 08 00 5D 07 80 13 00 00 00 00 00 00 E0 [16:52:38]Write i2c OK [16:52:38]MH_I2C_Read... [16:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:38]Read from MH i2c: E2 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 62 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 62 00 5D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C5 08 00 00 0E 04 04 00 0F 00 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 00 [16:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C5 08 00 00 0E 04 04 00 0F 00 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 [16:52:38]wFMCommunicate OK [16:52:38]SAM_PROTO_GetFieldsCounters done [16:52:38]requested_item shift.num is exist - process it [16:52:38]requested_item shift.opened is exist - process it [16:52:38]req_shift_opened [16:52:38]FM_GetShiftState [16:52:38]SAM_PROTO_GetShiftState [16:52:38]wFMCommunicate request_size=4 [16:52:38]MH_SAM_APDU [16:52:38]CAPDU: 80 13 01 00 [16:52:38]Write to MH i2c: E2 08 00 5E 07 80 13 01 00 00 00 00 00 E2 [16:52:38]Write i2c OK [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 [16:52:38]MH_I2C_Read... [16:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:38]Read from MH i2c: E2 0E 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 0E 00 5E 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DB [16:52:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:52:38]wFMCommunicate OK [16:52:38]SAM_PROTO_GetShiftState done [16:52:38]FM_GetShiftState done [16:52:38]req_shift_opened done [16:52:38]requested_item shift.open_date is exist - process it [16:52:38]req_shift_open_date [16:52:38]req_shift_open_date done [16:52:38]produce_requested_data done [16:52:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2245,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:52:38]process_action_free close_receipt [16:52:38]json_value_free [16:52:38]json_value_free done [16:52:38]process_json_proto returns [16:52:38]Send response to host [16:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2245,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:52:38]free response buf [16:52:38]execute_script done [16:52:38]execute_script returns [16:52:38]free content buf [16:52:38]Sock 8.Close socket [16:52:38]Sock 8.Thread stoped [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:52:59]accept exits with 9 [16:52:59]New connection [16:52:59]New thread 3067157860 created [16:52:59]Thread 3067014500 joined [16:52:59]Waiting for new connection... [16:52:59] Sock 9.Parse request [16:52:59]Sock 9.Check first char [16:52:59]Sock 9.First char is OK [16:52:59]request: POST /json_proto HTTP/1.0 [16:52:59]Method: POST [16:52:59]URL: /json_proto [16:52:59]Method is POST - this is cgi request [16:52:59]url: /json_proto [16:52:59]query_string will be loaded in cgi processing [16:52:59]execute_cgi json_proto POST (null) [16:52:59]execute_cgi path=json_proto method=POST [16:52:59]POST find Content-Length [16:52:59]Host: 172.17.45.132:8080 [16:52:59]Content-Length: 984 [16:52:59]Content-Type: application/json [16:52:59] [16:52:59]POST finish read [16:52:59]Found Content-Length = 984 [16:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.80, "quantity" : 37.430, "sum" : 2500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 127\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.43 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:59]execute_script... [16:52:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.80, "quantity" : 37.430, "sum" : 2500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 127\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 37.43 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:59]POST & json_proto [16:52:59]process_json_proto [16:52:59]json parsed OK: [16:52:59]protocol is kg_v1.0 [16:52:59]action value=close_receipt [16:52:59]process_action close_receipt [16:52:59]cmd_close_receipt [16:52:59]MH_GetDate [16:52:59]Write to MH i2c: F0 00 00 5F 07 55 [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: F0 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: F0 09 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: F0 09 00 5F 07 00 EC C8 A7 66 E3 0B 90 66 03 [16:52:59]GetLastDocTimeStamp 1722271955 [16:52:59]current date 1722271980 [16:52:59]FM_GetShiftState [16:52:59]SAM_PROTO_GetShiftState [16:52:59]wFMCommunicate request_size=4 [16:52:59]MH_SAM_APDU [16:52:59]CAPDU: 80 13 01 00 [16:52:59]Write to MH i2c: E2 08 00 60 07 80 13 01 00 00 00 00 00 E4 [16:52:59]Write i2c OK [16:52:59]MH_I2C_Read... [16:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:59]Read from MH i2c: E2 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 0E 00 [16:52:59]MH_I2C_Read... [16:52:59]Read from MH i2c: E2 0E 00 60 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DD [16:52:59]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:52:59]wFMCommunicate OK [16:52:59]SAM_PROTO_GetShiftState done [16:52:59]FM_GetShiftState done [16:52:59]opened in 1722213119 [16:52:59]opened+sec_in_day 1722299519 [16:52:59]quantity*price = 250032 [16:52:59]sum+1 = 250033 [16:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 95 29.07.2024 16:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 127 сэкономлено 37.43 сом ФМ: 0000000002094248 ФД: 2246 ФПД: 134637078892281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2246&fm=134637078892281&tin=02508201610067®Number=0000000000189667&sum=250000 [16:53:00]StoreToDocumentArchive [16:53:00]shift 15 fd 2246 [16:53:00]save to /storage/0015/doc_00002246 [16:53:00]save last doc name /storage/0015/doc_00002246 to /storage/kkm_last_doc_name [16:53:00]save OK [16:53:00]Clear old archive folders... [16:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:00]tlvbuf is 0202B820 [16:53:00]SAM_PROTO_ClearQueue [16:53:00]wFMCommunicate request_size=4 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 09 00 00 [16:53:00]Write to MH i2c: E2 08 00 6D 07 80 09 00 00 00 00 00 00 E6 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [16:53:00]RAPDU: 90 00 [16:53:00]wFMCommunicate OK [16:53:00]SAM_PROTO_ClearQueue done [16:53:00]KKMCreateOFDPacket [16:53:00]OFDProtocolAddRootSTLVToBuf [16:53:00]FM_MakeSignedData [16:53:00]FM_MakeSignedData [16:53:00]SAM_PROTO_SignData [16:53:00]wFMCommunicate request_size=4 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 0D 01 02 [16:53:00]Write to MH i2c: E2 08 00 6E 07 80 0D 01 02 00 00 00 00 EE [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [16:53:00]RAPDU: 90 00 [16:53:00]wFMCommunicate OK [16:53:00]wFMCommunicate request_size=255 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 EC C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 08 00 00 35 04 06 00 7A [16:53:00]Write to MH i2c: E2 02 01 6F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 EC C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 08 00 00 35 04 06 00 7A 00 00 84 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [16:53:00]RAPDU: 90 00 [16:53:00]wFMCommunicate OK [16:53:00]wFMCommunicate request_size=10 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 0D 02 02 05 73 A3 42 CE F9 [16:53:00]Write to MH i2c: E2 0D 00 70 07 80 0D 02 02 05 00 73 A3 42 CE F9 00 00 1A [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [16:53:00]RAPDU: 90 00 [16:53:00]wFMCommunicate OK [16:53:00]wFMCommunicate request_size=4 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 0D 03 02 [16:53:00]Write to MH i2c: E2 08 00 71 07 80 0D 03 02 00 00 00 00 F3 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 0B 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 0B 00 71 07 00 32 F7 C9 3D D6 E3 DE 1A 90 00 D4 [16:53:00]RAPDU: 32 F7 C9 3D D6 E3 DE 1A 90 00 [16:53:00]wFMCommunicate OK [16:53:00]SAM_PROTO_SignData done [16:53:00]FM_MakeSignedData done [16:53:00]CreateOFDProtocolMessage [16:53:00]wFMCommunicate request_size=4 [16:53:00]MH_SAM_APDU [16:53:00]CAPDU: 80 11 00 00 [16:53:00]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:00]Read from MH i2c: E2 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 17 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 43 [16:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:53:00]wFMCommunicate OK [16:53:00]CreateOFDProtocolMessage done [16:53:00]OFDSenderStorePacket 2246 [16:53:00]StoreOFDPacket docnum=2246 [16:53:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 FE 2D 07 01 3D 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 EC C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 08 00 00 35 04 06 00 7A 73 A3 42 CE F9 32 F7 C9 3D D6 E3 DE 1A [16:53:00]CheckFolder [16:53:00]dirname=/storage/ofd_packets [16:53:00]CheckFolder done [16:53:00]ProducePacketName [16:53:00]name=ofd_packets/00002246 [16:53:00]NVStorageSaveData ofd_packets/00002246 [16:53:00]File name is /storage/ofd_packets/00002246 [16:53:00]Write 301 bytes [16:53:00]NVStorageSaveData done [16:53:00]OFDSenderStorePacket done [16:53:00]KKMCreateOFDPacket done [16:53:00]NVStorageSaveData kkm_last_timestamp [16:53:00]File name is /storage/kkm_last_timestamp [16:53:00]Write 4 bytes [16:53:00]NVStorageSaveData done [16:53:00]ExternCall_PrintAddStr [16:53:00]wPrintStart [16:53:00]Write to MH i2c: 01 00 00 73 07 7A [16:53:00]Write i2c OK [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: 01 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: 01 07 00 [16:53:00]MH_I2C_Read... [16:53:00]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [16:53:00]RasterBufferAndPrint [16:53:00]line Счет N : (1)609968 [16:53:00]line ИНН: 02508201610067 [16:53:00]line Контрольно-Кассовый Чек [16:53:00]line ПРОДАЖА [16:53:00]line ТРК (МРК, ГНК) : 42 [16:53:00]line Товар: 2710124130 [16:53:00]line Аи-92-К-2 [16:53:00]line 37.430 * 66.80 [16:53:00]line = 2500.32 [16:53:00]line НДС 12% НСП 1% [16:53:00]line > о реализуемом товаре [16:53:00]line ОКРУГЛЕНИЕ: -0.32 [16:53:00]line ИТОГО: 2500.00 [16:53:00]line Внесено: 2500.00 [16:53:00]line СДАЧА: 0.00 [16:53:00]line НСП 1% : 22.13 [16:53:00]line НДС 12% : 265.52 [16:53:00]line Наличными: 2500.00 [16:53:00]line Безнал.: 0.00 [16:53:00]line Место: АЗС № 127 "Партнер Нефть" [16:53:00]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [16:53:00]line СНО: Общий режим [16:53:00]line Чек 95 29.07.2024 16:53 [16:53:00]line Смена: 15 ФФД: 1.0 [16:53:00]line ЗНМ: 0300000161 [16:53:00]line РНМ: 0000000000189667 [16:53:00]line Версия ККМ: v1.0 [16:53:00]line [16:53:00]line Дисконтная программа [16:53:00]line АИ-92 [16:53:00]line номер 127 [16:53:00]line сэкономлено 37.43 сом [16:53:00]line ФМ: 0000000002094248 [16:53:00]line ФД: 2246 [16:53:00]line ФПД: 134637078892281 [16:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2246&fm=134637078892281&tin=02508201610067®Number=0000000000189667&sum=250000 [16:53:01]OFD Sender: Processing packet 2246 [packets to send 1, broken 0] [16:53:01]ProducePacketName [16:53:01]name=ofd_packets/00002246 [16:53:01]OFD Sender: To server: pG, [16:53:01]CommunicateWithHost lk.salyk.kg:30040 [16:53:01]ConnectInit lk.salyk.kg [16:53:01]written 0, free lines is 4095 [16:53:01]Connected sock=10 [16:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 FE 2D 07 01 3D 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 EC C8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C6 08 00 00 35 04 06 00 7A 73 A3 42 CE F9 32 F7 C9 3D D6 E3 DE 1A [16:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 58 90 47 00 A3 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 32 30 39 34 32 34 38 10 04 04 00 C6 08 00 00 F4 03 04 00 58 74 A7 66 B6 04 01 00 00 0E 1E 08 07 30 67 30 C2 [16:53:01]CommunicateWithHost err = 0 [16:53:01]CheckOFDResponse [16:53:01]1017 (14) - 77093643461234 [16:53:01]1041 (16) - 0000000002094248 [16:53:01]1040 (4) - 2246 [16:53:01]1012 (4) - 29.07.2024 10:52 [16:53:01]1206 (1) - 0 [16:53:01]OFD Sender: Remove packet 2246 [16:53:01]ProducePacketName [16:53:01]name=ofd_packets/00002246 [16:53:01]NVStorageDeleteData [16:53:01]Write to MH i2c: 01 00 00 A3 07 AA [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: 01 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: 01 07 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 B3 0C 70 [16:53:01]RasterBufferAndPrint [16:53:01]line [16:53:01]line [16:53:01]line [16:53:01]line [16:53:01]line [16:53:01]written 0, free lines is 3258 [16:53:01]MH_Cut [16:53:01]Write to MH i2c: D1 01 00 AA 07 01 83 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: D1 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: D1 01 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: D1 01 00 AA 07 00 82 [16:53:01]Write to MH i2c: 01 00 00 AB 07 B2 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:02]OFD Sender: No OFD packet to send [16:53:02]*** Cut start [16:53:02]*** Partial cut [16:53:02]*** CUTSNS_PIN = 1 [16:53:02]*** CUTSNS_PIN = 0 [16:53:02]*** Brake cut motor [16:53:03]Read from MH i2c: 01 [16:53:03]MH_I2C_Read... [16:53:03]*** Stop cut motor [16:53:03]*** Cut end [16:53:03]Read from MH i2c: 01 07 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [16:53:03]process_action close_receipt done [16:53:03]requested_data is exist [16:53:03]produce_requested_data [16:53:03]requested_item fm.sn is exist - process it [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 11 00 00 [16:53:03]Write to MH i2c: E2 08 00 AC 07 80 11 00 00 00 00 00 00 2D [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 AC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7D [16:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [16:53:03]wFMCommunicate OK [16:53:03]requested_item fd.num is exist - process it [16:53:03]SAM_PROTO_GetFieldsCounters [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 13 00 00 [16:53:03]Write to MH i2c: E2 08 00 AD 07 80 13 00 00 00 00 00 00 30 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 62 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 62 00 AD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C6 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [16:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C6 08 00 00 0E 04 04 00 0F 00 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 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_GetFieldsCounters done [16:53:03]requested_item shift.num is exist - process it [16:53:03]requested_item shift.opened is exist - process it [16:53:03]req_shift_opened [16:53:03]FM_GetShiftState [16:53:03]SAM_PROTO_GetShiftState [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 13 01 00 [16:53:03]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0E 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 2B [16:53:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_GetShiftState done [16:53:03]FM_GetShiftState done [16:53:03]req_shift_opened done [16:53:03]requested_item shift.open_date is exist - process it [16:53:03]req_shift_open_date [16:53:03]req_shift_open_date done [16:53:03]produce_requested_data done [16:53:03]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2246,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [16:53:03]process_action_free close_receipt [16:53:03]json_value_free [16:53:03]json_value_free done [16:53:03]process_json_proto returns [16:53:03]Send response to host [16:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2246,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [16:53:03]free response buf [16:53:03]execute_script done [16:53:03]execute_script returns [16:53:03]free content buf [16:53:03]Sock 9.Close socket [16:53:03]Sock 9.Thread stoped [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:39]accept exits with 8 [17:17:39]New connection [17:17:39]New thread 3067014500 created [17:17:39]Thread 3067157860 joined [17:17:39]Waiting for new connection... [17:17:39] Sock 8.Parse request [17:17:39]Sock 8.Check first char [17:17:39]Sock 8.First char is OK [17:17:39]request: POST /json_proto HTTP/1.0 [17:17:39]Method: POST [17:17:39]URL: /json_proto [17:17:39]Method is POST - this is cgi request [17:17:39]url: /json_proto [17:17:39]query_string will be loaded in cgi processing [17:17:39]execute_cgi json_proto POST (null) [17:17:39]execute_cgi path=json_proto method=POST [17:17:39]POST find Content-Length [17:17:39]Host: 172.17.45.132:8080 [17:17:39]Content-Length: 939 [17:17:39]Content-Type: application/json [17:17:39] [17:17:39]POST finish read [17:17:39]Found Content-Length = 939 [17:17:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126529", "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" : 95.00, "quantity" : 1.000, "sum" : 95.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 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:39]execute_script... [17:17:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126529", "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" : 95.00, "quantity" : 1.000, "sum" : 95.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 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:39]POST & json_proto [17:17:39]process_json_proto [17:17:39]json parsed OK: [17:17:39]protocol is kg_v1.0 [17:17:39]action value=close_receipt [17:17:39]process_action close_receipt [17:17:39]cmd_close_receipt [17:17:39]MH_GetDate [17:17:39]Write to MH i2c: F0 00 00 AF 07 A5 [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: F0 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: F0 09 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: F0 09 00 AF 07 00 B4 CE A7 66 E3 0B 90 66 21 [17:17:39]GetLastDocTimeStamp 1722271980 [17:17:39]current date 1722273460 [17:17:39]FM_GetShiftState [17:17:39]SAM_PROTO_GetShiftState [17:17:39]wFMCommunicate request_size=4 [17:17:39]MH_SAM_APDU [17:17:39]CAPDU: 80 13 01 00 [17:17:39]Write to MH i2c: E2 08 00 B0 07 80 13 01 00 00 00 00 00 34 [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:39]Read from MH i2c: E2 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 0E 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: E2 0E 00 B0 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 2D [17:17:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:17:39]wFMCommunicate OK [17:17:39]SAM_PROTO_GetShiftState done [17:17:39]FM_GetShiftState done [17:17:39]opened in 1722213119 [17:17:39]opened+sec_in_day 1722299519 [17:17:39]quantity*price = 9500 [17:17:39]sum+1 = 9501 [17:17:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4670003195728 Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л 1.000 * 225.00 = 225.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 96 29.07.2024 17:17 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2247 ФПД: 52634407093937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171740&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2247&fm=52634407093937&tin=02508201610067®Number=0000000000189667&sum=32000 0 [17:17:40]StoreToDocumentArchive [17:17:40]shift 15 fd 2247 [17:17:40]save to /storage/0015/doc_00002247 [17:17:40]save last doc name /storage/0015/doc_00002247 to /storage/kkm_last_doc_name [17:17:40]save OK [17:17:40]Clear old archive folders... [17:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=419 [17:17:40]tlvbuf is 0203C110 [17:17:40]SAM_PROTO_ClearQueue [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 09 00 00 [17:17:40]Write to MH i2c: E2 08 00 BD 07 80 09 00 00 00 00 00 00 36 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]SAM_PROTO_ClearQueue done [17:17:40]KKMCreateOFDPacket [17:17:40]OFDProtocolAddRootSTLVToBuf [17:17:40]FM_MakeSignedData [17:17:40]FM_MakeSignedData [17:17:40]SAM_PROTO_SignData [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 0D 01 02 [17:17:40]Write to MH i2c: E2 08 00 BE 07 80 0D 01 02 00 00 00 00 3E [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]wFMCommunicate request_size=255 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 0D 02 02 FA 03 00 A3 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 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 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 [17:17:40]Write to MH i2c: E2 02 01 BF 07 80 0D 02 02 FA 00 03 00 A3 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 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 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 00 00 55 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]wFMCommunicate request_size=178 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 0D 02 02 AD 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 60 00 00 00 F4 03 04 00 B4 CE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 08 00 00 35 04 06 00 2F DE E7 23 46 B1 [17:17:40]Write to MH i2c: E2 B5 00 C0 07 80 0D 02 02 AD 00 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 60 00 00 00 F4 03 04 00 B4 CE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 08 00 00 35 04 06 00 2F DE E7 23 46 B1 00 00 EE [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [17:17:40]RAPDU: 90 00 [17:17:40]wFMCommunicate OK [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 0D 03 02 [17:17:40]Write to MH i2c: E2 08 00 C1 07 80 0D 03 02 00 00 00 00 43 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 0B 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 0B 00 C1 07 00 C1 AC F4 D4 A1 9F 3D 1B 90 00 11 [17:17:40]RAPDU: C1 AC F4 D4 A1 9F 3D 1B 90 00 [17:17:40]wFMCommunicate OK [17:17:40]SAM_PROTO_SignData done [17:17:40]FM_MakeSignedData done [17:17:40]CreateOFDProtocolMessage [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 11 00 00 [17:17:40]Write to MH i2c: E2 08 00 C2 07 80 11 00 00 00 00 00 00 43 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:41]Read from MH i2c: E2 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 17 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 17 00 C2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 93 [17:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:17:41]wFMCommunicate OK [17:17:41]CreateOFDProtocolMessage done [17:17:41]OFDSenderStorePacket 2247 [17:17:41]StoreOFDPacket docnum=2247 [17:17:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B7 01 00 00 31 5C AF 01 DD 98 5A 03 01 00 03 00 A3 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 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 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 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 60 00 00 00 F4 03 04 00 B4 CE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 08 00 00 35 04 06 00 2F DE E7 23 46 B1 C1 AC F4 D4 A1 9F 3D 1B [17:17:41]CheckFolder [17:17:41]dirname=/storage/ofd_packets [17:17:41]CheckFolder done [17:17:41]ProducePacketName [17:17:41]name=ofd_packets/00002247 [17:17:41]NVStorageSaveData ofd_packets/00002247 [17:17:41]File name is /storage/ofd_packets/00002247 [17:17:41]Write 469 bytes [17:17:41]NVStorageSaveData done [17:17:41]OFDSenderStorePacket done [17:17:41]KKMCreateOFDPacket done [17:17:41]NVStorageSaveData kkm_last_timestamp [17:17:41]File name is /storage/kkm_last_timestamp [17:17:41]Write 4 bytes [17:17:41]NVStorageSaveData done [17:17:41]ExternCall_PrintAddStr [17:17:41]wPrintStart [17:17:41]Write to MH i2c: 01 00 00 C3 07 CA [17:17:41]OFD Sender: Processing packet 2247 [packets to send 1, broken 0] [17:17:41]ProducePacketName [17:17:41]name=ofd_packets/00002247 [17:17:41]OFD Sender: To server: pG, [17:17:41]CommunicateWithHost lk.salyk.kg:30040 [17:17:41]ConnectInit lk.salyk.kg [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 07 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 FF 0F DF [17:17:41]RasterBufferAndPrint [17:17:41]line Счет N : (3)126529 [17:17:41]line ИНН: 02508201610067 [17:17:41]line Контрольно-Кассовый Чек [17:17:41]line ПРОДАЖА [17:17:41]line Товар: 4700000480050 [17:17:41]line Напиток Nitro Energy эн green ж/б 0,45л [17:17:41]line 1.000 * 95.00 [17:17:41]line = 95.00 [17:17:41]line НДС 12% НСП 1% [17:17:41]line > о реализуемом товаре [17:17:41]line Товар: 4670003195728 [17:17:41]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [17:17:41]line 1.000 * 225.00 [17:17:41]line = 225.00 [17:17:41]line НДС 12% НСП 1% [17:17:41]line > о реализуемом товаре [17:17:41]line ИТОГО: 320.00 [17:17:41]line НСП 1% : 2.83 [17:17:41]line НДС 12% : 33.98 [17:17:41]line Наличными: 320.00 [17:17:41]line Безнал.: 0.00 [17:17:41]line Место: АЗС № 127 "Партнер Нефть" [17:17:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:17:41]line СНО: Общий режим [17:17:41]line Чек 96 29.07.2024 17:17 [17:17:41]line Смена: 15 ФФД: 1.0 [17:17:41]line ЗНМ: 0300000161 [17:17:41]line РНМ: 0000000000189667 [17:17:41]line Версия ККМ: v1.0 [17:17:41]line ФМ: 0000000002094248 [17:17:41]line ФД: 2247 [17:17:41]line ФПД: 52634407093937 [17:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171740&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2247&fm=52634407093937&tin=02508201610067®Number=0000000000189667&sum=32000 [17:17:41]line 0 [17:17:41]written 0, free lines is 4095 [17:17:41]Connected sock=10 [17:17:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B7 01 00 00 31 5C AF 01 DD 98 5A 03 01 00 03 00 A3 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 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 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 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 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 60 00 00 00 F4 03 04 00 B4 CE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 08 00 00 35 04 06 00 2F DE E7 23 46 B1 C1 AC F4 D4 A1 9F 3D 1B [17:17:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BE C2 47 00 2A C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C7 08 00 00 F4 03 04 00 20 7A A7 66 B6 04 01 00 00 C1 6C 66 89 3E 15 97 74 [17:17:41]CommunicateWithHost err = 0 [17:17:41]CheckOFDResponse [17:17:41]1017 (14) - 77093643461234 [17:17:41]1041 (16) - 0000000002094248 [17:17:41]1040 (4) - 2247 [17:17:41]1012 (4) - 29.07.2024 11:16 [17:17:41]1206 (1) - 0 [17:17:41]OFD Sender: Remove packet 2247 [17:17:41]ProducePacketName [17:17:41]name=ofd_packets/00002247 [17:17:41]NVStorageDeleteData [17:17:41]Write to MH i2c: 01 00 00 F3 07 FA [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 07 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 C6 0C D3 [17:17:41]RasterBufferAndPrint [17:17:41]line [17:17:41]line [17:17:41]line [17:17:41]line [17:17:41]line [17:17:41]written 0, free lines is 3280 [17:17:41]MH_Cut [17:17:41]Write to MH i2c: D1 01 00 FA 07 01 D3 [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: D1 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: D1 01 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: D1 01 00 FA 07 00 D2 [17:17:41]Write to MH i2c: 01 00 00 FB 07 02 [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:42]OFD Sender: No OFD packet to send [17:17:42]*** Cut start [17:17:42]*** Partial cut [17:17:42]*** CUTSNS_PIN = 1 [17:17:42]*** CUTSNS_PIN = 0 [17:17:42]*** Brake cut motor [17:17:43]Read from MH i2c: 01 [17:17:43]MH_I2C_Read... [17:17:43]*** Stop cut motor [17:17:43]*** Cut end [17:17:43]Read from MH i2c: 01 07 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [17:17:43]process_action close_receipt done [17:17:43]requested_data is exist [17:17:43]produce_requested_data [17:17:43]requested_item fm.sn is exist - process it [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 11 00 00 [17:17:43]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 17 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CD [17:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:17:43]wFMCommunicate OK [17:17:43]requested_item fd.num is exist - process it [17:17:43]SAM_PROTO_GetFieldsCounters [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 13 00 00 [17:17:43]Write to MH i2c: E2 08 00 FD 07 80 13 00 00 00 00 00 00 80 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 62 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 62 00 FD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C7 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [17:17:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C7 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_GetFieldsCounters done [17:17:43]requested_item shift.num is exist - process it [17:17:43]requested_item shift.opened is exist - process it [17:17:43]req_shift_opened [17:17:43]FM_GetShiftState [17:17:43]SAM_PROTO_GetShiftState [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 13 01 00 [17:17:43]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 7B [17:17:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_GetShiftState done [17:17:43]FM_GetShiftState done [17:17:43]req_shift_opened done [17:17:43]requested_item shift.open_date is exist - process it [17:17:43]req_shift_open_date [17:17:43]req_shift_open_date done [17:17:43]produce_requested_data done [17:17:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2247,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:17:43]process_action_free close_receipt [17:17:43]json_value_free [17:17:43]json_value_free done [17:17:43]process_json_proto returns [17:17:43]Send response to host [17:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2247,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:17:43]free response buf [17:17:43]execute_script done [17:17:43]execute_script returns [17:17:43]free content buf [17:17:43]Sock 8.Close socket [17:17:43]Sock 8.Thread stoped [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:24]accept exits with 9 [17:22:24]New connection [17:22:24]New thread 3067157860 created [17:22:24]Thread 3067014500 joined [17:22:24]Waiting for new connection... [17:22:24] Sock 9.Parse request [17:22:24]Sock 9.Check first char [17:22:24]Sock 9.First char is OK [17:22:24]request: POST /json_proto HTTP/1.0 [17:22:24]Method: POST [17:22:24]URL: /json_proto [17:22:24]Method is POST - this is cgi request [17:22:24]url: /json_proto [17:22:24]query_string will be loaded in cgi processing [17:22:24]execute_cgi json_proto POST (null) [17:22:24]execute_cgi path=json_proto method=POST [17:22:24]POST find Content-Length [17:22:24]Host: 172.17.45.132:8080 [17:22:24]Content-Length: 842 [17:22:24]Content-Type: application/json [17:22:24] [17:22:24]POST finish read [17:22:24]Found Content-Length = 842 [17:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126530", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:24]execute_script... [17:22: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)126530", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:24]POST & json_proto [17:22:24]process_json_proto [17:22:24]json parsed OK: [17:22:24]protocol is kg_v1.0 [17:22:24]action value=close_receipt [17:22:24]process_action close_receipt [17:22:24]cmd_close_receipt [17:22:24]MH_GetDate [17:22:24]Write to MH i2c: F0 00 00 FF 07 F5 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: F0 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: F0 09 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: F0 09 00 FF 07 00 D2 CF A7 66 E3 0B 90 66 90 [17:22:24]GetLastDocTimeStamp 1722273460 [17:22:24]current date 1722273746 [17:22:24]FM_GetShiftState [17:22:24]SAM_PROTO_GetShiftState [17:22:24]wFMCommunicate request_size=4 [17:22:24]MH_SAM_APDU [17:22:24]CAPDU: 80 13 01 00 [17:22:24]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 0E 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 7E [17:22:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:22:25]wFMCommunicate OK [17:22:25]SAM_PROTO_GetShiftState done [17:22:25]FM_GetShiftState done [17:22:25]opened in 1722213119 [17:22:25]opened+sec_in_day 1722299519 [17:22:25]quantity*price = 7000 [17:22:25]sum+1 = 7001 [17:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 97 29.07.2024 17:22 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2248 ФПД: 183116720277177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172226&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2248&fm=183116720277177&tin=02508201610067®Number=0000000000189667&sum=7000 0 [17:22:26]StoreToDocumentArchive [17:22:26]shift 15 fd 2248 [17:22:26]save to /storage/0015/doc_00002248 [17:22:26]save last doc name /storage/0015/doc_00002248 to /storage/kkm_last_doc_name [17:22:26]save OK [17:22:26]Clear old archive folders... [17:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=292 [17:22:26]tlvbuf is 0201E9E0 [17:22:26]SAM_PROTO_ClearQueue [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 09 00 00 [17:22:26]Write to MH i2c: E2 08 00 0D 08 80 09 00 00 00 00 00 00 87 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [17:22:26]RAPDU: 90 00 [17:22:26]wFMCommunicate OK [17:22:26]SAM_PROTO_ClearQueue done [17:22:26]KKMCreateOFDPacket [17:22:26]OFDProtocolAddRootSTLVToBuf [17:22:26]FM_MakeSignedData [17:22:26]FM_MakeSignedData [17:22:26]SAM_PROTO_SignData [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 0D 01 02 [17:22:26]Write to MH i2c: E2 08 00 0E 08 80 0D 01 02 00 00 00 00 8F [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [17:22:26]RAPDU: 90 00 [17:22:26]wFMCommunicate OK [17:22:26]wFMCommunicate request_size=255 [17:22:26]MH_SAM_APDU [17:22:26]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 30 32 35 32 32 30 30 38 06 04 32 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 CF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [17:22:26]Write to MH i2c: E2 02 01 0F 08 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 30 32 35 32 32 30 30 38 06 04 32 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 CF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 A1 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [17:22:26]RAPDU: 90 00 [17:22:26]wFMCommunicate OK [17:22:26]wFMCommunicate request_size=51 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 0D 02 02 2E 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 08 00 00 35 04 06 00 A6 8B 2F 10 86 B9 [17:22:26]Write to MH i2c: E2 36 00 10 08 80 0D 02 02 2E 00 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 08 00 00 35 04 06 00 A6 8B 2F 10 86 B9 00 00 AB [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [17:22:26]RAPDU: 90 00 [17:22:26]wFMCommunicate OK [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 0D 03 02 [17:22:26]Write to MH i2c: E2 08 00 11 08 80 0D 03 02 00 00 00 00 94 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 0B 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 0B 00 11 08 00 98 F1 E3 EE D8 7E 2B 4A 90 00 BA [17:22:26]RAPDU: 98 F1 E3 EE D8 7E 2B 4A 90 00 [17:22:26]wFMCommunicate OK [17:22:26]SAM_PROTO_SignData done [17:22:26]FM_MakeSignedData done [17:22:26]CreateOFDProtocolMessage [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 11 00 00 [17:22:26]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 17 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E4 [17:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:22:26]wFMCommunicate OK [17:22:26]CreateOFDProtocolMessage done [17:22:26]OFDSenderStorePacket 2248 [17:22:26]StoreOFDPacket docnum=2248 [17:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 38 01 00 00 2A CB 30 01 82 31 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 30 32 35 32 32 30 30 38 06 04 32 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 CF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 08 00 00 35 04 06 00 A6 8B 2F 10 86 B9 98 F1 E3 EE D8 7E 2B 4A [17:22:26]CheckFolder [17:22:26]dirname=/storage/ofd_packets [17:22:26]CheckFolder done [17:22:26]ProducePacketName [17:22:26]name=ofd_packets/00002248 [17:22:26]NVStorageSaveData ofd_packets/00002248 [17:22:26]File name is /storage/ofd_packets/00002248 [17:22:26]Write 342 bytes [17:22:26]NVStorageSaveData done [17:22:26]OFDSenderStorePacket done [17:22:26]KKMCreateOFDPacket done [17:22:26]NVStorageSaveData kkm_last_timestamp [17:22:26]File name is /storage/kkm_last_timestamp [17:22:26]Write 4 bytes [17:22:26]OFD Sender: Processing packet 2248 [packets to send 1, broken 0] [17:22:26]ProducePacketName [17:22:26]name=ofd_packets/00002248 [17:22:26]OFD Sender: To server: pG, [17:22:26]CommunicateWithHost lk.salyk.kg:30040 [17:22:26]ConnectInit lk.salyk.kg [17:22:26]NVStorageSaveData done [17:22:26]ExternCall_PrintAddStr [17:22:26]wPrintStart [17:22:26]Write to MH i2c: 01 00 00 13 08 1B [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: 01 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: 01 07 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [17:22:26]RasterBufferAndPrint [17:22:26]line Счет N : (3)126530 [17:22:26]line ИНН: 02508201610067 [17:22:26]line Контрольно-Кассовый Чек [17:22:26]line ПРОДАЖА [17:22:26]line Товар: 4870202522008 [17:22:26]line Напиток Maxi Чай Грушевый 0,45л [17:22:26]line 1.000 * 70.00 [17:22:26]line = 70.00 [17:22:26]line НДС 12% НСП 1% [17:22:26]line > о реализуемом товаре [17:22:26]line ИТОГО: 70.00 [17:22:26]line НСП 1% : 0.62 [17:22:26]line НДС 12% : 7.43 [17:22:26]line Наличными: 0.00 [17:22:26]line Безнал.: 70.00 [17:22:26]line Место: АЗС № 127 "Партнер Нефть" [17:22:26]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:22:26]line СНО: Общий режим [17:22:26]line Чек 97 29.07.2024 17:22 [17:22:26]line Смена: 15 ФФД: 1.0 [17:22:26]line ЗНМ: 0300000161 [17:22:26]line РНМ: 0000000000189667 [17:22:26]line Версия ККМ: v1.0 [17:22:26]line Платежная система: O! деньги [17:22:27]line ФМ: 0000000002094248 [17:22:27]line ФД: 2248 [17:22:27]line ФПД: 183116720277177 [17:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172226&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2248&fm=183116720277177&tin=02508201610067®Number=0000000000189667&sum=7000 [17:22:27]line 0 [17:22:27]Connected sock=11 [17:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 38 01 00 00 2A CB 30 01 82 31 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 30 32 35 32 32 30 30 38 06 04 32 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D2 CF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 08 00 00 35 04 06 00 A6 8B 2F 10 86 B9 98 F1 E3 EE D8 7E 2B 4A [17:22:27]written 0, free lines is 4095 [17:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 99 67 47 00 B9 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C8 08 00 00 F4 03 04 00 3E 7B A7 66 B6 04 01 00 00 C1 75 8F 18 5A B1 A8 D9 [17:22:27]CommunicateWithHost err = 0 [17:22:27]CheckOFDResponse [17:22:27]1017 (14) - 77093643461234 [17:22:27]1041 (16) - 0000000002094248 [17:22:27]1040 (4) - 2248 [17:22:27]1012 (4) - 29.07.2024 11:21 [17:22:27]1206 (1) - 0 [17:22:27]OFD Sender: Remove packet 2248 [17:22:27]ProducePacketName [17:22:27]name=ofd_packets/00002248 [17:22:27]NVStorageDeleteData [17:22:27]Write to MH i2c: 01 00 00 3E 08 46 [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: 01 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: 01 07 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 E1 0C 3A [17:22:27]RasterBufferAndPrint [17:22:27]line [17:22:27]line [17:22:27]line [17:22:27]line [17:22:27]line [17:22:27]written 0, free lines is 3303 [17:22:27]MH_Cut [17:22:27]Write to MH i2c: D1 01 00 45 08 01 1F [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: D1 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: D1 01 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: D1 01 00 45 08 00 1E [17:22:27]Write to MH i2c: 01 00 00 46 08 4E [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]OFD Sender: No OFD packet to send [17:22:28]*** Cut start [17:22:28]*** Partial cut [17:22:28]*** CUTSNS_PIN = 1 [17:22:28]*** CUTSNS_PIN = 0 [17:22:28]*** Brake cut motor [17:22:28]Read from MH i2c: 01 [17:22:28]MH_I2C_Read... [17:22:28]*** Stop cut motor [17:22:28]*** Cut end [17:22:28]Read from MH i2c: 01 07 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [17:22:28]process_action close_receipt done [17:22:28]requested_data is exist [17:22:28]produce_requested_data [17:22:28]requested_item fm.sn is exist - process it [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 11 00 00 [17:22:28]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 17 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 19 [17:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:22:28]wFMCommunicate OK [17:22:28]requested_item fd.num is exist - process it [17:22:28]SAM_PROTO_GetFieldsCounters [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 13 00 00 [17:22:28]Write to MH i2c: E2 08 00 48 08 80 13 00 00 00 00 00 00 CC [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 62 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 62 00 48 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C8 08 00 00 0E 04 04 00 0F 00 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 F8 [17:22:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C8 08 00 00 0E 04 04 00 0F 00 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 [17:22:29]wFMCommunicate OK [17:22:29]SAM_PROTO_GetFieldsCounters done [17:22:29]requested_item shift.num is exist - process it [17:22:29]requested_item shift.opened is exist - process it [17:22:29]req_shift_opened [17:22:29]FM_GetShiftState [17:22:29]SAM_PROTO_GetShiftState [17:22:29]wFMCommunicate request_size=4 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 13 01 00 [17:22:29]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0E 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C7 [17:22:29]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:22:29]wFMCommunicate OK [17:22:29]SAM_PROTO_GetShiftState done [17:22:29]FM_GetShiftState done [17:22:29]req_shift_opened done [17:22:29]requested_item shift.open_date is exist - process it [17:22:29]req_shift_open_date [17:22:29]req_shift_open_date done [17:22:29]produce_requested_data done [17:22:29]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2248,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:22:29]process_action_free close_receipt [17:22:29]json_value_free [17:22:29]json_value_free done [17:22:29]process_json_proto returns [17:22:29]Send response to host [17:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2248,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:22:29]free response buf [17:22:29]execute_script done [17:22:29]execute_script returns [17:22:29]free content buf [17:22:29]Sock 9.Close socket [17:22:29]Sock 9.Thread stoped [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [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:10]accept exits with 8 [17:31:10]New connection [17:31:10]New thread 3067014500 created [17:31:10]Thread 3067157860 joined [17:31:10]Waiting for new connection... [17:31:10] Sock 8.Parse request [17:31:10]Sock 8.Check first char [17:31:10]Sock 8.First char is OK [17:31:10]request: POST /json_proto HTTP/1.0 [17:31:10]Method: POST [17:31:10]URL: /json_proto [17:31:10]Method is POST - this is cgi request [17:31:10]url: /json_proto [17:31:10]query_string will be loaded in cgi processing [17:31:10]execute_cgi json_proto POST (null) [17:31:10]execute_cgi path=json_proto method=POST [17:31:10]POST find Content-Length [17:31:10]Host: 172.17.45.132:8080 [17:31:10]Content-Length: 654 [17:31:10]Content-Type: application/json [17:31:10] [17:31:10]POST finish read [17:31:10]Found Content-Length = 654 [17:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126531", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "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" ] } } [17:31:10]execute_script... [17:31: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)126531", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "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" ] } } [17:31:10]POST & json_proto [17:31:10]process_json_proto [17:31:10]json parsed OK: [17:31:10]protocol is kg_v1.0 [17:31:10]action value=close_receipt [17:31:10]process_action close_receipt [17:31:10]cmd_close_receipt [17:31:10]MH_GetDate [17:31:10]Write to MH i2c: F0 00 00 4A 08 41 [17:31:10]Write i2c OK [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: F0 [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: F0 09 00 [17:31:10]MH_I2C_Read... [17:31:10]Read from MH i2c: F0 09 00 4A 08 00 E0 D1 A7 66 E3 0B 90 66 EC [17:31:10]GetLastDocTimeStamp 1722273746 [17:31:10]current date 1722274272 [17:31:10]FM_GetShiftState [17:31:10]SAM_PROTO_GetShiftState [17:31:10]wFMCommunicate request_size=4 [17:31:10]MH_SAM_APDU [17:31:10]CAPDU: 80 13 01 00 [17:31:10]Write to MH i2c: E2 08 00 4B 08 80 13 01 00 00 00 00 00 D0 [17:31:10]Write i2c OK [17:31:10]MH_I2C_Read... [17:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:11]Read from MH i2c: E2 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 0E 00 [17:31:11]MH_I2C_Read... [17:31:11]Read from MH i2c: E2 0E 00 4B 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C9 [17:31:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:31:11]wFMCommunicate OK [17:31:11]SAM_PROTO_GetShiftState done [17:31:11]FM_GetShiftState done [17:31:11]opened in 1722213119 [17:31:11]opened+sec_in_day 1722299519 [17:31:11]quantity*price = 4500 [17:31:11]sum+1 = 4501 [17:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 98 29.07.2024 17:31 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2249 ФПД: 222637530176378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173112&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2249&fm=222637530176378&tin=02508201610067®Number=0000000000189667&sum=4500 0 [17:31:12]StoreToDocumentArchive [17:31:12]shift 15 fd 2249 [17:31:12]save to /storage/0015/doc_00002249 [17:31:12]save last doc name /storage/0015/doc_00002249 to /storage/kkm_last_doc_name [17:31:12]save OK [17:31:12]Clear old archive folders... [17:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=277 [17:31:12]tlvbuf is 02036D90 [17:31:12]SAM_PROTO_ClearQueue [17:31:12]wFMCommunicate request_size=4 [17:31:12]MH_SAM_APDU [17:31:12]CAPDU: 80 09 00 00 [17:31:12]Write to MH i2c: E2 08 00 58 08 80 09 00 00 00 00 00 00 D2 [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:12]Read from MH i2c: E2 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [17:31:12]RAPDU: 90 00 [17:31:12]wFMCommunicate OK [17:31:12]SAM_PROTO_ClearQueue done [17:31:12]KKMCreateOFDPacket [17:31:12]OFDProtocolAddRootSTLVToBuf [17:31:12]FM_MakeSignedData [17:31:12]FM_MakeSignedData [17:31:12]SAM_PROTO_SignData [17:31:12]wFMCommunicate request_size=4 [17:31:12]MH_SAM_APDU [17:31:12]CAPDU: 80 0D 01 02 [17:31:12]Write to MH i2c: E2 08 00 59 08 80 0D 01 02 00 00 00 00 DA [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:12]Read from MH i2c: E2 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [17:31:12]RAPDU: 90 00 [17:31:12]wFMCommunicate OK [17:31:12]wFMCommunicate request_size=255 [17:31:12]MH_SAM_APDU [17:31:12]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 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 62 00 00 00 F4 03 04 00 E0 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 [17:31:12]Write to MH i2c: E2 02 01 5A 08 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 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 62 00 00 00 F4 03 04 00 E0 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 00 00 A9 [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:12]Read from MH i2c: E2 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [17:31:12]RAPDU: 90 00 [17:31:12]wFMCommunicate OK [17:31:12]wFMCommunicate request_size=36 [17:31:12]MH_SAM_APDU [17:31:12]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 08 00 00 35 04 06 00 CA 7C D6 E6 5B 7A [17:31:12]Write to MH i2c: E2 27 00 5B 08 80 0D 02 02 1F 00 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 08 00 00 35 04 06 00 CA 7C D6 E6 5B 7A 00 00 A7 [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:12]Read from MH i2c: E2 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [17:31:12]RAPDU: 90 00 [17:31:12]wFMCommunicate OK [17:31:12]wFMCommunicate request_size=4 [17:31:12]MH_SAM_APDU [17:31:12]CAPDU: 80 0D 03 02 [17:31:12]Write to MH i2c: E2 08 00 5C 08 80 0D 03 02 00 00 00 00 DF [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:12]Read from MH i2c: E2 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 0B 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 0B 00 5C 08 00 5B 07 66 03 ED 8E 9E E7 90 00 AB [17:31:12]RAPDU: 5B 07 66 03 ED 8E 9E E7 90 00 [17:31:12]wFMCommunicate OK [17:31:12]SAM_PROTO_SignData done [17:31:12]FM_MakeSignedData done [17:31:12]CreateOFDProtocolMessage [17:31:12]wFMCommunicate request_size=4 [17:31:12]MH_SAM_APDU [17:31:12]CAPDU: 80 11 00 00 [17:31:12]Write to MH i2c: E2 08 00 5D 08 80 11 00 00 00 00 00 00 DF [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:12]Read from MH i2c: E2 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 17 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: E2 17 00 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2F [17:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:31:12]wFMCommunicate OK [17:31:12]CreateOFDProtocolMessage done [17:31:12]OFDSenderStorePacket 2249 [17:31:12]StoreOFDPacket docnum=2249 [17:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 94 49 21 01 85 EF 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 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 62 00 00 00 F4 03 04 00 E0 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 08 00 00 35 04 06 00 CA 7C D6 E6 5B 7A 5B 07 66 03 ED 8E 9E E7 [17:31:12]CheckFolder [17:31:12]dirname=/storage/ofd_packets [17:31:12]CheckFolder done [17:31:12]ProducePacketName [17:31:12]name=ofd_packets/00002249 [17:31:12]NVStorageSaveData ofd_packets/00002249 [17:31:12]File name is /storage/ofd_packets/00002249 [17:31:12]Write 327 bytes [17:31:12]NVStorageSaveData done [17:31:12]OFDSenderStorePacket done [17:31:12]KKMCreateOFDPacket done [17:31:12]NVStorageSaveData kkm_last_timestamp [17:31:12]File name is /storage/kkm_last_timestamp [17:31:12]Write 4 bytes [17:31:12]NVStorageSaveData done [17:31:12]ExternCall_PrintAddStr [17:31:12]wPrintStart [17:31:12]Write to MH i2c: 01 00 00 5E 08 66 [17:31:12]Write i2c OK [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: 01 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: 01 07 00 [17:31:12]MH_I2C_Read... [17:31:12]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 FF 0F 7B [17:31:12]RasterBufferAndPrint [17:31:12]line Счет N : (3)126531 [17:31:12]line ИНН: 02508201610067 [17:31:12]line Контрольно-Кассовый Чек [17:31:12]line ПРОДАЖА [17:31:12]line Товар: 42203100 [17:31:12]line Жев Orbit банан-клубника [17:31:12]line 1.000 * 45.00 [17:31:12]line = 45.00 [17:31:12]line НДС 12% НСП 1% [17:31:12]line > о реализуемом товаре [17:31:12]line ИТОГО: 45.00 [17:31:12]line НСП 1% : 0.40 [17:31:12]line НДС 12% : 4.78 [17:31:12]line Наличными: 45.00 [17:31:12]line Безнал.: 0.00 [17:31:12]line Место: АЗС № 127 "Партнер Нефть" [17:31:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:31:12]line СНО: Общий режим [17:31:12]line Чек 98 29.07.2024 17:31 [17:31:12]line Смена: 15 ФФД: 1.0 [17:31:12]line ЗНМ: 0300000161 [17:31:12]line РНМ: 0000000000189667 [17:31:12]line Версия ККМ: v1.0 [17:31:12]line ФМ: 0000000002094248 [17:31:12]line ФД: 2249 [17:31:12]line ФПД: 222637530176378 [17:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173112&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2249&fm=222637530176378&tin=02508201610067®Number=0000000000189667&sum=4500 [17:31:13]line 0 [17:31:13]OFD Sender: Processing packet 2249 [packets to send 1, broken 0] [17:31:13]ProducePacketName [17:31:13]name=ofd_packets/00002249 [17:31:13]OFD Sender: To server: pG, [17:31:13]CommunicateWithHost lk.salyk.kg:30040 [17:31:13]ConnectInit lk.salyk.kg [17:31:13]written 0, free lines is 4095 [17:31:13]Connected sock=11 [17:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 94 49 21 01 85 EF 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 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 62 00 00 00 F4 03 04 00 E0 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 08 00 00 35 04 06 00 CA 7C D6 E6 5B 7A 5B 07 66 03 ED 8E 9E E7 [17:31:13]Write to MH i2c: 01 00 00 86 08 8E [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: 01 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: 01 07 00 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 15 0D B7 [17:31:13]RasterBufferAndPrint [17:31:13]line [17:31:13]line [17:31:13]line [17:31:13]line [17:31:13]line [17:31:13]written 0, free lines is 3356 [17:31:13]MH_Cut [17:31:13]Write to MH i2c: D1 01 00 8D 08 01 67 [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: D1 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: D1 01 00 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: D1 01 00 8D 08 00 66 [17:31:13]Write to MH i2c: 01 00 00 8E 08 96 [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F2 63 47 00 94 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 C9 08 00 00 F4 03 04 00 4C 7D A7 66 B6 04 01 00 00 4B D9 34 34 2A 05 D5 B9 [17:31:13]CommunicateWithHost err = 0 [17:31:13]CheckOFDResponse [17:31:13]1017 (14) - 77093643461234 [17:31:13]1041 (16) - 0000000002094248 [17:31:13]1040 (4) - 2249 [17:31:13]1012 (4) - 29.07.2024 11:30 [17:31:13]1206 (1) - 0 [17:31:13]OFD Sender: Remove packet 2249 [17:31:13]ProducePacketName [17:31:13]name=ofd_packets/00002249 [17:31:13]NVStorageDeleteData [17:31:14]OFD Sender: No OFD packet to send [17:31:14]*** Cut start [17:31:14]*** Partial cut [17:31:14]*** CUTSNS_PIN = 1 [17:31:14]*** CUTSNS_PIN = 0 [17:31:14]*** Brake cut motor [17:31:14]Read from MH i2c: 01 [17:31:14]MH_I2C_Read... [17:31:14]*** Stop cut motor [17:31:14]*** Cut end [17:31:14]Read from MH i2c: 01 07 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 FF 0F AB [17:31:14]process_action close_receipt done [17:31:14]requested_data is exist [17:31:14]produce_requested_data [17:31:14]requested_item fm.sn is exist - process it [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 11 00 00 [17:31:14]Write to MH i2c: E2 08 00 8F 08 80 11 00 00 00 00 00 00 11 [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 17 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 17 00 8F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 61 [17:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:31:14]wFMCommunicate OK [17:31:14]requested_item fd.num is exist - process it [17:31:14]SAM_PROTO_GetFieldsCounters [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 13 00 00 [17:31:14]Write to MH i2c: E2 08 00 90 08 80 13 00 00 00 00 00 00 14 [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 62 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 62 00 90 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C9 08 00 00 0E 04 04 00 0F 00 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 44 [17:31:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 C9 08 00 00 0E 04 04 00 0F 00 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 [17:31:14]wFMCommunicate OK [17:31:14]SAM_PROTO_GetFieldsCounters done [17:31:14]requested_item shift.num is exist - process it [17:31:14]requested_item shift.opened is exist - process it [17:31:14]req_shift_opened [17:31:14]FM_GetShiftState [17:31:14]SAM_PROTO_GetShiftState [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 13 01 00 [17:31:14]Write to MH i2c: E2 08 00 91 08 80 13 01 00 00 00 00 00 16 [17:31:14]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:15]Read from MH i2c: E2 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 0E 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 0E 00 91 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 0F [17:31:15]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:31:15]wFMCommunicate OK [17:31:15]SAM_PROTO_GetShiftState done [17:31:15]FM_GetShiftState done [17:31:15]req_shift_opened done [17:31:15]requested_item shift.open_date is exist - process it [17:31:15]req_shift_open_date [17:31:15]req_shift_open_date done [17:31:15]produce_requested_data done [17:31:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2249,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:31:15]process_action_free close_receipt [17:31:15]json_value_free [17:31:15]json_value_free done [17:31:15]process_json_proto returns [17:31:15]Send response to host [17:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2249,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:31:15]free response buf [17:31:15]execute_script done [17:31:15]execute_script returns [17:31:15]free content buf [17:31:15]Sock 8.Close socket [17:31:15]Sock 8.Thread stoped [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:31]accept exits with 9 [17:31:31]New connection [17:31:31]New thread 3067157860 created [17:31:31]Thread 3067014500 joined [17:31:31]Waiting for new connection... [17:31:31] Sock 9.Parse request [17:31:31]Sock 9.Check first char [17:31:31]Sock 9.First char is OK [17:31:31]request: POST /json_proto HTTP/1.0 [17:31:31]Method: POST [17:31:31]URL: /json_proto [17:31:31]Method is POST - this is cgi request [17:31:31]url: /json_proto [17:31:31]query_string will be loaded in cgi processing [17:31:31]execute_cgi json_proto POST (null) [17:31:31]execute_cgi path=json_proto method=POST [17:31:31]POST find Content-Length [17:31:31]Host: 172.17.45.132:8080 [17:31:31]Content-Length: 677 [17:31:31]Content-Type: application/json [17:31:31] [17:31:31]POST finish read [17:31:31]Found Content-Length = 677 [17:31:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:31]execute_script... [17:31: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)609989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:31]POST & json_proto [17:31:31]process_json_proto [17:31:31]json parsed OK: [17:31:31]protocol is kg_v1.0 [17:31:31]action value=close_receipt [17:31:31]process_action close_receipt [17:31:31]cmd_close_receipt [17:31:31]MH_GetDate [17:31:31]Write to MH i2c: F0 00 00 92 08 89 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: F0 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: F0 09 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: F0 09 00 92 08 00 F4 D1 A7 66 E3 0B 90 66 48 [17:31:31]GetLastDocTimeStamp 1722274272 [17:31:31]current date 1722274292 [17:31:31]FM_GetShiftState [17:31:31]SAM_PROTO_GetShiftState [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 13 01 00 [17:31:31]Write to MH i2c: E2 08 00 93 08 80 13 01 00 00 00 00 00 18 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0E 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0E 00 93 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 11 [17:31:31]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:31:31]wFMCommunicate OK [17:31:31]SAM_PROTO_GetShiftState done [17:31:31]FM_GetShiftState done [17:31:31]opened in 1722213119 [17:31:31]opened+sec_in_day 1722299519 [17:31:31]quantity*price = 50049 [17:31:31]sum+1 = 50050 [17:31:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 99 29.07.2024 17:31 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2250 ФПД: 5332451847997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173132&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2250&fm=5332451847997&tin=02508201610067®Number=0000000000189667&sum=50000 [17:31:32]StoreToDocumentArchive [17:31:32]shift 15 fd 2250 [17:31:32]save to /storage/0015/doc_00002250 [17:31:32]save last doc name /storage/0015/doc_00002250 to /storage/kkm_last_doc_name [17:31:32]save OK [17:31:32]Clear old archive folders... [17:31:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:32]tlvbuf is 01F3BBE0 [17:31:32]SAM_PROTO_ClearQueue [17:31:32]wFMCommunicate request_size=4 [17:31:32]MH_SAM_APDU [17:31:32]CAPDU: 80 09 00 00 [17:31:32]Write to MH i2c: E2 08 00 A0 08 80 09 00 00 00 00 00 00 1A [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:32]Read from MH i2c: E2 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [17:31:32]RAPDU: 90 00 [17:31:32]wFMCommunicate OK [17:31:32]SAM_PROTO_ClearQueue done [17:31:32]KKMCreateOFDPacket [17:31:32]OFDProtocolAddRootSTLVToBuf [17:31:32]FM_MakeSignedData [17:31:32]FM_MakeSignedData [17:31:32]SAM_PROTO_SignData [17:31:32]wFMCommunicate request_size=4 [17:31:32]MH_SAM_APDU [17:31:32]CAPDU: 80 0D 01 02 [17:31:32]Write to MH i2c: E2 08 00 A1 08 80 0D 01 02 00 00 00 00 22 [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:32]Read from MH i2c: E2 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [17:31:32]RAPDU: 90 00 [17:31:32]wFMCommunicate OK [17:31:32]wFMCommunicate request_size=255 [17:31:32]MH_SAM_APDU [17:31:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 F4 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 08 00 00 35 04 06 00 04 [17:31:32]Write to MH i2c: E2 02 01 A2 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 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 F4 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 08 00 00 35 04 06 00 04 00 00 DF [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:32]Read from MH i2c: E2 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [17:31:32]RAPDU: 90 00 [17:31:32]wFMCommunicate OK [17:31:32]wFMCommunicate request_size=10 [17:31:32]MH_SAM_APDU [17:31:32]CAPDU: 80 0D 02 02 05 D9 8E E5 EF 3D [17:31:32]Write to MH i2c: E2 0D 00 A3 08 80 0D 02 02 05 00 D9 8E E5 EF 3D 00 00 A7 [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:32]Read from MH i2c: E2 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [17:31:32]RAPDU: 90 00 [17:31:32]wFMCommunicate OK [17:31:32]wFMCommunicate request_size=4 [17:31:32]MH_SAM_APDU [17:31:32]CAPDU: 80 0D 03 02 [17:31:32]Write to MH i2c: E2 08 00 A4 08 80 0D 03 02 00 00 00 00 27 [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:32]Read from MH i2c: E2 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 0B 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 0B 00 A4 08 00 6A 9D CA 4E 16 D5 A6 F3 90 00 CB [17:31:32]RAPDU: 6A 9D CA 4E 16 D5 A6 F3 90 00 [17:31:32]wFMCommunicate OK [17:31:32]SAM_PROTO_SignData done [17:31:32]FM_MakeSignedData done [17:31:32]CreateOFDProtocolMessage [17:31:32]wFMCommunicate request_size=4 [17:31:32]MH_SAM_APDU [17:31:32]CAPDU: 80 11 00 00 [17:31:32]Write to MH i2c: E2 08 00 A5 08 80 11 00 00 00 00 00 00 27 [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:32]Read from MH i2c: E2 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 17 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: E2 17 00 A5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 77 [17:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:31:32]wFMCommunicate OK [17:31:32]CreateOFDProtocolMessage done [17:31:32]OFDSenderStorePacket 2250 [17:31:32]StoreOFDPacket docnum=2250 [17:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 6E 2E 07 01 19 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 F4 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 08 00 00 35 04 06 00 04 D9 8E E5 EF 3D 6A 9D CA 4E 16 D5 A6 F3 [17:31:32]CheckFolder [17:31:32]dirname=/storage/ofd_packets [17:31:32]CheckFolder done [17:31:32]ProducePacketName [17:31:32]name=ofd_packets/00002250 [17:31:32]NVStorageSaveData ofd_packets/00002250 [17:31:32]File name is /storage/ofd_packets/00002250 [17:31:32]Write 301 bytes [17:31:32]NVStorageSaveData done [17:31:32]OFDSenderStorePacket done [17:31:32]KKMCreateOFDPacket done [17:31:32]NVStorageSaveData kkm_last_timestamp [17:31:32]File name is /storage/kkm_last_timestamp [17:31:32]Write 4 bytes [17:31:32]NVStorageSaveData done [17:31:32]ExternCall_PrintAddStr [17:31:32]wPrintStart [17:31:32]Write to MH i2c: 01 00 00 A6 08 AE [17:31:32]Write i2c OK [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: 01 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: 01 07 00 [17:31:32]MH_I2C_Read... [17:31:32]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 FF 0F C3 [17:31:32]RasterBufferAndPrint [17:31:32]line Счет N : (1)609989 [17:31:32]line ИНН: 02508201610067 [17:31:32]line Контрольно-Кассовый Чек [17:31:32]line ПРОДАЖА [17:31:32]line ТРК (МРК, ГНК) : 33 [17:31:32]line Товар: 2710124500 [17:31:32]line Аи-95-К-3 [17:31:32]line 6.700 * 74.70 [17:31:32]line = 500.49 [17:31:32]line НДС 12% НСП 1% [17:31:32]line > о реализуемом товаре [17:31:32]line ОКРУГЛЕНИЕ: -0.49 [17:31:32]line ИТОГО: 500.00 [17:31:32]line Внесено: 500.00 [17:31:32]line СДАЧА: 0.00 [17:31:32]line НСП 1% : 4.43 [17:31:32]line НДС 12% : 53.15 [17:31:32]line Наличными: 500.00 [17:31:32]line Безнал.: 0.00 [17:31:32]line Место: АЗС № 127 "Партнер Нефть" [17:31:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:31:32]line СНО: Общий режим [17:31:32]line Чек 99 29.07.2024 17:31 [17:31:32]line Смена: 15 ФФД: 1.0 [17:31:32]line ЗНМ: 0300000161 [17:31:32]line РНМ: 0000000000189667 [17:31:32]line Версия ККМ: v1.0 [17:31:32]line ФМ: 0000000002094248 [17:31:32]line ФД: 2250 [17:31:32]line ФПД: 5332451847997 [17:31:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173132&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2250&fm=5332451847997&tin=02508201610067®Number=0000000000189667&sum=50000 [17:31:33]OFD Sender: Processing packet 2250 [packets to send 1, broken 0] [17:31:33]ProducePacketName [17:31:33]name=ofd_packets/00002250 [17:31:33]OFD Sender: To server: pG, [17:31:33]CommunicateWithHost lk.salyk.kg:30040 [17:31:33]ConnectInit lk.salyk.kg [17:31:33]written 0, free lines is 4095 [17:31:33]Connected sock=10 [17:31:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 6E 2E 07 01 19 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 F4 D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CA 08 00 00 35 04 06 00 04 D9 8E E5 EF 3D 6A 9D CA 4E 16 D5 A6 F3 [17:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2A 18 47 00 79 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 32 30 39 34 32 34 38 10 04 04 00 CA 08 00 00 F4 03 04 00 60 7D A7 66 B6 04 01 00 00 1D 6A 2B 89 46 49 25 E0 [17:31:33]CommunicateWithHost err = 0 [17:31:33]CheckOFDResponse [17:31:33]1017 (14) - 77093643461234 [17:31:33]1041 (16) - 0000000002094248 [17:31:33]1040 (4) - 2250 [17:31:33]1012 (4) - 29.07.2024 11:30 [17:31:33]1206 (1) - 0 [17:31:33]OFD Sender: Remove packet 2250 [17:31:33]ProducePacketName [17:31:33]name=ofd_packets/00002250 [17:31:33]NVStorageDeleteData [17:31:33]Write to MH i2c: 01 00 00 D1 08 D9 [17:31:33]Write i2c OK [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: 01 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: 01 07 00 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: 01 07 00 D1 08 00 00 00 00 00 F5 0C E1 [17:31:33]RasterBufferAndPrint [17:31:33]line [17:31:33]line [17:31:33]line [17:31:33]line [17:31:33]line [17:31:33]written 0, free lines is 3323 [17:31:33]MH_Cut [17:31:33]Write to MH i2c: D1 01 00 D8 08 01 B2 [17:31:33]Write i2c OK [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: D1 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: D1 01 00 [17:31:33]MH_I2C_Read... [17:31:33]Read from MH i2c: D1 01 00 D8 08 00 B1 [17:31:33]Write to MH i2c: 01 00 00 D9 08 E1 [17:31:33]Write i2c OK [17:31:33]MH_I2C_Read... [17:31:34]OFD Sender: No OFD packet to send [17:31:34]*** Cut start [17:31:34]*** Partial cut [17:31:34]*** CUTSNS_PIN = 1 [17:31:34]*** CUTSNS_PIN = 0 [17:31:34]*** Brake cut motor [17:31:34]Read from MH i2c: 01 [17:31:34]MH_I2C_Read... [17:31:35]*** Stop cut motor [17:31:35]*** Cut end [17:31:35]Read from MH i2c: 01 07 00 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [17:31:35]process_action close_receipt done [17:31:35]requested_data is exist [17:31:35]produce_requested_data [17:31:35]requested_item fm.sn is exist - process it [17:31:35]wFMCommunicate request_size=4 [17:31:35]MH_SAM_APDU [17:31:35]CAPDU: 80 11 00 00 [17:31:35]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [17:31:35]Write i2c OK [17:31:35]MH_I2C_Read... [17:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:35]Read from MH i2c: E2 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 17 00 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AC [17:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:31:35]wFMCommunicate OK [17:31:35]requested_item fd.num is exist - process it [17:31:35]SAM_PROTO_GetFieldsCounters [17:31:35]wFMCommunicate request_size=4 [17:31:35]MH_SAM_APDU [17:31:35]CAPDU: 80 13 00 00 [17:31:35]Write to MH i2c: E2 08 00 DB 08 80 13 00 00 00 00 00 00 5F [17:31:35]Write i2c OK [17:31:35]MH_I2C_Read... [17:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:35]Read from MH i2c: E2 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 62 00 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 62 00 DB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CA 08 00 00 0E 04 04 00 0F 00 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 93 [17:31:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CA 08 00 00 0E 04 04 00 0F 00 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 [17:31:35]wFMCommunicate OK [17:31:35]SAM_PROTO_GetFieldsCounters done [17:31:35]requested_item shift.num is exist - process it [17:31:35]requested_item shift.opened is exist - process it [17:31:35]req_shift_opened [17:31:35]FM_GetShiftState [17:31:35]SAM_PROTO_GetShiftState [17:31:35]wFMCommunicate request_size=4 [17:31:35]MH_SAM_APDU [17:31:35]CAPDU: 80 13 01 00 [17:31:35]Write to MH i2c: E2 08 00 DC 08 80 13 01 00 00 00 00 00 61 [17:31:35]Write i2c OK [17:31:35]MH_I2C_Read... [17:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:35]Read from MH i2c: E2 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 0E 00 [17:31:35]MH_I2C_Read... [17:31:35]Read from MH i2c: E2 0E 00 DC 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5A [17:31:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:31:35]wFMCommunicate OK [17:31:35]SAM_PROTO_GetShiftState done [17:31:35]FM_GetShiftState done [17:31:35]req_shift_opened done [17:31:35]requested_item shift.open_date is exist - process it [17:31:35]req_shift_open_date [17:31:35]req_shift_open_date done [17:31:35]produce_requested_data done [17:31:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2250,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:31:35]process_action_free close_receipt [17:31:35]json_value_free [17:31:35]json_value_free done [17:31:35]process_json_proto returns [17:31:35]Send response to host [17:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2250,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:31:35]free response buf [17:31:35]execute_script done [17:31:35]execute_script returns [17:31:35]free content buf [17:31:35]Sock 9.Close socket [17:31:35]Sock 9.Thread stoped [17:31:39]OFD Sender: No OFD packet to send [17:31:42]accept exits with 8 [17:31:42]New connection [17:31:42]New thread 3067014500 created [17:31:42]Thread 3067157860 joined [17:31:42]Waiting for new connection... [17:31:42] Sock 8.Parse request [17:31:42]Sock 8.Check first char [17:31:42]Sock 8.First char is OK [17:31:42]request: POST /json_proto HTTP/1.0 [17:31:42]Method: POST [17:31:42]URL: /json_proto [17:31:42]Method is POST - this is cgi request [17:31:42]url: /json_proto [17:31:42]query_string will be loaded in cgi processing [17:31:42]execute_cgi json_proto POST (null) [17:31:42]execute_cgi path=json_proto method=POST [17:31:42]POST find Content-Length [17:31:42]Host: 172.17.45.132:8080 [17:31:42]Content-Length: 638 [17:31:42]Content-Type: application/json [17:31:42] [17:31:42]POST finish read [17:31:42]Found Content-Length = 638 [17:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:42]execute_script... [17:31:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:42]POST & json_proto [17:31:42]process_json_proto [17:31:42]json parsed OK: [17:31:42]protocol is kg_v1.0 [17:31:42]action value=close_receipt [17:31:42]process_action close_receipt [17:31:42]cmd_close_receipt [17:31:42]MH_GetDate [17:31:42]Write to MH i2c: F0 00 00 DD 08 D4 [17:31:42]Write i2c OK [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: F0 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: F0 09 00 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: F0 09 00 DD 08 00 FF D1 A7 66 E3 0B 90 66 9E [17:31:42]GetLastDocTimeStamp 1722274292 [17:31:42]current date 1722274303 [17:31:42]FM_GetShiftState [17:31:42]SAM_PROTO_GetShiftState [17:31:42]wFMCommunicate request_size=4 [17:31:42]MH_SAM_APDU [17:31:42]CAPDU: 80 13 01 00 [17:31:42]Write to MH i2c: E2 08 00 DE 08 80 13 01 00 00 00 00 00 63 [17:31:42]Write i2c OK [17:31:42]MH_I2C_Read... [17:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:42]Read from MH i2c: E2 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 0E 00 [17:31:42]MH_I2C_Read... [17:31:42]Read from MH i2c: E2 0E 00 DE 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5C [17:31:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:31:42]wFMCommunicate OK [17:31:42]SAM_PROTO_GetShiftState done [17:31:42]FM_GetShiftState done [17:31:42]opened in 1722213119 [17:31:42]opened+sec_in_day 1722299519 [17:31:42]quantity*price = 99999 [17:31:42]sum+1 = 100001 [17:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 100 29.07.2024 17:31 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2251 ФПД: 36785315977302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173143&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2251&fm=36785315977302&tin=02508201610067®Number=0000000000189667&sum=100000 [17:31:43]StoreToDocumentArchive [17:31:43]shift 15 fd 2251 [17:31:43]save to /storage/0015/doc_00002251 [17:31:43]save last doc name /storage/0015/doc_00002251 to /storage/kkm_last_doc_name [17:31:43]save OK [17:31:43]Clear old archive folders... [17:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:31:43]tlvbuf is 0203FE90 [17:31:43]SAM_PROTO_ClearQueue [17:31:43]wFMCommunicate request_size=4 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 09 00 00 [17:31:43]Write to MH i2c: E2 08 00 EB 08 80 09 00 00 00 00 00 00 65 [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:43]Read from MH i2c: E2 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [17:31:43]RAPDU: 90 00 [17:31:43]wFMCommunicate OK [17:31:43]SAM_PROTO_ClearQueue done [17:31:43]KKMCreateOFDPacket [17:31:43]OFDProtocolAddRootSTLVToBuf [17:31:43]FM_MakeSignedData [17:31:43]FM_MakeSignedData [17:31:43]SAM_PROTO_SignData [17:31:43]wFMCommunicate request_size=4 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 0D 01 02 [17:31:43]Write to MH i2c: E2 08 00 EC 08 80 0D 01 02 00 00 00 00 6D [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:43]Read from MH i2c: E2 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 [17:31:43]MH_I2C_Read... [17:31:43]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [17:31:43]RAPDU: 90 00 [17:31:43]wFMCommunicate OK [17:31:43]wFMCommunicate request_size=255 [17:31:43]MH_SAM_APDU [17:31:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CB 08 00 00 35 04 06 00 21 74 BF B1 [17:31:43]Write to MH i2c: E2 02 01 ED 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 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CB 08 00 00 35 04 06 00 21 74 BF B1 00 00 05 [17:31:43]Write i2c OK [17:31:43]MH_I2C_Read... [17:31:44]OFD Sender: No OFD packet to send [17:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [17:31:44]RAPDU: 90 00 [17:31:44]wFMCommunicate OK [17:31:44]wFMCommunicate request_size=7 [17:31:44]MH_SAM_APDU [17:31:44]CAPDU: 80 0D 02 02 02 18 56 [17:31:44]Write to MH i2c: E2 0A 00 EE 08 80 0D 02 02 02 00 18 56 00 00 E2 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [17:31:44]RAPDU: 90 00 [17:31:44]wFMCommunicate OK [17:31:44]wFMCommunicate request_size=4 [17:31:44]MH_SAM_APDU [17:31:44]CAPDU: 80 0D 03 02 [17:31:44]Write to MH i2c: E2 08 00 EF 08 80 0D 03 02 00 00 00 00 72 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 0B 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 0B 00 EF 08 00 44 F1 36 4B 2C 18 C8 FA 90 00 2F [17:31:44]RAPDU: 44 F1 36 4B 2C 18 C8 FA 90 00 [17:31:44]wFMCommunicate OK [17:31:44]SAM_PROTO_SignData done [17:31:44]FM_MakeSignedData done [17:31:44]CreateOFDProtocolMessage [17:31:44]wFMCommunicate request_size=4 [17:31:44]MH_SAM_APDU [17:31:44]CAPDU: 80 11 00 00 [17:31:44]Write to MH i2c: E2 08 00 F0 08 80 11 00 00 00 00 00 00 72 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 17 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 17 00 F0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C2 [17:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:31:44]wFMCommunicate OK [17:31:44]CreateOFDProtocolMessage done [17:31:44]OFDSenderStorePacket 2251 [17:31:44]StoreOFDPacket docnum=2251 [17:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 F6 40 04 01 1F 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CB 08 00 00 35 04 06 00 21 74 BF B1 18 56 44 F1 36 4B 2C 18 C8 FA [17:31:44]CheckFolder [17:31:44]dirname=/storage/ofd_packets [17:31:44]CheckFolder done [17:31:44]ProducePacketName [17:31:44]name=ofd_packets/00002251 [17:31:44]NVStorageSaveData ofd_packets/00002251 [17:31:44]File name is /storage/ofd_packets/00002251 [17:31:44]Write 298 bytes [17:31:44]NVStorageSaveData done [17:31:44]OFDSenderStorePacket done [17:31:44]KKMCreateOFDPacket done [17:31:44]NVStorageSaveData kkm_last_timestamp [17:31:44]File name is /storage/kkm_last_timestamp [17:31:44]Write 4 bytes [17:31:44]NVStorageSaveData done [17:31:44]ExternCall_PrintAddStr [17:31:44]wPrintStart [17:31:44]Write to MH i2c: 01 00 00 F1 08 F9 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 F1 08 00 00 00 00 00 FF 0F 0E [17:31:44]RasterBufferAndPrint [17:31:44]line Счет N : (1)609988 [17:31:44]line ИНН: 02508201610067 [17:31:44]line Контрольно-Кассовый Чек [17:31:44]line ПРОДАЖА [17:31:44]line ТРК (МРК, ГНК) : 1 [17:31:44]line Товар: 2710194210 [17:31:44]line ДТ-К-2 [17:31:44]line 13.210 * 75.70 [17:31:44]line = 1000.00 [17:31:44]line НДС 12% НСП 1% [17:31:44]line > о реализуемом товаре [17:31:44]line ИТОГО: 1000.00 [17:31:44]line НСП 1% : 8.85 [17:31:44]line НДС 12% : 106.19 [17:31:44]line Наличными: 1000.00 [17:31:44]line Безнал.: 0.00 [17:31:44]line Место: АЗС № 127 "Партнер Нефть" [17:31:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:31:44]line СНО: Общий режим [17:31:44]line Чек 100 29.07.2024 17:31 [17:31:44]line Смена: 15 ФФД: 1.0 [17:31:44]line ЗНМ: 0300000161 [17:31:44]line РНМ: 0000000000189667 [17:31:44]line Версия ККМ: v1.0 [17:31:44]line ФМ: 0000000002094248 [17:31:44]line ФД: 2251 [17:31:44]line ФПД: 36785315977302 [17:31:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173143&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2251&fm=36785315977302&tin=02508201610067®Number=0000000000189667&sum=100000 [17:31:44]written 0, free lines is 4095 [17:31:44]OFD Sender: Processing packet 2251 [packets to send 1, broken 0] [17:31:44]ProducePacketName [17:31:44]name=ofd_packets/00002251 [17:31:44]OFD Sender: To server: pG, [17:31:44]CommunicateWithHost lk.salyk.kg:30040 [17:31:44]ConnectInit lk.salyk.kg [17:31:44]Connected sock=10 [17:31:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 F6 40 04 01 1F 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF D1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CB 08 00 00 35 04 06 00 21 74 BF B1 18 56 44 F1 36 4B 2C 18 C8 FA [17:31:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8A 9C 47 00 B5 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 32 30 39 34 32 34 38 10 04 04 00 CB 08 00 00 F4 03 04 00 6B 7D A7 66 B6 04 01 00 00 32 53 C8 20 79 E4 AE 8B [17:31:44]CommunicateWithHost err = 0 [17:31:44]CheckOFDResponse [17:31:44]1017 (14) - 77093643461234 [17:31:44]1041 (16) - 0000000002094248 [17:31:44]1040 (4) - 2251 [17:31:44]1012 (4) - 29.07.2024 11:30 [17:31:44]1206 (1) - 0 [17:31:44]OFD Sender: Remove packet 2251 [17:31:44]ProducePacketName [17:31:44]name=ofd_packets/00002251 [17:31:44]NVStorageDeleteData [17:31:44]Write to MH i2c: 01 00 00 19 09 22 [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 18 0D 4E [17:31:44]RasterBufferAndPrint [17:31:44]line [17:31:44]line [17:31:44]line [17:31:44]line [17:31:44]line [17:31:44]written 0, free lines is 3361 [17:31:44]MH_Cut [17:31:44]Write to MH i2c: D1 01 00 20 09 01 FB [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: D1 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: D1 01 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: D1 01 00 20 09 00 FA [17:31:44]Write to MH i2c: 01 00 00 21 09 2A [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:45]OFD Sender: No OFD packet to send [17:31:45]*** Cut start [17:31:45]*** Partial cut [17:31:45]*** CUTSNS_PIN = 1 [17:31:45]*** CUTSNS_PIN = 0 [17:31:45]*** Brake cut motor [17:31:46]Read from MH i2c: 01 [17:31:46]MH_I2C_Read... [17:31:46]*** Stop cut motor [17:31:46]*** Cut end [17:31:46]Read from MH i2c: 01 07 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: 01 07 00 21 09 00 00 00 00 00 FF 0F 3F [17:31:46]process_action close_receipt done [17:31:46]requested_data is exist [17:31:46]produce_requested_data [17:31:46]requested_item fm.sn is exist - process it [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 11 00 00 [17:31:46]Write to MH i2c: E2 08 00 22 09 80 11 00 00 00 00 00 00 A5 [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 17 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 17 00 22 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F5 [17:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:31:46]wFMCommunicate OK [17:31:46]requested_item fd.num is exist - process it [17:31:46]SAM_PROTO_GetFieldsCounters [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 13 00 00 [17:31:46]Write to MH i2c: E2 08 00 23 09 80 13 00 00 00 00 00 00 A8 [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 62 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 62 00 23 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CB 08 00 00 0E 04 04 00 0F 00 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 E0 [17:31:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CB 08 00 00 0E 04 04 00 0F 00 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 [17:31:46]wFMCommunicate OK [17:31:46]SAM_PROTO_GetFieldsCounters done [17:31:46]requested_item shift.num is exist - process it [17:31:46]requested_item shift.opened is exist - process it [17:31:46]req_shift_opened [17:31:46]FM_GetShiftState [17:31:46]SAM_PROTO_GetShiftState [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 13 01 00 [17:31:46]Write to MH i2c: E2 08 00 24 09 80 13 01 00 00 00 00 00 AA [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 0E 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 0E 00 24 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A3 [17:31:46]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:31:46]wFMCommunicate OK [17:31:46]SAM_PROTO_GetShiftState done [17:31:46]FM_GetShiftState done [17:31:46]req_shift_opened done [17:31:46]requested_item shift.open_date is exist - process it [17:31:46]req_shift_open_date [17:31:46]req_shift_open_date done [17:31:46]produce_requested_data done [17:31:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2251,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:31:46]process_action_free close_receipt [17:31:46]json_value_free [17:31:46]json_value_free done [17:31:46]process_json_proto returns [17:31:46]Send response to host [17:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2251,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:31:46]free response buf [17:31:46]execute_script done [17:31:46]execute_script returns [17:31:46]free content buf [17:31:46]Sock 8.Close socket [17:31:46]Sock 8.Thread stoped [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:03]accept exits with 9 [17:35:03]New connection [17:35:03]New thread 3067157860 created [17:35:03]Thread 3067014500 joined [17:35:03]Waiting for new connection... [17:35:03] Sock 9.Parse request [17:35:03]Sock 9.Check first char [17:35:03]Sock 9.First char is OK [17:35:03]request: POST /json_proto HTTP/1.0 [17:35:03]Method: POST [17:35:03]URL: /json_proto [17:35:03]Method is POST - this is cgi request [17:35:03]url: /json_proto [17:35:03]query_string will be loaded in cgi processing [17:35:03]execute_cgi json_proto POST (null) [17:35:03]execute_cgi path=json_proto method=POST [17:35:03]POST find Content-Length [17:35:03]Host: 172.17.45.132:8080 [17:35:03]Content-Length: 800 [17:35:03]Content-Type: application/json [17:35:03] [17:35:03]POST finish read [17:35:03]Found Content-Length = 800 [17:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:03]execute_script... [17:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)609991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.000, "sum" : 339.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:03]POST & json_proto [17:35:03]process_json_proto [17:35:03]json parsed OK: [17:35:03]protocol is kg_v1.0 [17:35:03]action value=close_receipt [17:35:03]process_action close_receipt [17:35:03]cmd_close_receipt [17:35:03]MH_GetDate [17:35:03]Write to MH i2c: F0 00 00 25 09 1D [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: F0 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: F0 09 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: F0 09 00 25 09 00 C8 D2 A7 66 E3 0B 90 66 B1 [17:35:03]GetLastDocTimeStamp 1722274303 [17:35:03]current date 1722274504 [17:35:03]FM_GetShiftState [17:35:03]SAM_PROTO_GetShiftState [17:35:03]wFMCommunicate request_size=4 [17:35:03]MH_SAM_APDU [17:35:03]CAPDU: 80 13 01 00 [17:35:03]Write to MH i2c: E2 08 00 26 09 80 13 01 00 00 00 00 00 AC [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:03]Read from MH i2c: E2 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 0E 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: E2 0E 00 26 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A5 [17:35:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:35:03]wFMCommunicate OK [17:35:03]SAM_PROTO_GetShiftState done [17:35:03]FM_GetShiftState done [17:35:03]opened in 1722213119 [17:35:03]opened+sec_in_day 1722299519 [17:35:03]quantity*price = 33900 [17:35:03]sum+1 = 33901 [17:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 36.00 Наличными: 0.00 Безнал.: 339.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 101 29.07.2024 17:35 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2252 ФПД: 228857071777654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173504&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2252&fm=228857071777654&tin=02508201610067®Number=0000000000189667&sum=33900 [17:35:04]StoreToDocumentArchive [17:35:04]shift 15 fd 2252 [17:35:04]save to /storage/0015/doc_00002252 [17:35:04]save last doc name /storage/0015/doc_00002252 to /storage/kkm_last_doc_name [17:35:04]save OK [17:35:04]Clear old archive folders... [17:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:04]tlvbuf is 020181D0 [17:35:04]SAM_PROTO_ClearQueue [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 09 00 00 [17:35:04]Write to MH i2c: E2 08 00 33 09 80 09 00 00 00 00 00 00 AE [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [17:35:04]RAPDU: 90 00 [17:35:04]wFMCommunicate OK [17:35:04]SAM_PROTO_ClearQueue done [17:35:04]KKMCreateOFDPacket [17:35:04]OFDProtocolAddRootSTLVToBuf [17:35:04]FM_MakeSignedData [17:35:04]FM_MakeSignedData [17:35:04]SAM_PROTO_SignData [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 0D 01 02 [17:35:04]Write to MH i2c: E2 08 00 34 09 80 0D 01 02 00 00 00 00 B6 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [17:35:04]RAPDU: 90 00 [17:35:04]wFMCommunicate OK [17:35:04]wFMCommunicate request_size=255 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C8 D2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 08 00 00 35 04 06 00 D0 [17:35:04]Write to MH i2c: E2 02 01 35 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C8 D2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 08 00 00 35 04 06 00 D0 00 00 D1 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [17:35:04]RAPDU: 90 00 [17:35:04]wFMCommunicate OK [17:35:04]wFMCommunicate request_size=10 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 0D 02 02 05 24 F0 77 B7 76 [17:35:04]Write to MH i2c: E2 0D 00 36 09 80 0D 02 02 05 00 24 F0 77 B7 76 00 00 7B [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [17:35:04]RAPDU: 90 00 [17:35:04]wFMCommunicate OK [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 0D 03 02 [17:35:04]Write to MH i2c: E2 08 00 37 09 80 0D 03 02 00 00 00 00 BB [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 0B 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 0B 00 37 09 00 D5 8E 48 BA 72 FA 6A 9A 90 00 91 [17:35:04]RAPDU: D5 8E 48 BA 72 FA 6A 9A 90 00 [17:35:04]wFMCommunicate OK [17:35:04]SAM_PROTO_SignData done [17:35:04]FM_MakeSignedData done [17:35:04]CreateOFDProtocolMessage [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 11 00 00 [17:35:04]Write to MH i2c: E2 08 00 38 09 80 11 00 00 00 00 00 00 BB [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 17 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 17 00 38 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0B [17:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:35:04]wFMCommunicate OK [17:35:04]CreateOFDProtocolMessage done [17:35:04]OFDSenderStorePacket 2252 [17:35:04]StoreOFDPacket docnum=2252 [17:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 AC EA 07 01 1A 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C8 D2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 08 00 00 35 04 06 00 D0 24 F0 77 B7 76 D5 8E 48 BA 72 FA 6A 9A [17:35:04]CheckFolder [17:35:04]dirname=/storage/ofd_packets [17:35:04]CheckFolder done [17:35:04]ProducePacketName [17:35:04]name=ofd_packets/00002252 [17:35:04]NVStorageSaveData ofd_packets/00002252 [17:35:04]File name is /storage/ofd_packets/00002252 [17:35:04]Write 301 bytes [17:35:04]NVStorageSaveData done [17:35:04]OFDSenderStorePacket done [17:35:04]KKMCreateOFDPacket done [17:35:04]NVStorageSaveData kkm_last_timestamp [17:35:04]File name is /storage/kkm_last_timestamp [17:35:04]Write 4 bytes [17:35:04]NVStorageSaveData done [17:35:04]ExternCall_PrintAddStr [17:35:04]wPrintStart [17:35:04]Write to MH i2c: 01 00 00 39 09 42 [17:35:04]OFD Sender: Processing packet 2252 [packets to send 1, broken 0] [17:35:04]ProducePacketName [17:35:04]name=ofd_packets/00002252 [17:35:04]OFD Sender: To server: pG, [17:35:04]CommunicateWithHost lk.salyk.kg:30040 [17:35:04]ConnectInit lk.salyk.kg [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 07 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 07 00 39 09 00 00 00 00 00 FF 0F 57 [17:35:04]RasterBufferAndPrint [17:35:04]line Счет N : (1)609991 [17:35:04]line ИНН: 02508201610067 [17:35:04]line Контрольно-Кассовый Чек [17:35:04]line ПРОДАЖА [17:35:04]line ТРК (МРК, ГНК) : 62 [17:35:04]line Товар: 2710124130 [17:35:04]line Аи-92-К-2 [17:35:04]line 5.000 * 67.80 [17:35:04]line = 339.00 [17:35:04]line НДС 12% НСП 1% [17:35:04]line > о реализуемом товаре [17:35:04]line ИТОГО: 339.00 [17:35:04]line НСП 1% : 3.00 [17:35:04]line НДС 12% : 36.00 [17:35:04]line Наличными: 0.00 [17:35:04]line Безнал.: 339.00 [17:35:04]line Место: АЗС № 127 "Партнер Нефть" [17:35:04]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:35:04]line СНО: Общий режим [17:35:04]line Чек 101 29.07.2024 17:35 [17:35:04]line Смена: 15 ФФД: 1.0 [17:35:04]line ЗНМ: 0300000161 [17:35:04]line РНМ: 0000000000189667 [17:35:04]line Версия ККМ: v1.0 [17:35:04]line Платежная система: O! деньги [17:35:04]line ФМ: 0000000002094248 [17:35:04]line ФД: 2252 [17:35:04]line ФПД: 228857071777654 [17:35:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173504&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2252&fm=228857071777654&tin=02508201610067®Number=0000000000189667&sum=33900 [17:35:05]Connected sock=10 [17:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 AC EA 07 01 1A 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6C 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C8 D2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 08 00 00 35 04 06 00 D0 24 F0 77 B7 76 D5 8E 48 BA 72 FA 6A 9A [17:35:05]written 0, free lines is 4095 [17:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B2 B3 47 00 14 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CC 08 00 00 F4 03 04 00 34 7E A7 66 B6 04 01 00 00 23 58 4B 7A 92 19 6B 93 [17:35:05]CommunicateWithHost err = 0 [17:35:05]CheckOFDResponse [17:35:05]1017 (14) - 77093643461234 [17:35:05]1041 (16) - 0000000002094248 [17:35:05]1040 (4) - 2252 [17:35:05]1012 (4) - 29.07.2024 11:34 [17:35:05]1206 (1) - 0 [17:35:05]OFD Sender: Remove packet 2252 [17:35:05]ProducePacketName [17:35:05]name=ofd_packets/00002252 [17:35:05]NVStorageDeleteData [17:35:05]Write to MH i2c: 01 00 00 63 09 6C [17:35:05]Write i2c OK [17:35:05]MH_I2C_Read... [17:35:05]Read from MH i2c: 01 [17:35:05]MH_I2C_Read... [17:35:05]Read from MH i2c: 01 07 00 [17:35:05]MH_I2C_Read... [17:35:05]Read from MH i2c: 01 07 00 63 09 00 00 00 00 00 FA 0C 79 [17:35:05]RasterBufferAndPrint [17:35:05]line [17:35:05]line [17:35:05]line [17:35:05]line [17:35:05]line [17:35:05]written 0, free lines is 3328 [17:35:05]MH_Cut [17:35:05]Write to MH i2c: D1 01 00 6A 09 01 45 [17:35:05]Write i2c OK [17:35:05]MH_I2C_Read... [17:35:05]Read from MH i2c: D1 [17:35:05]MH_I2C_Read... [17:35:05]Read from MH i2c: D1 01 00 [17:35:05]MH_I2C_Read... [17:35:05]Read from MH i2c: D1 01 00 6A 09 00 44 [17:35:05]Write to MH i2c: 01 00 00 6B 09 74 [17:35:05]Write i2c OK [17:35:05]MH_I2C_Read... [17:35:05]OFD Sender: No OFD packet to send [17:35:06]*** Cut start [17:35:06]*** Partial cut [17:35:06]*** CUTSNS_PIN = 1 [17:35:06]*** CUTSNS_PIN = 0 [17:35:06]*** Brake cut motor [17:35:06]Read from MH i2c: 01 [17:35:06]MH_I2C_Read... [17:35:06]*** Stop cut motor [17:35:06]*** Cut end [17:35:06]Read from MH i2c: 01 07 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [17:35:06]process_action close_receipt done [17:35:06]requested_data is exist [17:35:06]produce_requested_data [17:35:06]requested_item fm.sn is exist - process it [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 11 00 00 [17:35:06]Write to MH i2c: E2 08 00 6C 09 80 11 00 00 00 00 00 00 EF [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:06]Read from MH i2c: E2 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 17 00 [17:35:06]MH_I2C_Read... [17:35:06]Read from MH i2c: E2 17 00 6C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3F [17:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:35:06]wFMCommunicate OK [17:35:06]requested_item fd.num is exist - process it [17:35:06]SAM_PROTO_GetFieldsCounters [17:35:06]wFMCommunicate request_size=4 [17:35:06]MH_SAM_APDU [17:35:06]CAPDU: 80 13 00 00 [17:35:06]Write to MH i2c: E2 08 00 6D 09 80 13 00 00 00 00 00 00 F2 [17:35:06]Write i2c OK [17:35:06]MH_I2C_Read... [17:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:07]Read from MH i2c: E2 [17:35:07]MH_I2C_Read... [17:35:07]Read from MH i2c: E2 62 00 [17:35:07]MH_I2C_Read... [17:35:07]Read from MH i2c: E2 62 00 6D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CC 08 00 00 0E 04 04 00 0F 00 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 2E [17:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CC 08 00 00 0E 04 04 00 0F 00 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 [17:35:07]wFMCommunicate OK [17:35:07]SAM_PROTO_GetFieldsCounters done [17:35:07]requested_item shift.num is exist - process it [17:35:07]requested_item shift.opened is exist - process it [17:35:07]req_shift_opened [17:35:07]FM_GetShiftState [17:35:07]SAM_PROTO_GetShiftState [17:35:07]wFMCommunicate request_size=4 [17:35:07]MH_SAM_APDU [17:35:07]CAPDU: 80 13 01 00 [17:35:07]Write to MH i2c: E2 08 00 6E 09 80 13 01 00 00 00 00 00 F4 [17:35:07]Write i2c OK [17:35:07]MH_I2C_Read... [17:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:07]Read from MH i2c: E2 [17:35:07]MH_I2C_Read... [17:35:07]Read from MH i2c: E2 0E 00 [17:35:07]MH_I2C_Read... [17:35:07]Read from MH i2c: E2 0E 00 6E 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 ED [17:35:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:35:07]wFMCommunicate OK [17:35:07]SAM_PROTO_GetShiftState done [17:35:07]FM_GetShiftState done [17:35:07]req_shift_opened done [17:35:07]requested_item shift.open_date is exist - process it [17:35:07]req_shift_open_date [17:35:07]req_shift_open_date done [17:35:07]produce_requested_data done [17:35:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2252,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:35:07]process_action_free close_receipt [17:35:07]json_value_free [17:35:07]json_value_free done [17:35:07]process_json_proto returns [17:35:07]Send response to host [17:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2252,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:35:07]free response buf [17:35:07]execute_script done [17:35:07]execute_script returns [17:35:07]free content buf [17:35:07]Sock 9.Close socket [17:35:07]Sock 9.Thread stoped [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:28]accept exits with 8 [17:46:28]New connection [17:46:28]New thread 3067014500 created [17:46:28]Thread 3067157860 joined [17:46:28]Waiting for new connection... [17:46:28] Sock 8.Parse request [17:46:28]Sock 8.Check first char [17:46:28]Sock 8.First char is OK [17:46:28]request: POST /json_proto HTTP/1.0 [17:46:28]Method: POST [17:46:28]URL: /json_proto [17:46:28]Method is POST - this is cgi request [17:46:28]url: /json_proto [17:46:28]query_string will be loaded in cgi processing [17:46:28]execute_cgi json_proto POST (null) [17:46:28]execute_cgi path=json_proto method=POST [17:46:28]POST find Content-Length [17:46:28]Host: 172.17.45.132:8080 [17:46:28]Content-Length: 677 [17:46:28]Content-Type: application/json [17:46:28] [17:46:28]POST finish read [17:46:28]Found Content-Length = 677 [17:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 6.200, "sum" : 420.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:28]execute_script... [17:46:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 6.200, "sum" : 420.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:28]POST & json_proto [17:46:28]process_json_proto [17:46:28]json parsed OK: [17:46:28]protocol is kg_v1.0 [17:46:28]action value=close_receipt [17:46:28]process_action close_receipt [17:46:28]cmd_close_receipt [17:46:28]MH_GetDate [17:46:28]Write to MH i2c: F0 00 00 6F 09 67 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: F0 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: F0 09 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: F0 09 00 6F 09 00 75 D5 A7 66 E3 0B 90 66 AB [17:46:28]GetLastDocTimeStamp 1722274504 [17:46:28]current date 1722275189 [17:46:28]FM_GetShiftState [17:46:28]SAM_PROTO_GetShiftState [17:46:28]wFMCommunicate request_size=4 [17:46:28]MH_SAM_APDU [17:46:28]CAPDU: 80 13 01 00 [17:46:28]Write to MH i2c: E2 08 00 70 09 80 13 01 00 00 00 00 00 F6 [17:46:28]Write i2c OK [17:46:28]MH_I2C_Read... [17:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:28]Read from MH i2c: E2 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0E 00 [17:46:28]MH_I2C_Read... [17:46:28]Read from MH i2c: E2 0E 00 70 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EF [17:46:28]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:46:28]wFMCommunicate OK [17:46:28]SAM_PROTO_GetShiftState done [17:46:28]FM_GetShiftState done [17:46:28]opened in 1722213119 [17:46:28]opened+sec_in_day 1722299519 [17:46:28]quantity*price = 42036 [17:46:28]sum+1 = 42037 [17:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.64 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 102 29.07.2024 17:46 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2253 ФПД: 36959316581523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174629&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2253&fm=36959316581523&tin=02508201610067®Number=0000000000189667&sum=42000 [17:46:29]StoreToDocumentArchive [17:46:29]shift 15 fd 2253 [17:46:29]save to /storage/0015/doc_00002253 [17:46:29]save last doc name /storage/0015/doc_00002253 to /storage/kkm_last_doc_name [17:46:29]save OK [17:46:29]Clear old archive folders... [17:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:29]tlvbuf is 0201E7B0 [17:46:29]SAM_PROTO_ClearQueue [17:46:29]wFMCommunicate request_size=4 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 09 00 00 [17:46:29]Write to MH i2c: E2 08 00 7D 09 80 09 00 00 00 00 00 00 F8 [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [17:46:29]RAPDU: 90 00 [17:46:29]wFMCommunicate OK [17:46:29]SAM_PROTO_ClearQueue done [17:46:29]KKMCreateOFDPacket [17:46:29]OFDProtocolAddRootSTLVToBuf [17:46:29]FM_MakeSignedData [17:46:29]FM_MakeSignedData [17:46:29]SAM_PROTO_SignData [17:46:29]wFMCommunicate request_size=4 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 0D 01 02 [17:46:29]Write to MH i2c: E2 08 00 7E 09 80 0D 01 02 00 00 00 00 00 [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:29]Read from MH i2c: E2 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 [17:46:29]MH_I2C_Read... [17:46:29]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [17:46:29]RAPDU: 90 00 [17:46:29]wFMCommunicate OK [17:46:29]wFMCommunicate request_size=255 [17:46:29]MH_SAM_APDU [17:46:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 34 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 75 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 08 00 00 35 04 06 00 21 [17:46:29]Write to MH i2c: E2 02 01 7F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 34 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 75 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 08 00 00 35 04 06 00 21 00 00 EE [17:46:29]Write i2c OK [17:46:29]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 03 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [17:46:30]RAPDU: 90 00 [17:46:30]wFMCommunicate OK [17:46:30]wFMCommunicate request_size=10 [17:46:30]MH_SAM_APDU [17:46:30]CAPDU: 80 0D 02 02 05 9D 42 EF 9C 93 [17:46:30]Write to MH i2c: E2 0D 00 80 09 80 0D 02 02 05 00 9D 42 EF 9C 93 00 00 0A [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 03 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [17:46:30]RAPDU: 90 00 [17:46:30]wFMCommunicate OK [17:46:30]wFMCommunicate request_size=4 [17:46:30]MH_SAM_APDU [17:46:30]CAPDU: 80 0D 03 02 [17:46:30]Write to MH i2c: E2 08 00 81 09 80 0D 03 02 00 00 00 00 05 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 0B 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 0B 00 81 09 00 1E E7 1E 68 98 0E 3D 38 90 00 AC [17:46:30]RAPDU: 1E E7 1E 68 98 0E 3D 38 90 00 [17:46:30]wFMCommunicate OK [17:46:30]SAM_PROTO_SignData done [17:46:30]FM_MakeSignedData done [17:46:30]CreateOFDProtocolMessage [17:46:30]wFMCommunicate request_size=4 [17:46:30]MH_SAM_APDU [17:46:30]CAPDU: 80 11 00 00 [17:46:30]Write to MH i2c: E2 08 00 82 09 80 11 00 00 00 00 00 00 05 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 17 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 17 00 82 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 55 [17:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:46:30]wFMCommunicate OK [17:46:30]CreateOFDProtocolMessage done [17:46:30]OFDSenderStorePacket 2253 [17:46:30]StoreOFDPacket docnum=2253 [17:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A9 B5 07 01 E9 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 34 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 75 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 08 00 00 35 04 06 00 21 9D 42 EF 9C 93 1E E7 1E 68 98 0E 3D 38 [17:46:30]CheckFolder [17:46:30]dirname=/storage/ofd_packets [17:46:30]CheckFolder done [17:46:30]ProducePacketName [17:46:30]name=ofd_packets/00002253 [17:46:30]NVStorageSaveData ofd_packets/00002253 [17:46:30]File name is /storage/ofd_packets/00002253 [17:46:30]Write 301 bytes [17:46:30]NVStorageSaveData done [17:46:30]OFDSenderStorePacket done [17:46:30]KKMCreateOFDPacket done [17:46:30]NVStorageSaveData kkm_last_timestamp [17:46:30]File name is /storage/kkm_last_timestamp [17:46:30]Write 4 bytes [17:46:30]NVStorageSaveData done [17:46:30]ExternCall_PrintAddStr [17:46:30]wPrintStart [17:46:30]Write to MH i2c: 01 00 00 83 09 8C [17:46:30]OFD Sender: Processing packet 2253 [packets to send 1, broken 0] [17:46:30]ProducePacketName [17:46:30]name=ofd_packets/00002253 [17:46:30]OFD Sender: To server: pG, [17:46:30]CommunicateWithHost lk.salyk.kg:30040 [17:46:30]ConnectInit lk.salyk.kg [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: 01 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: 01 07 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: 01 07 00 83 09 00 00 00 00 00 FF 0F A1 [17:46:30]RasterBufferAndPrint [17:46:30]line Счет N : (1)610002 [17:46:30]line ИНН: 02508201610067 [17:46:30]line Контрольно-Кассовый Чек [17:46:30]line ПРОДАЖА [17:46:30]line ТРК (МРК, ГНК) : 32 [17:46:30]line Товар: 2710124130 [17:46:30]line Аи-92-К-2 [17:46:30]line 6.200 * 67.80 [17:46:30]line = 420.36 [17:46:30]line НДС 12% НСП 1% [17:46:30]line > о реализуемом товаре [17:46:30]line ОКРУГЛЕНИЕ: -0.36 [17:46:30]line ИТОГО: 420.00 [17:46:30]line Внесено: 420.00 [17:46:30]line СДАЧА: 0.00 [17:46:30]line НСП 1% : 3.72 [17:46:30]line НДС 12% : 44.64 [17:46:30]line Наличными: 420.00 [17:46:30]line Безнал.: 0.00 [17:46:30]line Место: АЗС № 127 "Партнер Нефть" [17:46:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:46:30]line СНО: Общий режим [17:46:30]line Чек 102 29.07.2024 17:46 [17:46:30]line Смена: 15 ФФД: 1.0 [17:46:30]line ЗНМ: 0300000161 [17:46:30]line РНМ: 0000000000189667 [17:46:30]line Версия ККМ: v1.0 [17:46:30]line ФМ: 0000000002094248 [17:46:30]line ФД: 2253 [17:46:30]line ФПД: 36959316581523 [17:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174629&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2253&fm=36959316581523&tin=02508201610067®Number=0000000000189667&sum=42000 [17:46:30]Connected sock=10 [17:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A9 B5 07 01 E9 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 34 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 75 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CD 08 00 00 35 04 06 00 21 9D 42 EF 9C 93 1E E7 1E 68 98 0E 3D 38 [17:46:30]written 0, free lines is 4095 [17:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B0 95 47 00 16 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 32 30 39 34 32 34 38 10 04 04 00 CD 08 00 00 F4 03 04 00 E1 80 A7 66 B6 04 01 00 00 5F FD FE FA AF 7E 48 94 [17:46:30]CommunicateWithHost err = 0 [17:46:30]CheckOFDResponse [17:46:30]1017 (14) - 77093643461234 [17:46:30]1041 (16) - 0000000002094248 [17:46:30]1040 (4) - 2253 [17:46:30]1012 (4) - 29.07.2024 11:45 [17:46:30]1206 (1) - 0 [17:46:30]OFD Sender: Remove packet 2253 [17:46:30]ProducePacketName [17:46:30]name=ofd_packets/00002253 [17:46:30]NVStorageDeleteData [17:46:31]Write to MH i2c: 01 00 00 AE 09 B7 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: 01 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: 01 07 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 EC 0C B6 [17:46:31]RasterBufferAndPrint [17:46:31]line [17:46:31]line [17:46:31]line [17:46:31]line [17:46:31]line [17:46:31]written 0, free lines is 3314 [17:46:31]MH_Cut [17:46:31]Write to MH i2c: D1 01 00 B5 09 01 90 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: D1 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: D1 01 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: D1 01 00 B5 09 00 8F [17:46:31]Write to MH i2c: 01 00 00 B6 09 BF [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]OFD Sender: No OFD packet to send [17:46:31]*** Cut start [17:46:31]*** Partial cut [17:46:31]*** CUTSNS_PIN = 1 [17:46:31]*** CUTSNS_PIN = 0 [17:46:32]*** Brake cut motor [17:46:32]Read from MH i2c: 01 [17:46:32]MH_I2C_Read... [17:46:32]*** Stop cut motor [17:46:32]*** Cut end [17:46:32]Read from MH i2c: 01 07 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [17:46:32]process_action close_receipt done [17:46:32]requested_data is exist [17:46:32]produce_requested_data [17:46:32]requested_item fm.sn is exist - process it [17:46:32]wFMCommunicate request_size=4 [17:46:32]MH_SAM_APDU [17:46:32]CAPDU: 80 11 00 00 [17:46:32]Write to MH i2c: E2 08 00 B7 09 80 11 00 00 00 00 00 00 3A [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:32]Read from MH i2c: E2 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 17 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 17 00 B7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8A [17:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:46:32]wFMCommunicate OK [17:46:32]requested_item fd.num is exist - process it [17:46:32]SAM_PROTO_GetFieldsCounters [17:46:32]wFMCommunicate request_size=4 [17:46:32]MH_SAM_APDU [17:46:32]CAPDU: 80 13 00 00 [17:46:32]Write to MH i2c: E2 08 00 B8 09 80 13 00 00 00 00 00 00 3D [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:32]Read from MH i2c: E2 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 62 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 62 00 B8 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CD 08 00 00 0E 04 04 00 0F 00 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 7D [17:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CD 08 00 00 0E 04 04 00 0F 00 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 [17:46:32]wFMCommunicate OK [17:46:32]SAM_PROTO_GetFieldsCounters done [17:46:32]requested_item shift.num is exist - process it [17:46:32]requested_item shift.opened is exist - process it [17:46:32]req_shift_opened [17:46:32]FM_GetShiftState [17:46:32]SAM_PROTO_GetShiftState [17:46:32]wFMCommunicate request_size=4 [17:46:32]MH_SAM_APDU [17:46:32]CAPDU: 80 13 01 00 [17:46:32]Write to MH i2c: E2 08 00 B9 09 80 13 01 00 00 00 00 00 3F [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:32]Read from MH i2c: E2 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 0E 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 0E 00 B9 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 38 [17:46:32]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:46:32]wFMCommunicate OK [17:46:32]SAM_PROTO_GetShiftState done [17:46:32]FM_GetShiftState done [17:46:32]req_shift_opened done [17:46:32]requested_item shift.open_date is exist - process it [17:46:32]req_shift_open_date [17:46:32]req_shift_open_date done [17:46:32]produce_requested_data done [17:46:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2253,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:46:32]process_action_free close_receipt [17:46:32]json_value_free [17:46:32]json_value_free done [17:46:32]process_json_proto returns [17:46:32]Send response to host [17:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2253,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:46:32]free response buf [17:46:32]execute_script done [17:46:32]execute_script returns [17:46:32]free content buf [17:46:32]Sock 8.Close socket [17:46:32]Sock 8.Thread stoped [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:09]accept exits with 9 [17:47:09]New connection [17:47:09]New thread 3067157860 created [17:47:09]Thread 3067014500 joined [17:47:09]Waiting for new connection... [17:47:09] Sock 9.Parse request [17:47:09]Sock 9.Check first char [17:47:09]Sock 9.First char is OK [17:47:09]request: POST /json_proto HTTP/1.0 [17:47:09]Method: POST [17:47:09]URL: /json_proto [17:47:09]Method is POST - this is cgi request [17:47:09]url: /json_proto [17:47:09]query_string will be loaded in cgi processing [17:47:09]execute_cgi json_proto POST (null) [17:47:09]execute_cgi path=json_proto method=POST [17:47:09]POST find Content-Length [17:47:09]Host: 172.17.45.132:8080 [17:47:09]Content-Length: 677 [17:47:09]Content-Type: application/json [17:47:09] [17:47:09]POST finish read [17:47:09]Found Content-Length = 677 [17:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 2.680, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:09]execute_script... [17:47:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 2.680, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:09]POST & json_proto [17:47:09]process_json_proto [17:47:09]json parsed OK: [17:47:09]protocol is kg_v1.0 [17:47:09]action value=close_receipt [17:47:09]process_action close_receipt [17:47:09]cmd_close_receipt [17:47:09]MH_GetDate [17:47:09]Write to MH i2c: F0 00 00 BA 09 B2 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: F0 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: F0 09 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: F0 09 00 BA 09 00 9E D5 A7 66 E3 0B 90 66 1F [17:47:09]GetLastDocTimeStamp 1722275189 [17:47:09]current date 1722275230 [17:47:09]FM_GetShiftState [17:47:09]SAM_PROTO_GetShiftState [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 13 01 00 [17:47:09]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0E 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3A [17:47:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:47:09]wFMCommunicate OK [17:47:09]SAM_PROTO_GetShiftState done [17:47:09]FM_GetShiftState done [17:47:09]opened in 1722213119 [17:47:09]opened+sec_in_day 1722299519 [17:47:09]quantity*price = 20019 [17:47:09]sum+1 = 20021 [17:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 103 29.07.2024 17:47 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2254 ФПД: 126693554753335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174710&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2254&fm=126693554753335&tin=02508201610067®Number=0000000000189667&sum=20000 [17:47:10]StoreToDocumentArchive [17:47:10]shift 15 fd 2254 [17:47:10]save to /storage/0015/doc_00002254 [17:47:10]save last doc name /storage/0015/doc_00002254 to /storage/kkm_last_doc_name [17:47:10]save OK [17:47:10]Clear old archive folders... [17:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:10]tlvbuf is 0201D8F0 [17:47:10]SAM_PROTO_ClearQueue [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 09 00 00 [17:47:10]Write to MH i2c: E2 08 00 C8 09 80 09 00 00 00 00 00 00 43 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_ClearQueue done [17:47:10]KKMCreateOFDPacket [17:47:10]OFDProtocolAddRootSTLVToBuf [17:47:10]FM_MakeSignedData [17:47:10]FM_MakeSignedData [17:47:10]SAM_PROTO_SignData [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 01 02 [17:47:10]Write to MH i2c: E2 08 00 C9 09 80 0D 01 02 00 00 00 00 4B [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]wFMCommunicate request_size=255 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 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 67 00 00 00 F4 03 04 00 9E D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 08 00 00 35 04 06 00 73 [17:47:10]Write to MH i2c: E2 02 01 CA 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 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 67 00 00 00 F4 03 04 00 9E D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 08 00 00 35 04 06 00 73 00 00 D1 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]wFMCommunicate request_size=10 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 02 02 05 3A 24 53 8F 37 [17:47:10]Write to MH i2c: E2 0D 00 CB 09 80 0D 02 02 05 00 3A 24 53 8F 37 00 00 CF [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [17:47:10]RAPDU: 90 00 [17:47:10]wFMCommunicate OK [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 0D 03 02 [17:47:10]Write to MH i2c: E2 08 00 CC 09 80 0D 03 02 00 00 00 00 50 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:11]Read from MH i2c: E2 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 0B 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 0B 00 CC 09 00 3A B2 C6 67 2C B7 CB CD 90 00 E5 [17:47:11]RAPDU: 3A B2 C6 67 2C B7 CB CD 90 00 [17:47:11]wFMCommunicate OK [17:47:11]SAM_PROTO_SignData done [17:47:11]FM_MakeSignedData done [17:47:11]CreateOFDProtocolMessage [17:47:11]wFMCommunicate request_size=4 [17:47:11]MH_SAM_APDU [17:47:11]CAPDU: 80 11 00 00 [17:47:11]Write to MH i2c: E2 08 00 CD 09 80 11 00 00 00 00 00 00 50 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:11]Read from MH i2c: E2 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 17 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 17 00 CD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A0 [17:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:47:11]wFMCommunicate OK [17:47:11]CreateOFDProtocolMessage done [17:47:11]OFDSenderStorePacket 2254 [17:47:11]StoreOFDPacket docnum=2254 [17:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 08 BE 07 01 47 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 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 67 00 00 00 F4 03 04 00 9E D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 08 00 00 35 04 06 00 73 3A 24 53 8F 37 3A B2 C6 67 2C B7 CB CD [17:47:11]CheckFolder [17:47:11]dirname=/storage/ofd_packets [17:47:11]CheckFolder done [17:47:11]ProducePacketName [17:47:11]name=ofd_packets/00002254 [17:47:11]NVStorageSaveData ofd_packets/00002254 [17:47:11]File name is /storage/ofd_packets/00002254 [17:47:11]Write 301 bytes [17:47:11]NVStorageSaveData done [17:47:11]OFDSenderStorePacket done [17:47:11]KKMCreateOFDPacket done [17:47:11]NVStorageSaveData kkm_last_timestamp [17:47:11]File name is /storage/kkm_last_timestamp [17:47:11]Write 4 bytes [17:47:11]NVStorageSaveData done [17:47:11]ExternCall_PrintAddStr [17:47:11]wPrintStart [17:47:11]Write to MH i2c: 01 00 00 CE 09 D7 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 07 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 07 00 CE 09 00 00 00 00 00 FF 0F EC [17:47:11]RasterBufferAndPrint [17:47:11]line Счет N : (1)610003 [17:47:11]line ИНН: 02508201610067 [17:47:11]line Контрольно-Кассовый Чек [17:47:11]line ПРОДАЖА [17:47:11]line ТРК (МРК, ГНК) : 63 [17:47:11]line Товар: 2710124500 [17:47:11]line Аи-95-К-3 [17:47:11]line 2.680 * 74.70 [17:47:11]line = 200.20 [17:47:11]line НДС 12% НСП 1% [17:47:11]line > о реализуемом товаре [17:47:11]line ОКРУГЛЕНИЕ: -0.20 [17:47:11]line ИТОГО: 200.00 [17:47:11]line Внесено: 200.00 [17:47:11]line СДАЧА: 0.00 [17:47:11]line НСП 1% : 1.77 [17:47:11]line НДС 12% : 21.26 [17:47:11]line Наличными: 200.00 [17:47:11]line Безнал.: 0.00 [17:47:11]line Место: АЗС № 127 "Партнер Нефть" [17:47:11]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:47:11]line СНО: Общий режим [17:47:11]line Чек 103 29.07.2024 17:47 [17:47:11]line Смена: 15 ФФД: 1.0 [17:47:11]line ЗНМ: 0300000161 [17:47:11]line РНМ: 0000000000189667 [17:47:11]line Версия ККМ: v1.0 [17:47:11]line ФМ: 0000000002094248 [17:47:11]line ФД: 2254 [17:47:11]line ФПД: 126693554753335 [17:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174710&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2254&fm=126693554753335&tin=02508201610067®Number=0000000000189667&sum=20000 [17:47:11]OFD Sender: Processing packet 2254 [packets to send 1, broken 0] [17:47:11]ProducePacketName [17:47:11]name=ofd_packets/00002254 [17:47:11]OFD Sender: To server: pG, [17:47:11]CommunicateWithHost lk.salyk.kg:30040 [17:47:11]ConnectInit lk.salyk.kg [17:47:11]written 0, free lines is 4095 [17:47:11]Connected sock=11 [17:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 08 BE 07 01 47 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 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 67 00 00 00 F4 03 04 00 9E D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 08 00 00 35 04 06 00 73 3A 24 53 8F 37 3A B2 C6 67 2C B7 CB CD [17:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C1 41 47 00 A2 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CE 08 00 00 F4 03 04 00 0A 81 A7 66 B6 04 01 00 00 C1 38 05 4E B6 CC 04 F8 [17:47:11]CommunicateWithHost err = 0 [17:47:11]CheckOFDResponse [17:47:11]1017 (14) - 77093643461234 [17:47:11]1041 (16) - 0000000002094248 [17:47:11]1040 (4) - 2254 [17:47:11]1012 (4) - 29.07.2024 11:46 [17:47:11]1206 (1) - 0 [17:47:11]OFD Sender: Remove packet 2254 [17:47:11]ProducePacketName [17:47:11]name=ofd_packets/00002254 [17:47:11]NVStorageDeleteData [17:47:11]Write to MH i2c: 01 00 00 F9 09 02 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 07 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: 01 07 00 F9 09 00 00 00 00 00 E7 0C FC [17:47:11]RasterBufferAndPrint [17:47:11]line [17:47:11]line [17:47:11]line [17:47:11]line [17:47:11]line [17:47:11]written 0, free lines is 3310 [17:47:11]MH_Cut [17:47:11]Write to MH i2c: D1 01 00 00 0A 01 DC [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: D1 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: D1 01 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: D1 01 00 00 0A 00 DB [17:47:11]Write to MH i2c: 01 00 00 01 0A 0B [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:12]OFD Sender: No OFD packet to send [17:47:12]*** Cut start [17:47:12]*** Partial cut [17:47:12]*** CUTSNS_PIN = 1 [17:47:12]*** CUTSNS_PIN = 0 [17:47:12]*** Brake cut motor [17:47:13]Read from MH i2c: 01 [17:47:13]MH_I2C_Read... [17:47:13]*** Stop cut motor [17:47:13]*** Cut end [17:47:13]Read from MH i2c: 01 07 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 FF 0F 20 [17:47:13]process_action close_receipt done [17:47:13]requested_data is exist [17:47:13]produce_requested_data [17:47:13]requested_item fm.sn is exist - process it [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 11 00 00 [17:47:13]Write to MH i2c: E2 08 00 02 0A 80 11 00 00 00 00 00 00 86 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 17 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 17 00 02 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D6 [17:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:47:13]wFMCommunicate OK [17:47:13]requested_item fd.num is exist - process it [17:47:13]SAM_PROTO_GetFieldsCounters [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 13 00 00 [17:47:13]Write to MH i2c: E2 08 00 03 0A 80 13 00 00 00 00 00 00 89 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 62 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 62 00 03 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CE 08 00 00 0E 04 04 00 0F 00 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 CD [17:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CE 08 00 00 0E 04 04 00 0F 00 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 [17:47:13]wFMCommunicate OK [17:47:13]SAM_PROTO_GetFieldsCounters done [17:47:13]requested_item shift.num is exist - process it [17:47:13]requested_item shift.opened is exist - process it [17:47:13]req_shift_opened [17:47:13]FM_GetShiftState [17:47:13]SAM_PROTO_GetShiftState [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 13 01 00 [17:47:13]Write to MH i2c: E2 08 00 04 0A 80 13 01 00 00 00 00 00 8B [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 0E 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 0E 00 04 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 84 [17:47:13]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:47:13]wFMCommunicate OK [17:47:13]SAM_PROTO_GetShiftState done [17:47:13]FM_GetShiftState done [17:47:13]req_shift_opened done [17:47:13]requested_item shift.open_date is exist - process it [17:47:13]req_shift_open_date [17:47:13]req_shift_open_date done [17:47:13]produce_requested_data done [17:47:13]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2254,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:47:13]process_action_free close_receipt [17:47:13]json_value_free [17:47:13]json_value_free done [17:47:13]process_json_proto returns [17:47:13]Send response to host [17:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2254,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:47:13]free response buf [17:47:13]execute_script done [17:47:13]execute_script returns [17:47:13]free content buf [17:47:13]Sock 9.Close socket [17:47:13]Sock 9.Thread stoped [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:05]accept exits with 8 [17:48:05]New connection [17:48:05]New thread 3067014500 created [17:48:05]Thread 3067157860 joined [17:48:05]Waiting for new connection... [17:48:05] Sock 8.Parse request [17:48:05]Sock 8.Check first char [17:48:05]Sock 8.First char is OK [17:48:05]request: POST /json_proto HTTP/1.0 [17:48:05]Method: POST [17:48:05]URL: /json_proto [17:48:05]Method is POST - this is cgi request [17:48:05]url: /json_proto [17:48:05]query_string will be loaded in cgi processing [17:48:05]execute_cgi json_proto POST (null) [17:48:05]execute_cgi path=json_proto method=POST [17:48:05]POST find Content-Length [17:48:05]Host: 172.17.45.132:8080 [17:48:05]Content-Length: 638 [17:48:05]Content-Type: application/json [17:48:05] [17:48:05]POST finish read [17:48:05]Found Content-Length = 638 [17:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:05]execute_script... [17:48: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)610004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:05]POST & json_proto [17:48:05]process_json_proto [17:48:05]json parsed OK: [17:48:05]protocol is kg_v1.0 [17:48:05]action value=close_receipt [17:48:05]process_action close_receipt [17:48:05]cmd_close_receipt [17:48:05]MH_GetDate [17:48:05]Write to MH i2c: F0 00 00 05 0A FE [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: F0 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: F0 09 00 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: F0 09 00 05 0A 00 D6 D5 A7 66 E3 0B 90 66 A3 [17:48:05]GetLastDocTimeStamp 1722275230 [17:48:05]current date 1722275286 [17:48:05]FM_GetShiftState [17:48:05]SAM_PROTO_GetShiftState [17:48:05]wFMCommunicate request_size=4 [17:48:05]MH_SAM_APDU [17:48:05]CAPDU: 80 13 01 00 [17:48:05]Write to MH i2c: E2 08 00 06 0A 80 13 01 00 00 00 00 00 8D [17:48:05]Write i2c OK [17:48:05]MH_I2C_Read... [17:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:05]Read from MH i2c: E2 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 0E 00 [17:48:05]MH_I2C_Read... [17:48:05]Read from MH i2c: E2 0E 00 06 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 86 [17:48:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:48:05]wFMCommunicate OK [17:48:05]SAM_PROTO_GetShiftState done [17:48:05]FM_GetShiftState done [17:48:05]opened in 1722213119 [17:48:05]opened+sec_in_day 1722299519 [17:48:05]quantity*price = 99999 [17:48:05]sum+1 = 100001 [17:48:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 104 29.07.2024 17:48 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2255 ФПД: 43180342335648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174806&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2255&fm=43180342335648&tin=02508201610067®Number=0000000000189667&sum=100000 [17:48:06]StoreToDocumentArchive [17:48:06]shift 15 fd 2255 [17:48:06]save to /storage/0015/doc_00002255 [17:48:06]save last doc name /storage/0015/doc_00002255 to /storage/kkm_last_doc_name [17:48:06]save OK [17:48:06]Clear old archive folders... [17:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:48:06]tlvbuf is 02031750 [17:48:06]SAM_PROTO_ClearQueue [17:48:06]wFMCommunicate request_size=4 [17:48:06]MH_SAM_APDU [17:48:06]CAPDU: 80 09 00 00 [17:48:06]Write to MH i2c: E2 08 00 13 0A 80 09 00 00 00 00 00 00 8F [17:48:06]Write i2c OK [17:48:06]MH_I2C_Read... [17:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:06]Read from MH i2c: E2 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [17:48:06]RAPDU: 90 00 [17:48:06]wFMCommunicate OK [17:48:06]SAM_PROTO_ClearQueue done [17:48:06]KKMCreateOFDPacket [17:48:06]OFDProtocolAddRootSTLVToBuf [17:48:06]FM_MakeSignedData [17:48:06]FM_MakeSignedData [17:48:06]SAM_PROTO_SignData [17:48:06]wFMCommunicate request_size=4 [17:48:06]MH_SAM_APDU [17:48:06]CAPDU: 80 0D 01 02 [17:48:06]Write to MH i2c: E2 08 00 14 0A 80 0D 01 02 00 00 00 00 97 [17:48:06]Write i2c OK [17:48:06]MH_I2C_Read... [17:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:06]Read from MH i2c: E2 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [17:48:06]RAPDU: 90 00 [17:48:06]wFMCommunicate OK [17:48:06]wFMCommunicate request_size=255 [17:48:06]MH_SAM_APDU [17:48:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 D6 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 08 00 00 35 04 06 00 27 45 B4 F7 [17:48:06]Write to MH i2c: E2 02 01 15 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 D6 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 08 00 00 35 04 06 00 27 45 B4 F7 00 00 24 [17:48:06]Write i2c OK [17:48:06]MH_I2C_Read... [17:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:06]Read from MH i2c: E2 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [17:48:06]RAPDU: 90 00 [17:48:06]wFMCommunicate OK [17:48:06]wFMCommunicate request_size=7 [17:48:06]MH_SAM_APDU [17:48:06]CAPDU: 80 0D 02 02 02 58 A0 [17:48:06]Write to MH i2c: E2 0A 00 16 0A 80 0D 02 02 02 00 58 A0 00 00 96 [17:48:06]Write i2c OK [17:48:06]MH_I2C_Read... [17:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:06]Read from MH i2c: E2 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [17:48:06]RAPDU: 90 00 [17:48:06]wFMCommunicate OK [17:48:06]wFMCommunicate request_size=4 [17:48:06]MH_SAM_APDU [17:48:06]CAPDU: 80 0D 03 02 [17:48:06]Write to MH i2c: E2 08 00 17 0A 80 0D 03 02 00 00 00 00 9C [17:48:06]Write i2c OK [17:48:06]MH_I2C_Read... [17:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:06]Read from MH i2c: E2 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 0B 00 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 0B 00 17 0A 00 5E B6 76 7D 30 63 71 89 90 00 31 [17:48:06]RAPDU: 5E B6 76 7D 30 63 71 89 90 00 [17:48:06]wFMCommunicate OK [17:48:06]SAM_PROTO_SignData done [17:48:06]FM_MakeSignedData done [17:48:06]CreateOFDProtocolMessage [17:48:06]wFMCommunicate request_size=4 [17:48:06]MH_SAM_APDU [17:48:06]CAPDU: 80 11 00 00 [17:48:06]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [17:48:06]Write i2c OK [17:48:06]MH_I2C_Read... [17:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:06]Read from MH i2c: E2 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 17 00 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EC [17:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:48:06]wFMCommunicate OK [17:48:06]CreateOFDProtocolMessage done [17:48:06]OFDSenderStorePacket 2255 [17:48:06]StoreOFDPacket docnum=2255 [17:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 5F 6E 04 01 5F 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 D6 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 08 00 00 35 04 06 00 27 45 B4 F7 58 A0 5E B6 76 7D 30 63 71 89 [17:48:06]CheckFolder [17:48:06]dirname=/storage/ofd_packets [17:48:06]CheckFolder done [17:48:06]ProducePacketName [17:48:06]name=ofd_packets/00002255 [17:48:06]NVStorageSaveData ofd_packets/00002255 [17:48:06]File name is /storage/ofd_packets/00002255 [17:48:06]Write 298 bytes [17:48:06]NVStorageSaveData done [17:48:06]OFDSenderStorePacket done [17:48:06]KKMCreateOFDPacket done [17:48:06]NVStorageSaveData kkm_last_timestamp [17:48:06]File name is /storage/kkm_last_timestamp [17:48:06]Write 4 bytes [17:48:06]NVStorageSaveData done [17:48:06]ExternCall_PrintAddStr [17:48:06]wPrintStart [17:48:06]Write to MH i2c: 01 00 00 19 0A 23 [17:48:06]Write i2c OK [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: 01 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: 01 07 00 [17:48:06]MH_I2C_Read... [17:48:06]Read from MH i2c: 01 07 00 19 0A 00 00 00 00 00 FF 0F 38 [17:48:06]RasterBufferAndPrint [17:48:06]line Счет N : (1)610004 [17:48:06]line ИНН: 02508201610067 [17:48:06]line Контрольно-Кассовый Чек [17:48:06]line ПРОДАЖА [17:48:06]line ТРК (МРК, ГНК) : 1 [17:48:06]line Товар: 2710194210 [17:48:06]line ДТ-К-2 [17:48:06]line 13.210 * 75.70 [17:48:06]line = 1000.00 [17:48:06]line НДС 12% НСП 1% [17:48:06]line > о реализуемом товаре [17:48:06]line ИТОГО: 1000.00 [17:48:06]line НСП 1% : 8.85 [17:48:06]line НДС 12% : 106.19 [17:48:06]line Наличными: 1000.00 [17:48:06]line Безнал.: 0.00 [17:48:06]line Место: АЗС № 127 "Партнер Нефть" [17:48:06]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:48:06]line СНО: Общий режим [17:48:06]line Чек 104 29.07.2024 17:48 [17:48:06]line Смена: 15 ФФД: 1.0 [17:48:06]line ЗНМ: 0300000161 [17:48:07]line РНМ: 0000000000189667 [17:48:07]line Версия ККМ: v1.0 [17:48:07]line ФМ: 0000000002094248 [17:48:07]line ФД: 2255 [17:48:07]line ФПД: 43180342335648 [17:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174806&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2255&fm=43180342335648&tin=02508201610067®Number=0000000000189667&sum=100000 [17:48:07]OFD Sender: Processing packet 2255 [packets to send 1, broken 0] [17:48:07]ProducePacketName [17:48:07]name=ofd_packets/00002255 [17:48:07]OFD Sender: To server: pG, [17:48:07]CommunicateWithHost lk.salyk.kg:30040 [17:48:07]ConnectInit lk.salyk.kg [17:48:07]written 0, free lines is 4095 [17:48:07]Connected sock=10 [17:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 5F 6E 04 01 5F 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 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 D6 D5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 CF 08 00 00 35 04 06 00 27 45 B4 F7 58 A0 5E B6 76 7D 30 63 71 89 [17:48:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2C B8 47 00 7A 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 32 30 39 34 32 34 38 10 04 04 00 CF 08 00 00 F4 03 04 00 42 81 A7 66 B6 04 01 00 00 CF 77 77 27 4F 71 EC 80 [17:48:07]CommunicateWithHost err = 0 [17:48:07]CheckOFDResponse [17:48:07]1017 (14) - 77093643461234 [17:48:07]1041 (16) - 0000000002094248 [17:48:07]1040 (4) - 2255 [17:48:07]1012 (4) - 29.07.2024 11:47 [17:48:07]1206 (1) - 0 [17:48:07]OFD Sender: Remove packet 2255 [17:48:07]ProducePacketName [17:48:07]name=ofd_packets/00002255 [17:48:07]NVStorageDeleteData [17:48:07]Write to MH i2c: 01 00 00 41 0A 4B [17:48:07]Write i2c OK [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: 01 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: 01 07 00 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: 01 07 00 41 0A 00 00 00 00 00 10 0D 6F [17:48:07]RasterBufferAndPrint [17:48:07]line [17:48:07]line [17:48:07]line [17:48:07]line [17:48:07]line [17:48:07]written 0, free lines is 3350 [17:48:07]MH_Cut [17:48:07]Write to MH i2c: D1 01 00 48 0A 01 24 [17:48:07]Write i2c OK [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: D1 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: D1 01 00 [17:48:07]MH_I2C_Read... [17:48:07]Read from MH i2c: D1 01 00 48 0A 00 23 [17:48:07]Write to MH i2c: 01 00 00 49 0A 53 [17:48:07]Write i2c OK [17:48:07]MH_I2C_Read... [17:48:07]OFD Sender: No OFD packet to send [17:48:08]*** Cut start [17:48:08]*** Partial cut [17:48:08]*** CUTSNS_PIN = 1 [17:48:08]*** CUTSNS_PIN = 0 [17:48:08]*** Brake cut motor [17:48:08]Read from MH i2c: 01 [17:48:08]MH_I2C_Read... [17:48:08]*** Stop cut motor [17:48:08]*** Cut end [17:48:08]Read from MH i2c: 01 07 00 [17:48:08]MH_I2C_Read... [17:48:08]Read from MH i2c: 01 07 00 49 0A 00 00 00 00 00 FF 0F 68 [17:48:08]process_action close_receipt done [17:48:08]requested_data is exist [17:48:08]produce_requested_data [17:48:08]requested_item fm.sn is exist - process it [17:48:08]wFMCommunicate request_size=4 [17:48:08]MH_SAM_APDU [17:48:08]CAPDU: 80 11 00 00 [17:48:08]Write to MH i2c: E2 08 00 4A 0A 80 11 00 00 00 00 00 00 CE [17:48:08]Write i2c OK [17:48:08]MH_I2C_Read... [17:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:08]Read from MH i2c: E2 [17:48:08]MH_I2C_Read... [17:48:08]Read from MH i2c: E2 17 00 [17:48:08]MH_I2C_Read... [17:48:08]Read from MH i2c: E2 17 00 4A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1E [17:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:48:08]wFMCommunicate OK [17:48:08]requested_item fd.num is exist - process it [17:48:08]SAM_PROTO_GetFieldsCounters [17:48:08]wFMCommunicate request_size=4 [17:48:08]MH_SAM_APDU [17:48:08]CAPDU: 80 13 00 00 [17:48:08]Write to MH i2c: E2 08 00 4B 0A 80 13 00 00 00 00 00 00 D1 [17:48:08]Write i2c OK [17:48:08]MH_I2C_Read... [17:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:08]Read from MH i2c: E2 [17:48:08]MH_I2C_Read... [17:48:08]Read from MH i2c: E2 62 00 [17:48:08]MH_I2C_Read... [17:48:08]Read from MH i2c: E2 62 00 4B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CF 08 00 00 0E 04 04 00 0F 00 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 [17:48:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 CF 08 00 00 0E 04 04 00 0F 00 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 [17:48:08]wFMCommunicate OK [17:48:08]SAM_PROTO_GetFieldsCounters done [17:48:08]requested_item shift.num is exist - process it [17:48:08]requested_item shift.opened is exist - process it [17:48:08]req_shift_opened [17:48:08]FM_GetShiftState [17:48:08]SAM_PROTO_GetShiftState [17:48:08]wFMCommunicate request_size=4 [17:48:08]MH_SAM_APDU [17:48:08]CAPDU: 80 13 01 00 [17:48:08]Write to MH i2c: E2 08 00 4C 0A 80 13 01 00 00 00 00 00 D3 [17:48:08]Write i2c OK [17:48:08]MH_I2C_Read... [17:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:09]Read from MH i2c: E2 [17:48:09]MH_I2C_Read... [17:48:09]Read from MH i2c: E2 0E 00 [17:48:09]MH_I2C_Read... [17:48:09]Read from MH i2c: E2 0E 00 4C 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CC [17:48:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:48:09]wFMCommunicate OK [17:48:09]SAM_PROTO_GetShiftState done [17:48:09]FM_GetShiftState done [17:48:09]req_shift_opened done [17:48:09]requested_item shift.open_date is exist - process it [17:48:09]req_shift_open_date [17:48:09]req_shift_open_date done [17:48:09]produce_requested_data done [17:48:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2255,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:48:09]process_action_free close_receipt [17:48:09]json_value_free [17:48:09]json_value_free done [17:48:09]process_json_proto returns [17:48:09]Send response to host [17:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2255,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:48:09]free response buf [17:48:09]execute_script done [17:48:09]execute_script returns [17:48:09]free content buf [17:48:09]Sock 8.Close socket [17:48:09]Sock 8.Thread stoped [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:37]accept exits with 9 [17:52:37]New connection [17:52:37]New thread 3067157860 created [17:52:37]Thread 3067014500 joined [17:52:37]Waiting for new connection... [17:52:37] Sock 9.Parse request [17:52:37]Sock 9.Check first char [17:52:37]Sock 9.First char is OK [17:52:37]request: POST /json_proto HTTP/1.0 [17:52:37]Method: POST [17:52:37]URL: /json_proto [17:52:37]Method is POST - this is cgi request [17:52:37]url: /json_proto [17:52:37]query_string will be loaded in cgi processing [17:52:37]execute_cgi json_proto POST (null) [17:52:37]execute_cgi path=json_proto method=POST [17:52:37]POST find Content-Length [17:52:37]Host: 172.17.45.132:8080 [17:52:37]Content-Length: 677 [17:52:37]Content-Type: application/json [17:52:37] [17:52:37]POST finish read [17:52:37]Found Content-Length = 677 [17:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:37]execute_script... [17:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:37]POST & json_proto [17:52:37]process_json_proto [17:52:37]json parsed OK: [17:52:37]protocol is kg_v1.0 [17:52:37]action value=close_receipt [17:52:37]process_action close_receipt [17:52:37]cmd_close_receipt [17:52:37]MH_GetDate [17:52:37]Write to MH i2c: F0 00 00 4D 0A 46 [17:52:37]Write i2c OK [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: F0 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: F0 09 00 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: F0 09 00 4D 0A 00 E6 D6 A7 66 E3 0B 90 66 FC [17:52:37]GetLastDocTimeStamp 1722275286 [17:52:37]current date 1722275558 [17:52:37]FM_GetShiftState [17:52:37]SAM_PROTO_GetShiftState [17:52:37]wFMCommunicate request_size=4 [17:52:37]MH_SAM_APDU [17:52:37]CAPDU: 80 13 01 00 [17:52:37]Write to MH i2c: E2 08 00 4E 0A 80 13 01 00 00 00 00 00 D5 [17:52:37]Write i2c OK [17:52:37]MH_I2C_Read... [17:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:37]Read from MH i2c: E2 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: E2 0E 00 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: E2 0E 00 4E 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CE [17:52:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:52:37]wFMCommunicate OK [17:52:37]SAM_PROTO_GetShiftState done [17:52:37]FM_GetShiftState done [17:52:37]opened in 1722213119 [17:52:37]opened+sec_in_day 1722299519 [17:52:37]quantity*price = 50036 [17:52:37]sum+1 = 50037 [17:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 105 29.07.2024 17:52 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2256 ФПД: 164727231807699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175238&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2256&fm=164727231807699&tin=02508201610067®Number=0000000000189667&sum=50000 [17:52:38]StoreToDocumentArchive [17:52:38]shift 15 fd 2256 [17:52:38]save to /storage/0015/doc_00002256 [17:52:38]save last doc name /storage/0015/doc_00002256 to /storage/kkm_last_doc_name [17:52:38]save OK [17:52:38]Clear old archive folders... [17:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:38]tlvbuf is 02042BA0 [17:52:38]SAM_PROTO_ClearQueue [17:52:38]wFMCommunicate request_size=4 [17:52:38]MH_SAM_APDU [17:52:38]CAPDU: 80 09 00 00 [17:52:38]Write to MH i2c: E2 08 00 5B 0A 80 09 00 00 00 00 00 00 D7 [17:52:38]Write i2c OK [17:52:38]MH_I2C_Read... [17:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:38]Read from MH i2c: E2 [17:52:38]MH_I2C_Read... [17:52:38]Read from MH i2c: E2 03 00 [17:52:38]MH_I2C_Read... [17:52:38]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [17:52:38]RAPDU: 90 00 [17:52:38]wFMCommunicate OK [17:52:38]SAM_PROTO_ClearQueue done [17:52:38]KKMCreateOFDPacket [17:52:38]OFDProtocolAddRootSTLVToBuf [17:52:38]FM_MakeSignedData [17:52:38]FM_MakeSignedData [17:52:38]SAM_PROTO_SignData [17:52:38]wFMCommunicate request_size=4 [17:52:38]MH_SAM_APDU [17:52:38]CAPDU: 80 0D 01 02 [17:52:38]Write to MH i2c: E2 08 00 5C 0A 80 0D 01 02 00 00 00 00 DF [17:52:38]Write i2c OK [17:52:38]MH_I2C_Read... [17:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:38]Read from MH i2c: E2 [17:52:38]MH_I2C_Read... [17:52:38]Read from MH i2c: E2 03 00 [17:52:38]MH_I2C_Read... [17:52:38]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [17:52:38]RAPDU: 90 00 [17:52:38]wFMCommunicate OK [17:52:38]wFMCommunicate request_size=255 [17:52:38]MH_SAM_APDU [17:52:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 D6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 08 00 00 35 04 06 00 95 [17:52:38]Write to MH i2c: E2 02 01 5D 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 D6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 08 00 00 35 04 06 00 95 00 00 12 [17:52:38]Write i2c OK [17:52:38]MH_I2C_Read... [17:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:39]Read from MH i2c: E2 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 03 00 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [17:52:39]RAPDU: 90 00 [17:52:39]wFMCommunicate OK [17:52:39]wFMCommunicate request_size=10 [17:52:39]MH_SAM_APDU [17:52:39]CAPDU: 80 0D 02 02 05 D1 8C 23 00 D3 [17:52:39]Write to MH i2c: E2 0D 00 5E 0A 80 0D 02 02 05 00 D1 8C 23 00 D3 00 00 3F [17:52:39]Write i2c OK [17:52:39]MH_I2C_Read... [17:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:39]Read from MH i2c: E2 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 03 00 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [17:52:39]RAPDU: 90 00 [17:52:39]wFMCommunicate OK [17:52:39]wFMCommunicate request_size=4 [17:52:39]MH_SAM_APDU [17:52:39]CAPDU: 80 0D 03 02 [17:52:39]Write to MH i2c: E2 08 00 5F 0A 80 0D 03 02 00 00 00 00 E4 [17:52:39]Write i2c OK [17:52:39]MH_I2C_Read... [17:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:39]Read from MH i2c: E2 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 0B 00 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 0B 00 5F 0A 00 5F 96 8B 28 9F DD 9F 2A 90 00 D2 [17:52:39]RAPDU: 5F 96 8B 28 9F DD 9F 2A 90 00 [17:52:39]wFMCommunicate OK [17:52:39]SAM_PROTO_SignData done [17:52:39]FM_MakeSignedData done [17:52:39]CreateOFDProtocolMessage [17:52:39]wFMCommunicate request_size=4 [17:52:39]MH_SAM_APDU [17:52:39]CAPDU: 80 11 00 00 [17:52:39]Write to MH i2c: E2 08 00 60 0A 80 11 00 00 00 00 00 00 E4 [17:52:39]Write i2c OK [17:52:39]MH_I2C_Read... [17:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:39]Read from MH i2c: E2 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 17 00 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: E2 17 00 60 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 34 [17:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:52:39]wFMCommunicate OK [17:52:39]CreateOFDProtocolMessage done [17:52:39]OFDSenderStorePacket 2256 [17:52:39]StoreOFDPacket docnum=2256 [17:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 04 BD 07 01 20 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 D6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 08 00 00 35 04 06 00 95 D1 8C 23 00 D3 5F 96 8B 28 9F DD 9F 2A [17:52:39]CheckFolder [17:52:39]dirname=/storage/ofd_packets [17:52:39]CheckFolder done [17:52:39]ProducePacketName [17:52:39]name=ofd_packets/00002256 [17:52:39]NVStorageSaveData ofd_packets/00002256 [17:52:39]File name is /storage/ofd_packets/00002256 [17:52:39]Write 301 bytes [17:52:39]NVStorageSaveData done [17:52:39]OFDSenderStorePacket done [17:52:39]KKMCreateOFDPacket done [17:52:39]NVStorageSaveData kkm_last_timestamp [17:52:39]File name is /storage/kkm_last_timestamp [17:52:39]Write 4 bytes [17:52:39]NVStorageSaveData done [17:52:39]ExternCall_PrintAddStr [17:52:39]wPrintStart [17:52:39]Write to MH i2c: 01 00 00 61 0A 6B [17:52:39]Write i2c OK [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: 01 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: 01 07 00 [17:52:39]MH_I2C_Read... [17:52:39]Read from MH i2c: 01 07 00 61 0A 00 00 00 00 00 FF 0F 80 [17:52:39]RasterBufferAndPrint [17:52:39]line Счет N : (1)610008 [17:52:39]line ИНН: 02508201610067 [17:52:39]line Контрольно-Кассовый Чек [17:52:39]line ПРОДАЖА [17:52:39]line ТРК (МРК, ГНК) : 32 [17:52:39]line Товар: 2710124130 [17:52:39]line Аи-92-К-2 [17:52:39]line 7.380 * 67.80 [17:52:39]line = 500.36 [17:52:39]line НДС 12% НСП 1% [17:52:39]line > о реализуемом товаре [17:52:39]line ОКРУГЛЕНИЕ: -0.36 [17:52:39]line ИТОГО: 500.00 [17:52:39]line Внесено: 500.00 [17:52:39]line СДАЧА: 0.00 [17:52:39]line НСП 1% : 4.43 [17:52:39]line НДС 12% : 53.14 [17:52:39]line Наличными: 500.00 [17:52:39]line Безнал.: 0.00 [17:52:39]line Место: АЗС № 127 "Партнер Нефть" [17:52:39]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:52:39]line СНО: Общий режим [17:52:39]line Чек 105 29.07.2024 17:52 [17:52:39]line Смена: 15 ФФД: 1.0 [17:52:39]line ЗНМ: 0300000161 [17:52:39]line РНМ: 0000000000189667 [17:52:39]line Версия ККМ: v1.0 [17:52:39]line ФМ: 0000000002094248 [17:52:39]line ФД: 2256 [17:52:39]line ФПД: 164727231807699 [17:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175238&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2256&fm=164727231807699&tin=02508201610067®Number=0000000000189667&sum=50000 [17:52:39]OFD Sender: Processing packet 2256 [packets to send 1, broken 0] [17:52:39]ProducePacketName [17:52:39]name=ofd_packets/00002256 [17:52:39]OFD Sender: To server: pG, [17:52:39]CommunicateWithHost lk.salyk.kg:30040 [17:52:39]ConnectInit lk.salyk.kg [17:52:39]written 0, free lines is 4095 [17:52:39]Connected sock=10 [17:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 04 BD 07 01 20 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 D6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 08 00 00 35 04 06 00 95 D1 8C 23 00 D3 5F 96 8B 28 9F DD 9F 2A [17:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A0 5D 47 00 26 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D0 08 00 00 F4 03 04 00 52 82 A7 66 B6 04 01 00 00 DB 43 E5 74 9D 70 E8 D7 [17:52:39]CommunicateWithHost err = 0 [17:52:39]CheckOFDResponse [17:52:39]1017 (14) - 77093643461234 [17:52:39]1041 (16) - 0000000002094248 [17:52:39]1040 (4) - 2256 [17:52:39]1012 (4) - 29.07.2024 11:51 [17:52:39]1206 (1) - 0 [17:52:39]OFD Sender: Remove packet 2256 [17:52:39]ProducePacketName [17:52:39]name=ofd_packets/00002256 [17:52:39]NVStorageDeleteData [17:52:40]Write to MH i2c: 01 00 00 8C 0A 96 [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: 01 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: 01 07 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: 01 07 00 8C 0A 00 00 00 00 00 ED 0C 96 [17:52:40]RasterBufferAndPrint [17:52:40]line [17:52:40]line [17:52:40]line [17:52:40]line [17:52:40]line [17:52:40]written 0, free lines is 3315 [17:52:40]MH_Cut [17:52:40]Write to MH i2c: D1 01 00 93 0A 01 6F [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: D1 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: D1 01 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: D1 01 00 93 0A 00 6E [17:52:40]Write to MH i2c: 01 00 00 94 0A 9E [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]OFD Sender: No OFD packet to send [17:52:40]*** Cut start [17:52:40]*** Partial cut [17:52:40]*** CUTSNS_PIN = 1 [17:52:40]*** CUTSNS_PIN = 0 [17:52:41]*** Brake cut motor [17:52:41]Read from MH i2c: 01 [17:52:41]MH_I2C_Read... [17:52:41]*** Stop cut motor [17:52:41]*** Cut end [17:52:41]Read from MH i2c: 01 07 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: 01 07 00 94 0A 00 00 00 00 00 FF 0F B3 [17:52:41]process_action close_receipt done [17:52:41]requested_data is exist [17:52:41]produce_requested_data [17:52:41]requested_item fm.sn is exist - process it [17:52:41]wFMCommunicate request_size=4 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 11 00 00 [17:52:41]Write to MH i2c: E2 08 00 95 0A 80 11 00 00 00 00 00 00 19 [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 17 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 17 00 95 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 69 [17:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:52:41]wFMCommunicate OK [17:52:41]requested_item fd.num is exist - process it [17:52:41]SAM_PROTO_GetFieldsCounters [17:52:41]wFMCommunicate request_size=4 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 13 00 00 [17:52:41]Write to MH i2c: E2 08 00 96 0A 80 13 00 00 00 00 00 00 1C [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 62 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 62 00 96 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D0 08 00 00 0E 04 04 00 0F 00 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 68 [17:52:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D0 08 00 00 0E 04 04 00 0F 00 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 [17:52:41]wFMCommunicate OK [17:52:41]SAM_PROTO_GetFieldsCounters done [17:52:41]requested_item shift.num is exist - process it [17:52:41]requested_item shift.opened is exist - process it [17:52:41]req_shift_opened [17:52:41]FM_GetShiftState [17:52:41]SAM_PROTO_GetShiftState [17:52:41]wFMCommunicate request_size=4 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 13 01 00 [17:52:41]Write to MH i2c: E2 08 00 97 0A 80 13 01 00 00 00 00 00 1E [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 0E 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 0E 00 97 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 17 [17:52:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:52:41]wFMCommunicate OK [17:52:41]SAM_PROTO_GetShiftState done [17:52:41]FM_GetShiftState done [17:52:41]req_shift_opened done [17:52:41]requested_item shift.open_date is exist - process it [17:52:41]req_shift_open_date [17:52:41]req_shift_open_date done [17:52:41]produce_requested_data done [17:52:41]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2256,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:52:41]process_action_free close_receipt [17:52:41]json_value_free [17:52:41]json_value_free done [17:52:41]process_json_proto returns [17:52:41]Send response to host [17:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2256,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:52:41]free response buf [17:52:41]execute_script done [17:52:41]execute_script returns [17:52:41]free content buf [17:52:41]Sock 9.Close socket [17:52:41]Sock 9.Thread stoped [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:19]accept exits with 8 [17:53:19]New connection [17:53:19]New thread 3067014500 created [17:53:19]Thread 3067157860 joined [17:53:19]Waiting for new connection... [17:53:19] Sock 8.Parse request [17:53:19]Sock 8.Check first char [17:53:19]Sock 8.First char is OK [17:53:19]request: POST /json_proto HTTP/1.0 [17:53:19]Method: POST [17:53:19]URL: /json_proto [17:53:19]Method is POST - this is cgi request [17:53:19]url: /json_proto [17:53:19]query_string will be loaded in cgi processing [17:53:19]execute_cgi json_proto POST (null) [17:53:19]execute_cgi path=json_proto method=POST [17:53:19]POST find Content-Length [17:53:19]Host: 172.17.45.132:8080 [17:53:19]Content-Length: 678 [17:53:19]Content-Type: application/json [17:53:19] [17:53:19]POST finish read [17:53:19]Found Content-Length = 678 [17:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:19]execute_script... [17:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:19]POST & json_proto [17:53:19]process_json_proto [17:53:19]json parsed OK: [17:53:19]protocol is kg_v1.0 [17:53:19]action value=close_receipt [17:53:19]process_action close_receipt [17:53:19]cmd_close_receipt [17:53:19]MH_GetDate [17:53:19]Write to MH i2c: F0 00 00 98 0A 91 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: F0 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: F0 09 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: F0 09 00 98 0A 00 10 D7 A7 66 E3 0B 90 66 72 [17:53:19]GetLastDocTimeStamp 1722275558 [17:53:19]current date 1722275600 [17:53:19]FM_GetShiftState [17:53:19]SAM_PROTO_GetShiftState [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 13 01 00 [17:53:19]Write to MH i2c: E2 08 00 99 0A 80 13 01 00 00 00 00 00 20 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0E 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0E 00 99 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 19 [17:53:19]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:53:19]wFMCommunicate OK [17:53:19]SAM_PROTO_GetShiftState done [17:53:19]FM_GetShiftState done [17:53:19]opened in 1722213119 [17:53:19]opened+sec_in_day 1722299519 [17:53:19]quantity*price = 70037 [17:53:19]sum+1 = 70038 [17:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 106 29.07.2024 17:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2257 ФПД: 135927990512602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175320&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2257&fm=135927990512602&tin=02508201610067®Number=0000000000189667&sum=70000 [17:53:20]StoreToDocumentArchive [17:53:20]shift 15 fd 2257 [17:53:20]save to /storage/0015/doc_00002257 [17:53:20]save last doc name /storage/0015/doc_00002257 to /storage/kkm_last_doc_name [17:53:20]save OK [17:53:20]Clear old archive folders... [17:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:20]tlvbuf is 0201E680 [17:53:20]SAM_PROTO_ClearQueue [17:53:20]wFMCommunicate request_size=4 [17:53:20]MH_SAM_APDU [17:53:20]CAPDU: 80 09 00 00 [17:53:20]Write to MH i2c: E2 08 00 A6 0A 80 09 00 00 00 00 00 00 22 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:20]Read from MH i2c: E2 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [17:53:20]RAPDU: 90 00 [17:53:20]wFMCommunicate OK [17:53:20]SAM_PROTO_ClearQueue done [17:53:20]KKMCreateOFDPacket [17:53:20]OFDProtocolAddRootSTLVToBuf [17:53:20]FM_MakeSignedData [17:53:20]FM_MakeSignedData [17:53:20]SAM_PROTO_SignData [17:53:20]wFMCommunicate request_size=4 [17:53:20]MH_SAM_APDU [17:53:20]CAPDU: 80 0D 01 02 [17:53:20]Write to MH i2c: E2 08 00 A7 0A 80 0D 01 02 00 00 00 00 2A [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:20]Read from MH i2c: E2 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 A7 0A 00 90 00 25 [17:53:20]RAPDU: 90 00 [17:53:20]wFMCommunicate OK [17:53:20]wFMCommunicate request_size=255 [17:53:20]MH_SAM_APDU [17:53:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 08 00 00 35 04 06 00 7B [17:53:20]Write to MH i2c: E2 02 01 A8 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 08 00 00 35 04 06 00 7B 00 00 57 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]OFD Sender: No OFD packet to send [17:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:20]Read from MH i2c: E2 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 A8 0A 00 90 00 26 [17:53:20]RAPDU: 90 00 [17:53:20]wFMCommunicate OK [17:53:20]wFMCommunicate request_size=10 [17:53:20]MH_SAM_APDU [17:53:20]CAPDU: 80 0D 02 02 05 A0 33 96 EB DA [17:53:20]Write to MH i2c: E2 0D 00 A9 0A 80 0D 02 02 05 00 A0 33 96 EB DA 00 00 65 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:20]Read from MH i2c: E2 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 03 00 A9 0A 00 90 00 27 [17:53:20]RAPDU: 90 00 [17:53:20]wFMCommunicate OK [17:53:20]wFMCommunicate request_size=4 [17:53:20]MH_SAM_APDU [17:53:20]CAPDU: 80 0D 03 02 [17:53:20]Write to MH i2c: E2 08 00 AA 0A 80 0D 03 02 00 00 00 00 2F [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:20]Read from MH i2c: E2 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 0B 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 0B 00 AA 0A 00 C1 4C 11 7A AB 23 67 3D 90 00 3A [17:53:20]RAPDU: C1 4C 11 7A AB 23 67 3D 90 00 [17:53:20]wFMCommunicate OK [17:53:20]SAM_PROTO_SignData done [17:53:20]FM_MakeSignedData done [17:53:20]CreateOFDProtocolMessage [17:53:20]wFMCommunicate request_size=4 [17:53:20]MH_SAM_APDU [17:53:20]CAPDU: 80 11 00 00 [17:53:20]Write to MH i2c: E2 08 00 AB 0A 80 11 00 00 00 00 00 00 2F [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:20]Read from MH i2c: E2 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 17 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: E2 17 00 AB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7F [17:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:53:20]wFMCommunicate OK [17:53:20]CreateOFDProtocolMessage done [17:53:20]OFDSenderStorePacket 2257 [17:53:20]StoreOFDPacket docnum=2257 [17:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 58 FA 07 01 EE 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 08 00 00 35 04 06 00 7B A0 33 96 EB DA C1 4C 11 7A AB 23 67 3D [17:53:20]CheckFolder [17:53:20]dirname=/storage/ofd_packets [17:53:20]CheckFolder done [17:53:20]ProducePacketName [17:53:20]name=ofd_packets/00002257 [17:53:20]NVStorageSaveData ofd_packets/00002257 [17:53:20]File name is /storage/ofd_packets/00002257 [17:53:20]Write 301 bytes [17:53:20]NVStorageSaveData done [17:53:20]OFDSenderStorePacket done [17:53:20]KKMCreateOFDPacket done [17:53:20]NVStorageSaveData kkm_last_timestamp [17:53:20]File name is /storage/kkm_last_timestamp [17:53:20]Write 4 bytes [17:53:20]NVStorageSaveData done [17:53:20]ExternCall_PrintAddStr [17:53:20]wPrintStart [17:53:20]Write to MH i2c: 01 00 00 AC 0A B6 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 07 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 07 00 AC 0A 00 00 00 00 00 FF 0F CB [17:53:20]RasterBufferAndPrint [17:53:20]line Счет N : (1)610010 [17:53:20]line ИНН: 02508201610067 [17:53:20]line Контрольно-Кассовый Чек [17:53:20]line ПРОДАЖА [17:53:20]line ТРК (МРК, ГНК) : 52 [17:53:20]line Товар: 2710124130 [17:53:20]line Аи-92-К-2 [17:53:20]line 10.330 * 67.80 [17:53:20]line = 700.37 [17:53:20]line НДС 12% НСП 1% [17:53:20]line > о реализуемом товаре [17:53:20]line ОКРУГЛЕНИЕ: -0.37 [17:53:20]line ИТОГО: 700.00 [17:53:20]line Внесено: 700.00 [17:53:20]line СДАЧА: 0.00 [17:53:20]line НСП 1% : 6.20 [17:53:20]line НДС 12% : 74.38 [17:53:20]line Наличными: 700.00 [17:53:20]line Безнал.: 0.00 [17:53:20]line Место: АЗС № 127 "Партнер Нефть" [17:53:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:53:20]line СНО: Общий режим [17:53:20]line Чек 106 29.07.2024 17:53 [17:53:20]line Смена: 15 ФФД: 1.0 [17:53:20]line ЗНМ: 0300000161 [17:53:20]line РНМ: 0000000000189667 [17:53:20]line Версия ККМ: v1.0 [17:53:20]line ФМ: 0000000002094248 [17:53:20]line ФД: 2257 [17:53:20]line ФПД: 135927990512602 [17:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175320&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2257&fm=135927990512602&tin=02508201610067®Number=0000000000189667&sum=70000 [17:53:21]OFD Sender: Processing packet 2257 [packets to send 1, broken 0] [17:53:21]ProducePacketName [17:53:21]name=ofd_packets/00002257 [17:53:21]OFD Sender: To server: pG, [17:53:21]CommunicateWithHost lk.salyk.kg:30040 [17:53:21]ConnectInit lk.salyk.kg [17:53:21]written 0, free lines is 4095 [17:53:21]Connected sock=10 [17:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 58 FA 07 01 EE 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 10 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D1 08 00 00 35 04 06 00 7B A0 33 96 EB DA C1 4C 11 7A AB 23 67 3D [17:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 15 0C 47 00 5A 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 32 30 39 34 32 34 38 10 04 04 00 D1 08 00 00 F4 03 04 00 7C 82 A7 66 B6 04 01 00 00 87 FA 89 27 76 C9 AC 0F [17:53:21]CommunicateWithHost err = 0 [17:53:21]CheckOFDResponse [17:53:21]1017 (14) - 77093643461234 [17:53:21]1041 (16) - 0000000002094248 [17:53:21]1040 (4) - 2257 [17:53:21]1012 (4) - 29.07.2024 11:52 [17:53:21]1206 (1) - 0 [17:53:21]OFD Sender: Remove packet 2257 [17:53:21]ProducePacketName [17:53:21]name=ofd_packets/00002257 [17:53:21]NVStorageDeleteData [17:53:21]Write to MH i2c: 01 00 00 D7 0A E1 [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: 01 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: 01 07 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: 01 07 00 D7 0A 00 00 00 00 00 F0 0C E4 [17:53:21]RasterBufferAndPrint [17:53:21]line [17:53:21]line [17:53:21]line [17:53:21]line [17:53:21]line [17:53:21]written 0, free lines is 3318 [17:53:21]MH_Cut [17:53:21]Write to MH i2c: D1 01 00 DE 0A 01 BA [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: D1 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: D1 01 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: D1 01 00 DE 0A 00 B9 [17:53:21]Write to MH i2c: 01 00 00 DF 0A E9 [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:22]OFD Sender: No OFD packet to send [17:53:22]*** Cut start [17:53:22]*** Partial cut [17:53:22]*** CUTSNS_PIN = 1 [17:53:22]*** CUTSNS_PIN = 0 [17:53:22]*** Brake cut motor [17:53:22]Read from MH i2c: 01 [17:53:22]MH_I2C_Read... [17:53:22]*** Stop cut motor [17:53:22]*** Cut end [17:53:22]Read from MH i2c: 01 07 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: 01 07 00 DF 0A 00 00 00 00 00 FF 0F FE [17:53:22]process_action close_receipt done [17:53:22]requested_data is exist [17:53:22]produce_requested_data [17:53:22]requested_item fm.sn is exist - process it [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 11 00 00 [17:53:22]Write to MH i2c: E2 08 00 E0 0A 80 11 00 00 00 00 00 00 64 [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:23]Read from MH i2c: E2 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 17 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 17 00 E0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B4 [17:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:53:23]wFMCommunicate OK [17:53:23]requested_item fd.num is exist - process it [17:53:23]SAM_PROTO_GetFieldsCounters [17:53:23]wFMCommunicate request_size=4 [17:53:23]MH_SAM_APDU [17:53:23]CAPDU: 80 13 00 00 [17:53:23]Write to MH i2c: E2 08 00 E1 0A 80 13 00 00 00 00 00 00 67 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:23]Read from MH i2c: E2 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 62 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 62 00 E1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D1 08 00 00 0E 04 04 00 0F 00 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 B7 [17:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D1 08 00 00 0E 04 04 00 0F 00 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 [17:53:23]wFMCommunicate OK [17:53:23]SAM_PROTO_GetFieldsCounters done [17:53:23]requested_item shift.num is exist - process it [17:53:23]requested_item shift.opened is exist - process it [17:53:23]req_shift_opened [17:53:23]FM_GetShiftState [17:53:23]SAM_PROTO_GetShiftState [17:53:23]wFMCommunicate request_size=4 [17:53:23]MH_SAM_APDU [17:53:23]CAPDU: 80 13 01 00 [17:53:23]Write to MH i2c: E2 08 00 E2 0A 80 13 01 00 00 00 00 00 69 [17:53:23]Write i2c OK [17:53:23]MH_I2C_Read... [17:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:23]Read from MH i2c: E2 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 0E 00 [17:53:23]MH_I2C_Read... [17:53:23]Read from MH i2c: E2 0E 00 E2 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 62 [17:53:23]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:53:23]wFMCommunicate OK [17:53:23]SAM_PROTO_GetShiftState done [17:53:23]FM_GetShiftState done [17:53:23]req_shift_opened done [17:53:23]requested_item shift.open_date is exist - process it [17:53:23]req_shift_open_date [17:53:23]req_shift_open_date done [17:53:23]produce_requested_data done [17:53:23]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2257,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:53:23]process_action_free close_receipt [17:53:23]json_value_free [17:53:23]json_value_free done [17:53:23]process_json_proto returns [17:53:23]Send response to host [17:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2257,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:53:23]free response buf [17:53:23]execute_script done [17:53:23]execute_script returns [17:53:23]free content buf [17:53:23]Sock 8.Close socket [17:53:23]Sock 8.Thread stoped [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:46]accept exits with 9 [17:53:46]New connection [17:53:46]New thread 3067157860 created [17:53:46]Thread 3067014500 joined [17:53:46]Waiting for new connection... [17:53:46] Sock 9.Parse request [17:53:46]Sock 9.Check first char [17:53:46]Sock 9.First char is OK [17:53:46]request: POST /json_proto HTTP/1.0 [17:53:46]Method: POST [17:53:46]URL: /json_proto [17:53:46]Method is POST - this is cgi request [17:53:46]url: /json_proto [17:53:46]query_string will be loaded in cgi processing [17:53:46]execute_cgi json_proto POST (null) [17:53:46]execute_cgi path=json_proto method=POST [17:53:46]POST find Content-Length [17:53:46]Host: 172.17.45.132:8080 [17:53:46]Content-Length: 669 [17:53:46]Content-Type: application/json [17:53:46] [17:53:46]POST finish read [17:53:46]Found Content-Length = 669 [17:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126532", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:46]execute_script... [17:53: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)126532", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:46]POST & json_proto [17:53:46]process_json_proto [17:53:46]json parsed OK: [17:53:46]protocol is kg_v1.0 [17:53:46]action value=close_receipt [17:53:46]process_action close_receipt [17:53:46]cmd_close_receipt [17:53:46]MH_GetDate [17:53:46]Write to MH i2c: F0 00 00 E3 0A DC [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: F0 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: F0 09 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: F0 09 00 E3 0A 00 2B D7 A7 66 E3 0B 90 66 D8 [17:53:46]GetLastDocTimeStamp 1722275600 [17:53:46]current date 1722275627 [17:53:46]FM_GetShiftState [17:53:46]SAM_PROTO_GetShiftState [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 13 01 00 [17:53:46]Write to MH i2c: E2 08 00 E4 0A 80 13 01 00 00 00 00 00 6B [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0E 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0E 00 E4 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 64 [17:53:46]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:53:46]wFMCommunicate OK [17:53:46]SAM_PROTO_GetShiftState done [17:53:46]FM_GetShiftState done [17:53:46]opened in 1722213119 [17:53:46]opened+sec_in_day 1722299519 [17:53:46]quantity*price = 6500 [17:53:46]sum+1 = 6501 [17:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 107 29.07.2024 17:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2258 ФПД: 179775891652188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175347&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2258&fm=179775891652188&tin=02508201610067®Number=0000000000189667&sum=6500 0 [17:53:47]StoreToDocumentArchive [17:53:47]shift 15 fd 2258 [17:53:47]save to /storage/0015/doc_00002258 [17:53:47]save last doc name /storage/0015/doc_00002258 to /storage/kkm_last_doc_name [17:53:47]save OK [17:53:47]Clear old archive folders... [17:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=284 [17:53:47]tlvbuf is 02004E20 [17:53:47]SAM_PROTO_ClearQueue [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 09 00 00 [17:53:47]Write to MH i2c: E2 08 00 F1 0A 80 09 00 00 00 00 00 00 6D [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 F1 0A 00 90 00 6F [17:53:47]RAPDU: 90 00 [17:53:47]wFMCommunicate OK [17:53:47]SAM_PROTO_ClearQueue done [17:53:47]KKMCreateOFDPacket [17:53:47]OFDProtocolAddRootSTLVToBuf [17:53:47]FM_MakeSignedData [17:53:47]FM_MakeSignedData [17:53:47]SAM_PROTO_SignData [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 0D 01 02 [17:53:47]Write to MH i2c: E2 08 00 F2 0A 80 0D 01 02 00 00 00 00 75 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 F2 0A 00 90 00 70 [17:53:47]RAPDU: 90 00 [17:53:47]wFMCommunicate OK [17:53:47]wFMCommunicate request_size=255 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2B D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [17:53:47]Write to MH i2c: E2 02 01 F3 0A 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2B D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 96 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 F3 0A 00 90 00 71 [17:53:47]RAPDU: 90 00 [17:53:47]wFMCommunicate OK [17:53:47]wFMCommunicate request_size=43 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D2 08 00 00 35 04 06 00 A3 81 56 29 3E 5C [17:53:47]Write to MH i2c: E2 2E 00 F4 0A 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D2 08 00 00 35 04 06 00 A3 81 56 29 3E 5C 00 00 74 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 03 00 F4 0A 00 90 00 72 [17:53:47]RAPDU: 90 00 [17:53:47]wFMCommunicate OK [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 0D 03 02 [17:53:47]Write to MH i2c: E2 08 00 F5 0A 80 0D 03 02 00 00 00 00 7A [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 0B 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 0B 00 F5 0A 00 49 90 F0 5B 9B A5 33 03 90 00 15 [17:53:47]RAPDU: 49 90 F0 5B 9B A5 33 03 90 00 [17:53:47]wFMCommunicate OK [17:53:47]SAM_PROTO_SignData done [17:53:47]FM_MakeSignedData done [17:53:47]CreateOFDProtocolMessage [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 11 00 00 [17:53:47]Write to MH i2c: E2 08 00 F6 0A 80 11 00 00 00 00 00 00 7A [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 17 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 17 00 F6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CA [17:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:53:47]wFMCommunicate OK [17:53:47]CreateOFDProtocolMessage done [17:53:47]OFDSenderStorePacket 2258 [17:53:47]StoreOFDPacket docnum=2258 [17:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 BE 16 28 01 06 17 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2B D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D2 08 00 00 35 04 06 00 A3 81 56 29 3E 5C 49 90 F0 5B 9B A5 33 03 [17:53:47]CheckFolder [17:53:47]dirname=/storage/ofd_packets [17:53:47]CheckFolder done [17:53:47]ProducePacketName [17:53:47]name=ofd_packets/00002258 [17:53:47]NVStorageSaveData ofd_packets/00002258 [17:53:47]File name is /storage/ofd_packets/00002258 [17:53:47]Write 334 bytes [17:53:47]NVStorageSaveData done [17:53:47]OFDSenderStorePacket done [17:53:47]KKMCreateOFDPacket done [17:53:47]NVStorageSaveData kkm_last_timestamp [17:53:47]File name is /storage/kkm_last_timestamp [17:53:47]Write 4 bytes [17:53:47]NVStorageSaveData done [17:53:47]ExternCall_PrintAddStr [17:53:47]wPrintStart [17:53:47]Write to MH i2c: 01 00 00 F7 0A 01 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: 01 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: 01 07 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: 01 07 00 F7 0A 00 00 00 00 00 FF 0F 16 [17:53:47]RasterBufferAndPrint [17:53:47]line Счет N : (3)126532 [17:53:47]line ИНН: 02508201610067 [17:53:47]line Контрольно-Кассовый Чек [17:53:47]line ПРОДАЖА [17:53:47]line Товар: 4700040114137 [17:53:47]line Султан чай 1л. зел лимон [17:53:47]line 1.000 * 65.00 [17:53:47]line = 65.00 [17:53:47]line НДС 12% НСП 1% [17:53:47]line > о реализуемом товаре [17:53:47]line ИТОГО: 65.00 [17:53:47]line НСП 1% : 0.57 [17:53:47]line НДС 12% : 6.90 [17:53:47]line Наличными: 65.00 [17:53:47]line Безнал.: 0.00 [17:53:47]line Место: АЗС № 127 "Партнер Нефть" [17:53:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:53:47]line СНО: Общий режим [17:53:47]line Чек 107 29.07.2024 17:53 [17:53:47]line Смена: 15 ФФД: 1.0 [17:53:47]line ЗНМ: 0300000161 [17:53:47]line РНМ: 0000000000189667 [17:53:47]line Версия ККМ: v1.0 [17:53:47]line ФМ: 0000000002094248 [17:53:47]line ФД: 2258 [17:53:47]line ФПД: 179775891652188 [17:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175347&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2258&fm=179775891652188&tin=02508201610067®Number=0000000000189667&sum=6500 [17:53:48]line 0 [17:53:48]OFD Sender: Processing packet 2258 [packets to send 1, broken 0] [17:53:48]ProducePacketName [17:53:48]name=ofd_packets/00002258 [17:53:48]OFD Sender: To server: pG, [17:53:48]CommunicateWithHost lk.salyk.kg:30040 [17:53:48]ConnectInit lk.salyk.kg [17:53:48]written 0, free lines is 4095 [17:53:48]Connected sock=10 [17:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 BE 16 28 01 06 17 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2B D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D2 08 00 00 35 04 06 00 A3 81 56 29 3E 5C 49 90 F0 5B 9B A5 33 03 [17:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 33 94 47 00 C8 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 32 30 39 34 32 34 38 10 04 04 00 D2 08 00 00 F4 03 04 00 97 82 A7 66 B6 04 01 00 00 68 C4 9B 48 0F 53 44 8F [17:53:48]CommunicateWithHost err = 0 [17:53:48]CheckOFDResponse [17:53:48]1017 (14) - 77093643461234 [17:53:48]1041 (16) - 0000000002094248 [17:53:48]1040 (4) - 2258 [17:53:48]1012 (4) - 29.07.2024 11:52 [17:53:48]1206 (1) - 0 [17:53:48]OFD Sender: Remove packet 2258 [17:53:48]ProducePacketName [17:53:48]name=ofd_packets/00002258 [17:53:48]NVStorageDeleteData [17:53:48]Write to MH i2c: 01 00 00 1F 0B 2A [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 07 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 14 0D 52 [17:53:48]RasterBufferAndPrint [17:53:48]line [17:53:48]line [17:53:48]line [17:53:48]line [17:53:48]line [17:53:48]written 0, free lines is 3354 [17:53:48]MH_Cut [17:53:48]Write to MH i2c: D1 01 00 26 0B 01 03 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: D1 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: D1 01 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: D1 01 00 26 0B 00 02 [17:53:48]Write to MH i2c: 01 00 00 27 0B 32 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]OFD Sender: No OFD packet to send [17:53:49]*** Cut start [17:53:49]*** Partial cut [17:53:49]*** CUTSNS_PIN = 1 [17:53:49]*** CUTSNS_PIN = 0 [17:53:49]*** Brake cut motor [17:53:49]Read from MH i2c: 01 [17:53:49]MH_I2C_Read... [17:53:49]*** Stop cut motor [17:53:49]*** Cut end [17:53:49]Read from MH i2c: 01 07 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 FF 0F 47 [17:53:49]process_action close_receipt done [17:53:49]requested_data is exist [17:53:49]produce_requested_data [17:53:49]requested_item fm.sn is exist - process it [17:53:49]wFMCommunicate request_size=4 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 11 00 00 [17:53:49]Write to MH i2c: E2 08 00 28 0B 80 11 00 00 00 00 00 00 AD [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 17 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 17 00 28 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FD [17:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:53:49]wFMCommunicate OK [17:53:49]requested_item fd.num is exist - process it [17:53:49]SAM_PROTO_GetFieldsCounters [17:53:49]wFMCommunicate request_size=4 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 13 00 00 [17:53:49]Write to MH i2c: E2 08 00 29 0B 80 13 00 00 00 00 00 00 B0 [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 62 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 62 00 29 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D2 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:53:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D2 08 00 00 0E 04 04 00 0F 00 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 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_GetFieldsCounters done [17:53:50]requested_item shift.num is exist - process it [17:53:50]requested_item shift.opened is exist - process it [17:53:50]req_shift_opened [17:53:50]FM_GetShiftState [17:53:50]SAM_PROTO_GetShiftState [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 13 01 00 [17:53:50]Write to MH i2c: E2 08 00 2A 0B 80 13 01 00 00 00 00 00 B2 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0E 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0E 00 2A 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AB [17:53:50]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_GetShiftState done [17:53:50]FM_GetShiftState done [17:53:50]req_shift_opened done [17:53:50]requested_item shift.open_date is exist - process it [17:53:50]req_shift_open_date [17:53:50]req_shift_open_date done [17:53:50]produce_requested_data done [17:53:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2258,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:53:50]process_action_free close_receipt [17:53:50]json_value_free [17:53:50]json_value_free done [17:53:50]process_json_proto returns [17:53:50]Send response to host [17:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2258,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:53:50]free response buf [17:53:50]execute_script done [17:53:50]execute_script returns [17:53:50]free content buf [17:53:50]Sock 9.Close socket [17:53:50]Sock 9.Thread stoped [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:54]accept exits with 8 [17:54:54]New connection [17:54:54]New thread 3067014500 created [17:54:54]Thread 3067157860 joined [17:54:54]Waiting for new connection... [17:54:54] Sock 8.Parse request [17:54:54]Sock 8.Check first char [17:54:54]Sock 8.First char is OK [17:54:54]request: POST /json_proto HTTP/1.0 [17:54:54]Method: POST [17:54:54]URL: /json_proto [17:54:54]Method is POST - this is cgi request [17:54:54]url: /json_proto [17:54:54]query_string will be loaded in cgi processing [17:54:54]execute_cgi json_proto POST (null) [17:54:54]execute_cgi path=json_proto method=POST [17:54:54]POST find Content-Length [17:54:54]Host: 172.17.45.132:8080 [17:54:54]Content-Length: 630 [17:54:54]Content-Type: application/json [17:54:54] [17:54:54]POST finish read [17:54:54]Found Content-Length = 630 [17:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126533", "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" ] } } [17:54:54]execute_script... [17:54: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)126533", "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" ] } } [17:54:54]POST & json_proto [17:54:54]process_json_proto [17:54:54]json parsed OK: [17:54:54]protocol is kg_v1.0 [17:54:54]action value=close_receipt [17:54:54]process_action close_receipt [17:54:54]cmd_close_receipt [17:54:54]MH_GetDate [17:54:54]Write to MH i2c: F0 00 00 2B 0B 25 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 09 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 09 00 2B 0B 00 6F D7 A7 66 E3 0B 90 66 65 [17:54:54]GetLastDocTimeStamp 1722275627 [17:54:54]current date 1722275695 [17:54:54]FM_GetShiftState [17:54:54]SAM_PROTO_GetShiftState [17:54:54]wFMCommunicate request_size=4 [17:54:54]MH_SAM_APDU [17:54:54]CAPDU: 80 13 01 00 [17:54:54]Write to MH i2c: E2 08 00 2C 0B 80 13 01 00 00 00 00 00 B4 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:54]Read from MH i2c: E2 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 0E 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 0E 00 2C 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AD [17:54:54]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:54:54]wFMCommunicate OK [17:54:54]SAM_PROTO_GetShiftState done [17:54:54]FM_GetShiftState done [17:54:54]opened in 1722213119 [17:54:54]opened+sec_in_day 1722299519 [17:54:54]quantity*price = 5000 [17:54:54]sum+1 = 5001 [17:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 108 29.07.2024 17:54 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2259 ФПД: 44180511784156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175455&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2259&fm=44180511784156&tin=02508201610067®Number=0000000000189667&sum=5000 0 [17:54:55]StoreToDocumentArchive [17:54:55]shift 15 fd 2259 [17:54:55]save to /storage/0015/doc_00002259 [17:54:55]save last doc name /storage/0015/doc_00002259 to /storage/kkm_last_doc_name [17:54:55]save OK [17:54:55]Clear old archive folders... [17:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:54:55]tlvbuf is 02004DD0 [17:54:55]SAM_PROTO_ClearQueue [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 09 00 00 [17:54:55]Write to MH i2c: E2 08 00 39 0B 80 09 00 00 00 00 00 00 B6 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [17:54:55]RAPDU: 90 00 [17:54:55]wFMCommunicate OK [17:54:55]SAM_PROTO_ClearQueue done [17:54:55]KKMCreateOFDPacket [17:54:55]OFDProtocolAddRootSTLVToBuf [17:54:55]FM_MakeSignedData [17:54:55]FM_MakeSignedData [17:54:55]SAM_PROTO_SignData [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 0D 01 02 [17:54:55]Write to MH i2c: E2 08 00 3A 0B 80 0D 01 02 00 00 00 00 BE [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [17:54:55]RAPDU: 90 00 [17:54:55]wFMCommunicate OK [17:54:55]wFMCommunicate request_size=255 [17:54:55]MH_SAM_APDU [17:54:55]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 6C 00 00 00 F4 03 04 00 6F D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [17:54:55]Write to MH i2c: E2 02 01 3B 0B 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 6C 00 00 00 F4 03 04 00 6F D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 A9 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [17:54:55]RAPDU: 90 00 [17:54:55]wFMCommunicate OK [17:54:55]wFMCommunicate request_size=28 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 D3 08 00 00 35 04 06 00 28 2E 93 B5 FC DC [17:54:55]Write to MH i2c: E2 1F 00 3C 0B 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 D3 08 00 00 35 04 06 00 28 2E 93 B5 FC DC 00 00 A2 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [17:54:55]RAPDU: 90 00 [17:54:55]wFMCommunicate OK [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 0D 03 02 [17:54:55]Write to MH i2c: E2 08 00 3D 0B 80 0D 03 02 00 00 00 00 C3 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 0B 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 0B 00 3D 0B 00 6A 62 6A 32 73 31 70 DE 90 00 1E [17:54:55]RAPDU: 6A 62 6A 32 73 31 70 DE 90 00 [17:54:55]wFMCommunicate OK [17:54:55]SAM_PROTO_SignData done [17:54:55]FM_MakeSignedData done [17:54:55]CreateOFDProtocolMessage [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 11 00 00 [17:54:55]Write to MH i2c: E2 08 00 3E 0B 80 11 00 00 00 00 00 00 C3 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 17 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 17 00 3E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 13 [17:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:54:55]wFMCommunicate OK [17:54:55]CreateOFDProtocolMessage done [17:54:55]OFDSenderStorePacket 2259 [17:54:55]StoreOFDPacket docnum=2259 [17:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 78 7F 19 01 9B 1F 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 6C 00 00 00 F4 03 04 00 6F D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D3 08 00 00 35 04 06 00 28 2E 93 B5 FC DC 6A 62 6A 32 73 31 70 DE [17:54:55]CheckFolder [17:54:55]dirname=/storage/ofd_packets [17:54:55]CheckFolder done [17:54:55]ProducePacketName [17:54:55]name=ofd_packets/00002259 [17:54:55]NVStorageSaveData ofd_packets/00002259 [17:54:55]File name is /storage/ofd_packets/00002259 [17:54:55]Write 319 bytes [17:54:55]NVStorageSaveData done [17:54:55]OFDSenderStorePacket done [17:54:55]KKMCreateOFDPacket done [17:54:55]NVStorageSaveData kkm_last_timestamp [17:54:55]File name is /storage/kkm_last_timestamp [17:54:55]Write 4 bytes [17:54:55]NVStorageSaveData done [17:54:55]ExternCall_PrintAddStr [17:54:55]wPrintStart [17:54:55]Write to MH i2c: 01 00 00 3F 0B 4A [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: 01 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: 01 07 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: 01 07 00 3F 0B 00 00 00 00 00 FF 0F 5F [17:54:55]RasterBufferAndPrint [17:54:55]line Счет N : (3)126533 [17:54:55]line ИНН: 02508201610067 [17:54:55]line Контрольно-Кассовый Чек [17:54:55]line ПРОДАЖА [17:54:55]line Товар: 4700000160358 [17:54:55]line Вода Легенда 1л [17:54:55]line 1.000 * 50.00 [17:54:55]line = 50.00 [17:54:55]line НДС 12% НСП 1% [17:54:55]line > о реализуемом товаре [17:54:55]line ИТОГО: 50.00 [17:54:55]line НСП 1% : 0.44 [17:54:55]line НДС 12% : 5.31 [17:54:55]line Наличными: 50.00 [17:54:55]line Безнал.: 0.00 [17:54:55]line Место: АЗС № 127 "Партнер Нефть" [17:54:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:54:55]line СНО: Общий режим [17:54:55]line Чек 108 29.07.2024 17:54 [17:54:55]line Смена: 15 ФФД: 1.0 [17:54:55]line ЗНМ: 0300000161 [17:54:55]line РНМ: 0000000000189667 [17:54:55]line Версия ККМ: v1.0 [17:54:55]line ФМ: 0000000002094248 [17:54:55]line ФД: 2259 [17:54:55]line ФПД: 44180511784156 [17:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175455&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2259&fm=44180511784156&tin=02508201610067®Number=0000000000189667&sum=5000 [17:54:56]line 0 [17:54:56]OFD Sender: Processing packet 2259 [packets to send 1, broken 0] [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00002259 [17:54:56]OFD Sender: To server: pG, [17:54:56]CommunicateWithHost lk.salyk.kg:30040 [17:54:56]ConnectInit lk.salyk.kg [17:54:56]written 0, free lines is 4095 [17:54:56]Connected sock=10 [17:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 78 7F 19 01 9B 1F 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 6C 00 00 00 F4 03 04 00 6F D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D3 08 00 00 35 04 06 00 28 2E 93 B5 FC DC 6A 62 6A 32 73 31 70 DE [17:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9B 2D 47 00 5B 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 32 30 39 34 32 34 38 10 04 04 00 D3 08 00 00 F4 03 04 00 DB 82 A7 66 B6 04 01 00 00 D3 9D C6 08 63 29 83 22 [17:54:56]CommunicateWithHost err = 0 [17:54:56]CheckOFDResponse [17:54:56]1017 (14) - 77093643461234 [17:54:56]1041 (16) - 0000000002094248 [17:54:56]1040 (4) - 2259 [17:54:56]1012 (4) - 29.07.2024 11:54 [17:54:56]1206 (1) - 0 [17:54:56]OFD Sender: Remove packet 2259 [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00002259 [17:54:56]NVStorageDeleteData [17:54:56]Write to MH i2c: 01 00 00 67 0B 72 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 00 0D 86 [17:54:56]RasterBufferAndPrint [17:54:56]line [17:54:56]line [17:54:56]line [17:54:56]line [17:54:56]line [17:54:56]written 0, free lines is 3333 [17:54:56]MH_Cut [17:54:56]Write to MH i2c: D1 01 00 6E 0B 01 4B [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: D1 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: D1 01 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: D1 01 00 6E 0B 00 4A [17:54:56]Write to MH i2c: 01 00 00 6F 0B 7A [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]OFD Sender: No OFD packet to send [17:54:57]*** Cut start [17:54:57]*** Partial cut [17:54:57]*** CUTSNS_PIN = 1 [17:54:57]*** CUTSNS_PIN = 0 [17:54:57]*** Brake cut motor [17:54:57]Read from MH i2c: 01 [17:54:57]MH_I2C_Read... [17:54:57]*** Stop cut motor [17:54:57]*** Cut end [17:54:57]Read from MH i2c: 01 07 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 FF 0F 8F [17:54:57]process_action close_receipt done [17:54:57]requested_data is exist [17:54:57]produce_requested_data [17:54:57]requested_item fm.sn is exist - process it [17:54:57]wFMCommunicate request_size=4 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 11 00 00 [17:54:57]Write to MH i2c: E2 08 00 70 0B 80 11 00 00 00 00 00 00 F5 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:57]Read from MH i2c: E2 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 17 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 17 00 70 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 45 [17:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:54:57]wFMCommunicate OK [17:54:57]requested_item fd.num is exist - process it [17:54:57]SAM_PROTO_GetFieldsCounters [17:54:57]wFMCommunicate request_size=4 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 13 00 00 [17:54:57]Write to MH i2c: E2 08 00 71 0B 80 13 00 00 00 00 00 00 F8 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:58]Read from MH i2c: E2 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 62 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 62 00 71 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D3 08 00 00 0E 04 04 00 0F 00 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 50 [17:54:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D3 08 00 00 0E 04 04 00 0F 00 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 [17:54:58]wFMCommunicate OK [17:54:58]SAM_PROTO_GetFieldsCounters done [17:54:58]requested_item shift.num is exist - process it [17:54:58]requested_item shift.opened is exist - process it [17:54:58]req_shift_opened [17:54:58]FM_GetShiftState [17:54:58]SAM_PROTO_GetShiftState [17:54:58]wFMCommunicate request_size=4 [17:54:58]MH_SAM_APDU [17:54:58]CAPDU: 80 13 01 00 [17:54:58]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:58]Read from MH i2c: E2 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 0E 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F3 [17:54:58]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:54:58]wFMCommunicate OK [17:54:58]SAM_PROTO_GetShiftState done [17:54:58]FM_GetShiftState done [17:54:58]req_shift_opened done [17:54:58]requested_item shift.open_date is exist - process it [17:54:58]req_shift_open_date [17:54:58]req_shift_open_date done [17:54:58]produce_requested_data done [17:54:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2259,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:54:58]process_action_free close_receipt [17:54:58]json_value_free [17:54:58]json_value_free done [17:54:58]process_json_proto returns [17:54:58]Send response to host [17:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2259,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:54:58]free response buf [17:54:58]execute_script done [17:54:58]execute_script returns [17:54:58]free content buf [17:54:58]Sock 8.Close socket [17:54:58]Sock 8.Thread stoped [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:34]accept exits with 9 [17:56:34]New connection [17:56:34]New thread 3067157860 created [17:56:34]Thread 3067014500 joined [17:56:34]Waiting for new connection... [17:56:34] Sock 9.Parse request [17:56:34]Sock 9.Check first char [17:56:34]Sock 9.First char is OK [17:56:34]request: POST /json_proto HTTP/1.0 [17:56:34]Method: POST [17:56:34]URL: /json_proto [17:56:34]Method is POST - this is cgi request [17:56:34]url: /json_proto [17:56:34]query_string will be loaded in cgi processing [17:56:34]execute_cgi json_proto POST (null) [17:56:34]execute_cgi path=json_proto method=POST [17:56:34]POST find Content-Length [17:56:34]Host: 172.17.45.132:8080 [17:56:34]Content-Length: 656 [17:56:34]Content-Type: application/json [17:56:34] [17:56:34]POST finish read [17:56:34]Found Content-Length = 656 [17:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126534", "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" : 95.00, "quantity" : 2.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" ] } } [17:56:34]execute_script... [17:56: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)126534", "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" : 95.00, "quantity" : 2.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" ] } } [17:56:34]POST & json_proto [17:56:34]process_json_proto [17:56:34]json parsed OK: [17:56:34]protocol is kg_v1.0 [17:56:34]action value=close_receipt [17:56:34]process_action close_receipt [17:56:34]cmd_close_receipt [17:56:34]MH_GetDate [17:56:34]Write to MH i2c: F0 00 00 73 0B 6D [17:56:34]Write i2c OK [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: F0 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: F0 09 00 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: F0 09 00 73 0B 00 D3 D7 A7 66 E3 0B 90 66 11 [17:56:34]GetLastDocTimeStamp 1722275695 [17:56:34]current date 1722275795 [17:56:34]FM_GetShiftState [17:56:34]SAM_PROTO_GetShiftState [17:56:34]wFMCommunicate request_size=4 [17:56:34]MH_SAM_APDU [17:56:34]CAPDU: 80 13 01 00 [17:56:34]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [17:56:34]Write i2c OK [17:56:34]MH_I2C_Read... [17:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:34]Read from MH i2c: E2 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 0E 00 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F5 [17:56:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:56:34]wFMCommunicate OK [17:56:34]SAM_PROTO_GetShiftState done [17:56:34]FM_GetShiftState done [17:56:34]opened in 1722213119 [17:56:34]opened+sec_in_day 1722299519 [17:56:34]quantity*price = 19000 [17:56:34]sum+1 = 19001 [17:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 109 29.07.2024 17:56 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2260 ФПД: 165442092894452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175635&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2260&fm=165442092894452&tin=02508201610067®Number=0000000000189667&sum=19000 0 [17:56:35]StoreToDocumentArchive [17:56:35]shift 15 fd 2260 [17:56:35]save to /storage/0015/doc_00002260 [17:56:35]save last doc name /storage/0015/doc_00002260 to /storage/kkm_last_doc_name [17:56:35]save OK [17:56:35]Clear old archive folders... [17:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:56:35]tlvbuf is 020315D0 [17:56:35]SAM_PROTO_ClearQueue [17:56:35]wFMCommunicate request_size=4 [17:56:35]MH_SAM_APDU [17:56:35]CAPDU: 80 09 00 00 [17:56:35]Write to MH i2c: E2 08 00 81 0B 80 09 00 00 00 00 00 00 FE [17:56:35]Write i2c OK [17:56:35]MH_I2C_Read... [17:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:35]Read from MH i2c: E2 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [17:56:35]RAPDU: 90 00 [17:56:35]wFMCommunicate OK [17:56:35]SAM_PROTO_ClearQueue done [17:56:35]KKMCreateOFDPacket [17:56:35]OFDProtocolAddRootSTLVToBuf [17:56:35]FM_MakeSignedData [17:56:35]FM_MakeSignedData [17:56:35]SAM_PROTO_SignData [17:56:35]wFMCommunicate request_size=4 [17:56:35]MH_SAM_APDU [17:56:35]CAPDU: 80 0D 01 02 [17:56:35]Write to MH i2c: E2 08 00 82 0B 80 0D 01 02 00 00 00 00 06 [17:56:35]Write i2c OK [17:56:35]MH_I2C_Read... [17:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:35]Read from MH i2c: E2 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [17:56:35]RAPDU: 90 00 [17:56:35]wFMCommunicate OK [17:56:35]wFMCommunicate request_size=255 [17:56:35]MH_SAM_APDU [17:56:35]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 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 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 6D 00 00 00 F4 03 04 00 D3 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:56:35]Write to MH i2c: E2 02 01 83 0B 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 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 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 6D 00 00 00 F4 03 04 00 D3 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D1 [17:56:35]Write i2c OK [17:56:35]MH_I2C_Read... [17:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:35]Read from MH i2c: E2 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 83 0B 00 90 00 02 [17:56:35]RAPDU: 90 00 [17:56:35]wFMCommunicate OK [17:56:35]wFMCommunicate request_size=52 [17:56:35]MH_SAM_APDU [17:56:35]CAPDU: 80 0D 02 02 2F 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D4 08 00 00 35 04 06 00 96 77 FD 2D 88 F4 [17:56:35]Write to MH i2c: E2 37 00 84 0B 80 0D 02 02 2F 00 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D4 08 00 00 35 04 06 00 96 77 FD 2D 88 F4 00 00 64 [17:56:35]Write i2c OK [17:56:35]MH_I2C_Read... [17:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:35]Read from MH i2c: E2 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 03 00 84 0B 00 90 00 03 [17:56:35]RAPDU: 90 00 [17:56:35]wFMCommunicate OK [17:56:35]wFMCommunicate request_size=4 [17:56:35]MH_SAM_APDU [17:56:35]CAPDU: 80 0D 03 02 [17:56:35]Write to MH i2c: E2 08 00 85 0B 80 0D 03 02 00 00 00 00 0B [17:56:35]Write i2c OK [17:56:35]MH_I2C_Read... [17:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:35]Read from MH i2c: E2 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 0B 00 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 0B 00 85 0B 00 66 13 B3 A8 CC D1 85 D5 90 00 D7 [17:56:35]RAPDU: 66 13 B3 A8 CC D1 85 D5 90 00 [17:56:35]wFMCommunicate OK [17:56:35]SAM_PROTO_SignData done [17:56:35]FM_MakeSignedData done [17:56:35]CreateOFDProtocolMessage [17:56:35]wFMCommunicate request_size=4 [17:56:35]MH_SAM_APDU [17:56:35]CAPDU: 80 11 00 00 [17:56:35]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [17:56:35]Write i2c OK [17:56:35]MH_I2C_Read... [17:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:35]Read from MH i2c: E2 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 17 00 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: E2 17 00 86 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5B [17:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:56:35]wFMCommunicate OK [17:56:35]CreateOFDProtocolMessage done [17:56:35]OFDSenderStorePacket 2260 [17:56:35]StoreOFDPacket docnum=2260 [17:56:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 1D BC 31 01 BF 8A 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 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 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 6D 00 00 00 F4 03 04 00 D3 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D4 08 00 00 35 04 06 00 96 77 FD 2D 88 F4 66 13 B3 A8 CC D1 85 D5 [17:56:35]CheckFolder [17:56:35]dirname=/storage/ofd_packets [17:56:35]CheckFolder done [17:56:35]ProducePacketName [17:56:35]name=ofd_packets/00002260 [17:56:35]NVStorageSaveData ofd_packets/00002260 [17:56:35]File name is /storage/ofd_packets/00002260 [17:56:35]Write 343 bytes [17:56:35]NVStorageSaveData done [17:56:35]OFDSenderStorePacket done [17:56:35]KKMCreateOFDPacket done [17:56:35]NVStorageSaveData kkm_last_timestamp [17:56:35]File name is /storage/kkm_last_timestamp [17:56:35]Write 4 bytes [17:56:35]NVStorageSaveData done [17:56:35]ExternCall_PrintAddStr [17:56:35]wPrintStart [17:56:35]Write to MH i2c: 01 00 00 87 0B 92 [17:56:35]Write i2c OK [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: 01 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: 01 07 00 [17:56:35]MH_I2C_Read... [17:56:35]Read from MH i2c: 01 07 00 87 0B 00 00 00 00 00 FF 0F A7 [17:56:35]RasterBufferAndPrint [17:56:35]line Счет N : (3)126534 [17:56:35]line ИНН: 02508201610067 [17:56:35]line Контрольно-Кассовый Чек [17:56:35]line ПРОДАЖА [17:56:35]line Товар: 4700000480050 [17:56:35]line Напиток Nitro Energy эн green ж/б 0,45л [17:56:35]line 2.000 * 95.00 [17:56:35]line = 190.00 [17:56:35]line НДС 12% НСП 1% [17:56:35]line > о реализуемом товаре [17:56:35]line ИТОГО: 190.00 [17:56:35]line НСП 1% : 1.68 [17:56:35]line НДС 12% : 20.18 [17:56:35]line Наличными: 190.00 [17:56:35]line Безнал.: 0.00 [17:56:35]line Место: АЗС № 127 "Партнер Нефть" [17:56:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:56:35]line СНО: Общий режим [17:56:35]line Чек 109 29.07.2024 17:56 [17:56:35]line Смена: 15 ФФД: 1.0 [17:56:35]line ЗНМ: 0300000161 [17:56:35]line РНМ: 0000000000189667 [17:56:35]line Версия ККМ: v1.0 [17:56:35]line ФМ: 0000000002094248 [17:56:35]line ФД: 2260 [17:56:35]line ФПД: 165442092894452 [17:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175635&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2260&fm=165442092894452&tin=02508201610067®Number=0000000000189667&sum=19000 [17:56:36]line 0 [17:56:36]OFD Sender: Processing packet 2260 [packets to send 1, broken 0] [17:56:36]ProducePacketName [17:56:36]name=ofd_packets/00002260 [17:56:36]OFD Sender: To server: pG, [17:56:36]CommunicateWithHost lk.salyk.kg:30040 [17:56:36]ConnectInit lk.salyk.kg [17:56:36]written 0, free lines is 4095 [17:56:36]Connected sock=10 [17:56:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 1D BC 31 01 BF 8A 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 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 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 6D 00 00 00 F4 03 04 00 D3 D7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D4 08 00 00 35 04 06 00 96 77 FD 2D 88 F4 66 13 B3 A8 CC D1 85 D5 [17:56:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1B E9 47 00 8D C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D4 08 00 00 F4 03 04 00 3F 83 A7 66 B6 04 01 00 00 BC E0 64 C4 69 F4 37 BF [17:56:36]CommunicateWithHost err = 0 [17:56:36]CheckOFDResponse [17:56:36]1017 (14) - 77093643461234 [17:56:36]1041 (16) - 0000000002094248 [17:56:36]1040 (4) - 2260 [17:56:36]1012 (4) - 29.07.2024 11:55 [17:56:36]1206 (1) - 0 [17:56:36]OFD Sender: Remove packet 2260 [17:56:36]ProducePacketName [17:56:36]name=ofd_packets/00002260 [17:56:36]NVStorageDeleteData [17:56:36]Write to MH i2c: 01 00 00 B0 0B BB [17:56:36]Write i2c OK [17:56:36]MH_I2C_Read... [17:56:36]Read from MH i2c: 01 [17:56:36]MH_I2C_Read... [17:56:36]Read from MH i2c: 01 07 00 [17:56:36]MH_I2C_Read... [17:56:36]Read from MH i2c: 01 07 00 B0 0B 00 00 00 00 00 09 0D D8 [17:56:36]RasterBufferAndPrint [17:56:36]line [17:56:36]line [17:56:36]line [17:56:36]line [17:56:36]line [17:56:36]written 0, free lines is 3343 [17:56:36]MH_Cut [17:56:36]Write to MH i2c: D1 01 00 B7 0B 01 94 [17:56:36]Write i2c OK [17:56:36]MH_I2C_Read... [17:56:36]Read from MH i2c: D1 [17:56:36]MH_I2C_Read... [17:56:36]Read from MH i2c: D1 01 00 [17:56:36]MH_I2C_Read... [17:56:36]Read from MH i2c: D1 01 00 B7 0B 00 93 [17:56:36]Write to MH i2c: 01 00 00 B8 0B C3 [17:56:36]Write i2c OK [17:56:36]MH_I2C_Read... [17:56:36]OFD Sender: No OFD packet to send [17:56:37]*** Cut start [17:56:37]*** Partial cut [17:56:37]*** CUTSNS_PIN = 1 [17:56:37]*** CUTSNS_PIN = 0 [17:56:37]*** Brake cut motor [17:56:37]Read from MH i2c: 01 [17:56:37]MH_I2C_Read... [17:56:37]*** Stop cut motor [17:56:37]*** Cut end [17:56:37]Read from MH i2c: 01 07 00 [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: 01 07 00 B8 0B 00 00 00 00 00 FF 0F D8 [17:56:37]process_action close_receipt done [17:56:37]requested_data is exist [17:56:37]produce_requested_data [17:56:37]requested_item fm.sn is exist - process it [17:56:37]wFMCommunicate request_size=4 [17:56:37]MH_SAM_APDU [17:56:37]CAPDU: 80 11 00 00 [17:56:37]Write to MH i2c: E2 08 00 B9 0B 80 11 00 00 00 00 00 00 3E [17:56:37]Write i2c OK [17:56:37]MH_I2C_Read... [17:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:37]Read from MH i2c: E2 [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: E2 17 00 [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: E2 17 00 B9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8E [17:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:56:37]wFMCommunicate OK [17:56:37]requested_item fd.num is exist - process it [17:56:37]SAM_PROTO_GetFieldsCounters [17:56:37]wFMCommunicate request_size=4 [17:56:37]MH_SAM_APDU [17:56:37]CAPDU: 80 13 00 00 [17:56:37]Write to MH i2c: E2 08 00 BA 0B 80 13 00 00 00 00 00 00 41 [17:56:37]Write i2c OK [17:56:37]MH_I2C_Read... [17:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:37]Read from MH i2c: E2 [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: E2 62 00 [17:56:37]MH_I2C_Read... [17:56:37]Read from MH i2c: E2 62 00 BA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D4 08 00 00 0E 04 04 00 0F 00 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 9D [17:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D4 08 00 00 0E 04 04 00 0F 00 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 [17:56:37]wFMCommunicate OK [17:56:37]SAM_PROTO_GetFieldsCounters done [17:56:37]requested_item shift.num is exist - process it [17:56:37]requested_item shift.opened is exist - process it [17:56:37]req_shift_opened [17:56:37]FM_GetShiftState [17:56:37]SAM_PROTO_GetShiftState [17:56:37]wFMCommunicate request_size=4 [17:56:37]MH_SAM_APDU [17:56:37]CAPDU: 80 13 01 00 [17:56:38]Write to MH i2c: E2 08 00 BB 0B 80 13 01 00 00 00 00 00 43 [17:56:38]Write i2c OK [17:56:38]MH_I2C_Read... [17:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:38]Read from MH i2c: E2 [17:56:38]MH_I2C_Read... [17:56:38]Read from MH i2c: E2 0E 00 [17:56:38]MH_I2C_Read... [17:56:38]Read from MH i2c: E2 0E 00 BB 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3C [17:56:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:56:38]wFMCommunicate OK [17:56:38]SAM_PROTO_GetShiftState done [17:56:38]FM_GetShiftState done [17:56:38]req_shift_opened done [17:56:38]requested_item shift.open_date is exist - process it [17:56:38]req_shift_open_date [17:56:38]req_shift_open_date done [17:56:38]produce_requested_data done [17:56:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2260,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:56:38]process_action_free close_receipt [17:56:38]json_value_free [17:56:38]json_value_free done [17:56:38]process_json_proto returns [17:56:38]Send response to host [17:56:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2260,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:56:38]free response buf [17:56:38]execute_script done [17:56:38]execute_script returns [17:56:38]free content buf [17:56:38]Sock 9.Close socket [17:56:38]Sock 9.Thread stoped [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:38]accept exits with 8 [17:57:38]New connection [17:57:38]New thread 3067014500 created [17:57:38]Thread 3067157860 joined [17:57:38]Waiting for new connection... [17:57:38] Sock 8.Parse request [17:57:38]Sock 8.Check first char [17:57:38]Sock 8.First char is OK [17:57:38]request: POST /json_proto HTTP/1.0 [17:57:38]Method: POST [17:57:38]URL: /json_proto [17:57:38]Method is POST - this is cgi request [17:57:38]url: /json_proto [17:57:38]query_string will be loaded in cgi processing [17:57:38]execute_cgi json_proto POST (null) [17:57:38]execute_cgi path=json_proto method=POST [17:57:38]POST find Content-Length [17:57:38]Host: 172.17.45.132:8080 [17:57:38]Content-Length: 654 [17:57:38]Content-Type: application/json [17:57:38] [17:57:38]POST finish read [17:57:38]Found Content-Length = 654 [17:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126535", "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" : 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" ] } } [17:57:38]execute_script... [17:57: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)126535", "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" : 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" ] } } [17:57:38]POST & json_proto [17:57:38]process_json_proto [17:57:38]json parsed OK: [17:57:38]protocol is kg_v1.0 [17:57:38]action value=close_receipt [17:57:38]process_action close_receipt [17:57:38]cmd_close_receipt [17:57:38]MH_GetDate [17:57:38]Write to MH i2c: F0 00 00 BC 0B B6 [17:57:38]Write i2c OK [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 09 00 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 09 00 BC 0B 00 14 D8 A7 66 E3 0B 90 66 9C [17:57:38]GetLastDocTimeStamp 1722275795 [17:57:38]current date 1722275860 [17:57:38]FM_GetShiftState [17:57:38]SAM_PROTO_GetShiftState [17:57:38]wFMCommunicate request_size=4 [17:57:38]MH_SAM_APDU [17:57:38]CAPDU: 80 13 01 00 [17:57:38]Write to MH i2c: E2 08 00 BD 0B 80 13 01 00 00 00 00 00 45 [17:57:38]Write i2c OK [17:57:38]MH_I2C_Read... [17:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:38]Read from MH i2c: E2 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: E2 0E 00 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: E2 0E 00 BD 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3E [17:57:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:57:38]wFMCommunicate OK [17:57:38]SAM_PROTO_GetShiftState done [17:57:38]FM_GetShiftState done [17:57:38]opened in 1722213119 [17:57:38]opened+sec_in_day 1722299519 [17:57:38]quantity*price = 9500 [17:57:38]sum+1 = 9501 [17:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 110 29.07.2024 17:57 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2261 ФПД: 79661702499807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175740&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2261&fm=79661702499807&tin=02508201610067®Number=0000000000189667&sum=9500 0 [17:57:40]StoreToDocumentArchive [17:57:40]shift 15 fd 2261 [17:57:40]save to /storage/0015/doc_00002261 [17:57:40]save last doc name /storage/0015/doc_00002261 to /storage/kkm_last_doc_name [17:57:40]save OK [17:57:40]Clear old archive folders... [17:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:57:40]tlvbuf is 0201E660 [17:57:40]SAM_PROTO_ClearQueue [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 09 00 00 [17:57:40]Write to MH i2c: E2 08 00 CA 0B 80 09 00 00 00 00 00 00 47 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]SAM_PROTO_ClearQueue done [17:57:40]KKMCreateOFDPacket [17:57:40]OFDProtocolAddRootSTLVToBuf [17:57:40]FM_MakeSignedData [17:57:40]FM_MakeSignedData [17:57:40]SAM_PROTO_SignData [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 0D 01 02 [17:57:40]Write to MH i2c: E2 08 00 CB 0B 80 0D 01 02 00 00 00 00 4F [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]wFMCommunicate request_size=255 [17:57:40]MH_SAM_APDU [17:57:40]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 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 6E 00 00 00 F4 03 04 00 14 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:57:40]Write to MH i2c: E2 02 01 CC 0B 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 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 6E 00 00 00 F4 03 04 00 14 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 65 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]wFMCommunicate request_size=52 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 0D 02 02 2F 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 08 00 00 35 04 06 00 48 73 AF 7A CD DF [17:57:40]Write to MH i2c: E2 37 00 CD 0B 80 0D 02 02 2F 00 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 08 00 00 35 04 06 00 48 73 AF 7A CD DF 00 00 8B [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [17:57:40]RAPDU: 90 00 [17:57:40]wFMCommunicate OK [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 0D 03 02 [17:57:40]Write to MH i2c: E2 08 00 CE 0B 80 0D 03 02 00 00 00 00 54 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 0B 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 0B 00 CE 0B 00 CC 6D EB 13 8B C7 64 2E 90 00 70 [17:57:40]RAPDU: CC 6D EB 13 8B C7 64 2E 90 00 [17:57:40]wFMCommunicate OK [17:57:40]SAM_PROTO_SignData done [17:57:40]FM_MakeSignedData done [17:57:40]CreateOFDProtocolMessage [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 11 00 00 [17:57:40]Write to MH i2c: E2 08 00 CF 0B 80 11 00 00 00 00 00 00 54 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 CF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A4 [17:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:57:40]wFMCommunicate OK [17:57:40]CreateOFDProtocolMessage done [17:57:40]OFDSenderStorePacket 2261 [17:57:40]StoreOFDPacket docnum=2261 [17:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 CE 11 31 01 0C 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 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 6E 00 00 00 F4 03 04 00 14 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 08 00 00 35 04 06 00 48 73 AF 7A CD DF CC 6D EB 13 8B C7 64 2E [17:57:40]CheckFolder [17:57:40]dirname=/storage/ofd_packets [17:57:40]CheckFolder done [17:57:40]ProducePacketName [17:57:40]name=ofd_packets/00002261 [17:57:40]NVStorageSaveData ofd_packets/00002261 [17:57:40]File name is /storage/ofd_packets/00002261 [17:57:40]Write 343 bytes [17:57:40]NVStorageSaveData done [17:57:40]OFDSenderStorePacket done [17:57:40]KKMCreateOFDPacket done [17:57:40]NVStorageSaveData kkm_last_timestamp [17:57:40]File name is /storage/kkm_last_timestamp [17:57:40]Write 4 bytes [17:57:40]NVStorageSaveData done [17:57:40]ExternCall_PrintAddStr [17:57:40]wPrintStart [17:57:40]Write to MH i2c: 01 00 00 D0 0B DB [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 D0 0B 00 00 00 00 00 FF 0F F0 [17:57:40]RasterBufferAndPrint [17:57:40]line Счет N : (3)126535 [17:57:40]line ИНН: 02508201610067 [17:57:40]line Контрольно-Кассовый Чек [17:57:40]line ПРОДАЖА [17:57:40]line Товар: 4700000480050 [17:57:40]line Напиток Nitro Energy эн green ж/б 0,45л [17:57:40]line 1.000 * 95.00 [17:57:40]line = 95.00 [17:57:40]line НДС 12% НСП 1% [17:57:40]line > о реализуемом товаре [17:57:40]line ИТОГО: 95.00 [17:57:40]line НСП 1% : 0.84 [17:57:40]line НДС 12% : 10.09 [17:57:40]line Наличными: 95.00 [17:57:40]line Безнал.: 0.00 [17:57:40]line Место: АЗС № 127 "Партнер Нефть" [17:57:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:57:40]line СНО: Общий режим [17:57:40]line Чек 110 29.07.2024 17:57 [17:57:40]line Смена: 15 ФФД: 1.0 [17:57:40]line ЗНМ: 0300000161 [17:57:40]line РНМ: 0000000000189667 [17:57:40]line Версия ККМ: v1.0 [17:57:40]line ФМ: 0000000002094248 [17:57:40]line ФД: 2261 [17:57:40]line ФПД: 79661702499807 [17:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175740&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2261&fm=79661702499807&tin=02508201610067®Number=0000000000189667&sum=9500 [17:57:40]line 0 [17:57:40]OFD Sender: Processing packet 2261 [packets to send 1, broken 0] [17:57:40]ProducePacketName [17:57:40]name=ofd_packets/00002261 [17:57:40]OFD Sender: To server: pG, [17:57:40]CommunicateWithHost lk.salyk.kg:30040 [17:57:40]ConnectInit lk.salyk.kg [17:57:40]written 0, free lines is 4095 [17:57:41]Connected sock=9 [17:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 39 01 00 00 CE 11 31 01 0C 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 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 6E 00 00 00 F4 03 04 00 14 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D5 08 00 00 35 04 06 00 48 73 AF 7A CD DF CC 6D EB 13 8B C7 64 2E [17:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BB 15 47 00 8C 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 32 30 39 34 32 34 38 10 04 04 00 D5 08 00 00 F4 03 04 00 80 83 A7 66 B6 04 01 00 00 6E 1A F4 6B 8F DC A7 8F [17:57:41]CommunicateWithHost err = 0 [17:57:41]CheckOFDResponse [17:57:41]1017 (14) - 77093643461234 [17:57:41]1041 (16) - 0000000002094248 [17:57:41]1040 (4) - 2261 [17:57:41]1012 (4) - 29.07.2024 11:56 [17:57:41]1206 (1) - 0 [17:57:41]OFD Sender: Remove packet 2261 [17:57:41]ProducePacketName [17:57:41]name=ofd_packets/00002261 [17:57:41]NVStorageDeleteData [17:57:41]Write to MH i2c: 01 00 00 F9 0B 04 [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: 01 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: 01 07 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: 01 07 00 F9 0B 00 00 00 00 00 01 0D 19 [17:57:41]RasterBufferAndPrint [17:57:41]line [17:57:41]line [17:57:41]line [17:57:41]line [17:57:41]line [17:57:41]written 0, free lines is 3335 [17:57:41]MH_Cut [17:57:41]Write to MH i2c: D1 01 00 00 0C 01 DE [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: D1 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: D1 01 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: D1 01 00 00 0C 00 DD [17:57:41]Write to MH i2c: 01 00 00 01 0C 0D [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]OFD Sender: No OFD packet to send [17:57:42]*** Cut start [17:57:42]*** Partial cut [17:57:42]*** CUTSNS_PIN = 1 [17:57:42]*** CUTSNS_PIN = 0 [17:57:42]*** Brake cut motor [17:57:42]Read from MH i2c: 01 [17:57:42]MH_I2C_Read... [17:57:42]*** Stop cut motor [17:57:42]*** Cut end [17:57:42]Read from MH i2c: 01 07 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [17:57:42]process_action close_receipt done [17:57:42]requested_data is exist [17:57:42]produce_requested_data [17:57:42]requested_item fm.sn is exist - process it [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 11 00 00 [17:57:42]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 17 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 17 00 02 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [17:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:57:42]wFMCommunicate OK [17:57:42]requested_item fd.num is exist - process it [17:57:42]SAM_PROTO_GetFieldsCounters [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 13 00 00 [17:57:42]Write to MH i2c: E2 08 00 03 0C 80 13 00 00 00 00 00 00 8B [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 62 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 62 00 03 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D5 08 00 00 0E 04 04 00 0F 00 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 EB [17:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D5 08 00 00 0E 04 04 00 0F 00 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 [17:57:42]wFMCommunicate OK [17:57:42]SAM_PROTO_GetFieldsCounters done [17:57:42]requested_item shift.num is exist - process it [17:57:42]requested_item shift.opened is exist - process it [17:57:42]req_shift_opened [17:57:42]FM_GetShiftState [17:57:42]SAM_PROTO_GetShiftState [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 13 01 00 [17:57:42]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 0E 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 0E 00 04 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 86 [17:57:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:57:42]wFMCommunicate OK [17:57:42]SAM_PROTO_GetShiftState done [17:57:42]FM_GetShiftState done [17:57:42]req_shift_opened done [17:57:42]requested_item shift.open_date is exist - process it [17:57:42]req_shift_open_date [17:57:42]req_shift_open_date done [17:57:42]produce_requested_data done [17:57:42]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2261,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:57:42]process_action_free close_receipt [17:57:42]json_value_free [17:57:42]json_value_free done [17:57:42]process_json_proto returns [17:57:42]Send response to host [17:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2261,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:57:42]free response buf [17:57:42]execute_script done [17:57:42]execute_script returns [17:57:42]free content buf [17:57:42]Sock 8.Close socket [17:57:42]Sock 8.Thread stoped [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:22]accept exits with 10 [17:58:22]New connection [17:58:22]New thread 3067157860 created [17:58:22]Thread 3067014500 joined [17:58:22]Waiting for new connection... [17:58:22] Sock 10.Parse request [17:58:22]Sock 10.Check first char [17:58:22]Sock 10.First char is OK [17:58:22]request: POST /json_proto HTTP/1.0 [17:58:22]Method: POST [17:58:22]URL: /json_proto [17:58:22]Method is POST - this is cgi request [17:58:22]url: /json_proto [17:58:22]query_string will be loaded in cgi processing [17:58:22]execute_cgi json_proto POST (null) [17:58:22]execute_cgi path=json_proto method=POST [17:58:22]POST find Content-Length [17:58:22]Host: 172.17.45.132:8080 [17:58:22]Content-Length: 803 [17:58:22]Content-Type: application/json [17:58:22] [17:58:22]POST finish read [17:58:22]Found Content-Length = 803 [17:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:22]execute_script... [17:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:22]POST & json_proto [17:58:22]process_json_proto [17:58:22]json parsed OK: [17:58:22]protocol is kg_v1.0 [17:58:22]action value=close_receipt [17:58:22]process_action close_receipt [17:58:22]cmd_close_receipt [17:58:22]MH_GetDate [17:58:22]Write to MH i2c: F0 00 00 05 0C 00 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: F0 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: F0 09 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: F0 09 00 05 0C 00 3F D8 A7 66 E3 0B 90 66 11 [17:58:22]GetLastDocTimeStamp 1722275860 [17:58:22]current date 1722275903 [17:58:22]FM_GetShiftState [17:58:22]SAM_PROTO_GetShiftState [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 13 01 00 [17:58:22]Write to MH i2c: E2 08 00 06 0C 80 13 01 00 00 00 00 00 8F [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 0E 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 0E 00 06 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 88 [17:58:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:58:22]wFMCommunicate OK [17:58:22]SAM_PROTO_GetShiftState done [17:58:22]FM_GetShiftState done [17:58:22]opened in 1722213119 [17:58:22]opened+sec_in_day 1722299519 [17:58:22]quantity*price = 150041 [17:58:22]sum+1 = 150042 [17:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 111 29.07.2024 17:58 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2262 ФПД: 94857593975494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175823&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2262&fm=94857593975494&tin=02508201610067®Number=0000000000189667&sum=150041 [17:58:23]StoreToDocumentArchive [17:58:23]shift 15 fd 2262 [17:58:23]save to /storage/0015/doc_00002262 [17:58:23]save last doc name /storage/0015/doc_00002262 to /storage/kkm_last_doc_name [17:58:23]save OK [17:58:23]Clear old archive folders... [17:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:23]tlvbuf is 0201E510 [17:58:23]SAM_PROTO_ClearQueue [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 09 00 00 [17:58:23]Write to MH i2c: E2 08 00 13 0C 80 09 00 00 00 00 00 00 91 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [17:58:23]RAPDU: 90 00 [17:58:23]wFMCommunicate OK [17:58:23]SAM_PROTO_ClearQueue done [17:58:23]KKMCreateOFDPacket [17:58:23]OFDProtocolAddRootSTLVToBuf [17:58:23]FM_MakeSignedData [17:58:23]FM_MakeSignedData [17:58:23]SAM_PROTO_SignData [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 0D 01 02 [17:58:23]Write to MH i2c: E2 08 00 14 0C 80 0D 01 02 00 00 00 00 99 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [17:58:23]RAPDU: 90 00 [17:58:23]wFMCommunicate OK [17:58:23]wFMCommunicate request_size=255 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3F D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 08 00 00 35 04 06 00 56 [17:58:23]Write to MH i2c: E2 02 01 15 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3F D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 08 00 00 35 04 06 00 56 00 00 BD [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [17:58:23]RAPDU: 90 00 [17:58:23]wFMCommunicate OK [17:58:23]wFMCommunicate request_size=10 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 0D 02 02 05 45 C1 31 72 C6 [17:58:23]Write to MH i2c: E2 0D 00 16 0C 80 0D 02 02 05 00 45 C1 31 72 C6 00 00 15 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [17:58:23]RAPDU: 90 00 [17:58:23]wFMCommunicate OK [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 0D 03 02 [17:58:23]Write to MH i2c: E2 08 00 17 0C 80 0D 03 02 00 00 00 00 9E [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 0B 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 0B 00 17 0C 00 DA E0 37 51 D1 48 51 B4 90 00 FF [17:58:23]RAPDU: DA E0 37 51 D1 48 51 B4 90 00 [17:58:23]wFMCommunicate OK [17:58:23]SAM_PROTO_SignData done [17:58:23]FM_MakeSignedData done [17:58:23]CreateOFDProtocolMessage [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 11 00 00 [17:58:23]Write to MH i2c: E2 08 00 18 0C 80 11 00 00 00 00 00 00 9E [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 17 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 17 00 18 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EE [17:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:58:23]wFMCommunicate OK [17:58:23]CreateOFDProtocolMessage done [17:58:23]OFDSenderStorePacket 2262 [17:58:23]StoreOFDPacket docnum=2262 [17:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 56 B0 07 01 DD 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3F D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 08 00 00 35 04 06 00 56 45 C1 31 72 C6 DA E0 37 51 D1 48 51 B4 [17:58:23]CheckFolder [17:58:23]dirname=/storage/ofd_packets [17:58:23]CheckFolder done [17:58:23]ProducePacketName [17:58:23]name=ofd_packets/00002262 [17:58:23]NVStorageSaveData ofd_packets/00002262 [17:58:23]File name is /storage/ofd_packets/00002262 [17:58:23]Write 301 bytes [17:58:23]NVStorageSaveData done [17:58:23]OFDSenderStorePacket done [17:58:23]KKMCreateOFDPacket done [17:58:23]NVStorageSaveData kkm_last_timestamp [17:58:23]File name is /storage/kkm_last_timestamp [17:58:23]Write 4 bytes [17:58:23]NVStorageSaveData done [17:58:23]ExternCall_PrintAddStr [17:58:23]wPrintStart [17:58:23]Write to MH i2c: 01 00 00 19 0C 25 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 19 0C 00 00 00 00 00 FF 0F 3A [17:58:23]RasterBufferAndPrint [17:58:23]line Счет N : (1)610015 [17:58:23]line ИНН: 02508201610067 [17:58:23]line Контрольно-Кассовый Чек [17:58:23]line ПРОДАЖА [17:58:23]line ТРК (МРК, ГНК) : 42 [17:58:23]line Товар: 2710124130 [17:58:23]line Аи-92-К-2 [17:58:23]line 22.130 * 67.80 [17:58:23]line = 1500.41 [17:58:23]line НДС 12% НСП 1% [17:58:23]line > о реализуемом товаре [17:58:23]line ИТОГО: 1500.41 [17:58:23]line НСП 1% : 13.28 [17:58:23]line НДС 12% : 159.34 [17:58:23]line Наличными: 0.00 [17:58:23]line Безнал.: 1500.41 [17:58:23]line Место: АЗС № 127 "Партнер Нефть" [17:58:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:58:23]line СНО: Общий режим [17:58:23]line Чек 111 29.07.2024 17:58 [17:58:23]line Смена: 15 ФФД: 1.0 [17:58:23]line ЗНМ: 0300000161 [17:58:23]line РНМ: 0000000000189667 [17:58:23]line Версия ККМ: v1.0 [17:58:23]line Платежная система: O! деньги [17:58:23]line ФМ: 0000000002094248 [17:58:23]line ФД: 2262 [17:58:23]line ФПД: 94857593975494 [17:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175823&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2262&fm=94857593975494&tin=02508201610067®Number=0000000000189667&sum=150041 [17:58:24]OFD Sender: Processing packet 2262 [packets to send 1, broken 0] [17:58:24]ProducePacketName [17:58:24]name=ofd_packets/00002262 [17:58:24]OFD Sender: To server: pG, [17:58:24]CommunicateWithHost lk.salyk.kg:30040 [17:58:24]ConnectInit lk.salyk.kg [17:58:24]written 0, free lines is 4095 [17:58:24]Connected sock=9 [17:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 56 B0 07 01 DD 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 3F D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 08 00 00 35 04 06 00 56 45 C1 31 72 C6 DA E0 37 51 D1 48 51 B4 [17:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4B 73 47 00 DF 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D6 08 00 00 F4 03 04 00 AB 83 A7 66 B6 04 01 00 00 E2 1B 1A 54 DD 36 55 E9 [17:58:24]CommunicateWithHost err = 0 [17:58:24]CheckOFDResponse [17:58:24]1017 (14) - 77093643461234 [17:58:24]1041 (16) - 0000000002094248 [17:58:24]1040 (4) - 2262 [17:58:24]1012 (4) - 29.07.2024 11:57 [17:58:24]1206 (1) - 0 [17:58:24]OFD Sender: Remove packet 2262 [17:58:24]ProducePacketName [17:58:24]name=ofd_packets/00002262 [17:58:24]NVStorageDeleteData [17:58:24]Write to MH i2c: 01 00 00 43 0C 4F [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: 01 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: 01 07 00 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 02 0D 65 [17:58:24]RasterBufferAndPrint [17:58:24]line [17:58:24]line [17:58:24]line [17:58:24]line [17:58:24]line [17:58:24]written 0, free lines is 3336 [17:58:24]MH_Cut [17:58:24]Write to MH i2c: D1 01 00 4A 0C 01 28 [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: D1 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: D1 01 00 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: D1 01 00 4A 0C 00 27 [17:58:24]Write to MH i2c: 01 00 00 4B 0C 57 [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:25]OFD Sender: No OFD packet to send [17:58:25]*** Cut start [17:58:25]*** Partial cut [17:58:25]*** CUTSNS_PIN = 1 [17:58:25]*** CUTSNS_PIN = 0 [17:58:25]*** Brake cut motor [17:58:25]Read from MH i2c: 01 [17:58:25]MH_I2C_Read... [17:58:25]*** Stop cut motor [17:58:25]*** Cut end [17:58:25]Read from MH i2c: 01 07 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: 01 07 00 4B 0C 00 00 00 00 00 FF 0F 6C [17:58:25]process_action close_receipt done [17:58:25]requested_data is exist [17:58:25]produce_requested_data [17:58:25]requested_item fm.sn is exist - process it [17:58:25]wFMCommunicate request_size=4 [17:58:25]MH_SAM_APDU [17:58:25]CAPDU: 80 11 00 00 [17:58:25]Write to MH i2c: E2 08 00 4C 0C 80 11 00 00 00 00 00 00 D2 [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 17 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 17 00 4C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 22 [17:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:58:26]wFMCommunicate OK [17:58:26]requested_item fd.num is exist - process it [17:58:26]SAM_PROTO_GetFieldsCounters [17:58:26]wFMCommunicate request_size=4 [17:58:26]MH_SAM_APDU [17:58:26]CAPDU: 80 13 00 00 [17:58:26]Write to MH i2c: E2 08 00 4D 0C 80 13 00 00 00 00 00 00 D5 [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 62 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 62 00 4D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D6 08 00 00 0E 04 04 00 0F 00 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 39 [17:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D6 08 00 00 0E 04 04 00 0F 00 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 [17:58:26]wFMCommunicate OK [17:58:26]SAM_PROTO_GetFieldsCounters done [17:58:26]requested_item shift.num is exist - process it [17:58:26]requested_item shift.opened is exist - process it [17:58:26]req_shift_opened [17:58:26]FM_GetShiftState [17:58:26]SAM_PROTO_GetShiftState [17:58:26]wFMCommunicate request_size=4 [17:58:26]MH_SAM_APDU [17:58:26]CAPDU: 80 13 01 00 [17:58:26]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 0E 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D0 [17:58:26]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:58:26]wFMCommunicate OK [17:58:26]SAM_PROTO_GetShiftState done [17:58:26]FM_GetShiftState done [17:58:26]req_shift_opened done [17:58:26]requested_item shift.open_date is exist - process it [17:58:26]req_shift_open_date [17:58:26]req_shift_open_date done [17:58:26]produce_requested_data done [17:58:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2262,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:58:26]process_action_free close_receipt [17:58:26]json_value_free [17:58:26]json_value_free done [17:58:26]process_json_proto returns [17:58:26]Send response to host [17:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2262,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:58:26]free response buf [17:58:26]execute_script done [17:58:26]execute_script returns [17:58:26]free content buf [17:58:26]Sock 10.Close socket [17:58:26]Sock 10.Thread stoped [17:58:30]OFD Sender: No OFD packet to send [17:58:31]accept exits with 8 [17:58:31]New connection [17:58:31]New thread 3067014500 created [17:58:31]Thread 3067157860 joined [17:58:31]Waiting for new connection... [17:58:31] Sock 8.Parse request [17:58:31]Sock 8.Check first char [17:58:31]Sock 8.First char is OK [17:58:31]request: POST /json_proto HTTP/1.0 [17:58:31]Method: POST [17:58:31]URL: /json_proto [17:58:31]Method is POST - this is cgi request [17:58:31]url: /json_proto [17:58:31]query_string will be loaded in cgi processing [17:58:31]execute_cgi json_proto POST (null) [17:58:31]execute_cgi path=json_proto method=POST [17:58:31]POST find Content-Length [17:58:31]Host: 172.17.45.132:8080 [17:58:31]Content-Length: 677 [17:58:31]Content-Type: application/json [17:58:31] [17:58:31]POST finish read [17:58:31]Found Content-Length = 677 [17:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:31]execute_script... [17:58: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)610016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:31]POST & json_proto [17:58:31]process_json_proto [17:58:31]json parsed OK: [17:58:31]protocol is kg_v1.0 [17:58:31]action value=close_receipt [17:58:31]process_action close_receipt [17:58:31]cmd_close_receipt [17:58:31]MH_GetDate [17:58:31]Write to MH i2c: F0 00 00 4F 0C 4A [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: F0 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: F0 09 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: F0 09 00 4F 0C 00 48 D8 A7 66 E3 0B 90 66 64 [17:58:31]GetLastDocTimeStamp 1722275903 [17:58:31]current date 1722275912 [17:58:31]FM_GetShiftState [17:58:31]SAM_PROTO_GetShiftState [17:58:31]wFMCommunicate request_size=4 [17:58:31]MH_SAM_APDU [17:58:31]CAPDU: 80 13 01 00 [17:58:31]Write to MH i2c: E2 08 00 50 0C 80 13 01 00 00 00 00 00 D9 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:31]Read from MH i2c: E2 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 0E 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 0E 00 50 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D2 [17:58:31]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:58:31]wFMCommunicate OK [17:58:31]SAM_PROTO_GetShiftState done [17:58:31]FM_GetShiftState done [17:58:31]opened in 1722213119 [17:58:31]opened+sec_in_day 1722299519 [17:58:31]quantity*price = 50036 [17:58:31]sum+1 = 50037 [17:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 112 29.07.2024 17:58 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2263 ФПД: 68124517273503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2263&fm=68124517273503&tin=02508201610067®Number=0000000000189667&sum=50000 [17:58:32]StoreToDocumentArchive [17:58:32]shift 15 fd 2263 [17:58:32]save to /storage/0015/doc_00002263 [17:58:32]save last doc name /storage/0015/doc_00002263 to /storage/kkm_last_doc_name [17:58:32]save OK [17:58:32]Clear old archive folders... [17:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:32]tlvbuf is 01FE5350 [17:58:32]SAM_PROTO_ClearQueue [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 09 00 00 [17:58:32]Write to MH i2c: E2 08 00 5D 0C 80 09 00 00 00 00 00 00 DB [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]SAM_PROTO_ClearQueue done [17:58:32]KKMCreateOFDPacket [17:58:32]OFDProtocolAddRootSTLVToBuf [17:58:32]FM_MakeSignedData [17:58:32]FM_MakeSignedData [17:58:32]SAM_PROTO_SignData [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 01 02 [17:58:32]Write to MH i2c: E2 08 00 5E 0C 80 0D 01 02 00 00 00 00 E3 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]wFMCommunicate request_size=255 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 48 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 08 00 00 35 04 06 00 3D [17:58:32]Write to MH i2c: E2 02 01 5F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 48 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 08 00 00 35 04 06 00 3D 00 00 30 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]wFMCommunicate request_size=10 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 02 02 05 F5 79 A7 0F 9F [17:58:32]Write to MH i2c: E2 0D 00 60 0C 80 0D 02 02 05 00 F5 79 A7 0F 9F 00 00 B3 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 03 02 [17:58:32]Write to MH i2c: E2 08 00 61 0C 80 0D 03 02 00 00 00 00 E8 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 0B 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 0B 00 61 0C 00 AF B1 34 3B 42 33 B4 D2 90 00 B3 [17:58:32]RAPDU: AF B1 34 3B 42 33 B4 D2 90 00 [17:58:32]wFMCommunicate OK [17:58:32]SAM_PROTO_SignData done [17:58:32]FM_MakeSignedData done [17:58:32]CreateOFDProtocolMessage [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 11 00 00 [17:58:32]Write to MH i2c: E2 08 00 62 0C 80 11 00 00 00 00 00 00 E8 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 17 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 17 00 62 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 38 [17:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:58:33]wFMCommunicate OK [17:58:33]CreateOFDProtocolMessage done [17:58:33]OFDSenderStorePacket 2263 [17:58:33]StoreOFDPacket docnum=2263 [17:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A4 87 07 01 C6 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 48 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 08 00 00 35 04 06 00 3D F5 79 A7 0F 9F AF B1 34 3B 42 33 B4 D2 [17:58:33]CheckFolder [17:58:33]dirname=/storage/ofd_packets [17:58:33]CheckFolder done [17:58:33]ProducePacketName [17:58:33]name=ofd_packets/00002263 [17:58:33]NVStorageSaveData ofd_packets/00002263 [17:58:33]File name is /storage/ofd_packets/00002263 [17:58:33]Write 301 bytes [17:58:33]NVStorageSaveData done [17:58:33]OFDSenderStorePacket done [17:58:33]KKMCreateOFDPacket done [17:58:33]NVStorageSaveData kkm_last_timestamp [17:58:33]File name is /storage/kkm_last_timestamp [17:58:33]Write 4 bytes [17:58:33]NVStorageSaveData done [17:58:33]ExternCall_PrintAddStr [17:58:33]wPrintStart [17:58:33]Write to MH i2c: 01 00 00 63 0C 6F [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FF 0F 84 [17:58:33]RasterBufferAndPrint [17:58:33]line Счет N : (1)610016 [17:58:33]line ИНН: 02508201610067 [17:58:33]line Контрольно-Кассовый Чек [17:58:33]line ПРОДАЖА [17:58:33]line ТРК (МРК, ГНК) : 32 [17:58:33]line Товар: 2710124130 [17:58:33]line Аи-92-К-2 [17:58:33]line 7.380 * 67.80 [17:58:33]line = 500.36 [17:58:33]line НДС 12% НСП 1% [17:58:33]line > о реализуемом товаре [17:58:33]line ОКРУГЛЕНИЕ: -0.36 [17:58:33]line ИТОГО: 500.00 [17:58:33]line Внесено: 500.00 [17:58:33]line СДАЧА: 0.00 [17:58:33]line НСП 1% : 4.43 [17:58:33]line НДС 12% : 53.14 [17:58:33]line Наличными: 500.00 [17:58:33]line Безнал.: 0.00 [17:58:33]line Место: АЗС № 127 "Партнер Нефть" [17:58:33]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:58:33]line СНО: Общий режим [17:58:33]line Чек 112 29.07.2024 17:58 [17:58:33]line Смена: 15 ФФД: 1.0 [17:58:33]line ЗНМ: 0300000161 [17:58:33]line РНМ: 0000000000189667 [17:58:33]line Версия ККМ: v1.0 [17:58:33]line ФМ: 0000000002094248 [17:58:33]line ФД: 2263 [17:58:33]line ФПД: 68124517273503 [17:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2263&fm=68124517273503&tin=02508201610067®Number=0000000000189667&sum=50000 [17:58:33]written 0, free lines is 4095 [17:58:33]OFD Sender: Processing packet 2263 [packets to send 1, broken 0] [17:58:33]ProducePacketName [17:58:33]name=ofd_packets/00002263 [17:58:33]OFD Sender: To server: pG, [17:58:33]CommunicateWithHost lk.salyk.kg:30040 [17:58:33]ConnectInit lk.salyk.kg [17:58:33]Connected sock=10 [17:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A4 87 07 01 C6 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 48 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 08 00 00 35 04 06 00 3D F5 79 A7 0F 9F AF B1 34 3B 42 33 B4 D2 [17:58:33]Write to MH i2c: 01 00 00 8E 0C 9A [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 8E 0C 00 00 00 00 00 F4 0C A1 [17:58:33]RasterBufferAndPrint [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]written 0, free lines is 3326 [17:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F7 CC 47 00 9A 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D7 08 00 00 F4 03 04 00 B4 83 A7 66 B6 04 01 00 00 A2 B7 5F 20 B0 48 B0 BD [17:58:33]CommunicateWithHost err = 0 [17:58:33]CheckOFDResponse [17:58:33]1017 (14) - 77093643461234 [17:58:33]1041 (16) - 0000000002094248 [17:58:33]1040 (4) - 2263 [17:58:33]1012 (4) - 29.07.2024 11:57 [17:58:33]1206 (1) - 0 [17:58:33]OFD Sender: Remove packet 2263 [17:58:33]ProducePacketName [17:58:33]name=ofd_packets/00002263 [17:58:33]NVStorageDeleteData [17:58:33]MH_Cut [17:58:33]Write to MH i2c: D1 01 00 95 0C 01 73 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 01 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 01 00 95 0C 00 72 [17:58:33]Write to MH i2c: 01 00 00 96 0C A2 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:34]OFD Sender: No OFD packet to send [17:58:34]*** Cut start [17:58:34]*** Partial cut [17:58:34]*** CUTSNS_PIN = 1 [17:58:34]*** CUTSNS_PIN = 0 [17:58:34]*** Brake cut motor [17:58:34]Read from MH i2c: 01 [17:58:34]MH_I2C_Read... [17:58:34]*** Stop cut motor [17:58:34]*** Cut end [17:58:34]Read from MH i2c: 01 07 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: 01 07 00 96 0C 00 00 00 00 00 FF 0F B7 [17:58:34]process_action close_receipt done [17:58:34]requested_data is exist [17:58:34]produce_requested_data [17:58:34]requested_item fm.sn is exist - process it [17:58:34]wFMCommunicate request_size=4 [17:58:34]MH_SAM_APDU [17:58:34]CAPDU: 80 11 00 00 [17:58:34]Write to MH i2c: E2 08 00 97 0C 80 11 00 00 00 00 00 00 1D [17:58:34]Write i2c OK [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 [17:58:34]MH_I2C_Read... [17:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:34]Read from MH i2c: E2 17 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 17 00 97 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [17:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:58:34]wFMCommunicate OK [17:58:34]requested_item fd.num is exist - process it [17:58:34]SAM_PROTO_GetFieldsCounters [17:58:34]wFMCommunicate request_size=4 [17:58:34]MH_SAM_APDU [17:58:34]CAPDU: 80 13 00 00 [17:58:34]Write to MH i2c: E2 08 00 98 0C 80 13 00 00 00 00 00 00 20 [17:58:34]Write i2c OK [17:58:34]MH_I2C_Read... [17:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:35]Read from MH i2c: E2 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: E2 62 00 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: E2 62 00 98 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D7 08 00 00 0E 04 04 00 0F 00 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 88 [17:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D7 08 00 00 0E 04 04 00 0F 00 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 [17:58:35]wFMCommunicate OK [17:58:35]SAM_PROTO_GetFieldsCounters done [17:58:35]requested_item shift.num is exist - process it [17:58:35]requested_item shift.opened is exist - process it [17:58:35]req_shift_opened [17:58:35]FM_GetShiftState [17:58:35]SAM_PROTO_GetShiftState [17:58:35]wFMCommunicate request_size=4 [17:58:35]MH_SAM_APDU [17:58:35]CAPDU: 80 13 01 00 [17:58:35]Write to MH i2c: E2 08 00 99 0C 80 13 01 00 00 00 00 00 22 [17:58:35]Write i2c OK [17:58:35]MH_I2C_Read... [17:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:35]Read from MH i2c: E2 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: E2 0E 00 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: E2 0E 00 99 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1B [17:58:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:58:35]wFMCommunicate OK [17:58:35]SAM_PROTO_GetShiftState done [17:58:35]FM_GetShiftState done [17:58:35]req_shift_opened done [17:58:35]requested_item shift.open_date is exist - process it [17:58:35]req_shift_open_date [17:58:35]req_shift_open_date done [17:58:35]produce_requested_data done [17:58:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2263,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:58:35]process_action_free close_receipt [17:58:35]json_value_free [17:58:35]json_value_free done [17:58:35]process_json_proto returns [17:58:35]Send response to host [17:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2263,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:58:35]free response buf [17:58:35]execute_script done [17:58:35]execute_script returns [17:58:35]free content buf [17:58:35]Sock 8.Close socket [17:58:35]Sock 8.Thread stoped [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:45]accept exits with 9 [17:58:45]New connection [17:58:45]New thread 3067157860 created [17:58:45]Thread 3067014500 joined [17:58:45]Waiting for new connection... [17:58:45] Sock 9.Parse request [17:58:45]Sock 9.Check first char [17:58:45]Sock 9.First char is OK [17:58:45]request: POST /json_proto HTTP/1.0 [17:58:45]Method: POST [17:58:45]URL: /json_proto [17:58:45]Method is POST - this is cgi request [17:58:45]url: /json_proto [17:58:45]query_string will be loaded in cgi processing [17:58:45]execute_cgi json_proto POST (null) [17:58:45]execute_cgi path=json_proto method=POST [17:58:45]POST find Content-Length [17:58:45]Host: 172.17.45.132:8080 [17:58:45]Content-Length: 677 [17:58:45]Content-Type: application/json [17:58:45] [17:58:45]POST finish read [17:58:45]Found Content-Length = 677 [17:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:45]execute_script... [17:58:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:45]POST & json_proto [17:58:45]process_json_proto [17:58:45]json parsed OK: [17:58:45]protocol is kg_v1.0 [17:58:45]action value=close_receipt [17:58:45]process_action close_receipt [17:58:45]cmd_close_receipt [17:58:45]MH_GetDate [17:58:45]Write to MH i2c: F0 00 00 9A 0C 95 [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: F0 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: F0 09 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: F0 09 00 9A 0C 00 57 D8 A7 66 E3 0B 90 66 BE [17:58:45]GetLastDocTimeStamp 1722275912 [17:58:45]current date 1722275927 [17:58:45]FM_GetShiftState [17:58:45]SAM_PROTO_GetShiftState [17:58:45]wFMCommunicate request_size=4 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 13 01 00 [17:58:45]Write to MH i2c: E2 08 00 9B 0C 80 13 01 00 00 00 00 00 24 [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 0E 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 0E 00 9B 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1D [17:58:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:58:45]wFMCommunicate OK [17:58:45]SAM_PROTO_GetShiftState done [17:58:45]FM_GetShiftState done [17:58:45]opened in 1722213119 [17:58:45]opened+sec_in_day 1722299519 [17:58:45]quantity*price = 50036 [17:58:45]sum+1 = 50037 [17:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 113 29.07.2024 17:58 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2264 ФПД: 24609392715437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175847&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2264&fm=24609392715437&tin=02508201610067®Number=0000000000189667&sum=50000 [17:58:47]StoreToDocumentArchive [17:58:47]shift 15 fd 2264 [17:58:47]save to /storage/0015/doc_00002264 [17:58:47]save last doc name /storage/0015/doc_00002264 to /storage/kkm_last_doc_name [17:58:47]save OK [17:58:47]Clear old archive folders... [17:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:47]tlvbuf is 01FEA8E0 [17:58:47]SAM_PROTO_ClearQueue [17:58:47]wFMCommunicate request_size=4 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 09 00 00 [17:58:47]Write to MH i2c: E2 08 00 A8 0C 80 09 00 00 00 00 00 00 26 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [17:58:47]RAPDU: 90 00 [17:58:47]wFMCommunicate OK [17:58:47]SAM_PROTO_ClearQueue done [17:58:47]KKMCreateOFDPacket [17:58:47]OFDProtocolAddRootSTLVToBuf [17:58:47]FM_MakeSignedData [17:58:47]FM_MakeSignedData [17:58:47]SAM_PROTO_SignData [17:58:47]wFMCommunicate request_size=4 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 0D 01 02 [17:58:47]Write to MH i2c: E2 08 00 A9 0C 80 0D 01 02 00 00 00 00 2E [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [17:58:47]RAPDU: 90 00 [17:58:47]wFMCommunicate OK [17:58:47]wFMCommunicate request_size=255 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 57 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 08 00 00 35 04 06 00 16 [17:58:47]Write to MH i2c: E2 02 01 AA 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 57 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 08 00 00 35 04 06 00 16 00 00 65 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [17:58:47]RAPDU: 90 00 [17:58:47]wFMCommunicate OK [17:58:47]wFMCommunicate request_size=10 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 0D 02 02 05 61 D2 1C 66 AD [17:58:47]Write to MH i2c: E2 0D 00 AB 0C 80 0D 02 02 05 00 61 D2 1C 66 AD 00 00 9D [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 03 00 AB 0C 00 90 00 2B [17:58:47]RAPDU: 90 00 [17:58:47]wFMCommunicate OK [17:58:47]wFMCommunicate request_size=4 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 0D 03 02 [17:58:47]Write to MH i2c: E2 08 00 AC 0C 80 0D 03 02 00 00 00 00 33 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 0B 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 0B 00 AC 0C 00 99 60 7F 50 09 56 96 77 90 00 68 [17:58:47]RAPDU: 99 60 7F 50 09 56 96 77 90 00 [17:58:47]wFMCommunicate OK [17:58:47]SAM_PROTO_SignData done [17:58:47]FM_MakeSignedData done [17:58:47]CreateOFDProtocolMessage [17:58:47]wFMCommunicate request_size=4 [17:58:47]MH_SAM_APDU [17:58:47]CAPDU: 80 11 00 00 [17:58:47]Write to MH i2c: E2 08 00 AD 0C 80 11 00 00 00 00 00 00 33 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 17 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 17 00 AD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 83 [17:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:58:47]wFMCommunicate OK [17:58:47]CreateOFDProtocolMessage done [17:58:47]OFDSenderStorePacket 2264 [17:58:47]StoreOFDPacket docnum=2264 [17:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C4 41 07 01 61 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 57 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 08 00 00 35 04 06 00 16 61 D2 1C 66 AD 99 60 7F 50 09 56 96 77 [17:58:47]CheckFolder [17:58:47]dirname=/storage/ofd_packets [17:58:47]CheckFolder done [17:58:47]ProducePacketName [17:58:47]name=ofd_packets/00002264 [17:58:47]NVStorageSaveData ofd_packets/00002264 [17:58:47]File name is /storage/ofd_packets/00002264 [17:58:47]Write 301 bytes [17:58:47]NVStorageSaveData done [17:58:47]OFDSenderStorePacket done [17:58:47]KKMCreateOFDPacket done [17:58:47]NVStorageSaveData kkm_last_timestamp [17:58:47]File name is /storage/kkm_last_timestamp [17:58:47]Write 4 bytes [17:58:47]NVStorageSaveData done [17:58:47]ExternCall_PrintAddStr [17:58:47]wPrintStart [17:58:47]Write to MH i2c: 01 00 00 AE 0C BA [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 AE 0C 00 00 00 00 00 FF 0F CF [17:58:47]RasterBufferAndPrint [17:58:47]line Счет N : (1)610019 [17:58:47]line ИНН: 02508201610067 [17:58:47]line Контрольно-Кассовый Чек [17:58:47]line ПРОДАЖА [17:58:47]line ТРК (МРК, ГНК) : 52 [17:58:47]line Товар: 2710124130 [17:58:47]line Аи-92-К-2 [17:58:47]line 7.380 * 67.80 [17:58:47]line = 500.36 [17:58:47]line НДС 12% НСП 1% [17:58:47]line > о реализуемом товаре [17:58:47]line ОКРУГЛЕНИЕ: -0.36 [17:58:47]line ИТОГО: 500.00 [17:58:47]line Внесено: 500.00 [17:58:47]line СДАЧА: 0.00 [17:58:47]line НСП 1% : 4.43 [17:58:47]line НДС 12% : 53.14 [17:58:47]line Наличными: 500.00 [17:58:47]line Безнал.: 0.00 [17:58:47]line Место: АЗС № 127 "Партнер Нефть" [17:58:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [17:58:47]line СНО: Общий режим [17:58:47]line Чек 113 29.07.2024 17:58 [17:58:47]line Смена: 15 ФФД: 1.0 [17:58:47]line ЗНМ: 0300000161 [17:58:47]line РНМ: 0000000000189667 [17:58:47]line Версия ККМ: v1.0 [17:58:47]line ФМ: 0000000002094248 [17:58:47]line ФД: 2264 [17:58:47]line ФПД: 24609392715437 [17:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175847&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2264&fm=24609392715437&tin=02508201610067®Number=0000000000189667&sum=50000 [17:58:47]written 0, free lines is 4095 [17:58:47]OFD Sender: Processing packet 2264 [packets to send 1, broken 0] [17:58:47]ProducePacketName [17:58:47]name=ofd_packets/00002264 [17:58:47]OFD Sender: To server: pG, [17:58:47]CommunicateWithHost lk.salyk.kg:30040 [17:58:47]ConnectInit lk.salyk.kg [17:58:47]Connected sock=10 [17:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C4 41 07 01 61 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 57 D8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D8 08 00 00 35 04 06 00 16 61 D2 1C 66 AD 99 60 7F 50 09 56 96 77 [17:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 26 EB 47 00 A5 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 32 30 39 34 32 34 38 10 04 04 00 D8 08 00 00 F4 03 04 00 C2 83 A7 66 B6 04 01 00 00 7A 09 41 49 44 EE 57 A6 [17:58:48]CommunicateWithHost err = 0 [17:58:48]CheckOFDResponse [17:58:48]1017 (14) - 77093643461234 [17:58:48]1041 (16) - 0000000002094248 [17:58:48]1040 (4) - 2264 [17:58:48]1012 (4) - 29.07.2024 11:57 [17:58:48]1206 (1) - 0 [17:58:48]OFD Sender: Remove packet 2264 [17:58:48]ProducePacketName [17:58:48]name=ofd_packets/00002264 [17:58:48]NVStorageDeleteData [17:58:48]Write to MH i2c: 01 00 00 D9 0C E5 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: 01 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: 01 07 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: 01 07 00 D9 0C 00 00 00 00 00 FA 0C F2 [17:58:48]RasterBufferAndPrint [17:58:48]line [17:58:48]line [17:58:48]line [17:58:48]line [17:58:48]line [17:58:48]written 0, free lines is 3337 [17:58:48]MH_Cut [17:58:48]Write to MH i2c: D1 01 00 E0 0C 01 BE [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: D1 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: D1 01 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: D1 01 00 E0 0C 00 BD [17:58:48]Write to MH i2c: 01 00 00 E1 0C ED [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]OFD Sender: No OFD packet to send [17:58:48]*** Cut start [17:58:48]*** Partial cut [17:58:48]*** CUTSNS_PIN = 1 [17:58:48]*** CUTSNS_PIN = 0 [17:58:49]*** Brake cut motor [17:58:49]Read from MH i2c: 01 [17:58:49]MH_I2C_Read... [17:58:49]*** Stop cut motor [17:58:49]*** Cut end [17:58:49]Read from MH i2c: 01 07 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 07 00 E1 0C 00 00 00 00 00 FF 0F 02 [17:58:49]process_action close_receipt done [17:58:49]requested_data is exist [17:58:49]produce_requested_data [17:58:49]requested_item fm.sn is exist - process it [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 11 00 00 [17:58:49]Write to MH i2c: E2 08 00 E2 0C 80 11 00 00 00 00 00 00 68 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 17 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 17 00 E2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B8 [17:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [17:58:49]wFMCommunicate OK [17:58:49]requested_item fd.num is exist - process it [17:58:49]SAM_PROTO_GetFieldsCounters [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 13 00 00 [17:58:49]Write to MH i2c: E2 08 00 E3 0C 80 13 00 00 00 00 00 00 6B [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 62 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 62 00 E3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D8 08 00 00 0E 04 04 00 0F 00 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 D7 [17:58:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D8 08 00 00 0E 04 04 00 0F 00 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 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_GetFieldsCounters done [17:58:49]requested_item shift.num is exist - process it [17:58:49]requested_item shift.opened is exist - process it [17:58:49]req_shift_opened [17:58:49]FM_GetShiftState [17:58:49]SAM_PROTO_GetShiftState [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 13 01 00 [17:58:49]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0E 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 66 [17:58:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_GetShiftState done [17:58:49]FM_GetShiftState done [17:58:49]req_shift_opened done [17:58:49]requested_item shift.open_date is exist - process it [17:58:49]req_shift_open_date [17:58:49]req_shift_open_date done [17:58:49]produce_requested_data done [17:58:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2264,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [17:58:49]process_action_free close_receipt [17:58:49]json_value_free [17:58:49]json_value_free done [17:58:49]process_json_proto returns [17:58:49]Send response to host [17:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2264,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [17:58:49]free response buf [17:58:49]execute_script done [17:58:49]execute_script returns [17:58:49]free content buf [17:58:49]Sock 9.Close socket [17:58:49]Sock 9.Thread stoped [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]accept exits with 8 [18:03:18]New connection [18:03:18]New thread 3067014500 created [18:03:18]Thread 3067157860 joined [18:03:18]Waiting for new connection... [18:03:18] Sock 8.Parse request [18:03:18]Sock 8.Check first char [18:03:18]Sock 8.First char is OK [18:03:18]request: POST /json_proto HTTP/1.0 [18:03:18]Method: POST [18:03:18]URL: /json_proto [18:03:18]Method is POST - this is cgi request [18:03:18]url: /json_proto [18:03:18]query_string will be loaded in cgi processing [18:03:18]execute_cgi json_proto POST (null) [18:03:18]execute_cgi path=json_proto method=POST [18:03:18]POST find Content-Length [18:03:18]Host: 172.17.45.132:8080 [18:03:18]Content-Length: 678 [18:03:18]Content-Type: application/json [18:03:18] [18:03:18]POST finish read [18:03:18]Found Content-Length = 678 [18:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:18]execute_script... [18:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:18]POST & json_proto [18:03:18]process_json_proto [18:03:18]json parsed OK: [18:03:18]protocol is kg_v1.0 [18:03:18]action value=close_receipt [18:03:18]process_action close_receipt [18:03:18]cmd_close_receipt [18:03:18]MH_GetDate [18:03:18]Write to MH i2c: F0 00 00 E5 0C E0 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 09 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 09 00 E5 0C 00 67 D9 A7 66 E3 0B 90 66 1A [18:03:18]GetLastDocTimeStamp 1722275927 [18:03:18]current date 1722276199 [18:03:18]FM_GetShiftState [18:03:18]SAM_PROTO_GetShiftState [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 13 01 00 [18:03:18]Write to MH i2c: E2 08 00 E6 0C 80 13 01 00 00 00 00 00 6F [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0E 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0E 00 E6 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 68 [18:03:18]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_GetShiftState done [18:03:18]FM_GetShiftState done [18:03:18]opened in 1722213119 [18:03:18]opened+sec_in_day 1722299519 [18:03:18]quantity*price = 80004 [18:03:18]sum+1 = 80005 [18:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 114 29.07.2024 18:03 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2265 ФПД: 98374190564237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180319&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2265&fm=98374190564237&tin=02508201610067®Number=0000000000189667&sum=80000 [18:03:19]StoreToDocumentArchive [18:03:19]shift 15 fd 2265 [18:03:19]save to /storage/0015/doc_00002265 [18:03:19]save last doc name /storage/0015/doc_00002265 to /storage/kkm_last_doc_name [18:03:19]save OK [18:03:19]Clear old archive folders... [18:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:19]tlvbuf is 01FF0800 [18:03:19]SAM_PROTO_ClearQueue [18:03:19]wFMCommunicate request_size=4 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 09 00 00 [18:03:19]Write to MH i2c: E2 08 00 F3 0C 80 09 00 00 00 00 00 00 71 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:19]Read from MH i2c: E2 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [18:03:19]RAPDU: 90 00 [18:03:19]wFMCommunicate OK [18:03:19]SAM_PROTO_ClearQueue done [18:03:19]KKMCreateOFDPacket [18:03:19]OFDProtocolAddRootSTLVToBuf [18:03:19]FM_MakeSignedData [18:03:19]FM_MakeSignedData [18:03:19]SAM_PROTO_SignData [18:03:19]wFMCommunicate request_size=4 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 0D 01 02 [18:03:19]Write to MH i2c: E2 08 00 F4 0C 80 0D 01 02 00 00 00 00 79 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:19]Read from MH i2c: E2 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 [18:03:19]MH_I2C_Read... [18:03:19]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [18:03:19]RAPDU: 90 00 [18:03:19]wFMCommunicate OK [18:03:19]wFMCommunicate request_size=255 [18:03:19]MH_SAM_APDU [18:03:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 08 00 00 35 04 06 00 59 [18:03:19]Write to MH i2c: E2 02 01 F5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 08 00 00 35 04 06 00 59 00 00 B3 [18:03:19]Write i2c OK [18:03:19]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 03 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [18:03:20]RAPDU: 90 00 [18:03:20]wFMCommunicate OK [18:03:20]wFMCommunicate request_size=10 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 0D 02 02 05 78 86 AF 03 8D [18:03:20]Write to MH i2c: E2 0D 00 F6 0C 80 0D 02 02 05 00 78 86 AF 03 8D 00 00 C3 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 03 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [18:03:20]RAPDU: 90 00 [18:03:20]wFMCommunicate OK [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 0D 03 02 [18:03:20]Write to MH i2c: E2 08 00 F7 0C 80 0D 03 02 00 00 00 00 7E [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0B 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 0B 00 F7 0C 00 D7 75 81 30 47 8A AA 8D 90 00 84 [18:03:20]RAPDU: D7 75 81 30 47 8A AA 8D 90 00 [18:03:20]wFMCommunicate OK [18:03:20]SAM_PROTO_SignData done [18:03:20]FM_MakeSignedData done [18:03:20]CreateOFDProtocolMessage [18:03:20]wFMCommunicate request_size=4 [18:03:20]MH_SAM_APDU [18:03:20]CAPDU: 80 11 00 00 [18:03:20]Write to MH i2c: E2 08 00 F8 0C 80 11 00 00 00 00 00 00 7E [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:20]Read from MH i2c: E2 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: E2 17 00 F8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CE [18:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:03:20]wFMCommunicate OK [18:03:20]CreateOFDProtocolMessage done [18:03:20]OFDSenderStorePacket 2265 [18:03:20]StoreOFDPacket docnum=2265 [18:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D2 80 07 01 99 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 08 00 00 35 04 06 00 59 78 86 AF 03 8D D7 75 81 30 47 8A AA 8D [18:03:20]CheckFolder [18:03:20]dirname=/storage/ofd_packets [18:03:20]CheckFolder done [18:03:20]ProducePacketName [18:03:20]name=ofd_packets/00002265 [18:03:20]NVStorageSaveData ofd_packets/00002265 [18:03:20]File name is /storage/ofd_packets/00002265 [18:03:20]Write 301 bytes [18:03:20]NVStorageSaveData done [18:03:20]OFDSenderStorePacket done [18:03:20]KKMCreateOFDPacket done [18:03:20]NVStorageSaveData kkm_last_timestamp [18:03:20]File name is /storage/kkm_last_timestamp [18:03:20]Write 4 bytes [18:03:20]NVStorageSaveData done [18:03:20]ExternCall_PrintAddStr [18:03:20]wPrintStart [18:03:20]Write to MH i2c: 01 00 00 F9 0C 05 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 FF 0F 1A [18:03:20]RasterBufferAndPrint [18:03:20]line Счет N : (1)610022 [18:03:20]line ИНН: 02508201610067 [18:03:20]line Контрольно-Кассовый Чек [18:03:20]line ПРОДАЖА [18:03:20]line ТРК (МРК, ГНК) : 62 [18:03:20]line Товар: 2710124130 [18:03:20]line Аи-92-К-2 [18:03:20]line 11.800 * 67.80 [18:03:20]line = 800.04 [18:03:20]line НДС 12% НСП 1% [18:03:20]line > о реализуемом товаре [18:03:20]line ОКРУГЛЕНИЕ: -0.04 [18:03:20]line ИТОГО: 800.00 [18:03:20]line Внесено: 800.00 [18:03:20]line СДАЧА: 0.00 [18:03:20]line НСП 1% : 7.08 [18:03:20]line НДС 12% : 84.96 [18:03:20]line Наличными: 800.00 [18:03:20]line Безнал.: 0.00 [18:03:20]line Место: АЗС № 127 "Партнер Нефть" [18:03:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:03:20]line СНО: Общий режим [18:03:20]line Чек 114 29.07.2024 18:03 [18:03:20]line Смена: 15 ФФД: 1.0 [18:03:20]line ЗНМ: 0300000161 [18:03:20]line РНМ: 0000000000189667 [18:03:20]line Версия ККМ: v1.0 [18:03:20]line ФМ: 0000000002094248 [18:03:20]line ФД: 2265 [18:03:20]line ФПД: 98374190564237 [18:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180319&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2265&fm=98374190564237&tin=02508201610067®Number=0000000000189667&sum=80000 [18:03:20]OFD Sender: Processing packet 2265 [packets to send 1, broken 0] [18:03:20]ProducePacketName [18:03:20]name=ofd_packets/00002265 [18:03:20]OFD Sender: To server: pG, [18:03:20]CommunicateWithHost lk.salyk.kg:30040 [18:03:20]ConnectInit lk.salyk.kg [18:03:20]written 0, free lines is 4095 [18:03:20]Connected sock=10 [18:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D2 80 07 01 99 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 67 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 08 00 00 35 04 06 00 59 78 86 AF 03 8D D7 75 81 30 47 8A AA 8D [18:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 18 3B 47 00 1A F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 D9 08 00 00 F4 03 04 00 D3 84 A7 66 B6 04 01 00 00 31 AC 89 77 E4 56 A6 66 [18:03:20]CommunicateWithHost err = 0 [18:03:20]CheckOFDResponse [18:03:20]1017 (14) - 77093643461234 [18:03:20]1041 (16) - 0000000002094248 [18:03:20]1040 (4) - 2265 [18:03:20]1012 (4) - 29.07.2024 12:02 [18:03:20]1206 (1) - 0 [18:03:20]OFD Sender: Remove packet 2265 [18:03:20]ProducePacketName [18:03:20]name=ofd_packets/00002265 [18:03:20]NVStorageDeleteData [18:03:20]Write to MH i2c: 01 00 00 24 0D 31 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: 01 07 00 24 0D 00 00 00 00 00 EA 0C 2E [18:03:20]RasterBufferAndPrint [18:03:20]line [18:03:20]line [18:03:20]line [18:03:20]line [18:03:20]line [18:03:20]written 0, free lines is 3316 [18:03:20]MH_Cut [18:03:20]Write to MH i2c: D1 01 00 2B 0D 01 0A [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: D1 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: D1 01 00 [18:03:20]MH_I2C_Read... [18:03:20]Read from MH i2c: D1 01 00 2B 0D 00 09 [18:03:20]Write to MH i2c: 01 00 00 2C 0D 39 [18:03:20]Write i2c OK [18:03:20]MH_I2C_Read... [18:03:21]OFD Sender: No OFD packet to send [18:03:21]*** Cut start [18:03:21]*** Partial cut [18:03:21]*** CUTSNS_PIN = 1 [18:03:21]*** CUTSNS_PIN = 0 [18:03:21]*** Brake cut motor [18:03:22]Read from MH i2c: 01 [18:03:22]MH_I2C_Read... [18:03:22]*** Stop cut motor [18:03:22]*** Cut end [18:03:22]Read from MH i2c: 01 07 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: 01 07 00 2C 0D 00 00 00 00 00 FF 0F 4E [18:03:22]process_action close_receipt done [18:03:22]requested_data is exist [18:03:22]produce_requested_data [18:03:22]requested_item fm.sn is exist - process it [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 11 00 00 [18:03:22]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 17 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 04 [18:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:03:22]wFMCommunicate OK [18:03:22]requested_item fd.num is exist - process it [18:03:22]SAM_PROTO_GetFieldsCounters [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 13 00 00 [18:03:22]Write to MH i2c: E2 08 00 2E 0D 80 13 00 00 00 00 00 00 B7 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 62 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 62 00 2E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D9 08 00 00 0E 04 04 00 0F 00 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 27 [18:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 D9 08 00 00 0E 04 04 00 0F 00 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 [18:03:22]wFMCommunicate OK [18:03:22]SAM_PROTO_GetFieldsCounters done [18:03:22]requested_item shift.num is exist - process it [18:03:22]requested_item shift.opened is exist - process it [18:03:22]req_shift_opened [18:03:22]FM_GetShiftState [18:03:22]SAM_PROTO_GetShiftState [18:03:22]wFMCommunicate request_size=4 [18:03:22]MH_SAM_APDU [18:03:22]CAPDU: 80 13 01 00 [18:03:22]Write to MH i2c: E2 08 00 2F 0D 80 13 01 00 00 00 00 00 B9 [18:03:22]Write i2c OK [18:03:22]MH_I2C_Read... [18:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:22]Read from MH i2c: E2 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0E 00 [18:03:22]MH_I2C_Read... [18:03:22]Read from MH i2c: E2 0E 00 2F 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B2 [18:03:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:03:22]wFMCommunicate OK [18:03:22]SAM_PROTO_GetShiftState done [18:03:22]FM_GetShiftState done [18:03:22]req_shift_opened done [18:03:22]requested_item shift.open_date is exist - process it [18:03:22]req_shift_open_date [18:03:22]req_shift_open_date done [18:03:22]produce_requested_data done [18:03:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2265,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:03:22]process_action_free close_receipt [18:03:22]json_value_free [18:03:22]json_value_free done [18:03:22]process_json_proto returns [18:03:22]Send response to host [18:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2265,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:03:22]free response buf [18:03:22]execute_script done [18:03:22]execute_script returns [18:03:22]free content buf [18:03:22]Sock 8.Close socket [18:03:22]Sock 8.Thread stoped [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:52]accept exits with 9 [18:03:52]New connection [18:03:52]New thread 3067157860 created [18:03:52]Thread 3067014500 joined [18:03:52]Waiting for new connection... [18:03:52] Sock 9.Parse request [18:03:52]Sock 9.Check first char [18:03:52]Sock 9.First char is OK [18:03:52]request: POST /json_proto HTTP/1.0 [18:03:52]Method: POST [18:03:52]URL: /json_proto [18:03:52]Method is POST - this is cgi request [18:03:52]url: /json_proto [18:03:52]query_string will be loaded in cgi processing [18:03:52]execute_cgi json_proto POST (null) [18:03:52]execute_cgi path=json_proto method=POST [18:03:52]POST find Content-Length [18:03:52]Host: 172.17.45.132:8080 [18:03:52]Content-Length: 801 [18:03:52]Content-Type: application/json [18:03:52] [18:03:52]POST finish read [18:03:52]Found Content-Length = 801 [18:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.770, "sum" : 730.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 730.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:52]execute_script... [18:03:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.770, "sum" : 730.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 730.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:52]POST & json_proto [18:03:52]process_json_proto [18:03:52]json parsed OK: [18:03:52]protocol is kg_v1.0 [18:03:52]action value=close_receipt [18:03:52]process_action close_receipt [18:03:52]cmd_close_receipt [18:03:52]MH_GetDate [18:03:52]Write to MH i2c: F0 00 00 30 0D 2C [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: F0 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: F0 09 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: F0 09 00 30 0D 00 89 D9 A7 66 E3 0B 90 66 88 [18:03:52]GetLastDocTimeStamp 1722276199 [18:03:52]current date 1722276233 [18:03:52]FM_GetShiftState [18:03:52]SAM_PROTO_GetShiftState [18:03:52]wFMCommunicate request_size=4 [18:03:52]MH_SAM_APDU [18:03:52]CAPDU: 80 13 01 00 [18:03:52]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:52]Read from MH i2c: E2 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 0E 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B4 [18:03:52]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:03:52]wFMCommunicate OK [18:03:52]SAM_PROTO_GetShiftState done [18:03:52]FM_GetShiftState done [18:03:52]opened in 1722213119 [18:03:52]opened+sec_in_day 1722299519 [18:03:52]quantity*price = 73020 [18:03:52]sum+1 = 73022 [18:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 730.21 НСП 1% : 6.46 НДС 12% : 77.54 Наличными: 0.00 Безнал.: 730.21 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 115 29.07.2024 18:03 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2266 ФПД: 24489391105278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180353&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2266&fm=24489391105278&tin=02508201610067®Number=0000000000189667&sum=73021 [18:03:53]StoreToDocumentArchive [18:03:53]shift 15 fd 2266 [18:03:53]save to /storage/0015/doc_00002266 [18:03:53]save last doc name /storage/0015/doc_00002266 to /storage/kkm_last_doc_name [18:03:53]save OK [18:03:53]Clear old archive folders... [18:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:53]tlvbuf is 02005960 [18:03:53]SAM_PROTO_ClearQueue [18:03:53]wFMCommunicate request_size=4 [18:03:53]MH_SAM_APDU [18:03:53]CAPDU: 80 09 00 00 [18:03:53]Write to MH i2c: E2 08 00 3E 0D 80 09 00 00 00 00 00 00 BD [18:03:53]Write i2c OK [18:03:53]MH_I2C_Read... [18:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:53]Read from MH i2c: E2 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 03 00 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [18:03:53]RAPDU: 90 00 [18:03:53]wFMCommunicate OK [18:03:53]SAM_PROTO_ClearQueue done [18:03:53]KKMCreateOFDPacket [18:03:53]OFDProtocolAddRootSTLVToBuf [18:03:53]FM_MakeSignedData [18:03:53]FM_MakeSignedData [18:03:53]SAM_PROTO_SignData [18:03:53]wFMCommunicate request_size=4 [18:03:53]MH_SAM_APDU [18:03:53]CAPDU: 80 0D 01 02 [18:03:53]Write to MH i2c: E2 08 00 3F 0D 80 0D 01 02 00 00 00 00 C5 [18:03:53]Write i2c OK [18:03:53]MH_I2C_Read... [18:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:53]Read from MH i2c: E2 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 03 00 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [18:03:53]RAPDU: 90 00 [18:03:53]wFMCommunicate OK [18:03:53]wFMCommunicate request_size=255 [18:03:53]MH_SAM_APDU [18:03:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3D 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 08 00 00 35 04 06 00 16 [18:03:53]Write to MH i2c: E2 02 01 40 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3D 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 08 00 00 35 04 06 00 16 00 00 91 [18:03:53]Write i2c OK [18:03:53]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [18:03:54]RAPDU: 90 00 [18:03:54]wFMCommunicate OK [18:03:54]wFMCommunicate request_size=10 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 0D 02 02 05 45 E1 75 24 FE [18:03:54]Write to MH i2c: E2 0D 00 41 0D 80 0D 02 02 05 00 45 E1 75 24 FE 00 00 8F [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [18:03:54]RAPDU: 90 00 [18:03:54]wFMCommunicate OK [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 0D 03 02 [18:03:54]Write to MH i2c: E2 08 00 42 0D 80 0D 03 02 00 00 00 00 CA [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0B 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 0B 00 42 0D 00 7A 62 44 F6 77 F9 E9 47 90 00 81 [18:03:54]RAPDU: 7A 62 44 F6 77 F9 E9 47 90 00 [18:03:54]wFMCommunicate OK [18:03:54]SAM_PROTO_SignData done [18:03:54]FM_MakeSignedData done [18:03:54]CreateOFDProtocolMessage [18:03:54]wFMCommunicate request_size=4 [18:03:54]MH_SAM_APDU [18:03:54]CAPDU: 80 11 00 00 [18:03:54]Write to MH i2c: E2 08 00 43 0D 80 11 00 00 00 00 00 00 CA [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:54]Read from MH i2c: E2 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 17 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: E2 17 00 43 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1A [18:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:03:54]wFMCommunicate OK [18:03:54]CreateOFDProtocolMessage done [18:03:54]OFDSenderStorePacket 2266 [18:03:54]StoreOFDPacket docnum=2266 [18:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1A A0 07 01 A0 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3D 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 08 00 00 35 04 06 00 16 45 E1 75 24 FE 7A 62 44 F6 77 F9 E9 47 [18:03:54]CheckFolder [18:03:54]dirname=/storage/ofd_packets [18:03:54]CheckFolder done [18:03:54]ProducePacketName [18:03:54]name=ofd_packets/00002266 [18:03:54]NVStorageSaveData ofd_packets/00002266 [18:03:54]File name is /storage/ofd_packets/00002266 [18:03:54]Write 301 bytes [18:03:54]NVStorageSaveData done [18:03:54]OFDSenderStorePacket done [18:03:54]KKMCreateOFDPacket done [18:03:54]NVStorageSaveData kkm_last_timestamp [18:03:54]File name is /storage/kkm_last_timestamp [18:03:54]Write 4 bytes [18:03:54]NVStorageSaveData done [18:03:54]ExternCall_PrintAddStr [18:03:54]wPrintStart [18:03:54]Write to MH i2c: 01 00 00 44 0D 51 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 07 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 07 00 44 0D 00 00 00 00 00 FF 0F 66 [18:03:54]RasterBufferAndPrint [18:03:54]line Счет N : (1)610021 [18:03:54]line ИНН: 02508201610067 [18:03:54]line Контрольно-Кассовый Чек [18:03:54]line ПРОДАЖА [18:03:54]line ТРК (МРК, ГНК) : 42 [18:03:54]line Товар: 2710124130 [18:03:54]line Аи-92-К-2 [18:03:54]line 10.770 * 67.80 [18:03:54]line = 730.21 [18:03:54]line НДС 12% НСП 1% [18:03:54]line > о реализуемом товаре [18:03:54]line ИТОГО: 730.21 [18:03:54]line НСП 1% : 6.46 [18:03:54]line НДС 12% : 77.54 [18:03:54]line Наличными: 0.00 [18:03:54]line Безнал.: 730.21 [18:03:54]line Место: АЗС № 127 "Партнер Нефть" [18:03:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:03:54]line СНО: Общий режим [18:03:54]line Чек 115 29.07.2024 18:03 [18:03:54]line Смена: 15 ФФД: 1.0 [18:03:54]line ЗНМ: 0300000161 [18:03:54]line РНМ: 0000000000189667 [18:03:54]line Версия ККМ: v1.0 [18:03:54]line Платежная система: O! деньги [18:03:54]line ФМ: 0000000002094248 [18:03:54]line ФД: 2266 [18:03:54]line ФПД: 24489391105278 [18:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180353&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2266&fm=24489391105278&tin=02508201610067®Number=0000000000189667&sum=73021 [18:03:54]OFD Sender: Processing packet 2266 [packets to send 1, broken 0] [18:03:54]ProducePacketName [18:03:54]name=ofd_packets/00002266 [18:03:54]OFD Sender: To server: pG, [18:03:54]CommunicateWithHost lk.salyk.kg:30040 [18:03:54]ConnectInit lk.salyk.kg [18:03:54]written 0, free lines is 4095 [18:03:54]Connected sock=10 [18:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1A A0 07 01 A0 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3D 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DA 08 00 00 35 04 06 00 16 45 E1 75 24 FE 7A 62 44 F6 77 F9 E9 47 [18:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2E 6B 47 00 DD 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 32 30 39 34 32 34 38 10 04 04 00 DA 08 00 00 F4 03 04 00 F5 84 A7 66 B6 04 01 00 00 4F 16 36 AB 14 2B 18 20 [18:03:54]CommunicateWithHost err = 0 [18:03:54]CheckOFDResponse [18:03:54]1017 (14) - 77093643461234 [18:03:54]1041 (16) - 0000000002094248 [18:03:54]1040 (4) - 2266 [18:03:54]1012 (4) - 29.07.2024 12:03 [18:03:54]1206 (1) - 0 [18:03:54]OFD Sender: Remove packet 2266 [18:03:54]ProducePacketName [18:03:54]name=ofd_packets/00002266 [18:03:54]NVStorageDeleteData [18:03:54]Write to MH i2c: 01 00 00 6E 0D 7B [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 07 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: 01 07 00 6E 0D 00 00 00 00 00 01 0D 90 [18:03:54]RasterBufferAndPrint [18:03:54]line [18:03:54]line [18:03:54]line [18:03:54]line [18:03:54]line [18:03:54]written 0, free lines is 3335 [18:03:54]MH_Cut [18:03:54]Write to MH i2c: D1 01 00 75 0D 01 54 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: D1 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: D1 01 00 [18:03:54]MH_I2C_Read... [18:03:54]Read from MH i2c: D1 01 00 75 0D 00 53 [18:03:54]Write to MH i2c: 01 00 00 76 0D 83 [18:03:54]Write i2c OK [18:03:54]MH_I2C_Read... [18:03:55]OFD Sender: No OFD packet to send [18:03:55]*** Cut start [18:03:55]*** Partial cut [18:03:55]*** CUTSNS_PIN = 1 [18:03:55]*** CUTSNS_PIN = 0 [18:03:55]*** Brake cut motor [18:03:56]Read from MH i2c: 01 [18:03:56]MH_I2C_Read... [18:03:56]*** Stop cut motor [18:03:56]*** Cut end [18:03:56]Read from MH i2c: 01 07 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: 01 07 00 76 0D 00 00 00 00 00 FF 0F 98 [18:03:56]process_action close_receipt done [18:03:56]requested_data is exist [18:03:56]produce_requested_data [18:03:56]requested_item fm.sn is exist - process it [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 11 00 00 [18:03:56]Write to MH i2c: E2 08 00 77 0D 80 11 00 00 00 00 00 00 FE [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 17 00 77 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4E [18:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:03:56]wFMCommunicate OK [18:03:56]requested_item fd.num is exist - process it [18:03:56]SAM_PROTO_GetFieldsCounters [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 13 00 00 [18:03:56]Write to MH i2c: E2 08 00 78 0D 80 13 00 00 00 00 00 00 01 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 62 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 62 00 78 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DA 08 00 00 0E 04 04 00 0F 00 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 75 [18:03:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DA 08 00 00 0E 04 04 00 0F 00 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 [18:03:56]wFMCommunicate OK [18:03:56]SAM_PROTO_GetFieldsCounters done [18:03:56]requested_item shift.num is exist - process it [18:03:56]requested_item shift.opened is exist - process it [18:03:56]req_shift_opened [18:03:56]FM_GetShiftState [18:03:56]SAM_PROTO_GetShiftState [18:03:56]wFMCommunicate request_size=4 [18:03:56]MH_SAM_APDU [18:03:56]CAPDU: 80 13 01 00 [18:03:56]Write to MH i2c: E2 08 00 79 0D 80 13 01 00 00 00 00 00 03 [18:03:56]Write i2c OK [18:03:56]MH_I2C_Read... [18:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:56]Read from MH i2c: E2 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0E 00 [18:03:56]MH_I2C_Read... [18:03:56]Read from MH i2c: E2 0E 00 79 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FC [18:03:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:03:56]wFMCommunicate OK [18:03:56]SAM_PROTO_GetShiftState done [18:03:56]FM_GetShiftState done [18:03:56]req_shift_opened done [18:03:56]requested_item shift.open_date is exist - process it [18:03:56]req_shift_open_date [18:03:56]req_shift_open_date done [18:03:56]produce_requested_data done [18:03:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2266,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:03:56]process_action_free close_receipt [18:03:56]json_value_free [18:03:56]json_value_free done [18:03:56]process_json_proto returns [18:03:56]Send response to host [18:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2266,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:03:56]free response buf [18:03:56]execute_script done [18:03:56]execute_script returns [18:03:56]free content buf [18:03:56]Sock 9.Close socket [18:03:56]Sock 9.Thread stoped [18:04:00]OFD Sender: No OFD packet to send [18:04:01]accept exits with 8 [18:04:01]New connection [18:04:01]New thread 3067014500 created [18:04:01]Thread 3067157860 joined [18:04:01]Waiting for new connection... [18:04:01] Sock 8.Parse request [18:04:01]Sock 8.Check first char [18:04:01]Sock 8.First char is OK [18:04:01]request: POST /json_proto HTTP/1.0 [18:04:01]Method: POST [18:04:01]URL: /json_proto [18:04:01]Method is POST - this is cgi request [18:04:01]url: /json_proto [18:04:01]query_string will be loaded in cgi processing [18:04:01]execute_cgi json_proto POST (null) [18:04:01]execute_cgi path=json_proto method=POST [18:04:01]POST find Content-Length [18:04:01]Host: 172.17.45.132:8080 [18:04:01]Content-Length: 677 [18:04:01]Content-Type: application/json [18:04:01] [18:04:01]POST finish read [18:04:01]Found Content-Length = 677 [18:04:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:01]execute_script... [18:04:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:01]POST & json_proto [18:04:01]process_json_proto [18:04:01]json parsed OK: [18:04:01]protocol is kg_v1.0 [18:04:01]action value=close_receipt [18:04:01]process_action close_receipt [18:04:01]cmd_close_receipt [18:04:01]MH_GetDate [18:04:01]Write to MH i2c: F0 00 00 7A 0D 76 [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: F0 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: F0 09 00 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: F0 09 00 7A 0D 00 93 D9 A7 66 E3 0B 90 66 DC [18:04:01]GetLastDocTimeStamp 1722276233 [18:04:01]current date 1722276243 [18:04:01]FM_GetShiftState [18:04:01]SAM_PROTO_GetShiftState [18:04:01]wFMCommunicate request_size=4 [18:04:01]MH_SAM_APDU [18:04:01]CAPDU: 80 13 01 00 [18:04:01]Write to MH i2c: E2 08 00 7B 0D 80 13 01 00 00 00 00 00 05 [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:01]Read from MH i2c: E2 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: E2 0E 00 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: E2 0E 00 7B 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FE [18:04:01]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:04:01]wFMCommunicate OK [18:04:01]SAM_PROTO_GetShiftState done [18:04:01]FM_GetShiftState done [18:04:01]opened in 1722213119 [18:04:01]opened+sec_in_day 1722299519 [18:04:01]quantity*price = 20001 [18:04:01]sum+1 = 20002 [18:04:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 116 29.07.2024 18:04 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2267 ФПД: 178201275784879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180403&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2267&fm=178201275784879&tin=02508201610067®Number=0000000000189667&sum=20000 [18:04:03]StoreToDocumentArchive [18:04:03]shift 15 fd 2267 [18:04:03]save to /storage/0015/doc_00002267 [18:04:03]save last doc name /storage/0015/doc_00002267 to /storage/kkm_last_doc_name [18:04:03]save OK [18:04:03]Clear old archive folders... [18:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:03]tlvbuf is 02040630 [18:04:03]SAM_PROTO_ClearQueue [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 09 00 00 [18:04:03]Write to MH i2c: E2 08 00 88 0D 80 09 00 00 00 00 00 00 07 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [18:04:03]RAPDU: 90 00 [18:04:03]wFMCommunicate OK [18:04:03]SAM_PROTO_ClearQueue done [18:04:03]KKMCreateOFDPacket [18:04:03]OFDProtocolAddRootSTLVToBuf [18:04:03]FM_MakeSignedData [18:04:03]FM_MakeSignedData [18:04:03]SAM_PROTO_SignData [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 0D 01 02 [18:04:03]Write to MH i2c: E2 08 00 89 0D 80 0D 01 02 00 00 00 00 0F [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [18:04:03]RAPDU: 90 00 [18:04:03]wFMCommunicate OK [18:04:03]wFMCommunicate request_size=255 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DB 08 00 00 35 04 06 00 A2 [18:04:03]Write to MH i2c: E2 02 01 8A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DB 08 00 00 35 04 06 00 A2 00 00 17 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [18:04:03]RAPDU: 90 00 [18:04:03]wFMCommunicate OK [18:04:03]wFMCommunicate request_size=10 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 0D 02 02 05 12 B7 BD DE AF [18:04:03]Write to MH i2c: E2 0D 00 8B 0D 80 0D 02 02 05 00 12 B7 BD DE AF 00 00 2F [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [18:04:03]RAPDU: 90 00 [18:04:03]wFMCommunicate OK [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 0D 03 02 [18:04:03]Write to MH i2c: E2 08 00 8C 0D 80 0D 03 02 00 00 00 00 14 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0B 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0B 00 8C 0D 00 60 07 CE 9F 79 AC E5 AD 90 00 A0 [18:04:03]RAPDU: 60 07 CE 9F 79 AC E5 AD 90 00 [18:04:03]wFMCommunicate OK [18:04:03]SAM_PROTO_SignData done [18:04:03]FM_MakeSignedData done [18:04:03]CreateOFDProtocolMessage [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 11 00 00 [18:04:03]Write to MH i2c: E2 08 00 8D 0D 80 11 00 00 00 00 00 00 14 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 17 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 17 00 8D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 64 [18:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:04:03]wFMCommunicate OK [18:04:03]CreateOFDProtocolMessage done [18:04:03]OFDSenderStorePacket 2267 [18:04:03]StoreOFDPacket docnum=2267 [18:04:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B9 DD 07 01 E5 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DB 08 00 00 35 04 06 00 A2 12 B7 BD DE AF 60 07 CE 9F 79 AC E5 AD [18:04:03]CheckFolder [18:04:03]dirname=/storage/ofd_packets [18:04:03]CheckFolder done [18:04:03]ProducePacketName [18:04:03]name=ofd_packets/00002267 [18:04:03]NVStorageSaveData ofd_packets/00002267 [18:04:03]File name is /storage/ofd_packets/00002267 [18:04:03]Write 301 bytes [18:04:03]NVStorageSaveData done [18:04:03]OFDSenderStorePacket done [18:04:03]KKMCreateOFDPacket done [18:04:03]NVStorageSaveData kkm_last_timestamp [18:04:03]File name is /storage/kkm_last_timestamp [18:04:03]Write 4 bytes [18:04:03]NVStorageSaveData done [18:04:03]ExternCall_PrintAddStr [18:04:03]wPrintStart [18:04:03]Write to MH i2c: 01 00 00 8E 0D 9B [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 07 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 FF 0F B0 [18:04:03]RasterBufferAndPrint [18:04:03]line Счет N : (1)610023 [18:04:03]line ИНН: 02508201610067 [18:04:03]line Контрольно-Кассовый Чек [18:04:03]line ПРОДАЖА [18:04:03]line ТРК (МРК, ГНК) : 32 [18:04:03]line Товар: 2710124130 [18:04:03]line Аи-92-К-2 [18:04:03]line 2.950 * 67.80 [18:04:03]line = 200.01 [18:04:03]line НДС 12% НСП 1% [18:04:03]line > о реализуемом товаре [18:04:03]line ОКРУГЛЕНИЕ: -0.01 [18:04:03]line ИТОГО: 200.00 [18:04:03]line Внесено: 200.00 [18:04:03]line СДАЧА: 0.00 [18:04:03]line НСП 1% : 1.77 [18:04:03]line НДС 12% : 21.24 [18:04:03]line Наличными: 200.00 [18:04:03]line Безнал.: 0.00 [18:04:03]line Место: АЗС № 127 "Партнер Нефть" [18:04:03]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:04:03]line СНО: Общий режим [18:04:03]line Чек 116 29.07.2024 18:04 [18:04:03]line Смена: 15 ФФД: 1.0 [18:04:03]line ЗНМ: 0300000161 [18:04:03]line РНМ: 0000000000189667 [18:04:03]line Версия ККМ: v1.0 [18:04:03]line ФМ: 0000000002094248 [18:04:03]line ФД: 2267 [18:04:03]line ФПД: 178201275784879 [18:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180403&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2267&fm=178201275784879&tin=02508201610067®Number=0000000000189667&sum=20000 [18:04:03]written 0, free lines is 4095 [18:04:03]OFD Sender: Processing packet 2267 [packets to send 1, broken 0] [18:04:03]ProducePacketName [18:04:03]name=ofd_packets/00002267 [18:04:03]OFD Sender: To server: pG, [18:04:03]CommunicateWithHost lk.salyk.kg:30040 [18:04:03]ConnectInit lk.salyk.kg [18:04:03]Connected sock=10 [18:04:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B9 DD 07 01 E5 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DB 08 00 00 35 04 06 00 A2 12 B7 BD DE AF 60 07 CE 9F 79 AC E5 AD [18:04:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CA D6 47 00 A7 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 32 30 39 34 32 34 38 10 04 04 00 DB 08 00 00 F4 03 04 00 FE 84 A7 66 B6 04 01 00 00 34 84 10 8C 79 47 3C 0D [18:04:04]CommunicateWithHost err = 0 [18:04:04]CheckOFDResponse [18:04:04]1017 (14) - 77093643461234 [18:04:04]1041 (16) - 0000000002094248 [18:04:04]1040 (4) - 2267 [18:04:04]1012 (4) - 29.07.2024 12:03 [18:04:04]1206 (1) - 0 [18:04:04]OFD Sender: Remove packet 2267 [18:04:04]ProducePacketName [18:04:04]name=ofd_packets/00002267 [18:04:04]NVStorageDeleteData [18:04:04]Write to MH i2c: 01 00 00 B9 0D C6 [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 B9 0D 00 00 00 00 00 F0 0C C9 [18:04:04]RasterBufferAndPrint [18:04:04]line [18:04:04]line [18:04:04]line [18:04:04]line [18:04:04]line [18:04:04]written 0, free lines is 3321 [18:04:04]MH_Cut [18:04:04]Write to MH i2c: D1 01 00 C0 0D 01 9F [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D1 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D1 01 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D1 01 00 C0 0D 00 9E [18:04:04]Write to MH i2c: 01 00 00 C1 0D CE [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]OFD Sender: No OFD packet to send [18:04:04]*** Cut start [18:04:04]*** Partial cut [18:04:04]*** CUTSNS_PIN = 1 [18:04:04]*** CUTSNS_PIN = 0 [18:04:05]*** Brake cut motor [18:04:05]Read from MH i2c: 01 [18:04:05]MH_I2C_Read... [18:04:05]*** Stop cut motor [18:04:05]*** Cut end [18:04:05]Read from MH i2c: 01 07 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: 01 07 00 C1 0D 00 00 00 00 00 FF 0F E3 [18:04:05]process_action close_receipt done [18:04:05]requested_data is exist [18:04:05]produce_requested_data [18:04:05]requested_item fm.sn is exist - process it [18:04:05]wFMCommunicate request_size=4 [18:04:05]MH_SAM_APDU [18:04:05]CAPDU: 80 11 00 00 [18:04:05]Write to MH i2c: E2 08 00 C2 0D 80 11 00 00 00 00 00 00 49 [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:05]Read from MH i2c: E2 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 17 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 17 00 C2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 99 [18:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:04:05]wFMCommunicate OK [18:04:05]requested_item fd.num is exist - process it [18:04:05]SAM_PROTO_GetFieldsCounters [18:04:05]wFMCommunicate request_size=4 [18:04:05]MH_SAM_APDU [18:04:05]CAPDU: 80 13 00 00 [18:04:05]Write to MH i2c: E2 08 00 C3 0D 80 13 00 00 00 00 00 00 4C [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:05]Read from MH i2c: E2 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 62 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 62 00 C3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DB 08 00 00 0E 04 04 00 0F 00 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 C4 [18:04:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DB 08 00 00 0E 04 04 00 0F 00 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 [18:04:05]wFMCommunicate OK [18:04:05]SAM_PROTO_GetFieldsCounters done [18:04:05]requested_item shift.num is exist - process it [18:04:05]requested_item shift.opened is exist - process it [18:04:05]req_shift_opened [18:04:05]FM_GetShiftState [18:04:05]SAM_PROTO_GetShiftState [18:04:05]wFMCommunicate request_size=4 [18:04:05]MH_SAM_APDU [18:04:05]CAPDU: 80 13 01 00 [18:04:05]Write to MH i2c: E2 08 00 C4 0D 80 13 01 00 00 00 00 00 4E [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:05]Read from MH i2c: E2 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 0E 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 0E 00 C4 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 47 [18:04:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:04:05]wFMCommunicate OK [18:04:05]SAM_PROTO_GetShiftState done [18:04:05]FM_GetShiftState done [18:04:05]req_shift_opened done [18:04:05]requested_item shift.open_date is exist - process it [18:04:05]req_shift_open_date [18:04:05]req_shift_open_date done [18:04:05]produce_requested_data done [18:04:05]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2267,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:04:05]process_action_free close_receipt [18:04:05]json_value_free [18:04:05]json_value_free done [18:04:05]process_json_proto returns [18:04:05]Send response to host [18:04:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2267,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:04:05]free response buf [18:04:05]execute_script done [18:04:05]execute_script returns [18:04:05]free content buf [18:04:05]Sock 8.Close socket [18:04:05]Sock 8.Thread stoped [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:21]accept exits with 9 [18:04:21]New connection [18:04:21]New thread 3067157860 created [18:04:21]Thread 3067014500 joined [18:04:21]Waiting for new connection... [18:04:21] Sock 9.Parse request [18:04:21]Sock 9.Check first char [18:04:21]Sock 9.First char is OK [18:04:21]request: POST /json_proto HTTP/1.0 [18:04:21]Method: POST [18:04:21]URL: /json_proto [18:04:21]Method is POST - this is cgi request [18:04:21]url: /json_proto [18:04:21]query_string will be loaded in cgi processing [18:04:21]execute_cgi json_proto POST (null) [18:04:21]execute_cgi path=json_proto method=POST [18:04:21]POST find Content-Length [18:04:21]Host: 172.17.45.132:8080 [18:04:21]Content-Length: 677 [18:04:21]Content-Type: application/json [18:04:21] [18:04:21]POST finish read [18:04:21]Found Content-Length = 677 [18:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:21]execute_script... [18:04: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)610024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:21]POST & json_proto [18:04:21]process_json_proto [18:04:21]json parsed OK: [18:04:21]protocol is kg_v1.0 [18:04:21]action value=close_receipt [18:04:21]process_action close_receipt [18:04:21]cmd_close_receipt [18:04:21]MH_GetDate [18:04:21]Write to MH i2c: F0 00 00 C5 0D C1 [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: F0 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: F0 09 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: F0 09 00 C5 0D 00 A6 D9 A7 66 E3 0B 90 66 3A [18:04:21]GetLastDocTimeStamp 1722276243 [18:04:21]current date 1722276262 [18:04:21]FM_GetShiftState [18:04:21]SAM_PROTO_GetShiftState [18:04:21]wFMCommunicate request_size=4 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 13 01 00 [18:04:21]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0E 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 49 [18:04:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:04:21]wFMCommunicate OK [18:04:21]SAM_PROTO_GetShiftState done [18:04:21]FM_GetShiftState done [18:04:21]opened in 1722213119 [18:04:21]opened+sec_in_day 1722299519 [18:04:21]quantity*price = 50036 [18:04:21]sum+1 = 50037 [18:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 117 29.07.2024 18:04 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2268 ФПД: 126010760592648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180422&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2268&fm=126010760592648&tin=02508201610067®Number=0000000000189667&sum=50000 [18:04:22]StoreToDocumentArchive [18:04:22]shift 15 fd 2268 [18:04:22]save to /storage/0015/doc_00002268 [18:04:22]save last doc name /storage/0015/doc_00002268 to /storage/kkm_last_doc_name [18:04:22]save OK [18:04:22]Clear old archive folders... [18:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:22]tlvbuf is 01F543E0 [18:04:22]SAM_PROTO_ClearQueue [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 09 00 00 [18:04:22]Write to MH i2c: E2 08 00 D3 0D 80 09 00 00 00 00 00 00 52 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [18:04:22]RAPDU: 90 00 [18:04:22]wFMCommunicate OK [18:04:22]SAM_PROTO_ClearQueue done [18:04:22]KKMCreateOFDPacket [18:04:22]OFDProtocolAddRootSTLVToBuf [18:04:22]FM_MakeSignedData [18:04:22]FM_MakeSignedData [18:04:22]SAM_PROTO_SignData [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 0D 01 02 [18:04:22]Write to MH i2c: E2 08 00 D4 0D 80 0D 01 02 00 00 00 00 5A [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [18:04:22]RAPDU: 90 00 [18:04:22]wFMCommunicate OK [18:04:22]wFMCommunicate request_size=255 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A6 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 08 00 00 35 04 06 00 72 [18:04:22]Write to MH i2c: E2 02 01 D5 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A6 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 08 00 00 35 04 06 00 72 00 00 45 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [18:04:22]RAPDU: 90 00 [18:04:22]wFMCommunicate OK [18:04:22]wFMCommunicate request_size=10 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 0D 02 02 05 9B 2A 9F 7D 08 [18:04:22]Write to MH i2c: E2 0D 00 D6 0D 80 0D 02 02 05 00 9B 2A 9F 7D 08 00 00 50 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [18:04:22]RAPDU: 90 00 [18:04:22]wFMCommunicate OK [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 0D 03 02 [18:04:22]Write to MH i2c: E2 08 00 D7 0D 80 0D 03 02 00 00 00 00 5F [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 0B 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 0B 00 D7 0D 00 77 0E C5 A6 29 E9 27 BF 90 00 48 [18:04:22]RAPDU: 77 0E C5 A6 29 E9 27 BF 90 00 [18:04:22]wFMCommunicate OK [18:04:22]SAM_PROTO_SignData done [18:04:22]FM_MakeSignedData done [18:04:22]CreateOFDProtocolMessage [18:04:22]wFMCommunicate request_size=4 [18:04:22]MH_SAM_APDU [18:04:22]CAPDU: 80 11 00 00 [18:04:22]Write to MH i2c: E2 08 00 D8 0D 80 11 00 00 00 00 00 00 5F [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:22]Read from MH i2c: E2 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 17 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: E2 17 00 D8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AF [18:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:04:22]wFMCommunicate OK [18:04:22]CreateOFDProtocolMessage done [18:04:22]OFDSenderStorePacket 2268 [18:04:22]StoreOFDPacket docnum=2268 [18:04:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 9B 2E 07 01 09 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A6 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 08 00 00 35 04 06 00 72 9B 2A 9F 7D 08 77 0E C5 A6 29 E9 27 BF [18:04:22]CheckFolder [18:04:22]dirname=/storage/ofd_packets [18:04:22]CheckFolder done [18:04:22]ProducePacketName [18:04:22]name=ofd_packets/00002268 [18:04:22]NVStorageSaveData ofd_packets/00002268 [18:04:22]File name is /storage/ofd_packets/00002268 [18:04:22]Write 301 bytes [18:04:22]NVStorageSaveData done [18:04:22]OFDSenderStorePacket done [18:04:22]KKMCreateOFDPacket done [18:04:22]NVStorageSaveData kkm_last_timestamp [18:04:22]File name is /storage/kkm_last_timestamp [18:04:22]Write 4 bytes [18:04:22]NVStorageSaveData done [18:04:22]ExternCall_PrintAddStr [18:04:22]wPrintStart [18:04:22]Write to MH i2c: 01 00 00 D9 0D E6 [18:04:22]OFD Sender: Processing packet 2268 [packets to send 1, broken 0] [18:04:22]ProducePacketName [18:04:22]name=ofd_packets/00002268 [18:04:22]OFD Sender: To server: pG, [18:04:22]CommunicateWithHost lk.salyk.kg:30040 [18:04:22]ConnectInit lk.salyk.kg [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: 01 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: 01 07 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 FF 0F FB [18:04:22]RasterBufferAndPrint [18:04:22]line Счет N : (1)610024 [18:04:22]line ИНН: 02508201610067 [18:04:22]line Контрольно-Кассовый Чек [18:04:22]line ПРОДАЖА [18:04:22]line ТРК (МРК, ГНК) : 52 [18:04:22]line Товар: 2710124130 [18:04:22]line Аи-92-К-2 [18:04:22]line 7.380 * 67.80 [18:04:22]line = 500.36 [18:04:22]line НДС 12% НСП 1% [18:04:22]line > о реализуемом товаре [18:04:22]line ОКРУГЛЕНИЕ: -0.36 [18:04:22]line ИТОГО: 500.00 [18:04:22]line Внесено: 500.00 [18:04:22]line СДАЧА: 0.00 [18:04:22]line НСП 1% : 4.43 [18:04:22]line НДС 12% : 53.14 [18:04:22]line Наличными: 500.00 [18:04:22]line Безнал.: 0.00 [18:04:22]line Место: АЗС № 127 "Партнер Нефть" [18:04:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:04:22]line СНО: Общий режим [18:04:22]line Чек 117 29.07.2024 18:04 [18:04:22]line Смена: 15 ФФД: 1.0 [18:04:22]line ЗНМ: 0300000161 [18:04:22]line РНМ: 0000000000189667 [18:04:22]line Версия ККМ: v1.0 [18:04:22]line ФМ: 0000000002094248 [18:04:22]line ФД: 2268 [18:04:22]line ФПД: 126010760592648 [18:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180422&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2268&fm=126010760592648&tin=02508201610067®Number=0000000000189667&sum=50000 [18:04:23]Connected sock=10 [18:04:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 9B 2E 07 01 09 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A6 D9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 08 00 00 35 04 06 00 72 9B 2A 9F 7D 08 77 0E C5 A6 29 E9 27 BF [18:04:23]written 0, free lines is 4095 [18:04:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 46 0F 47 00 8C 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DC 08 00 00 F4 03 04 00 12 85 A7 66 B6 04 01 00 00 2E 5E 15 0B 59 48 4C 9B [18:04:23]CommunicateWithHost err = 0 [18:04:23]CheckOFDResponse [18:04:23]1017 (14) - 77093643461234 [18:04:23]1041 (16) - 0000000002094248 [18:04:23]1040 (4) - 2268 [18:04:23]1012 (4) - 29.07.2024 12:03 [18:04:23]1206 (1) - 0 [18:04:23]OFD Sender: Remove packet 2268 [18:04:23]ProducePacketName [18:04:23]name=ofd_packets/00002268 [18:04:23]NVStorageDeleteData [18:04:23]Write to MH i2c: 01 00 00 04 0E 12 [18:04:23]Write i2c OK [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: 01 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: 01 07 00 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: 01 07 00 04 0E 00 00 00 00 00 E9 0C 0E [18:04:23]RasterBufferAndPrint [18:04:23]line [18:04:23]line [18:04:23]line [18:04:23]line [18:04:23]line [18:04:23]written 0, free lines is 3311 [18:04:23]MH_Cut [18:04:23]Write to MH i2c: D1 01 00 0B 0E 01 EB [18:04:23]Write i2c OK [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: D1 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: D1 01 00 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: D1 01 00 0B 0E 00 EA [18:04:23]Write to MH i2c: 01 00 00 0C 0E 1A [18:04:23]Write i2c OK [18:04:23]MH_I2C_Read... [18:04:23]OFD Sender: No OFD packet to send [18:04:24]*** Cut start [18:04:24]*** Partial cut [18:04:24]*** CUTSNS_PIN = 1 [18:04:24]*** CUTSNS_PIN = 0 [18:04:24]*** Brake cut motor [18:04:25]Read from MH i2c: 01 [18:04:25]MH_I2C_Read... [18:04:25]*** Stop cut motor [18:04:25]Read from MH i2c: 01 07 00 [18:04:25]MH_I2C_Read... [18:04:25]*** Cut end [18:04:25]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 FF 0F 2F [18:04:25]process_action close_receipt done [18:04:25]requested_data is exist [18:04:25]produce_requested_data [18:04:25]requested_item fm.sn is exist - process it [18:04:25]wFMCommunicate request_size=4 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 11 00 00 [18:04:25]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 17 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 17 00 0D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E5 [18:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:04:25]wFMCommunicate OK [18:04:25]requested_item fd.num is exist - process it [18:04:25]SAM_PROTO_GetFieldsCounters [18:04:25]wFMCommunicate request_size=4 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 13 00 00 [18:04:25]Write to MH i2c: E2 08 00 0E 0E 80 13 00 00 00 00 00 00 98 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 62 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 62 00 0E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DC 08 00 00 0E 04 04 00 0F 00 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 14 [18:04:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DC 08 00 00 0E 04 04 00 0F 00 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 [18:04:25]wFMCommunicate OK [18:04:25]SAM_PROTO_GetFieldsCounters done [18:04:25]requested_item shift.num is exist - process it [18:04:25]requested_item shift.opened is exist - process it [18:04:25]req_shift_opened [18:04:25]FM_GetShiftState [18:04:25]SAM_PROTO_GetShiftState [18:04:25]wFMCommunicate request_size=4 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 13 01 00 [18:04:25]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 0E 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 93 [18:04:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:04:25]wFMCommunicate OK [18:04:25]SAM_PROTO_GetShiftState done [18:04:25]FM_GetShiftState done [18:04:25]req_shift_opened done [18:04:25]requested_item shift.open_date is exist - process it [18:04:25]req_shift_open_date [18:04:25]req_shift_open_date done [18:04:25]produce_requested_data done [18:04:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2268,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:04:25]process_action_free close_receipt [18:04:25]json_value_free [18:04:25]json_value_free done [18:04:25]process_json_proto returns [18:04:25]Send response to host [18:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2268,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:04:25]free response buf [18:04:25]execute_script done [18:04:25]execute_script returns [18:04:25]free content buf [18:04:25]Sock 9.Close socket [18:04:25]Sock 9.Thread stoped [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:05]accept exits with 8 [18:07:05]New connection [18:07:05]New thread 3067014500 created [18:07:05]Thread 3067157860 joined [18:07:05]Waiting for new connection... [18:07:05] Sock 8.Parse request [18:07:05]Sock 8.Check first char [18:07:05]Sock 8.First char is OK [18:07:05]request: POST /json_proto HTTP/1.0 [18:07:05]Method: POST [18:07:05]URL: /json_proto [18:07:05]Method is POST - this is cgi request [18:07:05]url: /json_proto [18:07:05]query_string will be loaded in cgi processing [18:07:05]execute_cgi json_proto POST (null) [18:07:05]execute_cgi path=json_proto method=POST [18:07:05]POST find Content-Length [18:07:05]Host: 172.17.45.132:8080 [18:07:05]Content-Length: 682 [18:07:05]Content-Type: application/json [18:07:05] [18:07:05]POST finish read [18:07:05]Found Content-Length = 682 [18:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:05]execute_script... [18:07:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:05]POST & json_proto [18:07:05]process_json_proto [18:07:05]json parsed OK: [18:07:05]protocol is kg_v1.0 [18:07:05]action value=close_receipt [18:07:05]process_action close_receipt [18:07:05]cmd_close_receipt [18:07:05]MH_GetDate [18:07:05]Write to MH i2c: F0 00 00 10 0E 0D [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: F0 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: F0 09 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: F0 09 00 10 0E 00 4A DA A7 66 E3 0B 90 66 2B [18:07:05]GetLastDocTimeStamp 1722276262 [18:07:05]current date 1722276426 [18:07:05]FM_GetShiftState [18:07:05]SAM_PROTO_GetShiftState [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 13 01 00 [18:07:05]Write to MH i2c: E2 08 00 11 0E 80 13 01 00 00 00 00 00 9C [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0E 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0E 00 11 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 95 [18:07:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_GetShiftState done [18:07:05]FM_GetShiftState done [18:07:05]opened in 1722213119 [18:07:05]opened+sec_in_day 1722299519 [18:07:05]quantity*price = 100005 [18:07:05]sum+1 = 100006 [18:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 118 29.07.2024 18:07 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2269 ФПД: 104566430040923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180707&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2269&fm=104566430040923&tin=02508201610067®Number=0000000000189667&sum=100000 [18:07:06]StoreToDocumentArchive [18:07:06]shift 15 fd 2269 [18:07:06]save to /storage/0015/doc_00002269 [18:07:06]save last doc name /storage/0015/doc_00002269 to /storage/kkm_last_doc_name [18:07:06]save OK [18:07:06]Clear old archive folders... [18:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:06]tlvbuf is 01F541A0 [18:07:06]SAM_PROTO_ClearQueue [18:07:06]wFMCommunicate request_size=4 [18:07:06]MH_SAM_APDU [18:07:06]CAPDU: 80 09 00 00 [18:07:06]Write to MH i2c: E2 08 00 1E 0E 80 09 00 00 00 00 00 00 9E [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:06]Read from MH i2c: E2 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: E2 03 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [18:07:06]RAPDU: 90 00 [18:07:06]wFMCommunicate OK [18:07:06]SAM_PROTO_ClearQueue done [18:07:06]KKMCreateOFDPacket [18:07:06]OFDProtocolAddRootSTLVToBuf [18:07:06]FM_MakeSignedData [18:07:06]FM_MakeSignedData [18:07:06]SAM_PROTO_SignData [18:07:06]wFMCommunicate request_size=4 [18:07:06]MH_SAM_APDU [18:07:06]CAPDU: 80 0D 01 02 [18:07:06]Write to MH i2c: E2 08 00 1F 0E 80 0D 01 02 00 00 00 00 A6 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:06]Read from MH i2c: E2 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: E2 03 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [18:07:06]RAPDU: 90 00 [18:07:06]wFMCommunicate OK [18:07:06]wFMCommunicate request_size=255 [18:07:06]MH_SAM_APDU [18:07:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4B DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 08 00 00 35 04 06 00 5F [18:07:06]Write to MH i2c: E2 02 01 20 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4B DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 08 00 00 35 04 06 00 5F 00 00 B5 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 03 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [18:07:07]RAPDU: 90 00 [18:07:07]wFMCommunicate OK [18:07:07]wFMCommunicate request_size=10 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 0D 02 02 05 1A 44 EB 03 5B [18:07:07]Write to MH i2c: E2 0D 00 21 0E 80 0D 02 02 05 00 1A 44 EB 03 5B 00 00 5A [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 03 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [18:07:07]RAPDU: 90 00 [18:07:07]wFMCommunicate OK [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 0D 03 02 [18:07:07]Write to MH i2c: E2 08 00 22 0E 80 0D 03 02 00 00 00 00 AB [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0B 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0B 00 22 0E 00 FD 19 FE F7 6F 40 32 33 90 00 CB [18:07:07]RAPDU: FD 19 FE F7 6F 40 32 33 90 00 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_SignData done [18:07:07]FM_MakeSignedData done [18:07:07]CreateOFDProtocolMessage [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 11 00 00 [18:07:07]Write to MH i2c: E2 08 00 23 0E 80 11 00 00 00 00 00 00 AB [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 23 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FB [18:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:07:07]wFMCommunicate OK [18:07:07]CreateOFDProtocolMessage done [18:07:07]OFDSenderStorePacket 2269 [18:07:07]StoreOFDPacket docnum=2269 [18:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 98 24 07 01 1D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4B DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 08 00 00 35 04 06 00 5F 1A 44 EB 03 5B FD 19 FE F7 6F 40 32 33 [18:07:07]CheckFolder [18:07:07]dirname=/storage/ofd_packets [18:07:07]CheckFolder done [18:07:07]ProducePacketName [18:07:07]name=ofd_packets/00002269 [18:07:07]NVStorageSaveData ofd_packets/00002269 [18:07:07]File name is /storage/ofd_packets/00002269 [18:07:07]Write 301 bytes [18:07:07]NVStorageSaveData done [18:07:07]OFDSenderStorePacket done [18:07:07]KKMCreateOFDPacket done [18:07:07]NVStorageSaveData kkm_last_timestamp [18:07:07]File name is /storage/kkm_last_timestamp [18:07:07]Write 4 bytes [18:07:07]NVStorageSaveData done [18:07:07]ExternCall_PrintAddStr [18:07:07]wPrintStart [18:07:07]Write to MH i2c: 01 00 00 24 0E 32 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: 01 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: 01 07 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: 01 07 00 24 0E 00 00 00 00 00 FF 0F 47 [18:07:07]RasterBufferAndPrint [18:07:07]line Счет N : (1)610025 [18:07:07]line ИНН: 02508201610067 [18:07:07]line Контрольно-Кассовый Чек [18:07:07]line ПРОДАЖА [18:07:07]line ТРК (МРК, ГНК) : 42 [18:07:07]line Товар: 2710124130 [18:07:07]line Аи-92-К-2 [18:07:07]line 14.750 * 67.80 [18:07:07]line = 1000.05 [18:07:07]line НДС 12% НСП 1% [18:07:07]line > о реализуемом товаре [18:07:07]line ОКРУГЛЕНИЕ: -0.05 [18:07:07]line ИТОГО: 1000.00 [18:07:07]line Внесено: 1000.00 [18:07:07]line СДАЧА: 0.00 [18:07:07]line НСП 1% : 8.85 [18:07:07]line НДС 12% : 106.20 [18:07:07]line Наличными: 1000.00 [18:07:07]line Безнал.: 0.00 [18:07:07]line Место: АЗС № 127 "Партнер Нефть" [18:07:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:07:07]line СНО: Общий режим [18:07:07]line Чек 118 29.07.2024 18:07 [18:07:07]line Смена: 15 ФФД: 1.0 [18:07:07]line ЗНМ: 0300000161 [18:07:07]line РНМ: 0000000000189667 [18:07:07]line Версия ККМ: v1.0 [18:07:07]line ФМ: 0000000002094248 [18:07:07]line ФД: 2269 [18:07:07]line ФПД: 104566430040923 [18:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180707&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2269&fm=104566430040923&tin=02508201610067®Number=0000000000189667&sum=100000 [18:07:07]OFD Sender: Processing packet 2269 [packets to send 1, broken 0] [18:07:07]ProducePacketName [18:07:07]name=ofd_packets/00002269 [18:07:07]OFD Sender: To server: pG, [18:07:07]CommunicateWithHost lk.salyk.kg:30040 [18:07:07]ConnectInit lk.salyk.kg [18:07:07]written 0, free lines is 4095 [18:07:07]Connected sock=10 [18:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 98 24 07 01 1D DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4B DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 08 00 00 35 04 06 00 5F 1A 44 EB 03 5B FD 19 FE F7 6F 40 32 33 [18:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 65 4C 47 00 E5 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DD 08 00 00 F4 03 04 00 B6 85 A7 66 B6 04 01 00 00 5F 1A 2E 6F 1F 78 76 31 [18:07:08]CommunicateWithHost err = 0 [18:07:08]CheckOFDResponse [18:07:08]1017 (14) - 77093643461234 [18:07:08]1041 (16) - 0000000002094248 [18:07:08]1040 (4) - 2269 [18:07:08]1012 (4) - 29.07.2024 12:06 [18:07:08]1206 (1) - 0 [18:07:08]OFD Sender: Remove packet 2269 [18:07:08]ProducePacketName [18:07:08]name=ofd_packets/00002269 [18:07:08]NVStorageDeleteData [18:07:08]Write to MH i2c: 01 00 00 4F 0E 5D [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: 01 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: 01 07 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 EF 0C 5F [18:07:08]RasterBufferAndPrint [18:07:08]line [18:07:08]line [18:07:08]line [18:07:08]line [18:07:08]line [18:07:08]written 0, free lines is 3317 [18:07:08]MH_Cut [18:07:08]Write to MH i2c: D1 01 00 56 0E 01 36 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: D1 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: D1 01 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: D1 01 00 56 0E 00 35 [18:07:08]Write to MH i2c: 01 00 00 57 0E 65 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]OFD Sender: No OFD packet to send [18:07:08]*** Cut start [18:07:08]*** Partial cut [18:07:08]*** CUTSNS_PIN = 1 [18:07:08]*** CUTSNS_PIN = 0 [18:07:09]*** Brake cut motor [18:07:09]Read from MH i2c: 01 [18:07:09]MH_I2C_Read... [18:07:09]*** Stop cut motor [18:07:09]*** Cut end [18:07:09]Read from MH i2c: 01 07 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [18:07:09]process_action close_receipt done [18:07:09]requested_data is exist [18:07:09]produce_requested_data [18:07:09]requested_item fm.sn is exist - process it [18:07:09]wFMCommunicate request_size=4 [18:07:09]MH_SAM_APDU [18:07:09]CAPDU: 80 11 00 00 [18:07:09]Write to MH i2c: E2 08 00 58 0E 80 11 00 00 00 00 00 00 E0 [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:09]Read from MH i2c: E2 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 17 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 17 00 58 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 30 [18:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:07:09]wFMCommunicate OK [18:07:09]requested_item fd.num is exist - process it [18:07:09]SAM_PROTO_GetFieldsCounters [18:07:09]wFMCommunicate request_size=4 [18:07:09]MH_SAM_APDU [18:07:09]CAPDU: 80 13 00 00 [18:07:09]Write to MH i2c: E2 08 00 59 0E 80 13 00 00 00 00 00 00 E3 [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:09]Read from MH i2c: E2 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 62 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 62 00 59 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DD 08 00 00 0E 04 04 00 0F 00 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 63 [18:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DD 08 00 00 0E 04 04 00 0F 00 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 [18:07:09]wFMCommunicate OK [18:07:09]SAM_PROTO_GetFieldsCounters done [18:07:09]requested_item shift.num is exist - process it [18:07:09]requested_item shift.opened is exist - process it [18:07:09]req_shift_opened [18:07:09]FM_GetShiftState [18:07:09]SAM_PROTO_GetShiftState [18:07:09]wFMCommunicate request_size=4 [18:07:09]MH_SAM_APDU [18:07:09]CAPDU: 80 13 01 00 [18:07:09]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:09]Read from MH i2c: E2 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 0E 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DE [18:07:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:07:09]wFMCommunicate OK [18:07:09]SAM_PROTO_GetShiftState done [18:07:09]FM_GetShiftState done [18:07:09]req_shift_opened done [18:07:09]requested_item shift.open_date is exist - process it [18:07:09]req_shift_open_date [18:07:09]req_shift_open_date done [18:07:09]produce_requested_data done [18:07:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2269,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:07:09]process_action_free close_receipt [18:07:09]json_value_free [18:07:09]json_value_free done [18:07:09]process_json_proto returns [18:07:09]Send response to host [18:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2269,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:07:09]free response buf [18:07:09]execute_script done [18:07:09]execute_script returns [18:07:09]free content buf [18:07:09]Sock 8.Close socket [18:07:09]Sock 8.Thread stoped [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:12]accept exits with 9 [18:08:12]New connection [18:08:12]New thread 3067157860 created [18:08:12]Thread 3067014500 joined [18:08:12]Waiting for new connection... [18:08:12] Sock 9.Parse request [18:08:12]Sock 9.Check first char [18:08:12]Sock 9.First char is OK [18:08:12]request: POST /json_proto HTTP/1.0 [18:08:12]Method: POST [18:08:12]URL: /json_proto [18:08:12]Method is POST - this is cgi request [18:08:12]url: /json_proto [18:08:12]query_string will be loaded in cgi processing [18:08:12]execute_cgi json_proto POST (null) [18:08:12]execute_cgi path=json_proto method=POST [18:08:12]POST find Content-Length [18:08:12]Host: 172.17.45.132:8080 [18:08:12]Content-Length: 948 [18:08:12]Content-Type: application/json [18:08:12] [18:08:12]POST finish read [18:08:12]Found Content-Length = 948 [18:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126536", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\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" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:12]execute_script... [18:08: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)126536", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\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" : 217.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:12]POST & json_proto [18:08:12]process_json_proto [18:08:12]json parsed OK: [18:08:12]protocol is kg_v1.0 [18:08:12]action value=close_receipt [18:08:12]process_action close_receipt [18:08:12]cmd_close_receipt [18:08:12]MH_GetDate [18:08:12]Write to MH i2c: F0 00 00 5B 0E 58 [18:08:12]Write i2c OK [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: F0 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: F0 09 00 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: F0 09 00 5B 0E 00 8D DA A7 66 E3 0B 90 66 B9 [18:08:12]GetLastDocTimeStamp 1722276427 [18:08:12]current date 1722276493 [18:08:12]FM_GetShiftState [18:08:12]SAM_PROTO_GetShiftState [18:08:12]wFMCommunicate request_size=4 [18:08:12]MH_SAM_APDU [18:08:12]CAPDU: 80 13 01 00 [18:08:12]Write to MH i2c: E2 08 00 5C 0E 80 13 01 00 00 00 00 00 E7 [18:08:12]Write i2c OK [18:08:12]MH_I2C_Read... [18:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:12]Read from MH i2c: E2 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 0E 00 [18:08:12]MH_I2C_Read... [18:08:12]Read from MH i2c: E2 0E 00 5C 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E0 [18:08:12]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:08:12]wFMCommunicate OK [18:08:12]SAM_PROTO_GetShiftState done [18:08:12]FM_GetShiftState done [18:08:12]opened in 1722213119 [18:08:12]opened+sec_in_day 1722299519 [18:08:12]quantity*price = 10700 [18:08:12]sum+1 = 10701 [18:08:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 217.00 НСП 1% : 1.92 НДС 12% : 23.04 Наличными: 217.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 119 29.07.2024 18:08 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2270 ФПД: 213315505049832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180813&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2270&fm=213315505049832&tin=02508201610067®Number=0000000000189667&sum=21700 0 [18:08:13]StoreToDocumentArchive [18:08:13]shift 15 fd 2270 [18:08:13]save to /storage/0015/doc_00002270 [18:08:13]save last doc name /storage/0015/doc_00002270 to /storage/kkm_last_doc_name [18:08:13]save OK [18:08:13]Clear old archive folders... [18:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=406 [18:08:13]tlvbuf is 02038DB0 [18:08:13]SAM_PROTO_ClearQueue [18:08:13]wFMCommunicate request_size=4 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 09 00 00 [18:08:13]Write to MH i2c: E2 08 00 69 0E 80 09 00 00 00 00 00 00 E9 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [18:08:13]RAPDU: 90 00 [18:08:13]wFMCommunicate OK [18:08:13]SAM_PROTO_ClearQueue done [18:08:13]KKMCreateOFDPacket [18:08:13]OFDProtocolAddRootSTLVToBuf [18:08:13]FM_MakeSignedData [18:08:13]FM_MakeSignedData [18:08:13]SAM_PROTO_SignData [18:08:13]wFMCommunicate request_size=4 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 0D 01 02 [18:08:13]Write to MH i2c: E2 08 00 6A 0E 80 0D 01 02 00 00 00 00 F1 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [18:08:13]RAPDU: 90 00 [18:08:13]wFMCommunicate OK [18:08:13]wFMCommunicate request_size=255 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 C4 [18:08:13]Write to MH i2c: E2 02 01 6B 0E 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 C4 00 00 7C [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]OFD Sender: No OFD packet to send [18:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 6B 0E 00 90 00 ED [18:08:13]RAPDU: 90 00 [18:08:13]wFMCommunicate OK [18:08:13]wFMCommunicate request_size=165 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 0D 02 02 A0 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 77 00 00 00 F4 03 04 00 8D DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DE 08 00 00 35 04 06 00 C2 02 62 E7 50 E8 [18:08:13]Write to MH i2c: E2 A8 00 6C 0E 80 0D 02 02 A0 00 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 77 00 00 00 F4 03 04 00 8D DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DE 08 00 00 35 04 06 00 C2 02 62 E7 50 E8 00 00 D4 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:14]Read from MH i2c: E2 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: E2 03 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [18:08:14]RAPDU: 90 00 [18:08:14]wFMCommunicate OK [18:08:14]wFMCommunicate request_size=4 [18:08:14]MH_SAM_APDU [18:08:14]CAPDU: 80 0D 03 02 [18:08:14]Write to MH i2c: E2 08 00 6D 0E 80 0D 03 02 00 00 00 00 F6 [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:14]Read from MH i2c: E2 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: E2 0B 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: E2 0B 00 6D 0E 00 A2 9C EB 79 60 C9 7C 53 90 00 91 [18:08:14]RAPDU: A2 9C EB 79 60 C9 7C 53 90 00 [18:08:14]wFMCommunicate OK [18:08:14]SAM_PROTO_SignData done [18:08:14]FM_MakeSignedData done [18:08:14]CreateOFDProtocolMessage [18:08:14]wFMCommunicate request_size=4 [18:08:14]MH_SAM_APDU [18:08:14]CAPDU: 80 11 00 00 [18:08:14]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:14]Read from MH i2c: E2 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: E2 17 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 46 [18:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:08:14]wFMCommunicate OK [18:08:14]CreateOFDProtocolMessage done [18:08:14]OFDSenderStorePacket 2270 [18:08:14]StoreOFDPacket docnum=2270 [18:08:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AA 01 00 00 F2 C6 A2 01 0F CF 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 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 77 00 00 00 F4 03 04 00 8D DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DE 08 00 00 35 04 06 00 C2 02 62 E7 50 E8 A2 9C EB 79 60 C9 7C 53 [18:08:14]CheckFolder [18:08:14]dirname=/storage/ofd_packets [18:08:14]CheckFolder done [18:08:14]ProducePacketName [18:08:14]name=ofd_packets/00002270 [18:08:14]NVStorageSaveData ofd_packets/00002270 [18:08:14]File name is /storage/ofd_packets/00002270 [18:08:14]Write 456 bytes [18:08:14]NVStorageSaveData done [18:08:14]OFDSenderStorePacket done [18:08:14]KKMCreateOFDPacket done [18:08:14]NVStorageSaveData kkm_last_timestamp [18:08:14]File name is /storage/kkm_last_timestamp [18:08:14]Write 4 bytes [18:08:14]NVStorageSaveData done [18:08:14]ExternCall_PrintAddStr [18:08:14]wPrintStart [18:08:14]Write to MH i2c: 01 00 00 6F 0E 7D [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 07 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 FF 0F 92 [18:08:14]RasterBufferAndPrint [18:08:14]line Счет N : (3)126536 [18:08:14]line ИНН: 02508201610067 [18:08:14]line Контрольно-Кассовый Чек [18:08:14]line ПРОДАЖА [18:08:14]line Товар: 5449000133328 [18:08:14]line Напиток Кока-Кола Zero 1л [18:08:14]line 1.000 * 107.00 [18:08:14]line = 107.00 [18:08:14]line НДС 12% НСП 1% [18:08:14]line > о реализуемом товаре [18:08:14]line Товар: 4870022003305 [18:08:14]line Напиток Gorilla эн нат ж/б 0,5/0,45л [18:08:14]line 1.000 * 110.00 [18:08:14]line = 110.00 [18:08:14]line НДС 12% НСП 1% [18:08:14]line > о реализуемом товаре [18:08:14]line ИТОГО: 217.00 [18:08:14]line НСП 1% : 1.92 [18:08:14]line НДС 12% : 23.04 [18:08:14]line Наличными: 217.00 [18:08:14]line Безнал.: 0.00 [18:08:14]line Место: АЗС № 127 "Партнер Нефть" [18:08:14]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:08:14]line СНО: Общий режим [18:08:14]line Чек 119 29.07.2024 18:08 [18:08:14]line Смена: 15 ФФД: 1.0 [18:08:14]line ЗНМ: 0300000161 [18:08:14]line РНМ: 0000000000189667 [18:08:14]line Версия ККМ: v1.0 [18:08:14]line ФМ: 0000000002094248 [18:08:14]line ФД: 2270 [18:08:14]line ФПД: 213315505049832 [18:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180813&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2270&fm=213315505049832&tin=02508201610067®Number=0000000000189667&sum=21700 [18:08:14]line 0 [18:08:14]OFD Sender: Processing packet 2270 [packets to send 1, broken 0] [18:08:14]ProducePacketName [18:08:14]name=ofd_packets/00002270 [18:08:14]OFD Sender: To server: pG, [18:08:14]CommunicateWithHost lk.salyk.kg:30040 [18:08:14]ConnectInit lk.salyk.kg [18:08:14]written 0, free lines is 4095 [18:08:14]Connected sock=10 [18:08:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AA 01 00 00 F2 C6 A2 01 0F CF 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 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 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 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 77 00 00 00 F4 03 04 00 8D DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DE 08 00 00 35 04 06 00 C2 02 62 E7 50 E8 A2 9C EB 79 60 C9 7C 53 [18:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7D BA 47 00 1B 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 32 30 39 34 32 34 38 10 04 04 00 DE 08 00 00 F4 03 04 00 F9 85 A7 66 B6 04 01 00 00 C0 D4 CE FC 82 40 0B F7 [18:08:14]CommunicateWithHost err = 0 [18:08:14]CheckOFDResponse [18:08:14]1017 (14) - 77093643461234 [18:08:14]1041 (16) - 0000000002094248 [18:08:14]1040 (4) - 2270 [18:08:14]1012 (4) - 29.07.2024 12:07 [18:08:14]1206 (1) - 0 [18:08:14]OFD Sender: Remove packet 2270 [18:08:14]ProducePacketName [18:08:14]name=ofd_packets/00002270 [18:08:14]NVStorageDeleteData [18:08:14]Write to MH i2c: 01 00 00 9E 0E AC [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 07 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 CA 0C 89 [18:08:14]RasterBufferAndPrint [18:08:14]line [18:08:14]line [18:08:14]line [18:08:14]line [18:08:14]line [18:08:14]written 0, free lines is 3283 [18:08:14]MH_Cut [18:08:14]Write to MH i2c: D1 01 00 A5 0E 01 85 [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: D1 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: D1 01 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: D1 01 00 A5 0E 00 84 [18:08:14]Write to MH i2c: 01 00 00 A6 0E B4 [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:15]OFD Sender: No OFD packet to send [18:08:15]*** Cut start [18:08:15]*** Partial cut [18:08:15]*** CUTSNS_PIN = 1 [18:08:15]*** CUTSNS_PIN = 0 [18:08:15]*** Brake cut motor [18:08:16]Read from MH i2c: 01 [18:08:16]MH_I2C_Read... [18:08:16]*** Stop cut motor [18:08:16]*** Cut end [18:08:16]Read from MH i2c: 01 07 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 FF 0F C9 [18:08:16]process_action close_receipt done [18:08:16]requested_data is exist [18:08:16]produce_requested_data [18:08:16]requested_item fm.sn is exist - process it [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 11 00 00 [18:08:16]Write to MH i2c: E2 08 00 A7 0E 80 11 00 00 00 00 00 00 2F [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 17 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 17 00 A7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7F [18:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:08:16]wFMCommunicate OK [18:08:16]requested_item fd.num is exist - process it [18:08:16]SAM_PROTO_GetFieldsCounters [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 13 00 00 [18:08:16]Write to MH i2c: E2 08 00 A8 0E 80 13 00 00 00 00 00 00 32 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 62 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 62 00 A8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DE 08 00 00 0E 04 04 00 0F 00 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 B6 [18:08:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DE 08 00 00 0E 04 04 00 0F 00 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 [18:08:16]wFMCommunicate OK [18:08:16]SAM_PROTO_GetFieldsCounters done [18:08:16]requested_item shift.num is exist - process it [18:08:16]requested_item shift.opened is exist - process it [18:08:16]req_shift_opened [18:08:16]FM_GetShiftState [18:08:16]SAM_PROTO_GetShiftState [18:08:16]wFMCommunicate request_size=4 [18:08:16]MH_SAM_APDU [18:08:16]CAPDU: 80 13 01 00 [18:08:16]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [18:08:16]Write i2c OK [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 [18:08:16]MH_I2C_Read... [18:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:16]Read from MH i2c: E2 0E 00 [18:08:16]MH_I2C_Read... [18:08:16]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 2D [18:08:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:08:16]wFMCommunicate OK [18:08:16]SAM_PROTO_GetShiftState done [18:08:16]FM_GetShiftState done [18:08:16]req_shift_opened done [18:08:16]requested_item shift.open_date is exist - process it [18:08:16]req_shift_open_date [18:08:16]req_shift_open_date done [18:08:16]produce_requested_data done [18:08:16]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2270,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:08:16]process_action_free close_receipt [18:08:16]json_value_free [18:08:16]json_value_free done [18:08:16]process_json_proto returns [18:08:16]Send response to host [18:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2270,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:08:16]free response buf [18:08:16]execute_script done [18:08:16]execute_script returns [18:08:16]free content buf [18:08:16]Sock 9.Close socket [18:08:16]Sock 9.Thread stoped [18:08:20]OFD Sender: No OFD packet to send [18:08:21]accept exits with 8 [18:08:21]New connection [18:08:21]New thread 3067014500 created [18:08:21]Thread 3067157860 joined [18:08:21]Waiting for new connection... [18:08:21] Sock 8.Parse request [18:08:21]Sock 8.Check first char [18:08:21]Sock 8.First char is OK [18:08:21]request: POST /json_proto HTTP/1.0 [18:08:21]Method: POST [18:08:21]URL: /json_proto [18:08:21]Method is POST - this is cgi request [18:08:21]url: /json_proto [18:08:21]query_string will be loaded in cgi processing [18:08:21]execute_cgi json_proto POST (null) [18:08:21]execute_cgi path=json_proto method=POST [18:08:21]POST find Content-Length [18:08:21]Host: 172.17.45.132:8080 [18:08:21]Content-Length: 675 [18:08:21]Content-Type: application/json [18:08:21] [18:08:21]POST finish read [18:08:21]Found Content-Length = 675 [18:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126537", "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 }]} ], "payments": [ { "type": 0, "sum" : 14.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:21]execute_script... [18:08: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)126537", "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 }]} ], "payments": [ { "type": 0, "sum" : 14.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:21]POST & json_proto [18:08:21]process_json_proto [18:08:21]json parsed OK: [18:08:21]protocol is kg_v1.0 [18:08:21]action value=close_receipt [18:08:21]process_action close_receipt [18:08:21]cmd_close_receipt [18:08:21]MH_GetDate [18:08:21]Write to MH i2c: F0 00 00 AA 0E A7 [18:08:21]Write i2c OK [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: F0 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: F0 09 00 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: F0 09 00 AA 0E 00 97 DA A7 66 E3 0B 90 66 12 [18:08:21]GetLastDocTimeStamp 1722276493 [18:08:21]current date 1722276503 [18:08:21]FM_GetShiftState [18:08:21]SAM_PROTO_GetShiftState [18:08:21]wFMCommunicate request_size=4 [18:08:21]MH_SAM_APDU [18:08:21]CAPDU: 80 13 01 00 [18:08:21]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [18:08:21]Write i2c OK [18:08:21]MH_I2C_Read... [18:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:21]Read from MH i2c: E2 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: E2 0E 00 [18:08:21]MH_I2C_Read... [18:08:21]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 2F [18:08:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:08:21]wFMCommunicate OK [18:08:21]SAM_PROTO_GetShiftState done [18:08:21]FM_GetShiftState done [18:08:21]opened in 1722213119 [18:08:21]opened+sec_in_day 1722299519 [18:08:21]quantity*price = 1400 [18:08:21]sum+1 = 1401 [18:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14.00 НСП 1% : 0.12 НДС 12% : 1.49 Наличными: 14.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 120 29.07.2024 18:08 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2271 ФПД: 89621641573447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180823&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2271&fm=89621641573447&tin=02508201610067®Number=0000000000189667&sum=1400 0 [18:08:23]StoreToDocumentArchive [18:08:23]shift 15 fd 2271 [18:08:23]save to /storage/0015/doc_00002271 [18:08:23]save last doc name /storage/0015/doc_00002271 to /storage/kkm_last_doc_name [18:08:23]save OK [18:08:23]Clear old archive folders... [18:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=287 [18:08:23]tlvbuf is 02020C50 [18:08:23]SAM_PROTO_ClearQueue [18:08:23]wFMCommunicate request_size=4 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 09 00 00 [18:08:23]Write to MH i2c: E2 08 00 B8 0E 80 09 00 00 00 00 00 00 38 [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [18:08:23]RAPDU: 90 00 [18:08:23]wFMCommunicate OK [18:08:23]SAM_PROTO_ClearQueue done [18:08:23]KKMCreateOFDPacket [18:08:23]OFDProtocolAddRootSTLVToBuf [18:08:23]FM_MakeSignedData [18:08:23]FM_MakeSignedData [18:08:23]SAM_PROTO_SignData [18:08:23]wFMCommunicate request_size=4 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 0D 01 02 [18:08:23]Write to MH i2c: E2 08 00 B9 0E 80 0D 01 02 00 00 00 00 40 [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [18:08:23]RAPDU: 90 00 [18:08:23]wFMCommunicate OK [18:08:23]wFMCommunicate request_size=255 [18:08:23]MH_SAM_APDU [18:08:23]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 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 97 DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 [18:08:23]Write to MH i2c: E2 02 01 BA 0E 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 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 97 DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 00 00 02 [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [18:08:23]RAPDU: 90 00 [18:08:23]wFMCommunicate OK [18:08:23]wFMCommunicate request_size=46 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 0D 02 02 29 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 08 00 00 35 04 06 00 51 82 AA 1C 34 47 [18:08:23]Write to MH i2c: E2 31 00 BB 0E 80 0D 02 02 29 00 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 08 00 00 35 04 06 00 51 82 AA 1C 34 47 00 00 CC [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [18:08:23]RAPDU: 90 00 [18:08:23]wFMCommunicate OK [18:08:23]wFMCommunicate request_size=4 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 0D 03 02 [18:08:23]Write to MH i2c: E2 08 00 BC 0E 80 0D 03 02 00 00 00 00 45 [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 0B 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 0B 00 BC 0E 00 CC AF F6 17 CB 07 EF D7 90 00 66 [18:08:23]RAPDU: CC AF F6 17 CB 07 EF D7 90 00 [18:08:23]wFMCommunicate OK [18:08:23]SAM_PROTO_SignData done [18:08:23]FM_MakeSignedData done [18:08:23]CreateOFDProtocolMessage [18:08:23]wFMCommunicate request_size=4 [18:08:23]MH_SAM_APDU [18:08:23]CAPDU: 80 11 00 00 [18:08:23]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:23]Read from MH i2c: E2 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 17 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 95 [18:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:08:23]wFMCommunicate OK [18:08:23]CreateOFDProtocolMessage done [18:08:23]OFDSenderStorePacket 2271 [18:08:23]StoreOFDPacket docnum=2271 [18:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 33 01 00 00 13 EE 2B 01 B2 F7 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 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 97 DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 08 00 00 35 04 06 00 51 82 AA 1C 34 47 CC AF F6 17 CB 07 EF D7 [18:08:23]CheckFolder [18:08:23]dirname=/storage/ofd_packets [18:08:23]CheckFolder done [18:08:23]ProducePacketName [18:08:23]name=ofd_packets/00002271 [18:08:23]NVStorageSaveData ofd_packets/00002271 [18:08:23]File name is /storage/ofd_packets/00002271 [18:08:23]Write 337 bytes [18:08:23]NVStorageSaveData done [18:08:23]OFDSenderStorePacket done [18:08:23]KKMCreateOFDPacket done [18:08:23]NVStorageSaveData kkm_last_timestamp [18:08:23]File name is /storage/kkm_last_timestamp [18:08:23]Write 4 bytes [18:08:23]NVStorageSaveData done [18:08:23]ExternCall_PrintAddStr [18:08:23]wPrintStart [18:08:23]Write to MH i2c: 01 00 00 BE 0E CC [18:08:23]Write i2c OK [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: 01 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: 01 07 00 [18:08:23]MH_I2C_Read... [18:08:23]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [18:08:23]RasterBufferAndPrint [18:08:23]line Счет N : (3)126537 [18:08:23]line ИНН: 02508201610067 [18:08:23]line Контрольно-Кассовый Чек [18:08:23]line ПРОДАЖА [18:08:23]line Товар: 2000053020015 [18:08:23]line Бумажные стаканы 250мл 1шт [18:08:23]line 2.000 * 7.00 [18:08:23]line = 14.00 [18:08:23]line НДС 12% НСП 1% [18:08:23]line > о реализуемом товаре [18:08:23]line ИТОГО: 14.00 [18:08:23]line НСП 1% : 0.12 [18:08:23]line НДС 12% : 1.49 [18:08:23]line Наличными: 14.00 [18:08:23]line Безнал.: 0.00 [18:08:23]line Место: АЗС № 127 "Партнер Нефть" [18:08:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:08:23]line СНО: Общий режим [18:08:23]line Чек 120 29.07.2024 18:08 [18:08:23]line Смена: 15 ФФД: 1.0 [18:08:23]line ЗНМ: 0300000161 [18:08:23]line РНМ: 0000000000189667 [18:08:23]line Версия ККМ: v1.0 [18:08:23]line ФМ: 0000000002094248 [18:08:23]line ФД: 2271 [18:08:23]line ФПД: 89621641573447 [18:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180823&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2271&fm=89621641573447&tin=02508201610067®Number=0000000000189667&sum=1400 [18:08:23]line 0 [18:08:23]written 0, free lines is 4095 [18:08:23]OFD Sender: Processing packet 2271 [packets to send 1, broken 0] [18:08:23]ProducePacketName [18:08:23]name=ofd_packets/00002271 [18:08:23]OFD Sender: To server: pG, [18:08:23]CommunicateWithHost lk.salyk.kg:30040 [18:08:23]ConnectInit lk.salyk.kg [18:08:23]Connected sock=9 [18:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 33 01 00 00 13 EE 2B 01 B2 F7 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 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 97 DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 DF 08 00 00 35 04 06 00 51 82 AA 1C 34 47 CC AF F6 17 CB 07 EF D7 [18:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BD 7F 47 00 A9 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 32 30 39 34 32 34 38 10 04 04 00 DF 08 00 00 F4 03 04 00 02 86 A7 66 B6 04 01 00 00 6B 23 13 A6 D3 56 52 11 [18:08:24]CommunicateWithHost err = 0 [18:08:24]CheckOFDResponse [18:08:24]1017 (14) - 77093643461234 [18:08:24]1041 (16) - 0000000002094248 [18:08:24]1040 (4) - 2271 [18:08:24]1012 (4) - 29.07.2024 12:07 [18:08:24]1206 (1) - 0 [18:08:24]OFD Sender: Remove packet 2271 [18:08:24]ProducePacketName [18:08:24]name=ofd_packets/00002271 [18:08:24]NVStorageDeleteData [18:08:24]Write to MH i2c: 01 00 00 E7 0E F5 [18:08:24]Write i2c OK [18:08:24]MH_I2C_Read... [18:08:24]Read from MH i2c: 01 [18:08:24]MH_I2C_Read... [18:08:24]Read from MH i2c: 01 07 00 [18:08:24]MH_I2C_Read... [18:08:24]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 12 0D 1B [18:08:24]RasterBufferAndPrint [18:08:24]line [18:08:24]line [18:08:24]line [18:08:24]line [18:08:24]line [18:08:24]written 0, free lines is 3358 [18:08:24]MH_Cut [18:08:24]Write to MH i2c: D1 01 00 EE 0E 01 CE [18:08:24]Write i2c OK [18:08:24]MH_I2C_Read... [18:08:24]Read from MH i2c: D1 [18:08:24]MH_I2C_Read... [18:08:24]Read from MH i2c: D1 01 00 [18:08:24]MH_I2C_Read... [18:08:24]Read from MH i2c: D1 01 00 EE 0E 00 CD [18:08:24]Write to MH i2c: 01 00 00 EF 0E FD [18:08:24]Write i2c OK [18:08:24]MH_I2C_Read... [18:08:24]OFD Sender: No OFD packet to send [18:08:24]*** Cut start [18:08:24]*** Partial cut [18:08:24]*** CUTSNS_PIN = 1 [18:08:24]*** CUTSNS_PIN = 0 [18:08:25]*** Brake cut motor [18:08:25]Read from MH i2c: 01 [18:08:25]MH_I2C_Read... [18:08:25]*** Stop cut motor [18:08:25]*** Cut end [18:08:25]Read from MH i2c: 01 07 00 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: 01 07 00 EF 0E 00 00 00 00 00 FF 0F 12 [18:08:25]process_action close_receipt done [18:08:25]requested_data is exist [18:08:25]produce_requested_data [18:08:25]requested_item fm.sn is exist - process it [18:08:25]wFMCommunicate request_size=4 [18:08:25]MH_SAM_APDU [18:08:25]CAPDU: 80 11 00 00 [18:08:25]Write to MH i2c: E2 08 00 F0 0E 80 11 00 00 00 00 00 00 78 [18:08:25]Write i2c OK [18:08:25]MH_I2C_Read... [18:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:25]Read from MH i2c: E2 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 17 00 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 17 00 F0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C8 [18:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:08:25]wFMCommunicate OK [18:08:25]requested_item fd.num is exist - process it [18:08:25]SAM_PROTO_GetFieldsCounters [18:08:25]wFMCommunicate request_size=4 [18:08:25]MH_SAM_APDU [18:08:25]CAPDU: 80 13 00 00 [18:08:25]Write to MH i2c: E2 08 00 F1 0E 80 13 00 00 00 00 00 00 7B [18:08:25]Write i2c OK [18:08:25]MH_I2C_Read... [18:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:25]Read from MH i2c: E2 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 62 00 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 62 00 F1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DF 08 00 00 0E 04 04 00 0F 00 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 03 [18:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 DF 08 00 00 0E 04 04 00 0F 00 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 [18:08:25]wFMCommunicate OK [18:08:25]SAM_PROTO_GetFieldsCounters done [18:08:25]requested_item shift.num is exist - process it [18:08:25]requested_item shift.opened is exist - process it [18:08:25]req_shift_opened [18:08:25]FM_GetShiftState [18:08:25]SAM_PROTO_GetShiftState [18:08:25]wFMCommunicate request_size=4 [18:08:25]MH_SAM_APDU [18:08:25]CAPDU: 80 13 01 00 [18:08:25]Write to MH i2c: E2 08 00 F2 0E 80 13 01 00 00 00 00 00 7D [18:08:25]Write i2c OK [18:08:25]MH_I2C_Read... [18:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:25]Read from MH i2c: E2 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 0E 00 [18:08:25]MH_I2C_Read... [18:08:25]Read from MH i2c: E2 0E 00 F2 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 76 [18:08:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:08:25]wFMCommunicate OK [18:08:25]SAM_PROTO_GetShiftState done [18:08:25]FM_GetShiftState done [18:08:25]req_shift_opened done [18:08:25]requested_item shift.open_date is exist - process it [18:08:25]req_shift_open_date [18:08:25]req_shift_open_date done [18:08:25]produce_requested_data done [18:08:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2271,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:08:25]process_action_free close_receipt [18:08:25]json_value_free [18:08:25]json_value_free done [18:08:25]process_json_proto returns [18:08:25]Send response to host [18:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2271,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:08:25]free response buf [18:08:25]execute_script done [18:08:25]execute_script returns [18:08:25]free content buf [18:08:25]Sock 8.Close socket [18:08:25]Sock 8.Thread stoped [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:42]accept exits with 10 [18:08:42]New connection [18:08:42]New thread 3067157860 created [18:08:42]Thread 3067014500 joined [18:08:42]Waiting for new connection... [18:08:42] Sock 10.Parse request [18:08:42]Sock 10.Check first char [18:08:42]Sock 10.First char is OK [18:08:42]request: POST /json_proto HTTP/1.0 [18:08:42]Method: POST [18:08:42]URL: /json_proto [18:08:42]Method is POST - this is cgi request [18:08:42]url: /json_proto [18:08:42]query_string will be loaded in cgi processing [18:08:42]execute_cgi json_proto POST (null) [18:08:42]execute_cgi path=json_proto method=POST [18:08:42]POST find Content-Length [18:08:42]Host: 172.17.45.132:8080 [18:08:42]Content-Length: 638 [18:08:42]Content-Type: application/json [18:08:42] [18:08:42]POST finish read [18:08:42]Found Content-Length = 638 [18:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:42]execute_script... [18:08:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:42]POST & json_proto [18:08:42]process_json_proto [18:08:42]json parsed OK: [18:08:42]protocol is kg_v1.0 [18:08:42]action value=close_receipt [18:08:42]process_action close_receipt [18:08:42]cmd_close_receipt [18:08:42]MH_GetDate [18:08:42]Write to MH i2c: F0 00 00 F3 0E F0 [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: F0 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: F0 09 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: F0 09 00 F3 0E 00 AB DA A7 66 E3 0B 90 66 6F [18:08:42]GetLastDocTimeStamp 1722276503 [18:08:42]current date 1722276523 [18:08:42]FM_GetShiftState [18:08:42]SAM_PROTO_GetShiftState [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 13 01 00 [18:08:42]Write to MH i2c: E2 08 00 F4 0E 80 13 01 00 00 00 00 00 7F [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 0E 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 0E 00 F4 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 78 [18:08:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:08:42]wFMCommunicate OK [18:08:42]SAM_PROTO_GetShiftState done [18:08:42]FM_GetShiftState done [18:08:42]opened in 1722213119 [18:08:42]opened+sec_in_day 1722299519 [18:08:42]quantity*price = 99999 [18:08:42]sum+1 = 100001 [18:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 121 29.07.2024 18:08 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2272 ФПД: 109881378233783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180843&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2272&fm=109881378233783&tin=02508201610067®Number=0000000000189667&sum=100000 [18:08:43]StoreToDocumentArchive [18:08:43]shift 15 fd 2272 [18:08:43]save to /storage/0015/doc_00002272 [18:08:43]save last doc name /storage/0015/doc_00002272 to /storage/kkm_last_doc_name [18:08:43]save OK [18:08:43]Clear old archive folders... [18:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:08:43]tlvbuf is 01F66E00 [18:08:43]SAM_PROTO_ClearQueue [18:08:43]wFMCommunicate request_size=4 [18:08:43]MH_SAM_APDU [18:08:43]CAPDU: 80 09 00 00 [18:08:43]Write to MH i2c: E2 08 00 01 0F 80 09 00 00 00 00 00 00 82 [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:43]Read from MH i2c: E2 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [18:08:43]RAPDU: 90 00 [18:08:43]wFMCommunicate OK [18:08:43]SAM_PROTO_ClearQueue done [18:08:43]KKMCreateOFDPacket [18:08:43]OFDProtocolAddRootSTLVToBuf [18:08:43]FM_MakeSignedData [18:08:43]FM_MakeSignedData [18:08:43]SAM_PROTO_SignData [18:08:43]wFMCommunicate request_size=4 [18:08:43]MH_SAM_APDU [18:08:43]CAPDU: 80 0D 01 02 [18:08:43]Write to MH i2c: E2 08 00 02 0F 80 0D 01 02 00 00 00 00 8A [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:43]Read from MH i2c: E2 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [18:08:43]RAPDU: 90 00 [18:08:43]wFMCommunicate OK [18:08:43]wFMCommunicate request_size=255 [18:08:43]MH_SAM_APDU [18:08:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AB DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E0 08 00 00 35 04 06 00 63 EF C0 84 [18:08:43]Write to MH i2c: E2 02 01 03 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AB DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E0 08 00 00 35 04 06 00 63 EF C0 84 00 00 92 [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:43]Read from MH i2c: E2 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [18:08:43]RAPDU: 90 00 [18:08:43]wFMCommunicate OK [18:08:43]wFMCommunicate request_size=7 [18:08:43]MH_SAM_APDU [18:08:43]CAPDU: 80 0D 02 02 02 5D B7 [18:08:43]Write to MH i2c: E2 0A 00 04 0F 80 0D 02 02 02 00 5D B7 00 00 A5 [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:43]Read from MH i2c: E2 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [18:08:43]RAPDU: 90 00 [18:08:43]wFMCommunicate OK [18:08:43]wFMCommunicate request_size=4 [18:08:43]MH_SAM_APDU [18:08:43]CAPDU: 80 0D 03 02 [18:08:43]Write to MH i2c: E2 08 00 05 0F 80 0D 03 02 00 00 00 00 8F [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:43]Read from MH i2c: E2 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 0B 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 0B 00 05 0F 00 A8 56 C6 E4 00 13 E1 07 90 00 33 [18:08:43]RAPDU: A8 56 C6 E4 00 13 E1 07 90 00 [18:08:43]wFMCommunicate OK [18:08:43]SAM_PROTO_SignData done [18:08:43]FM_MakeSignedData done [18:08:43]CreateOFDProtocolMessage [18:08:43]wFMCommunicate request_size=4 [18:08:43]MH_SAM_APDU [18:08:43]CAPDU: 80 11 00 00 [18:08:43]Write to MH i2c: E2 08 00 06 0F 80 11 00 00 00 00 00 00 8F [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:43]Read from MH i2c: E2 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 17 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: E2 17 00 06 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DF [18:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:08:43]wFMCommunicate OK [18:08:43]CreateOFDProtocolMessage done [18:08:43]OFDSenderStorePacket 2272 [18:08:43]StoreOFDPacket docnum=2272 [18:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 FC 92 04 01 8B 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AB DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E0 08 00 00 35 04 06 00 63 EF C0 84 5D B7 A8 56 C6 E4 00 13 E1 07 [18:08:43]CheckFolder [18:08:43]dirname=/storage/ofd_packets [18:08:43]CheckFolder done [18:08:43]ProducePacketName [18:08:43]name=ofd_packets/00002272 [18:08:43]NVStorageSaveData ofd_packets/00002272 [18:08:43]File name is /storage/ofd_packets/00002272 [18:08:43]Write 298 bytes [18:08:43]NVStorageSaveData done [18:08:43]OFDSenderStorePacket done [18:08:43]KKMCreateOFDPacket done [18:08:43]NVStorageSaveData kkm_last_timestamp [18:08:43]File name is /storage/kkm_last_timestamp [18:08:43]Write 4 bytes [18:08:43]NVStorageSaveData done [18:08:43]ExternCall_PrintAddStr [18:08:43]wPrintStart [18:08:43]Write to MH i2c: 01 00 00 07 0F 16 [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: 01 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: 01 07 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: 01 07 00 07 0F 00 00 00 00 00 FF 0F 2B [18:08:43]RasterBufferAndPrint [18:08:43]line Счет N : (1)610027 [18:08:43]line ИНН: 02508201610067 [18:08:43]line Контрольно-Кассовый Чек [18:08:43]line ПРОДАЖА [18:08:43]line ТРК (МРК, ГНК) : 2 [18:08:43]line Товар: 2710194210 [18:08:43]line ДТ-К-2 [18:08:43]line 13.210 * 75.70 [18:08:43]line = 1000.00 [18:08:43]line НДС 12% НСП 1% [18:08:43]line > о реализуемом товаре [18:08:43]line ИТОГО: 1000.00 [18:08:43]line НСП 1% : 8.85 [18:08:43]line НДС 12% : 106.19 [18:08:43]line Наличными: 1000.00 [18:08:43]line Безнал.: 0.00 [18:08:43]line Место: АЗС № 127 "Партнер Нефть" [18:08:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:08:43]line СНО: Общий режим [18:08:43]line Чек 121 29.07.2024 18:08 [18:08:43]line Смена: 15 ФФД: 1.0 [18:08:43]line ЗНМ: 0300000161 [18:08:43]line РНМ: 0000000000189667 [18:08:43]line Версия ККМ: v1.0 [18:08:43]line ФМ: 0000000002094248 [18:08:43]line ФД: 2272 [18:08:43]line ФПД: 109881378233783 [18:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180843&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2272&fm=109881378233783&tin=02508201610067®Number=0000000000189667&sum=100000 [18:08:44]OFD Sender: Processing packet 2272 [packets to send 1, broken 0] [18:08:44]ProducePacketName [18:08:44]name=ofd_packets/00002272 [18:08:44]OFD Sender: To server: pG, [18:08:44]CommunicateWithHost lk.salyk.kg:30040 [18:08:44]ConnectInit lk.salyk.kg [18:08:44]written 0, free lines is 4095 [18:08:44]Connected sock=9 [18:08:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 FC 92 04 01 8B 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 AB DA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E0 08 00 00 35 04 06 00 63 EF C0 84 5D B7 A8 56 C6 E4 00 13 E1 07 [18:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A9 61 47 00 6A 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 32 30 39 34 32 34 38 10 04 04 00 E0 08 00 00 F4 03 04 00 17 86 A7 66 B6 04 01 00 00 F7 F2 0C FC BA 83 0D 49 [18:08:44]CommunicateWithHost err = 0 [18:08:44]CheckOFDResponse [18:08:44]1017 (14) - 77093643461234 [18:08:44]1041 (16) - 0000000002094248 [18:08:44]1040 (4) - 2272 [18:08:44]1012 (4) - 29.07.2024 12:07 [18:08:44]1206 (1) - 0 [18:08:44]OFD Sender: Remove packet 2272 [18:08:44]ProducePacketName [18:08:44]name=ofd_packets/00002272 [18:08:44]NVStorageDeleteData [18:08:44]Write to MH i2c: 01 00 00 2F 0F 3E [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: 01 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: 01 07 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 22 0D 74 [18:08:44]RasterBufferAndPrint [18:08:44]line [18:08:44]line [18:08:44]line [18:08:44]line [18:08:44]line [18:08:44]written 0, free lines is 3372 [18:08:44]MH_Cut [18:08:44]Write to MH i2c: D1 01 00 36 0F 01 17 [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: D1 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: D1 01 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: D1 01 00 36 0F 00 16 [18:08:44]Write to MH i2c: 01 00 00 37 0F 46 [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:45]OFD Sender: No OFD packet to send [18:08:45]*** Cut start [18:08:45]*** Partial cut [18:08:45]*** CUTSNS_PIN = 1 [18:08:45]*** CUTSNS_PIN = 0 [18:08:45]*** Brake cut motor [18:08:46]Read from MH i2c: 01 [18:08:46]MH_I2C_Read... [18:08:46]*** Stop cut motor [18:08:46]*** Cut end [18:08:46]Read from MH i2c: 01 07 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: 01 07 00 37 0F 00 00 00 00 00 FF 0F 5B [18:08:46]process_action close_receipt done [18:08:46]requested_data is exist [18:08:46]produce_requested_data [18:08:46]requested_item fm.sn is exist - process it [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 11 00 00 [18:08:46]Write to MH i2c: E2 08 00 38 0F 80 11 00 00 00 00 00 00 C1 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 17 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 17 00 38 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 11 [18:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:08:46]wFMCommunicate OK [18:08:46]requested_item fd.num is exist - process it [18:08:46]SAM_PROTO_GetFieldsCounters [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 13 00 00 [18:08:46]Write to MH i2c: E2 08 00 39 0F 80 13 00 00 00 00 00 00 C4 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 62 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 62 00 39 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E0 08 00 00 0E 04 04 00 0F 00 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 50 [18:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E0 08 00 00 0E 04 04 00 0F 00 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 [18:08:46]wFMCommunicate OK [18:08:46]SAM_PROTO_GetFieldsCounters done [18:08:46]requested_item shift.num is exist - process it [18:08:46]requested_item shift.opened is exist - process it [18:08:46]req_shift_opened [18:08:46]FM_GetShiftState [18:08:46]SAM_PROTO_GetShiftState [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 13 01 00 [18:08:46]Write to MH i2c: E2 08 00 3A 0F 80 13 01 00 00 00 00 00 C6 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 0E 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 0E 00 3A 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BF [18:08:46]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:08:46]wFMCommunicate OK [18:08:46]SAM_PROTO_GetShiftState done [18:08:46]FM_GetShiftState done [18:08:46]req_shift_opened done [18:08:46]requested_item shift.open_date is exist - process it [18:08:46]req_shift_open_date [18:08:46]req_shift_open_date done [18:08:46]produce_requested_data done [18:08:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2272,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:08:46]process_action_free close_receipt [18:08:46]json_value_free [18:08:46]json_value_free done [18:08:46]process_json_proto returns [18:08:46]Send response to host [18:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2272,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:08:46]free response buf [18:08:46]execute_script done [18:08:46]execute_script returns [18:08:46]free content buf [18:08:46]Sock 10.Close socket [18:08:46]Sock 10.Thread stoped [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:34]accept exits with 8 [18:11:34]New connection [18:11:34]New thread 3067014500 created [18:11:34]Thread 3067157860 joined [18:11:34]Waiting for new connection... [18:11:34] Sock 8.Parse request [18:11:34]Sock 8.Check first char [18:11:34]Sock 8.First char is OK [18:11:34]request: POST /json_proto HTTP/1.0 [18:11:34]Method: POST [18:11:34]URL: /json_proto [18:11:34]Method is POST - this is cgi request [18:11:34]url: /json_proto [18:11:34]query_string will be loaded in cgi processing [18:11:34]execute_cgi json_proto POST (null) [18:11:34]execute_cgi path=json_proto method=POST [18:11:34]POST find Content-Length [18:11:34]Host: 172.17.45.132:8080 [18:11:34]Content-Length: 630 [18:11:34]Content-Type: application/json [18:11:34] [18:11:34]POST finish read [18:11:34]Found Content-Length = 630 [18:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126538", "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" ] } } [18:11:34]execute_script... [18:11:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126538", "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" ] } } [18:11:34]POST & json_proto [18:11:34]process_json_proto [18:11:34]json parsed OK: [18:11:34]protocol is kg_v1.0 [18:11:34]action value=close_receipt [18:11:34]process_action close_receipt [18:11:34]cmd_close_receipt [18:11:34]MH_GetDate [18:11:34]Write to MH i2c: F0 00 00 3B 0F 39 [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: F0 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: F0 09 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: F0 09 00 3B 0F 00 58 DB A7 66 E3 0B 90 66 66 [18:11:34]GetLastDocTimeStamp 1722276523 [18:11:34]current date 1722276696 [18:11:34]FM_GetShiftState [18:11:34]SAM_PROTO_GetShiftState [18:11:34]wFMCommunicate request_size=4 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 13 01 00 [18:11:34]Write to MH i2c: E2 08 00 3C 0F 80 13 01 00 00 00 00 00 C8 [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 0E 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 0E 00 3C 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C1 [18:11:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:11:34]wFMCommunicate OK [18:11:34]SAM_PROTO_GetShiftState done [18:11:34]FM_GetShiftState done [18:11:34]opened in 1722213119 [18:11:34]opened+sec_in_day 1722299519 [18:11:34]quantity*price = 5000 [18:11:34]sum+1 = 5001 [18:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 122 29.07.2024 18:11 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2273 ФПД: 172456369213577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181136&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2273&fm=172456369213577&tin=02508201610067®Number=0000000000189667&sum=5000 0 [18:11:36]StoreToDocumentArchive [18:11:36]shift 15 fd 2273 [18:11:36]save to /storage/0015/doc_00002273 [18:11:36]save last doc name /storage/0015/doc_00002273 to /storage/kkm_last_doc_name [18:11:36]save OK [18:11:36]Clear old archive folders... [18:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:11:36]tlvbuf is 01F53D60 [18:11:36]SAM_PROTO_ClearQueue [18:11:36]wFMCommunicate request_size=4 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 09 00 00 [18:11:36]Write to MH i2c: E2 08 00 49 0F 80 09 00 00 00 00 00 00 CA [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [18:11:36]RAPDU: 90 00 [18:11:36]wFMCommunicate OK [18:11:36]SAM_PROTO_ClearQueue done [18:11:36]KKMCreateOFDPacket [18:11:36]OFDProtocolAddRootSTLVToBuf [18:11:36]FM_MakeSignedData [18:11:36]FM_MakeSignedData [18:11:36]SAM_PROTO_SignData [18:11:36]wFMCommunicate request_size=4 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 0D 01 02 [18:11:36]Write to MH i2c: E2 08 00 4A 0F 80 0D 01 02 00 00 00 00 D2 [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [18:11:36]RAPDU: 90 00 [18:11:36]wFMCommunicate OK [18:11:36]wFMCommunicate request_size=255 [18:11:36]MH_SAM_APDU [18:11:36]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 7A 00 00 00 F4 03 04 00 58 DB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [18:11:36]Write to MH i2c: E2 02 01 4B 0F 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 7A 00 00 00 F4 03 04 00 58 DB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 B8 [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [18:11:36]RAPDU: 90 00 [18:11:36]wFMCommunicate OK [18:11:36]wFMCommunicate request_size=28 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 E1 08 00 00 35 04 06 00 9C D9 20 A0 50 89 [18:11:36]Write to MH i2c: E2 1F 00 4C 0F 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 E1 08 00 00 35 04 06 00 9C D9 20 A0 50 89 00 00 5C [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [18:11:36]RAPDU: 90 00 [18:11:36]wFMCommunicate OK [18:11:36]wFMCommunicate request_size=4 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 0D 03 02 [18:11:36]Write to MH i2c: E2 08 00 4D 0F 80 0D 03 02 00 00 00 00 D7 [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 0B 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 0B 00 4D 0F 00 4A C4 A6 1E F6 D3 F7 B3 90 00 1D [18:11:36]RAPDU: 4A C4 A6 1E F6 D3 F7 B3 90 00 [18:11:36]wFMCommunicate OK [18:11:36]SAM_PROTO_SignData done [18:11:36]FM_MakeSignedData done [18:11:36]CreateOFDProtocolMessage [18:11:36]wFMCommunicate request_size=4 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 11 00 00 [18:11:36]Write to MH i2c: E2 08 00 4E 0F 80 11 00 00 00 00 00 00 D7 [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 17 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 17 00 4E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 27 [18:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:11:36]wFMCommunicate OK [18:11:36]CreateOFDProtocolMessage done [18:11:36]OFDSenderStorePacket 2273 [18:11:36]StoreOFDPacket docnum=2273 [18:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 5D 2E 19 01 02 67 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 7A 00 00 00 F4 03 04 00 58 DB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E1 08 00 00 35 04 06 00 9C D9 20 A0 50 89 4A C4 A6 1E F6 D3 F7 B3 [18:11:36]CheckFolder [18:11:36]dirname=/storage/ofd_packets [18:11:36]CheckFolder done [18:11:36]ProducePacketName [18:11:36]name=ofd_packets/00002273 [18:11:36]NVStorageSaveData ofd_packets/00002273 [18:11:36]File name is /storage/ofd_packets/00002273 [18:11:36]Write 319 bytes [18:11:36]NVStorageSaveData done [18:11:36]OFDSenderStorePacket done [18:11:36]KKMCreateOFDPacket done [18:11:36]NVStorageSaveData kkm_last_timestamp [18:11:36]File name is /storage/kkm_last_timestamp [18:11:36]Write 4 bytes [18:11:36]NVStorageSaveData done [18:11:36]ExternCall_PrintAddStr [18:11:36]wPrintStart [18:11:36]Write to MH i2c: 01 00 00 4F 0F 5E [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: 01 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: 01 07 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: 01 07 00 4F 0F 00 00 00 00 00 FF 0F 73 [18:11:36]RasterBufferAndPrint [18:11:36]line Счет N : (3)126538 [18:11:36]line ИНН: 02508201610067 [18:11:36]line Контрольно-Кассовый Чек [18:11:36]line ПРОДАЖА [18:11:36]line Товар: 4700000160358 [18:11:36]line Вода Легенда 1л [18:11:36]line 1.000 * 50.00 [18:11:36]line = 50.00 [18:11:36]line НДС 12% НСП 1% [18:11:36]line > о реализуемом товаре [18:11:36]line ИТОГО: 50.00 [18:11:36]line НСП 1% : 0.44 [18:11:36]line НДС 12% : 5.31 [18:11:36]line Наличными: 50.00 [18:11:36]line Безнал.: 0.00 [18:11:36]line Место: АЗС № 127 "Партнер Нефть" [18:11:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:11:36]line СНО: Общий режим [18:11:36]line Чек 122 29.07.2024 18:11 [18:11:36]line Смена: 15 ФФД: 1.0 [18:11:36]line ЗНМ: 0300000161 [18:11:36]line РНМ: 0000000000189667 [18:11:36]line Версия ККМ: v1.0 [18:11:36]line ФМ: 0000000002094248 [18:11:36]line ФД: 2273 [18:11:36]line ФПД: 172456369213577 [18:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181136&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2273&fm=172456369213577&tin=02508201610067®Number=0000000000189667&sum=5000 [18:11:36]line 0 [18:11:36]OFD Sender: Processing packet 2273 [packets to send 1, broken 0] [18:11:36]ProducePacketName [18:11:36]name=ofd_packets/00002273 [18:11:36]OFD Sender: To server: pG, [18:11:36]CommunicateWithHost lk.salyk.kg:30040 [18:11:36]ConnectInit lk.salyk.kg [18:11:36]written 0, free lines is 4095 [18:11:37]Connected sock=10 [18:11:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 5D 2E 19 01 02 67 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 7A 00 00 00 F4 03 04 00 58 DB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E1 08 00 00 35 04 06 00 9C D9 20 A0 50 89 4A C4 A6 1E F6 D3 F7 B3 [18:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 80 D8 47 00 B3 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E1 08 00 00 F4 03 04 00 C4 86 A7 66 B6 04 01 00 00 EE D5 12 73 F6 75 69 19 [18:11:37]CommunicateWithHost err = 0 [18:11:37]CheckOFDResponse [18:11:37]1017 (14) - 77093643461234 [18:11:37]1041 (16) - 0000000002094248 [18:11:37]1040 (4) - 2273 [18:11:37]1012 (4) - 29.07.2024 12:10 [18:11:37]1206 (1) - 0 [18:11:37]OFD Sender: Remove packet 2273 [18:11:37]ProducePacketName [18:11:37]name=ofd_packets/00002273 [18:11:37]NVStorageDeleteData [18:11:37]Write to MH i2c: 01 00 00 77 0F 86 [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: 01 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: 01 07 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 10 0D AA [18:11:37]RasterBufferAndPrint [18:11:37]line [18:11:37]line [18:11:37]line [18:11:37]line [18:11:37]line [18:11:37]written 0, free lines is 3353 [18:11:37]MH_Cut [18:11:37]Write to MH i2c: D1 01 00 7E 0F 01 5F [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: D1 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: D1 01 00 [18:11:37]MH_I2C_Read... [18:11:37]Read from MH i2c: D1 01 00 7E 0F 00 5E [18:11:37]Write to MH i2c: 01 00 00 7F 0F 8E [18:11:37]Write i2c OK [18:11:37]MH_I2C_Read... [18:11:37]OFD Sender: No OFD packet to send [18:11:38]*** Cut start [18:11:38]*** Partial cut [18:11:38]*** CUTSNS_PIN = 1 [18:11:38]*** CUTSNS_PIN = 0 [18:11:38]*** Brake cut motor [18:11:38]Read from MH i2c: 01 [18:11:38]MH_I2C_Read... [18:11:38]*** Stop cut motor [18:11:38]*** Cut end [18:11:38]Read from MH i2c: 01 07 00 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 FF 0F A3 [18:11:38]process_action close_receipt done [18:11:38]requested_data is exist [18:11:38]produce_requested_data [18:11:38]requested_item fm.sn is exist - process it [18:11:38]wFMCommunicate request_size=4 [18:11:38]MH_SAM_APDU [18:11:38]CAPDU: 80 11 00 00 [18:11:38]Write to MH i2c: E2 08 00 80 0F 80 11 00 00 00 00 00 00 09 [18:11:38]Write i2c OK [18:11:38]MH_I2C_Read... [18:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:38]Read from MH i2c: E2 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 17 00 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 17 00 80 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 59 [18:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:11:38]wFMCommunicate OK [18:11:38]requested_item fd.num is exist - process it [18:11:38]SAM_PROTO_GetFieldsCounters [18:11:38]wFMCommunicate request_size=4 [18:11:38]MH_SAM_APDU [18:11:38]CAPDU: 80 13 00 00 [18:11:38]Write to MH i2c: E2 08 00 81 0F 80 13 00 00 00 00 00 00 0C [18:11:38]Write i2c OK [18:11:38]MH_I2C_Read... [18:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:38]Read from MH i2c: E2 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 62 00 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 62 00 81 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E1 08 00 00 0E 04 04 00 0F 00 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 9C [18:11:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E1 08 00 00 0E 04 04 00 0F 00 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 [18:11:38]wFMCommunicate OK [18:11:38]SAM_PROTO_GetFieldsCounters done [18:11:38]requested_item shift.num is exist - process it [18:11:38]requested_item shift.opened is exist - process it [18:11:38]req_shift_opened [18:11:38]FM_GetShiftState [18:11:38]SAM_PROTO_GetShiftState [18:11:38]wFMCommunicate request_size=4 [18:11:38]MH_SAM_APDU [18:11:38]CAPDU: 80 13 01 00 [18:11:38]Write to MH i2c: E2 08 00 82 0F 80 13 01 00 00 00 00 00 0E [18:11:38]Write i2c OK [18:11:38]MH_I2C_Read... [18:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:38]Read from MH i2c: E2 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 0E 00 [18:11:38]MH_I2C_Read... [18:11:38]Read from MH i2c: E2 0E 00 82 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 07 [18:11:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:11:38]wFMCommunicate OK [18:11:38]SAM_PROTO_GetShiftState done [18:11:38]FM_GetShiftState done [18:11:38]req_shift_opened done [18:11:38]requested_item shift.open_date is exist - process it [18:11:38]req_shift_open_date [18:11:38]req_shift_open_date done [18:11:38]produce_requested_data done [18:11:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2273,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:11:38]process_action_free close_receipt [18:11:38]json_value_free [18:11:38]json_value_free done [18:11:38]process_json_proto returns [18:11:38]Send response to host [18:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2273,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:11:38]free response buf [18:11:38]execute_script done [18:11:38]execute_script returns [18:11:38]free content buf [18:11:38]Sock 8.Close socket [18:11:38]Sock 8.Thread stoped [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:21]accept exits with 9 [18:15:21]New connection [18:15:21]New thread 3067157860 created [18:15:21]Thread 3067014500 joined [18:15:21]Waiting for new connection... [18:15:21] Sock 9.Parse request [18:15:21]Sock 9.Check first char [18:15:21]Sock 9.First char is OK [18:15:21]request: POST /json_proto HTTP/1.0 [18:15:21]Method: POST [18:15:21]URL: /json_proto [18:15:21]Method is POST - this is cgi request [18:15:21]url: /json_proto [18:15:21]query_string will be loaded in cgi processing [18:15:21]execute_cgi json_proto POST (null) [18:15:21]execute_cgi path=json_proto method=POST [18:15:21]POST find Content-Length [18:15:21]Host: 172.17.45.132:8080 [18:15:21]Content-Length: 677 [18:15:21]Content-Type: application/json [18:15:21] [18:15:21]POST finish read [18:15:21]Found Content-Length = 677 [18:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:21]execute_script... [18:15: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)610037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:21]POST & json_proto [18:15:21]process_json_proto [18:15:21]json parsed OK: [18:15:21]protocol is kg_v1.0 [18:15:21]action value=close_receipt [18:15:21]process_action close_receipt [18:15:21]cmd_close_receipt [18:15:21]MH_GetDate [18:15:21]Write to MH i2c: F0 00 00 83 0F 81 [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: F0 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: F0 09 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: F0 09 00 83 0F 00 3B DC A7 66 E3 0B 90 66 92 [18:15:21]GetLastDocTimeStamp 1722276696 [18:15:21]current date 1722276923 [18:15:21]FM_GetShiftState [18:15:21]SAM_PROTO_GetShiftState [18:15:21]wFMCommunicate request_size=4 [18:15:21]MH_SAM_APDU [18:15:21]CAPDU: 80 13 01 00 [18:15:21]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:21]Read from MH i2c: E2 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 0E 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 09 [18:15:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:15:21]wFMCommunicate OK [18:15:21]SAM_PROTO_GetShiftState done [18:15:21]FM_GetShiftState done [18:15:21]opened in 1722213119 [18:15:21]opened+sec_in_day 1722299519 [18:15:21]quantity*price = 50036 [18:15:21]sum+1 = 50037 [18:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 123 29.07.2024 18:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2274 ФПД: 241278692719607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181523&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2274&fm=241278692719607&tin=02508201610067®Number=0000000000189667&sum=50000 [18:15:23]StoreToDocumentArchive [18:15:23]shift 15 fd 2274 [18:15:23]save to /storage/0015/doc_00002274 [18:15:23]save last doc name /storage/0015/doc_00002274 to /storage/kkm_last_doc_name [18:15:23]save OK [18:15:23]Clear old archive folders... [18:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:23]tlvbuf is 02031B00 [18:15:23]SAM_PROTO_ClearQueue [18:15:23]wFMCommunicate request_size=4 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 09 00 00 [18:15:23]Write to MH i2c: E2 08 00 91 0F 80 09 00 00 00 00 00 00 12 [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [18:15:23]RAPDU: 90 00 [18:15:23]wFMCommunicate OK [18:15:23]SAM_PROTO_ClearQueue done [18:15:23]KKMCreateOFDPacket [18:15:23]OFDProtocolAddRootSTLVToBuf [18:15:23]FM_MakeSignedData [18:15:23]FM_MakeSignedData [18:15:23]SAM_PROTO_SignData [18:15:23]wFMCommunicate request_size=4 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 0D 01 02 [18:15:23]Write to MH i2c: E2 08 00 92 0F 80 0D 01 02 00 00 00 00 1A [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [18:15:23]RAPDU: 90 00 [18:15:23]wFMCommunicate OK [18:15:23]wFMCommunicate request_size=255 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B DC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 08 00 00 35 04 06 00 DB [18:15:23]Write to MH i2c: E2 02 01 93 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B DC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 08 00 00 35 04 06 00 DB 00 00 12 [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [18:15:23]RAPDU: 90 00 [18:15:23]wFMCommunicate OK [18:15:23]wFMCommunicate request_size=10 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 0D 02 02 05 71 12 C5 7B F7 [18:15:23]Write to MH i2c: E2 0D 00 94 0F 80 0D 02 02 05 00 71 12 C5 7B F7 00 00 E1 [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [18:15:23]RAPDU: 90 00 [18:15:23]wFMCommunicate OK [18:15:23]wFMCommunicate request_size=4 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 0D 03 02 [18:15:23]Write to MH i2c: E2 08 00 95 0F 80 0D 03 02 00 00 00 00 1F [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 0B 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 0B 00 95 0F 00 B2 A3 A9 52 BE FE E3 62 90 00 71 [18:15:23]RAPDU: B2 A3 A9 52 BE FE E3 62 90 00 [18:15:23]wFMCommunicate OK [18:15:23]SAM_PROTO_SignData done [18:15:23]FM_MakeSignedData done [18:15:23]CreateOFDProtocolMessage [18:15:23]wFMCommunicate request_size=4 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 11 00 00 [18:15:23]Write to MH i2c: E2 08 00 96 0F 80 11 00 00 00 00 00 00 1F [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 17 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 17 00 96 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6F [18:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:15:23]wFMCommunicate OK [18:15:23]CreateOFDProtocolMessage done [18:15:23]OFDSenderStorePacket 2274 [18:15:23]StoreOFDPacket docnum=2274 [18:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 90 23 07 01 E6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B DC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 08 00 00 35 04 06 00 DB 71 12 C5 7B F7 B2 A3 A9 52 BE FE E3 62 [18:15:23]CheckFolder [18:15:23]dirname=/storage/ofd_packets [18:15:23]CheckFolder done [18:15:23]ProducePacketName [18:15:23]name=ofd_packets/00002274 [18:15:23]NVStorageSaveData ofd_packets/00002274 [18:15:23]File name is /storage/ofd_packets/00002274 [18:15:23]Write 301 bytes [18:15:23]NVStorageSaveData done [18:15:23]OFDSenderStorePacket done [18:15:23]KKMCreateOFDPacket done [18:15:23]NVStorageSaveData kkm_last_timestamp [18:15:23]File name is /storage/kkm_last_timestamp [18:15:23]Write 4 bytes [18:15:23]NVStorageSaveData done [18:15:23]ExternCall_PrintAddStr [18:15:23]wPrintStart [18:15:23]Write to MH i2c: 01 00 00 97 0F A6 [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: 01 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: 01 07 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 FF 0F BB [18:15:23]RasterBufferAndPrint [18:15:23]line Счет N : (1)610037 [18:15:23]line ИНН: 02508201610067 [18:15:23]line Контрольно-Кассовый Чек [18:15:23]line ПРОДАЖА [18:15:23]line ТРК (МРК, ГНК) : 42 [18:15:23]line Товар: 2710124130 [18:15:23]line Аи-92-К-2 [18:15:23]line 7.380 * 67.80 [18:15:23]line = 500.36 [18:15:23]line НДС 12% НСП 1% [18:15:23]line > о реализуемом товаре [18:15:23]line ОКРУГЛЕНИЕ: -0.36 [18:15:23]line ИТОГО: 500.00 [18:15:23]line Внесено: 500.00 [18:15:23]line СДАЧА: 0.00 [18:15:23]line НСП 1% : 4.43 [18:15:23]line НДС 12% : 53.14 [18:15:23]line Наличными: 500.00 [18:15:23]line Безнал.: 0.00 [18:15:23]line Место: АЗС № 127 "Партнер Нефть" [18:15:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:15:23]line СНО: Общий режим [18:15:23]line Чек 123 29.07.2024 18:15 [18:15:23]line Смена: 15 ФФД: 1.0 [18:15:23]line ЗНМ: 0300000161 [18:15:23]line РНМ: 0000000000189667 [18:15:23]line Версия ККМ: v1.0 [18:15:23]line ФМ: 0000000002094248 [18:15:23]line ФД: 2274 [18:15:23]line ФПД: 241278692719607 [18:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181523&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2274&fm=241278692719607&tin=02508201610067®Number=0000000000189667&sum=50000 [18:15:23]OFD Sender: Processing packet 2274 [packets to send 1, broken 0] [18:15:23]ProducePacketName [18:15:23]name=ofd_packets/00002274 [18:15:23]OFD Sender: To server: pG, [18:15:23]CommunicateWithHost lk.salyk.kg:30040 [18:15:23]ConnectInit lk.salyk.kg [18:15:23]written 0, free lines is 4095 [18:15:24]Connected sock=10 [18:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 90 23 07 01 E6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B DC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E2 08 00 00 35 04 06 00 DB 71 12 C5 7B F7 B2 A3 A9 52 BE FE E3 62 [18:15:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AE BB 47 00 43 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 32 30 39 34 32 34 38 10 04 04 00 E2 08 00 00 F4 03 04 00 A7 87 A7 66 B6 04 01 00 00 70 66 EE 32 A9 84 8E DB [18:15:24]CommunicateWithHost err = 0 [18:15:24]CheckOFDResponse [18:15:24]1017 (14) - 77093643461234 [18:15:24]1041 (16) - 0000000002094248 [18:15:24]1040 (4) - 2274 [18:15:24]1012 (4) - 29.07.2024 12:14 [18:15:24]1206 (1) - 0 [18:15:24]OFD Sender: Remove packet 2274 [18:15:24]ProducePacketName [18:15:24]name=ofd_packets/00002274 [18:15:24]NVStorageDeleteData [18:15:24]Write to MH i2c: 01 00 00 C2 0F D1 [18:15:24]Write i2c OK [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: 01 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: 01 07 00 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: 01 07 00 C2 0F 00 00 00 00 00 00 0D E5 [18:15:24]RasterBufferAndPrint [18:15:24]line [18:15:24]line [18:15:24]line [18:15:24]line [18:15:24]line [18:15:24]written 0, free lines is 3337 [18:15:24]MH_Cut [18:15:24]Write to MH i2c: D1 01 00 C9 0F 01 AA [18:15:24]Write i2c OK [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: D1 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: D1 01 00 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: D1 01 00 C9 0F 00 A9 [18:15:24]Write to MH i2c: 01 00 00 CA 0F D9 [18:15:24]Write i2c OK [18:15:24]MH_I2C_Read... [18:15:24]OFD Sender: No OFD packet to send [18:15:25]*** Cut start [18:15:25]*** Partial cut [18:15:25]*** CUTSNS_PIN = 1 [18:15:25]*** CUTSNS_PIN = 0 [18:15:25]*** Brake cut motor [18:15:25]Read from MH i2c: 01 [18:15:25]MH_I2C_Read... [18:15:25]*** Stop cut motor [18:15:25]*** Cut end [18:15:25]Read from MH i2c: 01 07 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [18:15:25]process_action close_receipt done [18:15:25]requested_data is exist [18:15:25]produce_requested_data [18:15:25]requested_item fm.sn is exist - process it [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 11 00 00 [18:15:25]Write to MH i2c: E2 08 00 CB 0F 80 11 00 00 00 00 00 00 54 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 CB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A4 [18:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:15:25]wFMCommunicate OK [18:15:25]requested_item fd.num is exist - process it [18:15:25]SAM_PROTO_GetFieldsCounters [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 13 00 00 [18:15:25]Write to MH i2c: E2 08 00 CC 0F 80 13 00 00 00 00 00 00 57 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 62 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 62 00 CC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E2 08 00 00 0E 04 04 00 0F 00 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 EB [18:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E2 08 00 00 0E 04 04 00 0F 00 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 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_GetFieldsCounters done [18:15:25]requested_item shift.num is exist - process it [18:15:25]requested_item shift.opened is exist - process it [18:15:25]req_shift_opened [18:15:25]FM_GetShiftState [18:15:25]SAM_PROTO_GetShiftState [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 13 01 00 [18:15:25]Write to MH i2c: E2 08 00 CD 0F 80 13 01 00 00 00 00 00 59 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0E 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0E 00 CD 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 52 [18:15:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_GetShiftState done [18:15:25]FM_GetShiftState done [18:15:25]req_shift_opened done [18:15:25]requested_item shift.open_date is exist - process it [18:15:25]req_shift_open_date [18:15:25]req_shift_open_date done [18:15:25]produce_requested_data done [18:15:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2274,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:15:25]process_action_free close_receipt [18:15:25]json_value_free [18:15:25]json_value_free done [18:15:25]process_json_proto returns [18:15:25]Send response to host [18:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2274,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:15:25]free response buf [18:15:25]execute_script done [18:15:25]execute_script returns [18:15:25]free content buf [18:15:25]Sock 9.Close socket [18:15:25]Sock 9.Thread stoped [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:56]accept exits with 8 [18:18:56]New connection [18:18:56]New thread 3067014500 created [18:18:56]Thread 3067157860 joined [18:18:56]Waiting for new connection... [18:18:56] Sock 8.Parse request [18:18:56]Sock 8.Check first char [18:18:56]Sock 8.First char is OK [18:18:56]request: POST /json_proto HTTP/1.0 [18:18:56]Method: POST [18:18:56]URL: /json_proto [18:18:56]Method is POST - this is cgi request [18:18:56]url: /json_proto [18:18:56]query_string will be loaded in cgi processing [18:18:56]execute_cgi json_proto POST (null) [18:18:56]execute_cgi path=json_proto method=POST [18:18:56]POST find Content-Length [18:18:56]Host: 172.17.45.132:8080 [18:18:56]Content-Length: 677 [18:18:56]Content-Type: application/json [18:18:56] [18:18:56]POST finish read [18:18:56]Found Content-Length = 677 [18:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:56]execute_script... [18:18:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:56]POST & json_proto [18:18:56]process_json_proto [18:18:56]json parsed OK: [18:18:56]protocol is kg_v1.0 [18:18:56]action value=close_receipt [18:18:56]process_action close_receipt [18:18:56]cmd_close_receipt [18:18:56]MH_GetDate [18:18:56]Write to MH i2c: F0 00 00 CE 0F CC [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: F0 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: F0 09 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: F0 09 00 CE 0F 00 12 DD A7 66 E3 0B 90 66 B5 [18:18:56]GetLastDocTimeStamp 1722276923 [18:18:56]current date 1722277138 [18:18:56]FM_GetShiftState [18:18:56]SAM_PROTO_GetShiftState [18:18:56]wFMCommunicate request_size=4 [18:18:56]MH_SAM_APDU [18:18:56]CAPDU: 80 13 01 00 [18:18:56]Write to MH i2c: E2 08 00 CF 0F 80 13 01 00 00 00 00 00 5B [18:18:56]Write i2c OK [18:18:56]MH_I2C_Read... [18:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:56]Read from MH i2c: E2 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 0E 00 [18:18:56]MH_I2C_Read... [18:18:56]Read from MH i2c: E2 0E 00 CF 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 54 [18:18:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:18:56]wFMCommunicate OK [18:18:56]SAM_PROTO_GetShiftState done [18:18:56]FM_GetShiftState done [18:18:56]opened in 1722213119 [18:18:56]opened+sec_in_day 1722299519 [18:18:56]quantity*price = 20001 [18:18:56]sum+1 = 20002 [18:18:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 124 29.07.2024 18:18 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2275 ФПД: 125465772553610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181858&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2275&fm=125465772553610&tin=02508201610067®Number=0000000000189667&sum=20000 [18:18:57]StoreToDocumentArchive [18:18:57]shift 15 fd 2275 [18:18:57]save to /storage/0015/doc_00002275 [18:18:57]save last doc name /storage/0015/doc_00002275 to /storage/kkm_last_doc_name [18:18:57]save OK [18:18:57]Clear old archive folders... [18:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:57]tlvbuf is 0200D780 [18:18:57]SAM_PROTO_ClearQueue [18:18:57]wFMCommunicate request_size=4 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 09 00 00 [18:18:57]Write to MH i2c: E2 08 00 DC 0F 80 09 00 00 00 00 00 00 5D [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:57]Read from MH i2c: E2 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 03 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [18:18:57]RAPDU: 90 00 [18:18:57]wFMCommunicate OK [18:18:57]SAM_PROTO_ClearQueue done [18:18:57]KKMCreateOFDPacket [18:18:57]OFDProtocolAddRootSTLVToBuf [18:18:57]FM_MakeSignedData [18:18:57]FM_MakeSignedData [18:18:57]SAM_PROTO_SignData [18:18:57]wFMCommunicate request_size=4 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 0D 01 02 [18:18:57]Write to MH i2c: E2 08 00 DD 0F 80 0D 01 02 00 00 00 00 65 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:57]Read from MH i2c: E2 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 03 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [18:18:57]RAPDU: 90 00 [18:18:57]wFMCommunicate OK [18:18:57]wFMCommunicate request_size=255 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 12 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 08 00 00 35 04 06 00 72 [18:18:57]Write to MH i2c: E2 02 01 DE 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 12 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 08 00 00 35 04 06 00 72 00 00 D0 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:58]Read from MH i2c: E2 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [18:18:58]RAPDU: 90 00 [18:18:58]wFMCommunicate OK [18:18:58]wFMCommunicate request_size=10 [18:18:58]MH_SAM_APDU [18:18:58]CAPDU: 80 0D 02 02 05 1C 46 CD F5 8A [18:18:58]Write to MH i2c: E2 0D 00 DF 0F 80 0D 02 02 05 00 1C 46 CD F5 8A 00 00 20 [18:18:58]Write i2c OK [18:18:58]MH_I2C_Read... [18:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:58]Read from MH i2c: E2 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [18:18:58]RAPDU: 90 00 [18:18:58]wFMCommunicate OK [18:18:58]wFMCommunicate request_size=4 [18:18:58]MH_SAM_APDU [18:18:58]CAPDU: 80 0D 03 02 [18:18:58]Write to MH i2c: E2 08 00 E0 0F 80 0D 03 02 00 00 00 00 6A [18:18:58]Write i2c OK [18:18:58]MH_I2C_Read... [18:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:58]Read from MH i2c: E2 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 0B 00 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 0B 00 E0 0F 00 18 5B E6 BA 4B 19 70 D4 90 00 26 [18:18:58]RAPDU: 18 5B E6 BA 4B 19 70 D4 90 00 [18:18:58]wFMCommunicate OK [18:18:58]SAM_PROTO_SignData done [18:18:58]FM_MakeSignedData done [18:18:58]CreateOFDProtocolMessage [18:18:58]wFMCommunicate request_size=4 [18:18:58]MH_SAM_APDU [18:18:58]CAPDU: 80 11 00 00 [18:18:58]Write to MH i2c: E2 08 00 E1 0F 80 11 00 00 00 00 00 00 6A [18:18:58]Write i2c OK [18:18:58]MH_I2C_Read... [18:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:58]Read from MH i2c: E2 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 17 00 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: E2 17 00 E1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BA [18:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:18:58]wFMCommunicate OK [18:18:58]CreateOFDProtocolMessage done [18:18:58]OFDSenderStorePacket 2275 [18:18:58]StoreOFDPacket docnum=2275 [18:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 61 06 07 01 41 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 12 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 08 00 00 35 04 06 00 72 1C 46 CD F5 8A 18 5B E6 BA 4B 19 70 D4 [18:18:58]CheckFolder [18:18:58]dirname=/storage/ofd_packets [18:18:58]CheckFolder done [18:18:58]ProducePacketName [18:18:58]name=ofd_packets/00002275 [18:18:58]NVStorageSaveData ofd_packets/00002275 [18:18:58]File name is /storage/ofd_packets/00002275 [18:18:58]Write 301 bytes [18:18:58]NVStorageSaveData done [18:18:58]OFDSenderStorePacket done [18:18:58]KKMCreateOFDPacket done [18:18:58]NVStorageSaveData kkm_last_timestamp [18:18:58]File name is /storage/kkm_last_timestamp [18:18:58]Write 4 bytes [18:18:58]NVStorageSaveData done [18:18:58]ExternCall_PrintAddStr [18:18:58]wPrintStart [18:18:58]Write to MH i2c: 01 00 00 E2 0F F1 [18:18:58]Write i2c OK [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: 01 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: 01 07 00 [18:18:58]MH_I2C_Read... [18:18:58]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 FF 0F 06 [18:18:58]RasterBufferAndPrint [18:18:58]line Счет N : (1)610038 [18:18:58]line ИНН: 02508201610067 [18:18:58]line Контрольно-Кассовый Чек [18:18:58]line ПРОДАЖА [18:18:58]line ТРК (МРК, ГНК) : 32 [18:18:58]line Товар: 2710124130 [18:18:58]line Аи-92-К-2 [18:18:58]line 2.950 * 67.80 [18:18:58]line = 200.01 [18:18:58]line НДС 12% НСП 1% [18:18:58]line > о реализуемом товаре [18:18:58]line ОКРУГЛЕНИЕ: -0.01 [18:18:58]line ИТОГО: 200.00 [18:18:58]line Внесено: 200.00 [18:18:58]line СДАЧА: 0.00 [18:18:58]line НСП 1% : 1.77 [18:18:58]line НДС 12% : 21.24 [18:18:58]line Наличными: 200.00 [18:18:58]line Безнал.: 0.00 [18:18:58]line Место: АЗС № 127 "Партнер Нефть" [18:18:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:18:58]line СНО: Общий режим [18:18:58]line Чек 124 29.07.2024 18:18 [18:18:58]line Смена: 15 ФФД: 1.0 [18:18:58]line ЗНМ: 0300000161 [18:18:58]line РНМ: 0000000000189667 [18:18:58]line Версия ККМ: v1.0 [18:18:58]line ФМ: 0000000002094248 [18:18:58]line ФД: 2275 [18:18:58]line ФПД: 125465772553610 [18:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181858&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2275&fm=125465772553610&tin=02508201610067®Number=0000000000189667&sum=20000 [18:18:58]OFD Sender: Processing packet 2275 [packets to send 1, broken 0] [18:18:58]ProducePacketName [18:18:58]name=ofd_packets/00002275 [18:18:58]OFD Sender: To server: pG, [18:18:58]CommunicateWithHost lk.salyk.kg:30040 [18:18:58]ConnectInit lk.salyk.kg [18:18:58]written 0, free lines is 4095 [18:18:58]Connected sock=10 [18:18:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 61 06 07 01 41 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 12 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E3 08 00 00 35 04 06 00 72 1C 46 CD F5 8A 18 5B E6 BA 4B 19 70 D4 [18:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 46 81 47 00 56 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 32 30 39 34 32 34 38 10 04 04 00 E3 08 00 00 F4 03 04 00 7D 88 A7 66 B6 04 01 00 00 73 42 E7 19 61 52 0F 20 [18:18:59]CommunicateWithHost err = 0 [18:18:59]CheckOFDResponse [18:18:59]1017 (14) - 77093643461234 [18:18:59]1041 (16) - 0000000002094248 [18:18:59]1040 (4) - 2275 [18:18:59]1012 (4) - 29.07.2024 12:18 [18:18:59]1206 (1) - 0 [18:18:59]OFD Sender: Remove packet 2275 [18:18:59]ProducePacketName [18:18:59]name=ofd_packets/00002275 [18:18:59]NVStorageDeleteData [18:18:59]Write to MH i2c: 01 00 00 0D 10 1D [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 07 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 07 00 0D 10 00 00 00 00 00 FE 0C 2E [18:18:59]RasterBufferAndPrint [18:18:59]line [18:18:59]line [18:18:59]line [18:18:59]line [18:18:59]line [18:18:59]written 0, free lines is 3332 [18:18:59]MH_Cut [18:18:59]Write to MH i2c: D1 01 00 14 10 01 F6 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: D1 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: D1 01 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: D1 01 00 14 10 00 F5 [18:18:59]Write to MH i2c: 01 00 00 15 10 25 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]OFD Sender: No OFD packet to send [18:18:59]*** Cut start [18:18:59]*** Partial cut [18:18:59]*** CUTSNS_PIN = 1 [18:18:59]*** CUTSNS_PIN = 0 [18:19:00]*** Brake cut motor [18:19:00]Read from MH i2c: 01 [18:19:00]MH_I2C_Read... [18:19:00]*** Stop cut motor [18:19:00]*** Cut end [18:19:00]Read from MH i2c: 01 07 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 FF 0F 3A [18:19:00]process_action close_receipt done [18:19:00]requested_data is exist [18:19:00]produce_requested_data [18:19:00]requested_item fm.sn is exist - process it [18:19:00]wFMCommunicate request_size=4 [18:19:00]MH_SAM_APDU [18:19:00]CAPDU: 80 11 00 00 [18:19:00]Write to MH i2c: E2 08 00 16 10 80 11 00 00 00 00 00 00 A0 [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:00]Read from MH i2c: E2 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 17 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 17 00 16 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F0 [18:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:19:00]wFMCommunicate OK [18:19:00]requested_item fd.num is exist - process it [18:19:00]SAM_PROTO_GetFieldsCounters [18:19:00]wFMCommunicate request_size=4 [18:19:00]MH_SAM_APDU [18:19:00]CAPDU: 80 13 00 00 [18:19:00]Write to MH i2c: E2 08 00 17 10 80 13 00 00 00 00 00 00 A3 [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:00]Read from MH i2c: E2 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 62 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 62 00 17 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E3 08 00 00 0E 04 04 00 0F 00 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 3B [18:19:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E3 08 00 00 0E 04 04 00 0F 00 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 [18:19:00]wFMCommunicate OK [18:19:00]SAM_PROTO_GetFieldsCounters done [18:19:00]requested_item shift.num is exist - process it [18:19:00]requested_item shift.opened is exist - process it [18:19:00]req_shift_opened [18:19:00]FM_GetShiftState [18:19:00]SAM_PROTO_GetShiftState [18:19:00]wFMCommunicate request_size=4 [18:19:00]MH_SAM_APDU [18:19:00]CAPDU: 80 13 01 00 [18:19:00]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:00]Read from MH i2c: E2 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 0E 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 9E [18:19:00]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:19:00]wFMCommunicate OK [18:19:00]SAM_PROTO_GetShiftState done [18:19:00]FM_GetShiftState done [18:19:00]req_shift_opened done [18:19:00]requested_item shift.open_date is exist - process it [18:19:00]req_shift_open_date [18:19:00]req_shift_open_date done [18:19:00]produce_requested_data done [18:19:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2275,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:19:00]process_action_free close_receipt [18:19:00]json_value_free [18:19:00]json_value_free done [18:19:00]process_json_proto returns [18:19:00]Send response to host [18:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2275,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:19:00]free response buf [18:19:00]execute_script done [18:19:00]execute_script returns [18:19:00]free content buf [18:19:00]Sock 8.Close socket [18:19:00]Sock 8.Thread stoped [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:35]accept exits with 9 [18:20:35]New connection [18:20:35]New thread 3067157860 created [18:20:35]Thread 3067014500 joined [18:20:35]Waiting for new connection... [18:20:35] Sock 9.Parse request [18:20:35]Sock 9.Check first char [18:20:35]Sock 9.First char is OK [18:20:35]request: POST /json_proto HTTP/1.0 [18:20:35]Method: POST [18:20:35]URL: /json_proto [18:20:35]Method is POST - this is cgi request [18:20:35]url: /json_proto [18:20:35]query_string will be loaded in cgi processing [18:20:35]execute_cgi json_proto POST (null) [18:20:35]execute_cgi path=json_proto method=POST [18:20:35]POST find Content-Length [18:20:35]Host: 172.17.45.132:8080 [18:20:35]Content-Length: 803 [18:20:35]Content-Type: application/json [18:20:35] [18:20:35]POST finish read [18:20:35]Found Content-Length = 803 [18:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:35]execute_script... [18:20:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:35]POST & json_proto [18:20:35]process_json_proto [18:20:35]json parsed OK: [18:20:35]protocol is kg_v1.0 [18:20:35]action value=close_receipt [18:20:35]process_action close_receipt [18:20:35]cmd_close_receipt [18:20:35]MH_GetDate [18:20:35]Write to MH i2c: F0 00 00 19 10 18 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: F0 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: F0 09 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: F0 09 00 19 10 00 75 DD A7 66 E3 0B 90 66 64 [18:20:35]GetLastDocTimeStamp 1722277138 [18:20:35]current date 1722277237 [18:20:35]FM_GetShiftState [18:20:35]SAM_PROTO_GetShiftState [18:20:35]wFMCommunicate request_size=4 [18:20:35]MH_SAM_APDU [18:20:35]CAPDU: 80 13 01 00 [18:20:35]Write to MH i2c: E2 08 00 1A 10 80 13 01 00 00 00 00 00 A7 [18:20:35]Write i2c OK [18:20:35]MH_I2C_Read... [18:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:35]Read from MH i2c: E2 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: E2 0E 00 [18:20:35]MH_I2C_Read... [18:20:35]Read from MH i2c: E2 0E 00 1A 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A0 [18:20:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:20:35]wFMCommunicate OK [18:20:35]SAM_PROTO_GetShiftState done [18:20:35]FM_GetShiftState done [18:20:35]opened in 1722213119 [18:20:35]opened+sec_in_day 1722299519 [18:20:35]quantity*price = 100005 [18:20:35]sum+1 = 100006 [18:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 125 29.07.2024 18:20 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2276 ФПД: 224584011458398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182037&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2276&fm=224584011458398&tin=02508201610067®Number=0000000000189667&sum=100005 [18:20:36]StoreToDocumentArchive [18:20:36]shift 15 fd 2276 [18:20:36]save to /storage/0015/doc_00002276 [18:20:36]save last doc name /storage/0015/doc_00002276 to /storage/kkm_last_doc_name [18:20:36]save OK [18:20:36]Clear old archive folders... [18:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:36]tlvbuf is 02016560 [18:20:36]SAM_PROTO_ClearQueue [18:20:36]wFMCommunicate request_size=4 [18:20:36]MH_SAM_APDU [18:20:36]CAPDU: 80 09 00 00 [18:20:36]Write to MH i2c: E2 08 00 27 10 80 09 00 00 00 00 00 00 A9 [18:20:36]Write i2c OK [18:20:36]MH_I2C_Read... [18:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [18:20:37]RAPDU: 90 00 [18:20:37]wFMCommunicate OK [18:20:37]SAM_PROTO_ClearQueue done [18:20:37]KKMCreateOFDPacket [18:20:37]OFDProtocolAddRootSTLVToBuf [18:20:37]FM_MakeSignedData [18:20:37]FM_MakeSignedData [18:20:37]SAM_PROTO_SignData [18:20:37]wFMCommunicate request_size=4 [18:20:37]MH_SAM_APDU [18:20:37]CAPDU: 80 0D 01 02 [18:20:37]Write to MH i2c: E2 08 00 28 10 80 0D 01 02 00 00 00 00 B1 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [18:20:37]RAPDU: 90 00 [18:20:37]wFMCommunicate OK [18:20:37]wFMCommunicate request_size=255 [18:20:37]MH_SAM_APDU [18:20:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 75 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E4 08 00 00 35 04 06 00 CC [18:20:37]Write to MH i2c: E2 02 01 29 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 75 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E4 08 00 00 35 04 06 00 CC 00 00 72 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [18:20:37]RAPDU: 90 00 [18:20:37]wFMCommunicate OK [18:20:37]wFMCommunicate request_size=10 [18:20:37]MH_SAM_APDU [18:20:37]CAPDU: 80 0D 02 02 05 42 0A 39 A7 5E [18:20:37]Write to MH i2c: E2 0D 00 2A 10 80 0D 02 02 05 00 42 0A 39 A7 5E 00 00 48 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [18:20:37]RAPDU: 90 00 [18:20:37]wFMCommunicate OK [18:20:37]wFMCommunicate request_size=4 [18:20:37]MH_SAM_APDU [18:20:37]CAPDU: 80 0D 03 02 [18:20:37]Write to MH i2c: E2 08 00 2B 10 80 0D 03 02 00 00 00 00 B6 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 0B 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 0B 00 2B 10 00 B2 25 9C 37 38 30 E9 55 90 00 07 [18:20:37]RAPDU: B2 25 9C 37 38 30 E9 55 90 00 [18:20:37]wFMCommunicate OK [18:20:37]SAM_PROTO_SignData done [18:20:37]FM_MakeSignedData done [18:20:37]CreateOFDProtocolMessage [18:20:37]wFMCommunicate request_size=4 [18:20:37]MH_SAM_APDU [18:20:37]CAPDU: 80 11 00 00 [18:20:37]Write to MH i2c: E2 08 00 2C 10 80 11 00 00 00 00 00 00 B6 [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:37]Read from MH i2c: E2 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 17 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: E2 17 00 2C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 06 [18:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:20:37]wFMCommunicate OK [18:20:37]CreateOFDProtocolMessage done [18:20:37]OFDSenderStorePacket 2276 [18:20:37]StoreOFDPacket docnum=2276 [18:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 80 93 07 01 77 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 75 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E4 08 00 00 35 04 06 00 CC 42 0A 39 A7 5E B2 25 9C 37 38 30 E9 55 [18:20:37]CheckFolder [18:20:37]dirname=/storage/ofd_packets [18:20:37]CheckFolder done [18:20:37]ProducePacketName [18:20:37]name=ofd_packets/00002276 [18:20:37]NVStorageSaveData ofd_packets/00002276 [18:20:37]File name is /storage/ofd_packets/00002276 [18:20:37]Write 301 bytes [18:20:37]NVStorageSaveData done [18:20:37]OFDSenderStorePacket done [18:20:37]KKMCreateOFDPacket done [18:20:37]NVStorageSaveData kkm_last_timestamp [18:20:37]File name is /storage/kkm_last_timestamp [18:20:37]Write 4 bytes [18:20:37]NVStorageSaveData done [18:20:37]ExternCall_PrintAddStr [18:20:37]wPrintStart [18:20:37]Write to MH i2c: 01 00 00 2D 10 3D [18:20:37]Write i2c OK [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: 01 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: 01 07 00 [18:20:37]MH_I2C_Read... [18:20:37]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 FF 0F 52 [18:20:37]RasterBufferAndPrint [18:20:37]line Счет N : (1)610040 [18:20:37]line ИНН: 02508201610067 [18:20:37]line Контрольно-Кассовый Чек [18:20:37]line ПРОДАЖА [18:20:37]line ТРК (МРК, ГНК) : 42 [18:20:37]line Товар: 2710124130 [18:20:37]line Аи-92-К-2 [18:20:37]line 14.750 * 67.80 [18:20:37]line = 1000.05 [18:20:37]line НДС 12% НСП 1% [18:20:37]line > о реализуемом товаре [18:20:37]line ИТОГО: 1000.05 [18:20:37]line НСП 1% : 8.85 [18:20:37]line НДС 12% : 106.20 [18:20:37]line Наличными: 0.00 [18:20:37]line Безнал.: 1000.05 [18:20:37]line Место: АЗС № 127 "Партнер Нефть" [18:20:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:20:37]line СНО: Общий режим [18:20:37]line Чек 125 29.07.2024 18:20 [18:20:37]line Смена: 15 ФФД: 1.0 [18:20:37]line ЗНМ: 0300000161 [18:20:37]line РНМ: 0000000000189667 [18:20:37]line Версия ККМ: v1.0 [18:20:37]line Платежная система: O! деньги [18:20:37]line ФМ: 0000000002094248 [18:20:37]line ФД: 2276 [18:20:37]line ФПД: 224584011458398 [18:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182037&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2276&fm=224584011458398&tin=02508201610067®Number=0000000000189667&sum=100005 [18:20:37]OFD Sender: Processing packet 2276 [packets to send 1, broken 0] [18:20:37]ProducePacketName [18:20:37]name=ofd_packets/00002276 [18:20:37]OFD Sender: To server: pG, [18:20:37]CommunicateWithHost lk.salyk.kg:30040 [18:20:37]ConnectInit lk.salyk.kg [18:20:37]written 0, free lines is 4095 [18:20:37]Connected sock=10 [18:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 80 93 07 01 77 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 75 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E4 08 00 00 35 04 06 00 CC 42 0A 39 A7 5E B2 25 9C 37 38 30 E9 55 [18:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 67 87 47 00 57 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E4 08 00 00 F4 03 04 00 E1 88 A7 66 B6 04 01 00 00 3A 45 D9 EF 5B 79 5A AB [18:20:38]CommunicateWithHost err = 0 [18:20:38]CheckOFDResponse [18:20:38]1017 (14) - 77093643461234 [18:20:38]1041 (16) - 0000000002094248 [18:20:38]1040 (4) - 2276 [18:20:38]1012 (4) - 29.07.2024 12:19 [18:20:38]1206 (1) - 0 [18:20:38]OFD Sender: Remove packet 2276 [18:20:38]ProducePacketName [18:20:38]name=ofd_packets/00002276 [18:20:38]NVStorageDeleteData [18:20:38]Write to MH i2c: 01 00 00 57 10 67 [18:20:38]Write i2c OK [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: 01 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: 01 07 00 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: 01 07 00 57 10 00 00 00 00 00 0D 0D 88 [18:20:38]RasterBufferAndPrint [18:20:38]line [18:20:38]line [18:20:38]line [18:20:38]line [18:20:38]line [18:20:38]written 0, free lines is 3348 [18:20:38]MH_Cut [18:20:38]Write to MH i2c: D1 01 00 5E 10 01 40 [18:20:38]Write i2c OK [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: D1 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: D1 01 00 [18:20:38]MH_I2C_Read... [18:20:38]Read from MH i2c: D1 01 00 5E 10 00 3F [18:20:38]Write to MH i2c: 01 00 00 5F 10 6F [18:20:38]Write i2c OK [18:20:38]MH_I2C_Read... [18:20:38]OFD Sender: No OFD packet to send [18:20:38]*** Cut start [18:20:38]*** Partial cut [18:20:38]*** CUTSNS_PIN = 1 [18:20:39]*** CUTSNS_PIN = 0 [18:20:39]*** Brake cut motor [18:20:39]Read from MH i2c: 01 [18:20:39]MH_I2C_Read... [18:20:39]*** Stop cut motor [18:20:39]*** Cut end [18:20:39]Read from MH i2c: 01 07 00 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 FF 0F 84 [18:20:39]process_action close_receipt done [18:20:39]requested_data is exist [18:20:39]produce_requested_data [18:20:39]requested_item fm.sn is exist - process it [18:20:39]wFMCommunicate request_size=4 [18:20:39]MH_SAM_APDU [18:20:39]CAPDU: 80 11 00 00 [18:20:39]Write to MH i2c: E2 08 00 60 10 80 11 00 00 00 00 00 00 EA [18:20:39]Write i2c OK [18:20:39]MH_I2C_Read... [18:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:39]Read from MH i2c: E2 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 17 00 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 17 00 60 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3A [18:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:20:39]wFMCommunicate OK [18:20:39]requested_item fd.num is exist - process it [18:20:39]SAM_PROTO_GetFieldsCounters [18:20:39]wFMCommunicate request_size=4 [18:20:39]MH_SAM_APDU [18:20:39]CAPDU: 80 13 00 00 [18:20:39]Write to MH i2c: E2 08 00 61 10 80 13 00 00 00 00 00 00 ED [18:20:39]Write i2c OK [18:20:39]MH_I2C_Read... [18:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:39]Read from MH i2c: E2 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 62 00 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 62 00 61 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E4 08 00 00 0E 04 04 00 0F 00 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 89 [18:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E4 08 00 00 0E 04 04 00 0F 00 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 [18:20:39]wFMCommunicate OK [18:20:39]SAM_PROTO_GetFieldsCounters done [18:20:39]requested_item shift.num is exist - process it [18:20:39]requested_item shift.opened is exist - process it [18:20:39]req_shift_opened [18:20:39]FM_GetShiftState [18:20:39]SAM_PROTO_GetShiftState [18:20:39]wFMCommunicate request_size=4 [18:20:39]MH_SAM_APDU [18:20:39]CAPDU: 80 13 01 00 [18:20:39]Write to MH i2c: E2 08 00 62 10 80 13 01 00 00 00 00 00 EF [18:20:39]Write i2c OK [18:20:39]MH_I2C_Read... [18:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:39]Read from MH i2c: E2 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 0E 00 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 0E 00 62 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E8 [18:20:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:20:39]wFMCommunicate OK [18:20:39]SAM_PROTO_GetShiftState done [18:20:39]FM_GetShiftState done [18:20:39]req_shift_opened done [18:20:39]requested_item shift.open_date is exist - process it [18:20:39]req_shift_open_date [18:20:39]req_shift_open_date done [18:20:39]produce_requested_data done [18:20:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2276,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:20:39]process_action_free close_receipt [18:20:39]json_value_free [18:20:39]json_value_free done [18:20:39]process_json_proto returns [18:20:39]Send response to host [18:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2276,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:20:39]free response buf [18:20:39]execute_script done [18:20:39]execute_script returns [18:20:39]free content buf [18:20:39]Sock 9.Close socket [18:20:39]Sock 9.Thread stoped [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]accept exits with 8 [18:21:03]New connection [18:21:03]New thread 3067014500 created [18:21:03]Thread 3067157860 joined [18:21:03]Waiting for new connection... [18:21:03] Sock 8.Parse request [18:21:03]Sock 8.Check first char [18:21:03]Sock 8.First char is OK [18:21:03]request: POST /json_proto HTTP/1.0 [18:21:03]Method: POST [18:21:03]URL: /json_proto [18:21:03]Method is POST - this is cgi request [18:21:03]url: /json_proto [18:21:03]query_string will be loaded in cgi processing [18:21:03]execute_cgi json_proto POST (null) [18:21:03]execute_cgi path=json_proto method=POST [18:21:03]POST find Content-Length [18:21:03]Host: 172.17.45.132:8080 [18:21:03]Content-Length: 799 [18:21:03]Content-Type: application/json [18:21:03] [18:21:03]POST finish read [18:21:03]Found Content-Length = 799 [18:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:03]execute_script... [18:21:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 13.210, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:03]POST & json_proto [18:21:03]process_json_proto [18:21:03]json parsed OK: [18:21:03]protocol is kg_v1.0 [18:21:03]action value=close_receipt [18:21:03]process_action close_receipt [18:21:03]cmd_close_receipt [18:21:03]MH_GetDate [18:21:03]Write to MH i2c: F0 00 00 63 10 62 [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: F0 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: F0 09 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: F0 09 00 63 10 00 91 DD A7 66 E3 0B 90 66 CA [18:21:03]GetLastDocTimeStamp 1722277237 [18:21:03]current date 1722277265 [18:21:03]FM_GetShiftState [18:21:03]SAM_PROTO_GetShiftState [18:21:03]wFMCommunicate request_size=4 [18:21:03]MH_SAM_APDU [18:21:03]CAPDU: 80 13 01 00 [18:21:03]Write to MH i2c: E2 08 00 64 10 80 13 01 00 00 00 00 00 F1 [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:03]Read from MH i2c: E2 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 0E 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 0E 00 64 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EA [18:21:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:21:03]wFMCommunicate OK [18:21:03]SAM_PROTO_GetShiftState done [18:21:03]FM_GetShiftState done [18:21:03]opened in 1722213119 [18:21:03]opened+sec_in_day 1722299519 [18:21:03]quantity*price = 99999 [18:21:03]sum+1 = 100001 [18:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 126 29.07.2024 18:21 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2277 ФПД: 190979446204136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182105&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2277&fm=190979446204136&tin=02508201610067®Number=0000000000189667&sum=100000 [18:21:04]StoreToDocumentArchive [18:21:04]shift 15 fd 2277 [18:21:04]save to /storage/0015/doc_00002277 [18:21:04]save last doc name /storage/0015/doc_00002277 to /storage/kkm_last_doc_name [18:21:04]save OK [18:21:04]Clear old archive folders... [18:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:21:04]tlvbuf is 01F54050 [18:21:04]SAM_PROTO_ClearQueue [18:21:04]wFMCommunicate request_size=4 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 09 00 00 [18:21:04]Write to MH i2c: E2 08 00 71 10 80 09 00 00 00 00 00 00 F3 [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:04]Read from MH i2c: E2 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [18:21:04]RAPDU: 90 00 [18:21:04]wFMCommunicate OK [18:21:04]SAM_PROTO_ClearQueue done [18:21:04]KKMCreateOFDPacket [18:21:04]OFDProtocolAddRootSTLVToBuf [18:21:04]FM_MakeSignedData [18:21:04]FM_MakeSignedData [18:21:04]SAM_PROTO_SignData [18:21:04]wFMCommunicate request_size=4 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 0D 01 02 [18:21:04]Write to MH i2c: E2 08 00 72 10 80 0D 01 02 00 00 00 00 FB [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:04]Read from MH i2c: E2 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [18:21:04]RAPDU: 90 00 [18:21:04]wFMCommunicate OK [18:21:04]wFMCommunicate request_size=255 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 91 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E5 08 00 00 35 04 06 00 AD B1 DE 0C [18:21:04]Write to MH i2c: E2 02 01 73 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 91 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E5 08 00 00 35 04 06 00 AD B1 DE 0C 00 00 A8 [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [18:21:05]RAPDU: 90 00 [18:21:05]wFMCommunicate OK [18:21:05]wFMCommunicate request_size=7 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 0D 02 02 02 E6 E8 [18:21:05]Write to MH i2c: E2 0A 00 74 10 80 0D 02 02 02 00 E6 E8 00 00 D0 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [18:21:05]RAPDU: 90 00 [18:21:05]wFMCommunicate OK [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 0D 03 02 [18:21:05]Write to MH i2c: E2 08 00 75 10 80 0D 03 02 00 00 00 00 00 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0B 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0B 00 75 10 00 FE D0 9B 2C F7 09 62 95 90 00 8D [18:21:05]RAPDU: FE D0 9B 2C F7 09 62 95 90 00 [18:21:05]wFMCommunicate OK [18:21:05]SAM_PROTO_SignData done [18:21:05]FM_MakeSignedData done [18:21:05]CreateOFDProtocolMessage [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 11 00 00 [18:21:05]Write to MH i2c: E2 08 00 76 10 80 11 00 00 00 00 00 00 00 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 17 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 17 00 76 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 50 [18:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:21:05]wFMCommunicate OK [18:21:05]CreateOFDProtocolMessage done [18:21:05]OFDSenderStorePacket 2277 [18:21:05]StoreOFDPacket docnum=2277 [18:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 56 5E 04 01 6E 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 91 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E5 08 00 00 35 04 06 00 AD B1 DE 0C E6 E8 FE D0 9B 2C F7 09 62 95 [18:21:05]CheckFolder [18:21:05]dirname=/storage/ofd_packets [18:21:05]CheckFolder done [18:21:05]ProducePacketName [18:21:05]name=ofd_packets/00002277 [18:21:05]NVStorageSaveData ofd_packets/00002277 [18:21:05]File name is /storage/ofd_packets/00002277 [18:21:05]Write 298 bytes [18:21:05]NVStorageSaveData done [18:21:05]OFDSenderStorePacket done [18:21:05]KKMCreateOFDPacket done [18:21:05]NVStorageSaveData kkm_last_timestamp [18:21:05]File name is /storage/kkm_last_timestamp [18:21:05]Write 4 bytes [18:21:05]NVStorageSaveData done [18:21:05]ExternCall_PrintAddStr [18:21:05]wPrintStart [18:21:05]Write to MH i2c: 01 00 00 77 10 87 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 07 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 FF 0F 9C [18:21:05]RasterBufferAndPrint [18:21:05]line Счет N : (1)610036 [18:21:05]line ИНН: 02508201610067 [18:21:05]line Контрольно-Кассовый Чек [18:21:05]line ПРОДАЖА [18:21:05]line ТРК (МРК, ГНК) : 1 [18:21:05]line Товар: 2710194210 [18:21:05]line ДТ-К-2 [18:21:05]line 13.210 * 75.70 [18:21:05]line = 1000.00 [18:21:05]line НДС 12% НСП 1% [18:21:05]line > о реализуемом товаре [18:21:05]line ИТОГО: 1000.00 [18:21:05]line НСП 1% : 8.85 [18:21:05]line НДС 12% : 106.19 [18:21:05]line Наличными: 0.00 [18:21:05]line Безнал.: 1000.00 [18:21:05]line Место: АЗС № 127 "Партнер Нефть" [18:21:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:21:05]line СНО: Общий режим [18:21:05]line Чек 126 29.07.2024 18:21 [18:21:05]line Смена: 15 ФФД: 1.0 [18:21:05]line ЗНМ: 0300000161 [18:21:05]line РНМ: 0000000000189667 [18:21:05]line Версия ККМ: v1.0 [18:21:05]line Платежная система: O! деньги [18:21:05]line ФМ: 0000000002094248 [18:21:05]line ФД: 2277 [18:21:05]line ФПД: 190979446204136 [18:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182105&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2277&fm=190979446204136&tin=02508201610067®Number=0000000000189667&sum=100000 [18:21:05]OFD Sender: Processing packet 2277 [packets to send 1, broken 0] [18:21:05]ProducePacketName [18:21:05]name=ofd_packets/00002277 [18:21:05]OFD Sender: To server: pG, [18:21:05]CommunicateWithHost lk.salyk.kg:30040 [18:21:05]ConnectInit lk.salyk.kg [18:21:05]written 0, free lines is 4095 [18:21:06]Write to MH i2c: 01 00 00 A1 10 B1 [18:21:06]Write i2c OK [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: 01 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: 01 07 00 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: 01 07 00 A1 10 00 00 00 00 00 EC 0C B0 [18:21:06]RasterBufferAndPrint [18:21:06]line [18:21:06]line [18:21:06]line [18:21:06]line [18:21:06]line [18:21:06]written 0, free lines is 3314 [18:21:06]MH_Cut [18:21:06]Write to MH i2c: D1 01 00 A8 10 01 8A [18:21:06]Write i2c OK [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: D1 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: D1 01 00 [18:21:06]MH_I2C_Read... [18:21:06]Read from MH i2c: D1 01 00 A8 10 00 89 [18:21:06]Write to MH i2c: 01 00 00 A9 10 B9 [18:21:06]Write i2c OK [18:21:06]MH_I2C_Read... [18:21:06]Connected sock=10 [18:21:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 56 5E 04 01 6E 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 9A 33 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 91 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E5 08 00 00 35 04 06 00 AD B1 DE 0C E6 E8 FE D0 9B 2C F7 09 62 95 [18:21:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 71 97 47 00 EF 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E5 08 00 00 F4 03 04 00 FD 88 A7 66 B6 04 01 00 00 45 3A A9 21 F2 F2 36 56 [18:21:06]CommunicateWithHost err = 0 [18:21:06]CheckOFDResponse [18:21:06]1017 (14) - 77093643461234 [18:21:06]1041 (16) - 0000000002094248 [18:21:06]1040 (4) - 2277 [18:21:06]1012 (4) - 29.07.2024 12:20 [18:21:06]1206 (1) - 0 [18:21:06]OFD Sender: Remove packet 2277 [18:21:06]ProducePacketName [18:21:06]name=ofd_packets/00002277 [18:21:06]NVStorageDeleteData [18:21:06]*** Cut start [18:21:06]*** Partial cut [18:21:06]*** CUTSNS_PIN = 1 [18:21:06]*** CUTSNS_PIN = 0 [18:21:07]OFD Sender: No OFD packet to send [18:21:07]*** Brake cut motor [18:21:07]Read from MH i2c: 01 [18:21:07]MH_I2C_Read... [18:21:07]*** Stop cut motor [18:21:07]*** Cut end [18:21:07]Read from MH i2c: 01 07 00 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 FF 0F CE [18:21:07]process_action close_receipt done [18:21:07]requested_data is exist [18:21:07]produce_requested_data [18:21:07]requested_item fm.sn is exist - process it [18:21:07]wFMCommunicate request_size=4 [18:21:07]MH_SAM_APDU [18:21:07]CAPDU: 80 11 00 00 [18:21:07]Write to MH i2c: E2 08 00 AA 10 80 11 00 00 00 00 00 00 34 [18:21:07]Write i2c OK [18:21:07]MH_I2C_Read... [18:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:07]Read from MH i2c: E2 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: E2 17 00 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: E2 17 00 AA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 84 [18:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:21:07]wFMCommunicate OK [18:21:07]requested_item fd.num is exist - process it [18:21:07]SAM_PROTO_GetFieldsCounters [18:21:07]wFMCommunicate request_size=4 [18:21:07]MH_SAM_APDU [18:21:07]CAPDU: 80 13 00 00 [18:21:07]Write to MH i2c: E2 08 00 AB 10 80 13 00 00 00 00 00 00 37 [18:21:07]Write i2c OK [18:21:07]MH_I2C_Read... [18:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:07]Read from MH i2c: E2 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: E2 62 00 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: E2 62 00 AB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E5 08 00 00 0E 04 04 00 0F 00 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 D7 [18:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E5 08 00 00 0E 04 04 00 0F 00 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 [18:21:07]wFMCommunicate OK [18:21:07]SAM_PROTO_GetFieldsCounters done [18:21:07]requested_item shift.num is exist - process it [18:21:07]requested_item shift.opened is exist - process it [18:21:07]req_shift_opened [18:21:07]FM_GetShiftState [18:21:07]SAM_PROTO_GetShiftState [18:21:07]wFMCommunicate request_size=4 [18:21:07]MH_SAM_APDU [18:21:07]CAPDU: 80 13 01 00 [18:21:07]Write to MH i2c: E2 08 00 AC 10 80 13 01 00 00 00 00 00 39 [18:21:07]Write i2c OK [18:21:07]MH_I2C_Read... [18:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:07]Read from MH i2c: E2 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: E2 0E 00 [18:21:07]MH_I2C_Read... [18:21:07]Read from MH i2c: E2 0E 00 AC 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 32 [18:21:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:21:07]wFMCommunicate OK [18:21:07]SAM_PROTO_GetShiftState done [18:21:07]FM_GetShiftState done [18:21:07]req_shift_opened done [18:21:07]requested_item shift.open_date is exist - process it [18:21:07]req_shift_open_date [18:21:07]req_shift_open_date done [18:21:07]produce_requested_data done [18:21:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2277,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:21:07]process_action_free close_receipt [18:21:07]json_value_free [18:21:07]json_value_free done [18:21:07]process_json_proto returns [18:21:07]Send response to host [18:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2277,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:21:07]free response buf [18:21:07]execute_script done [18:21:07]execute_script returns [18:21:07]free content buf [18:21:07]Sock 8.Close socket [18:21:07]Sock 8.Thread stoped [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:20]int [18:21:20]Write to MH i2c: 01 00 00 AD 10 BD [18:21:20]*** FLAG_PRN_PAP1 set [18:21:20]Write i2c OK [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 07 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 07 00 AD 10 00 01 00 00 00 FF 0F D3 [18:21:20]state=0 [18:21:20]No paper [18:21:20]int [18:21:20]Write to MH i2c: 01 00 00 AE 10 BE [18:21:20]*** FLAG_PRN_PAP2 set [18:21:20]Write i2c OK [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 07 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 07 00 AE 10 00 03 00 00 00 FF 0F D6 [18:21:20]state=0 [18:21:20]No paper [18:21:20]Cover opened [18:21:22]OFD Sender: No OFD packet to send [18:21:22]int [18:21:22]Write to MH i2c: 01 00 00 AF 10 BF [18:21:22]*** FLAG_PRN_PAP2 reset [18:21:22]Write i2c OK [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 AF 10 00 01 00 00 00 FF 0F D5 [18:21:22]state=3 [18:21:22]No paper [18:21:22]Cover closed [18:21:22]int [18:21:22]Write to MH i2c: 01 00 00 B0 10 C0 [18:21:22]*** FLAG_PRN_PAP2 set [18:21:22]Write i2c OK [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 B0 10 00 03 00 00 00 FF 0F D8 [18:21:22]state=0 [18:21:22]No paper [18:21:22]Cover opened [18:21:22]int [18:21:22]Write to MH i2c: 01 00 00 B1 10 C1 [18:21:22]*** FLAG_PRN_PAP2 reset [18:21:22]Write i2c OK [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 B1 10 00 01 00 00 00 FF 0F D7 [18:21:22]state=3 [18:21:22]No paper [18:21:22]Cover closed [18:21:22]int [18:21:22]Write to MH i2c: 01 00 00 B2 10 C2 [18:21:22]*** FLAG_PRN_PAP2 set [18:21:22]Write i2c OK [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 [18:21:22]MH_I2C_Read... [18:21:22]Read from MH i2c: 01 07 00 B2 10 00 03 00 00 00 FF 0F DA [18:21:22]state=0 [18:21:22]No paper [18:21:22]Cover opened [18:21:27]OFD Sender: No OFD packet to send [18:21:27]Write to MH i2c: 01 00 00 B3 10 C3 [18:21:27]Write i2c OK [18:21:27]MH_I2C_Read... [18:21:27]Read from MH i2c: 01 [18:21:27]MH_I2C_Read... [18:21:27]Read from MH i2c: 01 07 00 [18:21:27]MH_I2C_Read... [18:21:27]Read from MH i2c: 01 07 00 B3 10 00 03 00 00 00 FF 0F DB [18:21:27]state=3 [18:21:27]No paper [18:21:27]Cover opened [18:21:28]int [18:21:28]Write to MH i2c: 01 00 00 B4 10 C4 [18:21:28]*** FLAG_PRN_PAP1 reset [18:21:28]Write i2c OK [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: 01 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: 01 07 00 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: 01 07 00 B4 10 00 02 00 00 00 FF 0F DB [18:21:28]state=3 [18:21:28]Cover opened [18:21:28]int [18:21:28]Write to MH i2c: 01 00 00 B5 10 C5 [18:21:28]*** FLAG_PRN_PAP2 reset [18:21:28]Write i2c OK [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: 01 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: 01 07 00 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: 01 07 00 B5 10 00 00 00 00 00 FF 0F DA [18:21:28]state=3 [18:21:28]Cover closed [18:21:31]accept exits with 9 [18:21:31]New connection [18:21:31]New thread 3067157860 created [18:21:31]Thread 3067014500 joined [18:21:31]Waiting for new connection... [18:21:31] Sock 9.Parse request [18:21:31]Sock 9.Check first char [18:21:31]Sock 9.First char is OK [18:21:31]request: POST /json_proto HTTP/1.0 [18:21:31]Method: POST [18:21:31]URL: /json_proto [18:21:31]Method is POST - this is cgi request [18:21:31]url: /json_proto [18:21:31]query_string will be loaded in cgi processing [18:21:31]execute_cgi json_proto POST (null) [18:21:31]execute_cgi path=json_proto method=POST [18:21:31]POST find Content-Length [18:21:31]Host: 172.17.45.132:8080 [18:21:31]Content-Length: 215 [18:21:31]Content-Type: application/json [18:21:31] [18:21:31]POST finish read [18:21:31]Found Content-Length = 215 [18:21:31]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" ] } } [18:21:31]execute_script... [18:21:31]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" ] } } [18:21:31]POST & json_proto [18:21:31]process_json_proto [18:21:31]json parsed OK: [18:21:31]protocol is kg_v1.0 [18:21:31]action value=get_value [18:21:31]process_action get_value [18:21:31]cmd_get_value [18:21:31]process_action get_value done [18:21:31]requested_data is exist [18:21:31]produce_requested_data [18:21:31]requested_item kkm.sn is exist - process it [18:21:31]requested_item kkm.ver is exist - process it [18:21:31]requested_item fm.sn is exist - process it [18:21:31]wFMCommunicate request_size=4 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 11 00 00 [18:21:31]Write to MH i2c: E2 08 00 B6 10 80 11 00 00 00 00 00 00 40 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 17 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 17 00 B6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 90 [18:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:21:31]wFMCommunicate OK [18:21:31]requested_item fd.num is exist - process it [18:21:31]SAM_PROTO_GetFieldsCounters [18:21:31]wFMCommunicate request_size=4 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 13 00 00 [18:21:31]Write to MH i2c: E2 08 00 B7 10 80 13 00 00 00 00 00 00 43 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 62 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 62 00 B7 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E5 08 00 00 0E 04 04 00 0F 00 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 E3 [18:21:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E5 08 00 00 0E 04 04 00 0F 00 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 [18:21:31]wFMCommunicate OK [18:21:31]SAM_PROTO_GetFieldsCounters done [18:21:31]requested_item shift.num is exist - process it [18:21:31]requested_item shift.opened is exist - process it [18:21:31]req_shift_opened [18:21:31]FM_GetShiftState [18:21:31]SAM_PROTO_GetShiftState [18:21:31]wFMCommunicate request_size=4 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 13 01 00 [18:21:31]Write to MH i2c: E2 08 00 B8 10 80 13 01 00 00 00 00 00 45 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0E 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0E 00 B8 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3E [18:21:31]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:21:31]wFMCommunicate OK [18:21:31]SAM_PROTO_GetShiftState done [18:21:31]FM_GetShiftState done [18:21:31]req_shift_opened done [18:21:31]requested_item shift.open_date is exist - process it [18:21:31]req_shift_open_date [18:21:31]req_shift_open_date done [18:21:31]produce_requested_data done [18:21:31]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2277,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:21:31]process_action_free get_value [18:21:31]json_value_free [18:21:31]json_value_free done [18:21:31]process_json_proto returns [18:21:31]Send response to host [18:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2277,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:21:31]free response buf [18:21:31]execute_script done [18:21:31]execute_script returns [18:21:31]free content buf [18:21:31]Sock 9.Close socket [18:21:31]Sock 9.Thread stoped [18:21:31]accept exits with 8 [18:21:31]New connection [18:21:31]New thread 3067014500 created [18:21:31]Thread 3067157860 joined [18:21:31]Waiting for new connection... [18:21:31] Sock 8.Parse request [18:21:31]Sock 8.Check first char [18:21:31]Sock 8.First char is OK [18:21:31]request: POST /json_proto HTTP/1.0 [18:21:31]Method: POST [18:21:31]URL: /json_proto [18:21:31]Method is POST - this is cgi request [18:21:31]url: /json_proto [18:21:31]query_string will be loaded in cgi processing [18:21:31]execute_cgi json_proto POST (null) [18:21:31]execute_cgi path=json_proto method=POST [18:21:31]POST find Content-Length [18:21:31]Host: 172.17.45.132:8080 [18:21:31]Content-Length: 331 [18:21:31]Content-Type: application/json [18:21:31] [18:21:31]POST finish read [18:21:31]Found Content-Length = 331 [18:21:31]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" ] } } [18:21:31]execute_script... [18:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:21:32]POST & json_proto [18:21:32]process_json_proto [18:21:32]json parsed OK: [18:21:32]protocol is kg_v1.0 [18:21:32]action value=get_value [18:21:32]process_action get_value [18:21:32]cmd_get_value [18:21:32]process_action get_value done [18:21:32]requested_data is exist [18:21:32]produce_requested_data [18:21:32]requested_item fm.sale.total is exist - process it [18:21:32]SAM_PROTO_GetFMData [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 13 03 00 [18:21:32]Write to MH i2c: E2 08 00 B9 10 80 13 03 00 00 00 00 00 48 [18:21:32]OFD Sender: No OFD packet to send [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 FD 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 FD 00 B9 10 00 C0 04 85 04 BC 04 6E 04 04 00 C7 08 00 00 69 04 9F 00 6F 04 04 00 B6 08 00 00 B1 04 04 00 64 B2 A2 05 70 04 04 00 04 DA A5 03 72 04 04 00 60 D8 FC 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 39 99 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 D8 C3 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 98 [18:21:32]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 C7 08 00 00 69 04 9F 00 6F 04 04 00 B6 08 00 00 B1 04 04 00 64 B2 A2 05 70 04 04 00 04 DA A5 03 72 04 04 00 60 D8 FC 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0D 39 99 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 D8 C3 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [18:21:32]wFMCommunicate OK [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 17 00 00 [18:21:32]Write to MH i2c: E2 08 00 BA 10 80 17 00 00 00 00 00 00 4A [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 FD 00 [18:21:32]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 FD 00 BA 10 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [18:21:33]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:21:33]wFMCommunicate OK [18:21:33]wFMCommunicate request_size=4 [18:21:33]MH_SAM_APDU [18:21:33]CAPDU: 80 17 00 00 [18:21:33]Write to MH i2c: E2 08 00 BB 10 80 17 00 00 00 00 00 00 4B [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:21:33]Read from MH i2c: E2 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 FD 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 FD 00 BB 10 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [18:21:33]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:21:33]wFMCommunicate OK [18:21:33]wFMCommunicate request_size=4 [18:21:33]MH_SAM_APDU [18:21:33]CAPDU: 80 17 00 00 [18:21:33]Write to MH i2c: E2 08 00 BC 10 80 17 00 00 00 00 00 00 4C [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:21:33]Read from MH i2c: E2 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 FD 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 FD 00 BC 10 00 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [18:21:33]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:21:33]wFMCommunicate OK [18:21:33]wFMCommunicate request_size=4 [18:21:33]MH_SAM_APDU [18:21:33]CAPDU: 80 17 00 00 [18:21:33]Write to MH i2c: E2 08 00 BD 10 80 17 00 00 00 00 00 00 4D [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [18:21:33]Read from MH i2c: E2 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 DD 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 DD 00 BD 10 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 [18:21:33]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:33]wFMCommunicate OK [18:21:33]SAM_PROTO_GetFMData done [18:21:33]requested_item fm.sale_refund.total is exist - process it [18:21:33]requested_item fm.buy.total is exist - process it [18:21:33]requested_item shift.sale.total is exist - process it [18:21:33]SAM_PROTO_GetShiftData [18:21:33]wFMCommunicate request_size=4 [18:21:33]MH_SAM_APDU [18:21:33]CAPDU: 80 13 02 00 [18:21:33]Write to MH i2c: E2 08 00 BE 10 80 13 02 00 00 00 00 00 4C [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 FD 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 FD 00 BE 10 00 AE 04 AA 04 AA 04 6E 04 04 00 7E 00 00 00 69 04 9B 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 52 B7 47 70 04 03 00 40 31 2F 72 04 03 00 12 86 18 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 E9 9D 07 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 73 A2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [18:21:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7E 00 00 00 69 04 9B 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 52 B7 47 70 04 03 00 40 31 2F 72 04 03 00 12 86 18 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 E9 9D 07 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 73 A2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [18:21:34]wFMCommunicate OK [18:21:34]wFMCommunicate request_size=4 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 17 00 00 [18:21:34]Write to MH i2c: E2 08 00 BF 10 80 17 00 00 00 00 00 00 4F [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 FD 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 FD 00 BF 10 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 71 [18:21:34]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 [18:21:34]wFMCommunicate OK [18:21:34]wFMCommunicate request_size=4 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 17 00 00 [18:21:34]Write to MH i2c: E2 08 00 C0 10 80 17 00 00 00 00 00 00 50 [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 FD 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 FD 00 C0 10 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [18:21:34]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 [18:21:34]wFMCommunicate OK [18:21:34]wFMCommunicate request_size=4 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 17 00 00 [18:21:34]Write to MH i2c: E2 08 00 C1 10 80 17 00 00 00 00 00 00 51 [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:21:35]Read from MH i2c: E2 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 FD 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 FD 00 C1 10 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 C3 [18:21:35]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 [18:21:35]wFMCommunicate OK [18:21:35]wFMCommunicate request_size=4 [18:21:35]MH_SAM_APDU [18:21:35]CAPDU: 80 17 00 00 [18:21:35]Write to MH i2c: E2 08 00 C2 10 80 17 00 00 00 00 00 00 52 [18:21:35]Write i2c OK [18:21:35]MH_I2C_Read... [18:21:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [18:21:35]Read from MH i2c: E2 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 CB 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 CB 00 C2 10 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 3B [18:21:35]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 [18:21:35]wFMCommunicate OK [18:21:35]SAM_PROTO_GetShiftData done [18:21:35]requested_item shift.sale.total_cash is exist - process it [18:21:35]requested_item shift.sale_refund.total is exist - process it [18:21:35]requested_item shift.sale_refund.total_cash is exist - process it [18:21:35]requested_item shift.buy.total is exist - process it [18:21:35]requested_item shift.buy.total_cash is exist - process it [18:21:35]produce_requested_data done [18:21:35]produce_requested_data return {"fm.sale.total":945485.80,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":46999.86,"shift.sale.total_cash":30928.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} [18:21:35]process_action_free get_value [18:21:35]json_value_free [18:21:35]json_value_free done [18:21:35]process_json_proto returns [18:21:35]Send response to host [18:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":945485.80,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":46999.86,"shift.sale.total_cash":30928.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}}} [18:21:35]free response buf [18:21:35]execute_script done [18:21:35]execute_script returns [18:21:35]free content buf [18:21:35]Sock 8.Close socket [18:21:35]Sock 8.Thread stoped [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:21:58]accept exits with 9 [18:21:58]New connection [18:21:58]New thread 3067157860 created [18:21:58]Thread 3067014500 joined [18:21:58]Waiting for new connection... [18:21:58] Sock 9.Parse request [18:21:58]Sock 9.Check first char [18:21:58]Sock 9.First char is OK [18:21:58]request: POST /json_proto HTTP/1.0 [18:21:58]Method: POST [18:21:58]URL: /json_proto [18:21:58]Method is POST - this is cgi request [18:21:58]url: /json_proto [18:21:58]query_string will be loaded in cgi processing [18:21:58]execute_cgi json_proto POST (null) [18:21:58]execute_cgi path=json_proto method=POST [18:21:58]POST find Content-Length [18:21:58]Host: 172.17.45.132:8080 [18:21:58]Content-Length: 899 [18:21:58]Content-Type: application/json [18:21:58] [18:21:58]POST finish read [18:21:58]Found Content-Length = 899 [18:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126539", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:58]execute_script... [18:21: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)126539", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:58]POST & json_proto [18:21:58]process_json_proto [18:21:58]json parsed OK: [18:21:58]protocol is kg_v1.0 [18:21:58]action value=close_receipt [18:21:58]process_action close_receipt [18:21:58]cmd_close_receipt [18:21:58]MH_GetDate [18:21:58]Write to MH i2c: F0 00 00 C3 10 C2 [18:21:58]Write i2c OK [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: F0 [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: F0 09 00 [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: F0 09 00 C3 10 00 C8 DD A7 66 E3 0B 90 66 61 [18:21:58]GetLastDocTimeStamp 1722277265 [18:21:58]current date 1722277320 [18:21:58]FM_GetShiftState [18:21:58]SAM_PROTO_GetShiftState [18:21:58]wFMCommunicate request_size=4 [18:21:58]MH_SAM_APDU [18:21:58]CAPDU: 80 13 01 00 [18:21:58]Write to MH i2c: E2 08 00 C4 10 80 13 01 00 00 00 00 00 51 [18:21:58]Write i2c OK [18:21:58]MH_I2C_Read... [18:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:58]Read from MH i2c: E2 [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: E2 0E 00 [18:21:58]MH_I2C_Read... [18:21:58]Read from MH i2c: E2 0E 00 C4 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 4A [18:21:58]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:21:58]wFMCommunicate OK [18:21:58]SAM_PROTO_GetShiftState done [18:21:58]FM_GetShiftState done [18:21:58]opened in 1722213119 [18:21:58]opened+sec_in_day 1722299519 [18:21:58]quantity*price = 10500 [18:21:58]sum+1 = 10501 [18:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 127 29.07.2024 18:22 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2278 ФПД: 233489603975943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182200&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2278&fm=233489603975943&tin=02508201610067®Number=0000000000189667&sum=10500 0 [18:22:00]StoreToDocumentArchive [18:22:00]shift 15 fd 2278 [18:22:00]save to /storage/0015/doc_00002278 [18:22:00]save last doc name /storage/0015/doc_00002278 to /storage/kkm_last_doc_name [18:22:00]save OK [18:22:00]Clear old archive folders... [18:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=310 [18:22:00]tlvbuf is 0200D470 [18:22:00]SAM_PROTO_ClearQueue [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 09 00 00 [18:22:00]Write to MH i2c: E2 08 00 D1 10 80 09 00 00 00 00 00 00 53 [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 D1 10 00 90 00 55 [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]SAM_PROTO_ClearQueue done [18:22:00]KKMCreateOFDPacket [18:22:00]OFDProtocolAddRootSTLVToBuf [18:22:00]FM_MakeSignedData [18:22:00]FM_MakeSignedData [18:22:00]SAM_PROTO_SignData [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 01 02 [18:22:00]Write to MH i2c: E2 08 00 D2 10 80 0D 01 02 00 00 00 00 5B [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 D2 10 00 90 00 56 [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]wFMCommunicate request_size=255 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 7F 00 00 00 F4 03 04 00 C8 DD A7 66 0E 04 04 00 0F 00 00 [18:22:00]Write to MH i2c: E2 02 01 D3 10 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 7F 00 00 00 F4 03 04 00 C8 DD A7 66 0E 04 04 00 0F 00 00 00 00 05 [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 D3 10 00 90 00 57 [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]wFMCommunicate request_size=69 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E6 08 00 00 35 04 06 00 D4 5B 88 E7 5B 07 [18:22:00]Write to MH i2c: E2 48 00 D4 10 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E6 08 00 00 35 04 06 00 D4 5B 88 E7 5B 07 00 00 6A [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 D4 10 00 90 00 58 [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 03 02 [18:22:00]Write to MH i2c: E2 08 00 D5 10 80 0D 03 02 00 00 00 00 60 [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 0B 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 0B 00 D5 10 00 A3 BD 3A 84 61 B7 CA 44 90 00 A5 [18:22:00]RAPDU: A3 BD 3A 84 61 B7 CA 44 90 00 [18:22:00]wFMCommunicate OK [18:22:00]SAM_PROTO_SignData done [18:22:00]FM_MakeSignedData done [18:22:00]CreateOFDProtocolMessage [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 11 00 00 [18:22:00]Write to MH i2c: E2 08 00 D6 10 80 11 00 00 00 00 00 00 60 [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 17 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 17 00 D6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B0 [18:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:22:00]wFMCommunicate OK [18:22:00]CreateOFDProtocolMessage done [18:22:00]OFDSenderStorePacket 2278 [18:22:00]StoreOFDPacket docnum=2278 [18:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4A 01 00 00 BA C7 42 01 8E B8 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 7F 00 00 00 F4 03 04 00 C8 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E6 08 00 00 35 04 06 00 D4 5B 88 E7 5B 07 A3 BD 3A 84 61 B7 CA 44 [18:22:00]CheckFolder [18:22:00]dirname=/storage/ofd_packets [18:22:00]CheckFolder done [18:22:00]ProducePacketName [18:22:00]name=ofd_packets/00002278 [18:22:00]NVStorageSaveData ofd_packets/00002278 [18:22:00]File name is /storage/ofd_packets/00002278 [18:22:00]Write 360 bytes [18:22:00]NVStorageSaveData done [18:22:00]OFDSenderStorePacket done [18:22:00]KKMCreateOFDPacket done [18:22:00]NVStorageSaveData kkm_last_timestamp [18:22:00]File name is /storage/kkm_last_timestamp [18:22:00]Write 4 bytes [18:22:00]NVStorageSaveData done [18:22:00]ExternCall_PrintAddStr [18:22:00]wPrintStart [18:22:00]Write to MH i2c: 01 00 00 D7 10 E7 [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: 01 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: 01 07 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: 01 07 00 D7 10 00 00 00 00 00 FF 0F FC [18:22:00]RasterBufferAndPrint [18:22:00]line Счет N : (3)126539 [18:22:00]line ИНН: 02508201610067 [18:22:00]line Контрольно-Кассовый Чек [18:22:00]line ПРОДАЖА [18:22:00]line Товар: 4870145004982 [18:22:00]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [18:22:00]line 1.000 * 105.00 [18:22:00]line = 105.00 [18:22:00]line НДС 12% НСП 1% [18:22:00]line > о реализуемом товаре [18:22:00]line ИТОГО: 105.00 [18:22:00]line НСП 1% : 0.93 [18:22:00]line НДС 12% : 11.15 [18:22:00]line Наличными: 0.00 [18:22:00]line Безнал.: 105.00 [18:22:00]line Место: АЗС № 127 "Партнер Нефть" [18:22:00]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:22:00]line СНО: Общий режим [18:22:00]line Чек 127 29.07.2024 18:22 [18:22:00]line Смена: 15 ФФД: 1.0 [18:22:00]line ЗНМ: 0300000161 [18:22:00]line РНМ: 0000000000189667 [18:22:00]line Версия ККМ: v1.0 [18:22:00]line Платежная система: O! деньги [18:22:00]line ФМ: 0000000002094248 [18:22:00]line ФД: 2278 [18:22:00]line ФПД: 233489603975943 [18:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182200&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2278&fm=233489603975943&tin=02508201610067®Number=0000000000189667&sum=10500 [18:22:01]line 0 [18:22:01]OFD Sender: Processing packet 2278 [packets to send 1, broken 0] [18:22:01]ProducePacketName [18:22:01]name=ofd_packets/00002278 [18:22:01]OFD Sender: To server: pG, [18:22:01]CommunicateWithHost lk.salyk.kg:30040 [18:22:01]ConnectInit lk.salyk.kg [18:22:01]written 0, free lines is 4095 [18:22:01]Connected sock=10 [18:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4A 01 00 00 BA C7 42 01 8E B8 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 7F 00 00 00 F4 03 04 00 C8 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E6 08 00 00 35 04 06 00 D4 5B 88 E7 5B 07 A3 BD 3A 84 61 B7 CA 44 [18:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C3 CD 47 00 5E 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E6 08 00 00 F4 03 04 00 34 89 A7 66 B6 04 01 00 00 FA 65 C8 82 8D 90 97 37 [18:22:01]CommunicateWithHost err = 0 [18:22:01]CheckOFDResponse [18:22:01]1017 (14) - 77093643461234 [18:22:01]1041 (16) - 0000000002094248 [18:22:01]1040 (4) - 2278 [18:22:01]1012 (4) - 29.07.2024 12:21 [18:22:01]1206 (1) - 0 [18:22:01]OFD Sender: Remove packet 2278 [18:22:01]ProducePacketName [18:22:01]name=ofd_packets/00002278 [18:22:01]NVStorageDeleteData [18:22:01]Write to MH i2c: 01 00 00 02 11 13 [18:22:01]Write i2c OK [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 07 00 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 07 00 02 11 00 00 00 00 00 FF 0C 25 [18:22:01]RasterBufferAndPrint [18:22:01]line [18:22:01]line [18:22:01]line [18:22:01]line [18:22:01]line [18:22:01]written 0, free lines is 3332 [18:22:01]MH_Cut [18:22:01]Write to MH i2c: D1 01 00 09 11 01 EC [18:22:01]Write i2c OK [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: D1 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: D1 01 00 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: D1 01 00 09 11 00 EB [18:22:01]Write to MH i2c: 01 00 00 0A 11 1B [18:22:01]Write i2c OK [18:22:01]MH_I2C_Read... [18:22:01]OFD Sender: No OFD packet to send [18:22:02]*** Cut start [18:22:02]*** Partial cut [18:22:02]*** CUTSNS_PIN = 1 [18:22:02]*** CUTSNS_PIN = 0 [18:22:02]*** Brake cut motor [18:22:02]Read from MH i2c: 01 [18:22:02]MH_I2C_Read... [18:22:02]*** Stop cut motor [18:22:02]*** Cut end [18:22:02]Read from MH i2c: 01 07 00 [18:22:02]MH_I2C_Read... [18:22:02]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 FF 0F 30 [18:22:02]process_action close_receipt done [18:22:02]requested_data is exist [18:22:02]produce_requested_data [18:22:02]requested_item fm.sn is exist - process it [18:22:02]wFMCommunicate request_size=4 [18:22:02]MH_SAM_APDU [18:22:02]CAPDU: 80 11 00 00 [18:22:02]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [18:22:02]Write i2c OK [18:22:02]MH_I2C_Read... [18:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:02]Read from MH i2c: E2 [18:22:02]MH_I2C_Read... [18:22:02]Read from MH i2c: E2 17 00 [18:22:02]MH_I2C_Read... [18:22:02]Read from MH i2c: E2 17 00 0B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E6 [18:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:22:02]wFMCommunicate OK [18:22:02]requested_item fd.num is exist - process it [18:22:02]SAM_PROTO_GetFieldsCounters [18:22:02]wFMCommunicate request_size=4 [18:22:02]MH_SAM_APDU [18:22:02]CAPDU: 80 13 00 00 [18:22:02]Write to MH i2c: E2 08 00 0C 11 80 13 00 00 00 00 00 00 99 [18:22:02]Write i2c OK [18:22:02]MH_I2C_Read... [18:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:03]Read from MH i2c: E2 [18:22:03]MH_I2C_Read... [18:22:03]Read from MH i2c: E2 62 00 [18:22:03]MH_I2C_Read... [18:22:03]Read from MH i2c: E2 62 00 0C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E6 08 00 00 0E 04 04 00 0F 00 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 3D [18:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E6 08 00 00 0E 04 04 00 0F 00 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 [18:22:03]wFMCommunicate OK [18:22:03]SAM_PROTO_GetFieldsCounters done [18:22:03]requested_item shift.num is exist - process it [18:22:03]requested_item shift.opened is exist - process it [18:22:03]req_shift_opened [18:22:03]FM_GetShiftState [18:22:03]SAM_PROTO_GetShiftState [18:22:03]wFMCommunicate request_size=4 [18:22:03]MH_SAM_APDU [18:22:03]CAPDU: 80 13 01 00 [18:22:03]Write to MH i2c: E2 08 00 0D 11 80 13 01 00 00 00 00 00 9B [18:22:03]Write i2c OK [18:22:03]MH_I2C_Read... [18:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:03]Read from MH i2c: E2 [18:22:03]MH_I2C_Read... [18:22:03]Read from MH i2c: E2 0E 00 [18:22:03]MH_I2C_Read... [18:22:03]Read from MH i2c: E2 0E 00 0D 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 94 [18:22:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:22:03]wFMCommunicate OK [18:22:03]SAM_PROTO_GetShiftState done [18:22:03]FM_GetShiftState done [18:22:03]req_shift_opened done [18:22:03]requested_item shift.open_date is exist - process it [18:22:03]req_shift_open_date [18:22:03]req_shift_open_date done [18:22:03]produce_requested_data done [18:22:03]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2278,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:22:03]process_action_free close_receipt [18:22:03]json_value_free [18:22:03]json_value_free done [18:22:03]process_json_proto returns [18:22:03]Send response to host [18:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2278,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:22:03]free response buf [18:22:03]execute_script done [18:22:03]execute_script returns [18:22:03]free content buf [18:22:03]Sock 9.Close socket [18:22:03]Sock 9.Thread stoped [18:22:06]OFD Sender: No OFD packet to send [18:22:07]accept exits with 8 [18:22:07]New connection [18:22:07]New thread 3067014500 created [18:22:07]Thread 3067157860 joined [18:22:07]Waiting for new connection... [18:22:07] Sock 8.Parse request [18:22:07]Sock 8.Check first char [18:22:07]Sock 8.First char is OK [18:22:07]request: POST /json_proto HTTP/1.0 [18:22:07]Method: POST [18:22:07]URL: /json_proto [18:22:07]Method is POST - this is cgi request [18:22:07]url: /json_proto [18:22:07]query_string will be loaded in cgi processing [18:22:07]execute_cgi json_proto POST (null) [18:22:07]execute_cgi path=json_proto method=POST [18:22:07]POST find Content-Length [18:22:07]Host: 172.17.45.132:8080 [18:22:07]Content-Length: 637 [18:22:07]Content-Type: application/json [18:22:07] [18:22:07]POST finish read [18:22:07]Found Content-Length = 637 [18:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126540", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:07]execute_script... [18:22: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)126540", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:07]POST & json_proto [18:22:07]process_json_proto [18:22:07]json parsed OK: [18:22:07]protocol is kg_v1.0 [18:22:07]action value=close_receipt [18:22:07]process_action close_receipt [18:22:07]cmd_close_receipt [18:22:07]MH_GetDate [18:22:07]Write to MH i2c: F0 00 00 0E 11 0E [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: F0 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: F0 09 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: F0 09 00 0E 11 00 D1 DD A7 66 E3 0B 90 66 B6 [18:22:07]GetLastDocTimeStamp 1722277320 [18:22:07]current date 1722277329 [18:22:07]FM_GetShiftState [18:22:07]SAM_PROTO_GetShiftState [18:22:07]wFMCommunicate request_size=4 [18:22:07]MH_SAM_APDU [18:22:07]CAPDU: 80 13 01 00 [18:22:07]Write to MH i2c: E2 08 00 0F 11 80 13 01 00 00 00 00 00 9D [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:08]Read from MH i2c: E2 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: E2 0E 00 [18:22:08]MH_I2C_Read... [18:22:08]Read from MH i2c: E2 0E 00 0F 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 96 [18:22:08]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:22:08]wFMCommunicate OK [18:22:08]SAM_PROTO_GetShiftState done [18:22:08]FM_GetShiftState done [18:22:08]opened in 1722213119 [18:22:08]opened+sec_in_day 1722299519 [18:22:08]quantity*price = 7000 [18:22:08]sum+1 = 7001 [18:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 128 29.07.2024 18:22 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2279 ФПД: 247876325444223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182209&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2279&fm=247876325444223&tin=02508201610067®Number=0000000000189667&sum=7000 0 [18:22:09]StoreToDocumentArchive [18:22:09]shift 15 fd 2279 [18:22:09]save to /storage/0015/doc_00002279 [18:22:09]save last doc name /storage/0015/doc_00002279 to /storage/kkm_last_doc_name [18:22:09]save OK [18:22:09]Clear old archive folders... [18:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:22:09]tlvbuf is 020399E0 [18:22:09]SAM_PROTO_ClearQueue [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 09 00 00 [18:22:09]Write to MH i2c: E2 08 00 1C 11 80 09 00 00 00 00 00 00 9F [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [18:22:09]RAPDU: 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_ClearQueue done [18:22:09]KKMCreateOFDPacket [18:22:09]OFDProtocolAddRootSTLVToBuf [18:22:09]FM_MakeSignedData [18:22:09]FM_MakeSignedData [18:22:09]SAM_PROTO_SignData [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 0D 01 02 [18:22:09]Write to MH i2c: E2 08 00 1D 11 80 0D 01 02 00 00 00 00 A7 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 1D 11 00 90 00 A2 [18:22:09]RAPDU: 90 00 [18:22:09]wFMCommunicate OK [18:22:09]wFMCommunicate request_size=255 [18:22:09]MH_SAM_APDU [18:22:09]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 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [18:22:09]Write to MH i2c: E2 02 01 1E 11 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 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 FF [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 1E 11 00 90 00 A3 [18:22:09]RAPDU: 90 00 [18:22:09]wFMCommunicate OK [18:22:09]wFMCommunicate request_size=31 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 E7 08 00 00 35 04 06 00 E1 71 34 53 8A 7F [18:22:09]Write to MH i2c: E2 22 00 1F 11 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 E7 08 00 00 35 04 06 00 E1 71 34 53 8A 7F 00 00 A3 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 03 00 1F 11 00 90 00 A4 [18:22:09]RAPDU: 90 00 [18:22:09]wFMCommunicate OK [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 0D 03 02 [18:22:09]Write to MH i2c: E2 08 00 20 11 80 0D 03 02 00 00 00 00 AC [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0B 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0B 00 20 11 00 DE FB 14 89 82 DA B3 49 90 00 7B [18:22:09]RAPDU: DE FB 14 89 82 DA B3 49 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_SignData done [18:22:09]FM_MakeSignedData done [18:22:09]CreateOFDProtocolMessage [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 11 00 00 [18:22:09]Write to MH i2c: E2 08 00 21 11 80 11 00 00 00 00 00 00 AC [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 17 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 17 00 21 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [18:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:22:09]wFMCommunicate OK [18:22:09]CreateOFDProtocolMessage done [18:22:09]OFDSenderStorePacket 2279 [18:22:09]StoreOFDPacket docnum=2279 [18:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 20 50 1C 01 F4 3B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E7 08 00 00 35 04 06 00 E1 71 34 53 8A 7F DE FB 14 89 82 DA B3 49 [18:22:09]CheckFolder [18:22:09]dirname=/storage/ofd_packets [18:22:09]CheckFolder done [18:22:09]ProducePacketName [18:22:09]name=ofd_packets/00002279 [18:22:09]NVStorageSaveData ofd_packets/00002279 [18:22:09]File name is /storage/ofd_packets/00002279 [18:22:09]Write 322 bytes [18:22:09]NVStorageSaveData done [18:22:09]OFDSenderStorePacket done [18:22:09]KKMCreateOFDPacket done [18:22:09]NVStorageSaveData kkm_last_timestamp [18:22:09]File name is /storage/kkm_last_timestamp [18:22:09]Write 4 bytes [18:22:09]NVStorageSaveData done [18:22:09]ExternCall_PrintAddStr [18:22:09]wPrintStart [18:22:09]Write to MH i2c: 01 00 00 22 11 33 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: 01 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: 01 07 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: 01 07 00 22 11 00 00 00 00 00 FF 0F 48 [18:22:09]RasterBufferAndPrint [18:22:09]line Счет N : (3)126540 [18:22:09]line ИНН: 02508201610067 [18:22:09]line Контрольно-Кассовый Чек [18:22:09]line ПРОДАЖА [18:22:09]line Товар: 4630007400358 [18:22:09]line Семечки ДЖИНН 70г [18:22:09]line 1.000 * 70.00 [18:22:09]line = 70.00 [18:22:09]line НДС 12% НСП 1% [18:22:09]line > о реализуемом товаре [18:22:09]line ИТОГО: 70.00 [18:22:09]line НСП 1% : 0.62 [18:22:09]line НДС 12% : 7.43 [18:22:09]line Наличными: 70.00 [18:22:09]line Безнал.: 0.00 [18:22:09]line Место: АЗС № 127 "Партнер Нефть" [18:22:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:22:09]line СНО: Общий режим [18:22:09]line Чек 128 29.07.2024 18:22 [18:22:09]line Смена: 15 ФФД: 1.0 [18:22:09]line ЗНМ: 0300000161 [18:22:09]line РНМ: 0000000000189667 [18:22:09]line Версия ККМ: v1.0 [18:22:09]line ФМ: 0000000002094248 [18:22:09]line ФД: 2279 [18:22:09]line ФПД: 247876325444223 [18:22:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182209&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2279&fm=247876325444223&tin=02508201610067®Number=0000000000189667&sum=7000 [18:22:09]line 0 [18:22:09]written 0, free lines is 4095 [18:22:09]OFD Sender: Processing packet 2279 [packets to send 1, broken 0] [18:22:09]ProducePacketName [18:22:09]name=ofd_packets/00002279 [18:22:09]OFD Sender: To server: pG, [18:22:09]CommunicateWithHost lk.salyk.kg:30040 [18:22:09]ConnectInit lk.salyk.kg [18:22:09]Connected sock=10 [18:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 20 50 1C 01 F4 3B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 DD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E7 08 00 00 35 04 06 00 E1 71 34 53 8A 7F DE FB 14 89 82 DA B3 49 [18:22:10]Write to MH i2c: 01 00 00 4A 11 5B [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 07 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 0F 0D 7E [18:22:10]RasterBufferAndPrint [18:22:10]line [18:22:10]line [18:22:10]line [18:22:10]line [18:22:10]line [18:22:10]written 0, free lines is 3356 [18:22:10]MH_Cut [18:22:10]Write to MH i2c: D1 01 00 51 11 01 34 [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: D1 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: D1 01 00 [18:22:10]MH_I2C_Read... [18:22:10]Read from MH i2c: D1 01 00 51 11 00 33 [18:22:10]Write to MH i2c: 01 00 00 52 11 63 [18:22:10]Write i2c OK [18:22:10]MH_I2C_Read... [18:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D8 85 47 00 B2 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 32 30 39 34 32 34 38 10 04 04 00 E7 08 00 00 F4 03 04 00 3C 89 A7 66 B6 04 01 00 00 00 03 99 10 1F D8 CC 98 [18:22:10]CommunicateWithHost err = 0 [18:22:10]CheckOFDResponse [18:22:10]1017 (14) - 77093643461234 [18:22:10]1041 (16) - 0000000002094248 [18:22:10]1040 (4) - 2279 [18:22:10]1012 (4) - 29.07.2024 12:21 [18:22:10]1206 (1) - 0 [18:22:10]OFD Sender: Remove packet 2279 [18:22:10]ProducePacketName [18:22:10]name=ofd_packets/00002279 [18:22:10]NVStorageDeleteData [18:22:10]OFD Sender: No OFD packet to send [18:22:10]*** Cut start [18:22:10]*** Partial cut [18:22:10]*** CUTSNS_PIN = 1 [18:22:10]*** CUTSNS_PIN = 0 [18:22:11]*** Brake cut motor [18:22:11]Read from MH i2c: 01 [18:22:11]MH_I2C_Read... [18:22:11]*** Stop cut motor [18:22:11]*** Cut end [18:22:11]Read from MH i2c: 01 07 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: 01 07 00 52 11 00 00 00 00 00 FF 0F 78 [18:22:11]process_action close_receipt done [18:22:11]requested_data is exist [18:22:11]produce_requested_data [18:22:11]requested_item fm.sn is exist - process it [18:22:11]wFMCommunicate request_size=4 [18:22:11]MH_SAM_APDU [18:22:11]CAPDU: 80 11 00 00 [18:22:11]Write to MH i2c: E2 08 00 53 11 80 11 00 00 00 00 00 00 DE [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:11]Read from MH i2c: E2 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 17 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 17 00 53 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2E [18:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:22:11]wFMCommunicate OK [18:22:11]requested_item fd.num is exist - process it [18:22:11]SAM_PROTO_GetFieldsCounters [18:22:11]wFMCommunicate request_size=4 [18:22:11]MH_SAM_APDU [18:22:11]CAPDU: 80 13 00 00 [18:22:11]Write to MH i2c: E2 08 00 54 11 80 13 00 00 00 00 00 00 E1 [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:11]Read from MH i2c: E2 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 62 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 62 00 54 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E7 08 00 00 0E 04 04 00 0F 00 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 89 [18:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E7 08 00 00 0E 04 04 00 0F 00 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 [18:22:11]wFMCommunicate OK [18:22:11]SAM_PROTO_GetFieldsCounters done [18:22:11]requested_item shift.num is exist - process it [18:22:11]requested_item shift.opened is exist - process it [18:22:11]req_shift_opened [18:22:11]FM_GetShiftState [18:22:11]SAM_PROTO_GetShiftState [18:22:11]wFMCommunicate request_size=4 [18:22:11]MH_SAM_APDU [18:22:11]CAPDU: 80 13 01 00 [18:22:11]Write to MH i2c: E2 08 00 55 11 80 13 01 00 00 00 00 00 E3 [18:22:11]Write i2c OK [18:22:11]MH_I2C_Read... [18:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:11]Read from MH i2c: E2 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 0E 00 [18:22:11]MH_I2C_Read... [18:22:11]Read from MH i2c: E2 0E 00 55 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DC [18:22:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:22:11]wFMCommunicate OK [18:22:11]SAM_PROTO_GetShiftState done [18:22:11]FM_GetShiftState done [18:22:11]req_shift_opened done [18:22:11]requested_item shift.open_date is exist - process it [18:22:11]req_shift_open_date [18:22:11]req_shift_open_date done [18:22:11]produce_requested_data done [18:22:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2279,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:22:11]process_action_free close_receipt [18:22:11]json_value_free [18:22:11]json_value_free done [18:22:11]process_json_proto returns [18:22:11]Send response to host [18:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2279,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:22:11]free response buf [18:22:11]execute_script done [18:22:11]execute_script returns [18:22:11]free content buf [18:22:11]Sock 8.Close socket [18:22:11]Sock 8.Thread stoped [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:22:56]accept exits with 9 [18:22:56]New connection [18:22:56]New thread 3067157860 created [18:22:56]Thread 3067014500 joined [18:22:56]Waiting for new connection... [18:22:56] Sock 9.Parse request [18:22:56]Sock 9.Check first char [18:22:56]Sock 9.First char is OK [18:22:56]request: POST /json_proto HTTP/1.0 [18:22:56]Method: POST [18:22:56]URL: /json_proto [18:22:56]Method is POST - this is cgi request [18:22:56]url: /json_proto [18:22:56]query_string will be loaded in cgi processing [18:22:56]execute_cgi json_proto POST (null) [18:22:56]execute_cgi path=json_proto method=POST [18:22:56]POST find Content-Length [18:22:56]Host: 172.17.45.132:8080 [18:22:56]Content-Length: 1203 [18:22:56]Content-Type: application/json [18:22:56] [18:22:56]POST finish read [18:22:56]Found Content-Length = 1203 [18:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610041\u000A29.07.2024 18:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:56]execute_script... [18:22:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610041\u000A29.07.2024 18:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:56]POST & json_proto [18:22:56]process_json_proto [18:22:56]json parsed OK: [18:22:56]protocol is kg_v1.0 [18:22:56]action value=print_text [18:22:56]process_action print_text [18:22:56]cmd_print_text [18:22:56]ExternCall_PrintAddStr [18:22:56]wPrintStart [18:22:56]Write to MH i2c: 01 00 00 56 11 67 [18:22:56]Write i2c OK [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: 01 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: 01 07 00 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: 01 07 00 56 11 00 00 00 00 00 FF 0F 7C [18:22:56]RasterBufferAndPrint [18:22:56]line *****ТОВАРНЫЙ ЧЕК***** [18:22:56]line АЗС 127 [18:22:56]line Партнер нефть [18:22:56]line 02508201610067 [18:22:56]line Кассир : Мансуров А. [18:22:56]line Счет N : (1)610041 [18:22:56]line 29.07.2024 18:12 [18:22:56]line ПРОДАЖА [18:22:56]line ТРК (МРК, ГНК): 52 [18:22:56]line Вид ГСМ : 2710124130 [18:22:56]line Аи-92-К-2 [18:22:56]line 20.000 x 67.80 [18:22:56]line ИТОГ: 1356.00 [18:22:56]line Тип оплаты: Талоны: Топливные Талоны [18:22:56]line 3957585 [18:22:56]line ______________________ [18:22:56]line (подпись) [18:22:56]written 0, free lines is 4095 [18:22:56]Write to MH i2c: 01 00 00 6A 11 7B [18:22:56]Write i2c OK [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: 01 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: 01 07 00 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 10 0E A0 [18:22:56]RasterBufferAndPrint [18:22:56]line [18:22:56]line [18:22:56]line [18:22:56]line [18:22:56]line [18:22:56]written 0, free lines is 3601 [18:22:56]MH_Cut [18:22:56]Write to MH i2c: D1 01 00 71 11 01 54 [18:22:56]Write i2c OK [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: D1 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: D1 01 00 [18:22:56]MH_I2C_Read... [18:22:56]Read from MH i2c: D1 01 00 71 11 00 53 [18:22:56]Write to MH i2c: 01 00 00 72 11 83 [18:22:56]Write i2c OK [18:22:56]MH_I2C_Read... [18:22:56]*** Cut start [18:22:56]*** Partial cut [18:22:56]*** CUTSNS_PIN = 1 [18:22:56]*** CUTSNS_PIN = 0 [18:22:57]*** Brake cut motor [18:22:57]Read from MH i2c: 01 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: 01 07 00 [18:22:57]MH_I2C_Read... [18:22:57]*** Stop cut motor [18:22:57]*** Cut end [18:22:57]Read from MH i2c: 01 07 00 72 11 00 00 00 00 00 FF 0F 98 [18:22:57]process_action print_text done [18:22:57]requested_data is exist [18:22:57]produce_requested_data [18:22:57]requested_item fm.sn is exist - process it [18:22:57]wFMCommunicate request_size=4 [18:22:57]MH_SAM_APDU [18:22:57]CAPDU: 80 11 00 00 [18:22:57]Write to MH i2c: E2 08 00 73 11 80 11 00 00 00 00 00 00 FE [18:22:57]Write i2c OK [18:22:57]MH_I2C_Read... [18:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:57]Read from MH i2c: E2 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 17 00 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 17 00 73 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4E [18:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:22:57]wFMCommunicate OK [18:22:57]requested_item fd.num is exist - process it [18:22:57]SAM_PROTO_GetFieldsCounters [18:22:57]wFMCommunicate request_size=4 [18:22:57]MH_SAM_APDU [18:22:57]CAPDU: 80 13 00 00 [18:22:57]Write to MH i2c: E2 08 00 74 11 80 13 00 00 00 00 00 00 01 [18:22:57]Write i2c OK [18:22:57]MH_I2C_Read... [18:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:57]Read from MH i2c: E2 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 62 00 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 62 00 74 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E7 08 00 00 0E 04 04 00 0F 00 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 A9 [18:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E7 08 00 00 0E 04 04 00 0F 00 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 [18:22:57]wFMCommunicate OK [18:22:57]SAM_PROTO_GetFieldsCounters done [18:22:57]requested_item shift.num is exist - process it [18:22:57]requested_item shift.opened is exist - process it [18:22:57]req_shift_opened [18:22:57]FM_GetShiftState [18:22:57]SAM_PROTO_GetShiftState [18:22:57]wFMCommunicate request_size=4 [18:22:57]MH_SAM_APDU [18:22:57]CAPDU: 80 13 01 00 [18:22:57]Write to MH i2c: E2 08 00 75 11 80 13 01 00 00 00 00 00 03 [18:22:57]Write i2c OK [18:22:57]MH_I2C_Read... [18:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:57]Read from MH i2c: E2 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 0E 00 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 0E 00 75 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FC [18:22:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:22:57]wFMCommunicate OK [18:22:57]SAM_PROTO_GetShiftState done [18:22:57]FM_GetShiftState done [18:22:57]req_shift_opened done [18:22:57]requested_item shift.open_date is exist - process it [18:22:57]req_shift_open_date [18:22:57]req_shift_open_date done [18:22:57]produce_requested_data done [18:22:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2279,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:22:57]process_action_free print_text [18:22:57]json_value_free [18:22:57]json_value_free done [18:22:57]process_json_proto returns [18:22:57]Send response to host [18:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2279,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:22:57]free response buf [18:22:57]execute_script done [18:22:57]execute_script returns [18:22:57]free content buf [18:22:57]Sock 9.Close socket [18:22:57]Sock 9.Thread stoped [18:22:59]accept exits with 8 [18:22:59]New connection [18:22:59]New thread 3067014500 created [18:22:59]Thread 3067157860 joined [18:22:59]Waiting for new connection... [18:22:59] Sock 8.Parse request [18:22:59]Sock 8.Check first char [18:22:59]Sock 8.First char is OK [18:22:59]request: POST /json_proto HTTP/1.0 [18:22:59]Method: POST [18:22:59]URL: /json_proto [18:22:59]Method is POST - this is cgi request [18:22:59]url: /json_proto [18:22:59]query_string will be loaded in cgi processing [18:22:59]execute_cgi json_proto POST (null) [18:22:59]execute_cgi path=json_proto method=POST [18:22:59]POST find Content-Length [18:22:59]Host: 172.17.45.132:8080 [18:22:59]Content-Length: 677 [18:22:59]Content-Type: application/json [18:22:59] [18:22:59]POST finish read [18:22:59]Found Content-Length = 677 [18:22:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.130, "sum" : 144.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 144.00, "total" : 144.00, "payments": [ { "type": 0, "sum" : 144.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:59]execute_script... [18:22:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.130, "sum" : 144.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 144.00, "total" : 144.00, "payments": [ { "type": 0, "sum" : 144.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:59]POST & json_proto [18:22:59]process_json_proto [18:22:59]json parsed OK: [18:22:59]protocol is kg_v1.0 [18:22:59]action value=close_receipt [18:22:59]process_action close_receipt [18:22:59]cmd_close_receipt [18:22:59]MH_GetDate [18:22:59]Write to MH i2c: F0 00 00 76 11 76 [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: F0 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: F0 09 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: F0 09 00 76 11 00 04 DE A7 66 E3 0B 90 66 52 [18:22:59]GetLastDocTimeStamp 1722277329 [18:22:59]current date 1722277380 [18:22:59]FM_GetShiftState [18:22:59]SAM_PROTO_GetShiftState [18:22:59]wFMCommunicate request_size=4 [18:22:59]MH_SAM_APDU [18:22:59]CAPDU: 80 13 01 00 [18:22:59]Write to MH i2c: E2 08 00 77 11 80 13 01 00 00 00 00 00 05 [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:59]Read from MH i2c: E2 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 0E 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: E2 0E 00 77 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FE [18:22:59]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:22:59]wFMCommunicate OK [18:22:59]SAM_PROTO_GetShiftState done [18:22:59]FM_GetShiftState done [18:22:59]opened in 1722213119 [18:22:59]opened+sec_in_day 1722299519 [18:22:59]quantity*price = 14441 [18:22:59]sum+1 = 14442 [18:22:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 144.00 Внесено: 144.00 СДАЧА: 0.00 НСП 1% : 1.28 НДС 12% : 15.34 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 129 29.07.2024 18:23 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2280 ФПД: 17049702892110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2280&fm=17049702892110&tin=02508201610067®Number=0000000000189667&sum=14400 [18:23:00]StoreToDocumentArchive [18:23:00]shift 15 fd 2280 [18:23:00]save to /storage/0015/doc_00002280 [18:23:00]save last doc name /storage/0015/doc_00002280 to /storage/kkm_last_doc_name [18:23:00]save OK [18:23:00]Clear old archive folders... [18:23:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:00]tlvbuf is 02033910 [18:23:00]SAM_PROTO_ClearQueue [18:23:00]wFMCommunicate request_size=4 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 09 00 00 [18:23:00]Write to MH i2c: E2 08 00 84 11 80 09 00 00 00 00 00 00 07 [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:00]Read from MH i2c: E2 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 03 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 03 00 84 11 00 90 00 09 [18:23:00]RAPDU: 90 00 [18:23:00]wFMCommunicate OK [18:23:00]SAM_PROTO_ClearQueue done [18:23:00]KKMCreateOFDPacket [18:23:00]OFDProtocolAddRootSTLVToBuf [18:23:00]FM_MakeSignedData [18:23:00]FM_MakeSignedData [18:23:00]SAM_PROTO_SignData [18:23:00]wFMCommunicate request_size=4 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 0D 01 02 [18:23:00]Write to MH i2c: E2 08 00 85 11 80 0D 01 02 00 00 00 00 0F [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:00]OFD Sender: No OFD packet to send [18:23:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:00]Read from MH i2c: E2 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 03 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 03 00 85 11 00 90 00 0A [18:23:00]RAPDU: 90 00 [18:23:00]wFMCommunicate OK [18:23:00]wFMCommunicate request_size=255 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 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 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 81 00 00 00 F4 03 04 00 04 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E8 08 00 00 35 04 06 00 0F [18:23:00]Write to MH i2c: E2 02 01 86 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 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 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 81 00 00 00 F4 03 04 00 04 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E8 08 00 00 35 04 06 00 0F 00 00 A1 [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:01]Read from MH i2c: E2 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 03 00 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 03 00 86 11 00 90 00 0B [18:23:01]RAPDU: 90 00 [18:23:01]wFMCommunicate OK [18:23:01]wFMCommunicate request_size=10 [18:23:01]MH_SAM_APDU [18:23:01]CAPDU: 80 0D 02 02 05 81 B1 7C 02 4E [18:23:01]Write to MH i2c: E2 0D 00 87 11 80 0D 02 02 05 00 81 B1 7C 02 4E 00 00 1A [18:23:01]Write i2c OK [18:23:01]MH_I2C_Read... [18:23:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:01]Read from MH i2c: E2 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 03 00 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 03 00 87 11 00 90 00 0C [18:23:01]RAPDU: 90 00 [18:23:01]wFMCommunicate OK [18:23:01]wFMCommunicate request_size=4 [18:23:01]MH_SAM_APDU [18:23:01]CAPDU: 80 0D 03 02 [18:23:01]Write to MH i2c: E2 08 00 88 11 80 0D 03 02 00 00 00 00 14 [18:23:01]Write i2c OK [18:23:01]MH_I2C_Read... [18:23:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:01]Read from MH i2c: E2 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 0B 00 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 0B 00 88 11 00 54 25 DD A8 21 53 18 29 90 00 C8 [18:23:01]RAPDU: 54 25 DD A8 21 53 18 29 90 00 [18:23:01]wFMCommunicate OK [18:23:01]SAM_PROTO_SignData done [18:23:01]FM_MakeSignedData done [18:23:01]CreateOFDProtocolMessage [18:23:01]wFMCommunicate request_size=4 [18:23:01]MH_SAM_APDU [18:23:01]CAPDU: 80 11 00 00 [18:23:01]Write to MH i2c: E2 08 00 89 11 80 11 00 00 00 00 00 00 14 [18:23:01]Write i2c OK [18:23:01]MH_I2C_Read... [18:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:01]Read from MH i2c: E2 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 17 00 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 17 00 89 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 64 [18:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:23:01]wFMCommunicate OK [18:23:01]CreateOFDProtocolMessage done [18:23:01]OFDSenderStorePacket 2280 [18:23:01]StoreOFDPacket docnum=2280 [18:23:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D4 9D 07 01 EB 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 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 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 81 00 00 00 F4 03 04 00 04 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E8 08 00 00 35 04 06 00 0F 81 B1 7C 02 4E 54 25 DD A8 21 53 18 29 [18:23:01]CheckFolder [18:23:01]dirname=/storage/ofd_packets [18:23:01]CheckFolder done [18:23:01]ProducePacketName [18:23:01]name=ofd_packets/00002280 [18:23:01]NVStorageSaveData ofd_packets/00002280 [18:23:01]File name is /storage/ofd_packets/00002280 [18:23:01]Write 301 bytes [18:23:01]NVStorageSaveData done [18:23:01]OFDSenderStorePacket done [18:23:01]KKMCreateOFDPacket done [18:23:01]NVStorageSaveData kkm_last_timestamp [18:23:01]File name is /storage/kkm_last_timestamp [18:23:01]Write 4 bytes [18:23:01]NVStorageSaveData done [18:23:01]ExternCall_PrintAddStr [18:23:01]wPrintStart [18:23:01]Write to MH i2c: 01 00 00 8A 11 9B [18:23:01]Write i2c OK [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: 01 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: 01 07 00 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 FF 0F B0 [18:23:01]RasterBufferAndPrint [18:23:01]line Счет N : (1)610043 [18:23:01]line ИНН: 02508201610067 [18:23:01]line Контрольно-Кассовый Чек [18:23:01]line ПРОДАЖА [18:23:01]line ТРК (МРК, ГНК) : 52 [18:23:01]line Товар: 2710124130 [18:23:01]line Аи-92-К-2 [18:23:01]line 2.130 * 67.80 [18:23:01]line = 144.41 [18:23:01]line НДС 12% НСП 1% [18:23:01]line > о реализуемом товаре [18:23:01]line ОКРУГЛЕНИЕ: -0.41 [18:23:01]line ИТОГО: 144.00 [18:23:01]line Внесено: 144.00 [18:23:01]line СДАЧА: 0.00 [18:23:01]line НСП 1% : 1.28 [18:23:01]line НДС 12% : 15.34 [18:23:01]line Наличными: 144.00 [18:23:01]line Безнал.: 0.00 [18:23:01]line Место: АЗС № 127 "Партнер Нефть" [18:23:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:23:01]line СНО: Общий режим [18:23:01]line Чек 129 29.07.2024 18:23 [18:23:01]line Смена: 15 ФФД: 1.0 [18:23:01]line ЗНМ: 0300000161 [18:23:01]line РНМ: 0000000000189667 [18:23:01]line Версия ККМ: v1.0 [18:23:01]line ФМ: 0000000002094248 [18:23:01]line ФД: 2280 [18:23:01]line ФПД: 17049702892110 [18:23:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182300&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2280&fm=17049702892110&tin=02508201610067®Number=0000000000189667&sum=14400 [18:23:01]OFD Sender: Processing packet 2280 [packets to send 1, broken 0] [18:23:01]ProducePacketName [18:23:01]name=ofd_packets/00002280 [18:23:01]OFD Sender: To server: pG, [18:23:01]CommunicateWithHost lk.salyk.kg:30040 [18:23:01]ConnectInit lk.salyk.kg [18:23:01]written 0, free lines is 4095 [18:23:01]Connected sock=10 [18:23:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D4 9D 07 01 EB 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 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 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 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 81 00 00 00 F4 03 04 00 04 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E8 08 00 00 35 04 06 00 0F 81 B1 7C 02 4E 54 25 DD A8 21 53 18 29 [18:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 34 3A 47 00 37 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E8 08 00 00 F4 03 04 00 70 89 A7 66 B6 04 01 00 00 AA FF BB 4A 3D F3 5E E3 [18:23:01]CommunicateWithHost err = 0 [18:23:01]CheckOFDResponse [18:23:01]1017 (14) - 77093643461234 [18:23:01]1041 (16) - 0000000002094248 [18:23:01]1040 (4) - 2280 [18:23:01]1012 (4) - 29.07.2024 12:22 [18:23:01]1206 (1) - 0 [18:23:01]OFD Sender: Remove packet 2280 [18:23:01]ProducePacketName [18:23:01]name=ofd_packets/00002280 [18:23:01]NVStorageDeleteData [18:23:02]Write to MH i2c: 01 00 00 B5 11 C6 [18:23:02]Write i2c OK [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: 01 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: 01 07 00 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: 01 07 00 B5 11 00 00 00 00 00 E7 0C C0 [18:23:02]RasterBufferAndPrint [18:23:02]line [18:23:02]line [18:23:02]line [18:23:02]line [18:23:02]line [18:23:02]written 0, free lines is 3309 [18:23:02]MH_Cut [18:23:02]Write to MH i2c: D1 01 00 BC 11 01 9F [18:23:02]Write i2c OK [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: D1 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: D1 01 00 [18:23:02]MH_I2C_Read... [18:23:02]Read from MH i2c: D1 01 00 BC 11 00 9E [18:23:02]Write to MH i2c: 01 00 00 BD 11 CE [18:23:02]Write i2c OK [18:23:02]MH_I2C_Read... [18:23:02]OFD Sender: No OFD packet to send [18:23:02]*** Cut start [18:23:02]*** Partial cut [18:23:02]*** CUTSNS_PIN = 1 [18:23:02]*** CUTSNS_PIN = 0 [18:23:03]*** Brake cut motor [18:23:03]Read from MH i2c: 01 [18:23:03]MH_I2C_Read... [18:23:03]*** Stop cut motor [18:23:03]*** Cut end [18:23:03]Read from MH i2c: 01 07 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: 01 07 00 BD 11 00 00 00 00 00 FF 0F E3 [18:23:03]process_action close_receipt done [18:23:03]requested_data is exist [18:23:03]produce_requested_data [18:23:03]requested_item fm.sn is exist - process it [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 11 00 00 [18:23:03]Write to MH i2c: E2 08 00 BE 11 80 11 00 00 00 00 00 00 49 [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 17 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 17 00 BE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 99 [18:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:23:03]wFMCommunicate OK [18:23:03]requested_item fd.num is exist - process it [18:23:03]SAM_PROTO_GetFieldsCounters [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 13 00 00 [18:23:03]Write to MH i2c: E2 08 00 BF 11 80 13 00 00 00 00 00 00 4C [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 62 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 62 00 BF 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E8 08 00 00 0E 04 04 00 0F 00 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 F8 [18:23:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E8 08 00 00 0E 04 04 00 0F 00 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 [18:23:03]wFMCommunicate OK [18:23:03]SAM_PROTO_GetFieldsCounters done [18:23:03]requested_item shift.num is exist - process it [18:23:03]requested_item shift.opened is exist - process it [18:23:03]req_shift_opened [18:23:03]FM_GetShiftState [18:23:03]SAM_PROTO_GetShiftState [18:23:03]wFMCommunicate request_size=4 [18:23:03]MH_SAM_APDU [18:23:03]CAPDU: 80 13 01 00 [18:23:03]Write to MH i2c: E2 08 00 C0 11 80 13 01 00 00 00 00 00 4E [18:23:03]Write i2c OK [18:23:03]MH_I2C_Read... [18:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:03]Read from MH i2c: E2 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 0E 00 [18:23:03]MH_I2C_Read... [18:23:03]Read from MH i2c: E2 0E 00 C0 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 47 [18:23:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:23:03]wFMCommunicate OK [18:23:03]SAM_PROTO_GetShiftState done [18:23:03]FM_GetShiftState done [18:23:03]req_shift_opened done [18:23:03]requested_item shift.open_date is exist - process it [18:23:03]req_shift_open_date [18:23:03]req_shift_open_date done [18:23:03]produce_requested_data done [18:23:03]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2280,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:23:03]process_action_free close_receipt [18:23:03]json_value_free [18:23:03]json_value_free done [18:23:03]process_json_proto returns [18:23:03]Send response to host [18:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2280,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:23:03]free response buf [18:23:03]execute_script done [18:23:03]execute_script returns [18:23:03]free content buf [18:23:03]Sock 8.Close socket [18:23:03]Sock 8.Thread stoped [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:50]accept exits with 9 [18:23:50]New connection [18:23:50]New thread 3067157860 created [18:23:50]Thread 3067014500 joined [18:23:50]Waiting for new connection... [18:23:50] Sock 9.Parse request [18:23:50]Sock 9.Check first char [18:23:50]Sock 9.First char is OK [18:23:50]request: POST /json_proto HTTP/1.0 [18:23:50]Method: POST [18:23:50]URL: /json_proto [18:23:50]Method is POST - this is cgi request [18:23:50]url: /json_proto [18:23:50]query_string will be loaded in cgi processing [18:23:50]execute_cgi json_proto POST (null) [18:23:50]execute_cgi path=json_proto method=POST [18:23:50]POST find Content-Length [18:23:50]Host: 172.17.45.132:8080 [18:23:50]Content-Length: 632 [18:23:50]Content-Type: application/json [18:23:50] [18:23:50]POST finish read [18:23:50]Found Content-Length = 632 [18:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126541", "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" ] } } [18:23:50]execute_script... [18:23: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)126541", "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" ] } } [18:23:50]POST & json_proto [18:23:50]process_json_proto [18:23:50]json parsed OK: [18:23:50]protocol is kg_v1.0 [18:23:50]action value=close_receipt [18:23:50]process_action close_receipt [18:23:50]cmd_close_receipt [18:23:50]MH_GetDate [18:23:50]Write to MH i2c: F0 00 00 C1 11 C1 [18:23:50]Write i2c OK [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: F0 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: F0 09 00 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: F0 09 00 C1 11 00 37 DE A7 66 E3 0B 90 66 D0 [18:23:50]GetLastDocTimeStamp 1722277380 [18:23:50]current date 1722277431 [18:23:50]FM_GetShiftState [18:23:50]SAM_PROTO_GetShiftState [18:23:50]wFMCommunicate request_size=4 [18:23:50]MH_SAM_APDU [18:23:50]CAPDU: 80 13 01 00 [18:23:50]Write to MH i2c: E2 08 00 C2 11 80 13 01 00 00 00 00 00 50 [18:23:50]Write i2c OK [18:23:50]MH_I2C_Read... [18:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:50]Read from MH i2c: E2 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 0E 00 [18:23:50]MH_I2C_Read... [18:23:50]Read from MH i2c: E2 0E 00 C2 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 49 [18:23:50]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:23:50]wFMCommunicate OK [18:23:50]SAM_PROTO_GetShiftState done [18:23:50]FM_GetShiftState done [18:23:50]opened in 1722213119 [18:23:50]opened+sec_in_day 1722299519 [18:23:50]quantity*price = 10000 [18:23:50]sum+1 = 10001 [18:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 130 29.07.2024 18:23 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2281 ФПД: 184689424377713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182351&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2281&fm=184689424377713&tin=02508201610067®Number=0000000000189667&sum=10000 0 [18:23:51]StoreToDocumentArchive [18:23:51]shift 15 fd 2281 [18:23:51]save to /storage/0015/doc_00002281 [18:23:51]save last doc name /storage/0015/doc_00002281 to /storage/kkm_last_doc_name [18:23:51]save OK [18:23:51]Clear old archive folders... [18:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:23:51]tlvbuf is 020048D0 [18:23:51]SAM_PROTO_ClearQueue [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 09 00 00 [18:23:51]Write to MH i2c: E2 08 00 CF 11 80 09 00 00 00 00 00 00 52 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 CF 11 00 90 00 54 [18:23:51]RAPDU: 90 00 [18:23:51]wFMCommunicate OK [18:23:51]SAM_PROTO_ClearQueue done [18:23:51]KKMCreateOFDPacket [18:23:51]OFDProtocolAddRootSTLVToBuf [18:23:51]FM_MakeSignedData [18:23:51]FM_MakeSignedData [18:23:51]SAM_PROTO_SignData [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 0D 01 02 [18:23:51]Write to MH i2c: E2 08 00 D0 11 80 0D 01 02 00 00 00 00 5A [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 D0 11 00 90 00 55 [18:23:51]RAPDU: 90 00 [18:23:51]wFMCommunicate OK [18:23:51]wFMCommunicate request_size=255 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 0D 02 02 FA 03 00 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 82 00 00 00 F4 03 04 00 37 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [18:23:51]Write to MH i2c: E2 02 01 D1 11 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 82 00 00 00 F4 03 04 00 37 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 2B [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 D1 11 00 90 00 56 [18:23:51]RAPDU: 90 00 [18:23:51]wFMCommunicate OK [18:23:51]wFMCommunicate request_size=28 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 E9 08 00 00 35 04 06 00 A7 F9 5B 88 A7 71 [18:23:51]Write to MH i2c: E2 1F 00 D2 11 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 E9 08 00 00 35 04 06 00 A7 F9 5B 88 A7 71 00 00 79 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 03 00 D2 11 00 90 00 57 [18:23:51]RAPDU: 90 00 [18:23:51]wFMCommunicate OK [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 0D 03 02 [18:23:51]Write to MH i2c: E2 08 00 D3 11 80 0D 03 02 00 00 00 00 5F [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0B 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 0B 00 D3 11 00 18 C5 10 93 C7 6B 16 B7 90 00 DF [18:23:51]RAPDU: 18 C5 10 93 C7 6B 16 B7 90 00 [18:23:51]wFMCommunicate OK [18:23:51]SAM_PROTO_SignData done [18:23:51]FM_MakeSignedData done [18:23:51]CreateOFDProtocolMessage [18:23:51]wFMCommunicate request_size=4 [18:23:51]MH_SAM_APDU [18:23:51]CAPDU: 80 11 00 00 [18:23:51]Write to MH i2c: E2 08 00 D4 11 80 11 00 00 00 00 00 00 5F [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:51]Read from MH i2c: E2 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 17 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: E2 17 00 D4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AF [18:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:23:51]wFMCommunicate OK [18:23:51]CreateOFDProtocolMessage done [18:23:51]OFDSenderStorePacket 2281 [18:23:51]StoreOFDPacket docnum=2281 [18:23:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 EA E1 19 01 67 D7 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 82 00 00 00 F4 03 04 00 37 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E9 08 00 00 35 04 06 00 A7 F9 5B 88 A7 71 18 C5 10 93 C7 6B 16 B7 [18:23:51]CheckFolder [18:23:51]dirname=/storage/ofd_packets [18:23:51]CheckFolder done [18:23:51]ProducePacketName [18:23:51]name=ofd_packets/00002281 [18:23:51]NVStorageSaveData ofd_packets/00002281 [18:23:51]File name is /storage/ofd_packets/00002281 [18:23:51]Write 319 bytes [18:23:51]NVStorageSaveData done [18:23:51]OFDSenderStorePacket done [18:23:51]KKMCreateOFDPacket done [18:23:51]NVStorageSaveData kkm_last_timestamp [18:23:51]File name is /storage/kkm_last_timestamp [18:23:51]Write 4 bytes [18:23:51]NVStorageSaveData done [18:23:51]ExternCall_PrintAddStr [18:23:51]wPrintStart [18:23:51]Write to MH i2c: 01 00 00 D5 11 E6 [18:23:51]Write i2c OK [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: 01 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: 01 07 00 [18:23:51]MH_I2C_Read... [18:23:51]Read from MH i2c: 01 07 00 D5 11 00 00 00 00 00 FF 0F FB [18:23:51]RasterBufferAndPrint [18:23:51]line Счет N : (3)126541 [18:23:51]line ИНН: 02508201610067 [18:23:51]line Контрольно-Кассовый Чек [18:23:51]line ПРОДАЖА [18:23:51]line Товар: 4700000160358 [18:23:51]line Вода Легенда 1л [18:23:51]line 2.000 * 50.00 [18:23:51]line = 100.00 [18:23:51]line НДС 12% НСП 1% [18:23:51]line > о реализуемом товаре [18:23:51]line ИТОГО: 100.00 [18:23:51]line НСП 1% : 0.88 [18:23:51]line НДС 12% : 10.62 [18:23:51]line Наличными: 100.00 [18:23:51]line Безнал.: 0.00 [18:23:51]line Место: АЗС № 127 "Партнер Нефть" [18:23:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:23:51]line СНО: Общий режим [18:23:51]line Чек 130 29.07.2024 18:23 [18:23:51]line Смена: 15 ФФД: 1.0 [18:23:51]line ЗНМ: 0300000161 [18:23:51]line РНМ: 0000000000189667 [18:23:51]line Версия ККМ: v1.0 [18:23:51]line ФМ: 0000000002094248 [18:23:51]line ФД: 2281 [18:23:51]line ФПД: 184689424377713 [18:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182351&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2281&fm=184689424377713&tin=02508201610067®Number=0000000000189667&sum=10000 [18:23:52]line 0 [18:23:52]OFD Sender: Processing packet 2281 [packets to send 1, broken 0] [18:23:52]ProducePacketName [18:23:52]name=ofd_packets/00002281 [18:23:52]OFD Sender: To server: pG, [18:23:52]CommunicateWithHost lk.salyk.kg:30040 [18:23:52]ConnectInit lk.salyk.kg [18:23:52]written 0, free lines is 4095 [18:23:52]Connected sock=10 [18:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 EA E1 19 01 67 D7 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 82 00 00 00 F4 03 04 00 37 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E9 08 00 00 35 04 06 00 A7 F9 5B 88 A7 71 18 C5 10 93 C7 6B 16 B7 [18:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E7 7C 47 00 67 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 E9 08 00 00 F4 03 04 00 A3 89 A7 66 B6 04 01 00 00 74 00 58 89 E7 48 77 C1 [18:23:52]CommunicateWithHost err = 0 [18:23:52]CheckOFDResponse [18:23:52]1017 (14) - 77093643461234 [18:23:52]1041 (16) - 0000000002094248 [18:23:52]1040 (4) - 2281 [18:23:52]1012 (4) - 29.07.2024 12:22 [18:23:52]1206 (1) - 0 [18:23:52]OFD Sender: Remove packet 2281 [18:23:52]ProducePacketName [18:23:52]name=ofd_packets/00002281 [18:23:52]NVStorageDeleteData [18:23:52]Write to MH i2c: 01 00 00 FD 11 0E [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: 01 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: 01 07 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: 01 07 00 FD 11 00 00 00 00 00 08 0D 2A [18:23:52]RasterBufferAndPrint [18:23:52]line [18:23:52]line [18:23:52]line [18:23:52]line [18:23:52]line [18:23:52]written 0, free lines is 3345 [18:23:52]MH_Cut [18:23:52]Write to MH i2c: D1 01 00 04 12 01 E8 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: D1 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: D1 01 00 [18:23:52]MH_I2C_Read... [18:23:52]Read from MH i2c: D1 01 00 04 12 00 E7 [18:23:52]Write to MH i2c: 01 00 00 05 12 17 [18:23:52]Write i2c OK [18:23:52]MH_I2C_Read... [18:23:52]OFD Sender: No OFD packet to send [18:23:53]*** Cut start [18:23:53]*** Partial cut [18:23:53]*** CUTSNS_PIN = 1 [18:23:53]*** CUTSNS_PIN = 0 [18:23:53]*** Brake cut motor [18:23:53]Read from MH i2c: 01 [18:23:53]MH_I2C_Read... [18:23:53]*** Stop cut motor [18:23:53]*** Cut end [18:23:53]Read from MH i2c: 01 07 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: 01 07 00 05 12 00 00 00 00 00 FF 0F 2C [18:23:53]process_action close_receipt done [18:23:53]requested_data is exist [18:23:53]produce_requested_data [18:23:53]requested_item fm.sn is exist - process it [18:23:53]wFMCommunicate request_size=4 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 11 00 00 [18:23:53]Write to MH i2c: E2 08 00 06 12 80 11 00 00 00 00 00 00 92 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:53]Read from MH i2c: E2 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 17 00 [18:23:53]MH_I2C_Read... [18:23:53]Read from MH i2c: E2 17 00 06 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E2 [18:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:23:53]wFMCommunicate OK [18:23:53]requested_item fd.num is exist - process it [18:23:53]SAM_PROTO_GetFieldsCounters [18:23:53]wFMCommunicate request_size=4 [18:23:53]MH_SAM_APDU [18:23:53]CAPDU: 80 13 00 00 [18:23:53]Write to MH i2c: E2 08 00 07 12 80 13 00 00 00 00 00 00 95 [18:23:53]Write i2c OK [18:23:53]MH_I2C_Read... [18:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:54]Read from MH i2c: E2 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 62 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 62 00 07 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E9 08 00 00 0E 04 04 00 0F 00 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 45 [18:23:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 E9 08 00 00 0E 04 04 00 0F 00 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 [18:23:54]wFMCommunicate OK [18:23:54]SAM_PROTO_GetFieldsCounters done [18:23:54]requested_item shift.num is exist - process it [18:23:54]requested_item shift.opened is exist - process it [18:23:54]req_shift_opened [18:23:54]FM_GetShiftState [18:23:54]SAM_PROTO_GetShiftState [18:23:54]wFMCommunicate request_size=4 [18:23:54]MH_SAM_APDU [18:23:54]CAPDU: 80 13 01 00 [18:23:54]Write to MH i2c: E2 08 00 08 12 80 13 01 00 00 00 00 00 97 [18:23:54]Write i2c OK [18:23:54]MH_I2C_Read... [18:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:54]Read from MH i2c: E2 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 0E 00 [18:23:54]MH_I2C_Read... [18:23:54]Read from MH i2c: E2 0E 00 08 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 90 [18:23:54]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:23:54]wFMCommunicate OK [18:23:54]SAM_PROTO_GetShiftState done [18:23:54]FM_GetShiftState done [18:23:54]req_shift_opened done [18:23:54]requested_item shift.open_date is exist - process it [18:23:54]req_shift_open_date [18:23:54]req_shift_open_date done [18:23:54]produce_requested_data done [18:23:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2281,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:23:54]process_action_free close_receipt [18:23:54]json_value_free [18:23:54]json_value_free done [18:23:54]process_json_proto returns [18:23:54]Send response to host [18:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2281,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:23:54]free response buf [18:23:54]execute_script done [18:23:54]execute_script returns [18:23:54]free content buf [18:23:54]Sock 9.Close socket [18:23:54]Sock 9.Thread stoped [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:18]accept exits with 8 [18:24:18]New connection [18:24:18]New thread 3067014500 created [18:24:18]Thread 3067157860 joined [18:24:18]Waiting for new connection... [18:24:18] Sock 8.Parse request [18:24:18]Sock 8.Check first char [18:24:18]Sock 8.First char is OK [18:24:18]request: POST /json_proto HTTP/1.0 [18:24:18]Method: POST [18:24:18]URL: /json_proto [18:24:18]Method is POST - this is cgi request [18:24:18]url: /json_proto [18:24:18]query_string will be loaded in cgi processing [18:24:18]execute_cgi json_proto POST (null) [18:24:18]execute_cgi path=json_proto method=POST [18:24:18]POST find Content-Length [18:24:18]Host: 172.17.45.132:8080 [18:24:18]Content-Length: 803 [18:24:18]Content-Type: application/json [18:24:18] [18:24:18]POST finish read [18:24:18]Found Content-Length = 803 [18:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:18]execute_script... [18:24:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:18]POST & json_proto [18:24:18]process_json_proto [18:24:18]json parsed OK: [18:24:18]protocol is kg_v1.0 [18:24:18]action value=close_receipt [18:24:18]process_action close_receipt [18:24:18]cmd_close_receipt [18:24:18]MH_GetDate [18:24:18]Write to MH i2c: F0 00 00 09 12 0A [18:24:18]Write i2c OK [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: F0 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: F0 09 00 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: F0 09 00 09 12 00 53 DE A7 66 E3 0B 90 66 35 [18:24:18]GetLastDocTimeStamp 1722277431 [18:24:18]current date 1722277459 [18:24:18]FM_GetShiftState [18:24:18]SAM_PROTO_GetShiftState [18:24:18]wFMCommunicate request_size=4 [18:24:18]MH_SAM_APDU [18:24:18]CAPDU: 80 13 01 00 [18:24:18]Write to MH i2c: E2 08 00 0A 12 80 13 01 00 00 00 00 00 99 [18:24:18]Write i2c OK [18:24:18]MH_I2C_Read... [18:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:18]Read from MH i2c: E2 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: E2 0E 00 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: E2 0E 00 0A 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 92 [18:24:18]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:24:18]wFMCommunicate OK [18:24:18]SAM_PROTO_GetShiftState done [18:24:18]FM_GetShiftState done [18:24:18]opened in 1722213119 [18:24:18]opened+sec_in_day 1722299519 [18:24:18]quantity*price = 150041 [18:24:18]sum+1 = 150042 [18:24:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 131 29.07.2024 18:24 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2282 ФПД: 126792830769996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182420&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2282&fm=126792830769996&tin=02508201610067®Number=0000000000189667&sum=150041 [18:24:19]StoreToDocumentArchive [18:24:19]shift 15 fd 2282 [18:24:19]save to /storage/0015/doc_00002282 [18:24:19]save last doc name /storage/0015/doc_00002282 to /storage/kkm_last_doc_name [18:24:19]save OK [18:24:19]Clear old archive folders... [18:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:19]tlvbuf is 02030E00 [18:24:19]SAM_PROTO_ClearQueue [18:24:19]wFMCommunicate request_size=4 [18:24:19]MH_SAM_APDU [18:24:19]CAPDU: 80 09 00 00 [18:24:19]Write to MH i2c: E2 08 00 17 12 80 09 00 00 00 00 00 00 9B [18:24:19]Write i2c OK [18:24:19]MH_I2C_Read... [18:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:19]Read from MH i2c: E2 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 03 00 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [18:24:19]RAPDU: 90 00 [18:24:19]wFMCommunicate OK [18:24:19]SAM_PROTO_ClearQueue done [18:24:19]KKMCreateOFDPacket [18:24:19]OFDProtocolAddRootSTLVToBuf [18:24:19]FM_MakeSignedData [18:24:19]FM_MakeSignedData [18:24:19]SAM_PROTO_SignData [18:24:19]wFMCommunicate request_size=4 [18:24:19]MH_SAM_APDU [18:24:19]CAPDU: 80 0D 01 02 [18:24:19]Write to MH i2c: E2 08 00 18 12 80 0D 01 02 00 00 00 00 A3 [18:24:19]Write i2c OK [18:24:19]MH_I2C_Read... [18:24:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:19]Read from MH i2c: E2 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 03 00 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 03 00 18 12 00 90 00 9E [18:24:19]RAPDU: 90 00 [18:24:19]wFMCommunicate OK [18:24:19]wFMCommunicate request_size=255 [18:24:19]MH_SAM_APDU [18:24:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 54 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 08 00 00 35 04 06 00 73 [18:24:19]Write to MH i2c: E2 02 01 19 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 54 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 08 00 00 35 04 06 00 73 00 00 27 [18:24:19]Write i2c OK [18:24:19]MH_I2C_Read... [18:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:20]Read from MH i2c: E2 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 03 00 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 03 00 19 12 00 90 00 9F [18:24:20]RAPDU: 90 00 [18:24:20]wFMCommunicate OK [18:24:20]wFMCommunicate request_size=10 [18:24:20]MH_SAM_APDU [18:24:20]CAPDU: 80 0D 02 02 05 51 41 A3 5B 4C [18:24:20]Write to MH i2c: E2 0D 00 1A 12 80 0D 02 02 05 00 51 41 A3 5B 4C 00 00 8C [18:24:20]Write i2c OK [18:24:20]MH_I2C_Read... [18:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:20]Read from MH i2c: E2 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 03 00 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 03 00 1A 12 00 90 00 A0 [18:24:20]RAPDU: 90 00 [18:24:20]wFMCommunicate OK [18:24:20]wFMCommunicate request_size=4 [18:24:20]MH_SAM_APDU [18:24:20]CAPDU: 80 0D 03 02 [18:24:20]Write to MH i2c: E2 08 00 1B 12 80 0D 03 02 00 00 00 00 A8 [18:24:20]Write i2c OK [18:24:20]MH_I2C_Read... [18:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:20]Read from MH i2c: E2 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 0B 00 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 0B 00 1B 12 00 96 92 6F 69 BC 97 CF 98 90 00 63 [18:24:20]RAPDU: 96 92 6F 69 BC 97 CF 98 90 00 [18:24:20]wFMCommunicate OK [18:24:20]SAM_PROTO_SignData done [18:24:20]FM_MakeSignedData done [18:24:20]CreateOFDProtocolMessage [18:24:20]wFMCommunicate request_size=4 [18:24:20]MH_SAM_APDU [18:24:20]CAPDU: 80 11 00 00 [18:24:20]Write to MH i2c: E2 08 00 1C 12 80 11 00 00 00 00 00 00 A8 [18:24:20]Write i2c OK [18:24:20]MH_I2C_Read... [18:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:20]Read from MH i2c: E2 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 17 00 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: E2 17 00 1C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F8 [18:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:24:20]wFMCommunicate OK [18:24:20]CreateOFDProtocolMessage done [18:24:20]OFDSenderStorePacket 2282 [18:24:20]StoreOFDPacket docnum=2282 [18:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F1 09 07 01 31 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 54 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 08 00 00 35 04 06 00 73 51 41 A3 5B 4C 96 92 6F 69 BC 97 CF 98 [18:24:20]CheckFolder [18:24:20]dirname=/storage/ofd_packets [18:24:20]CheckFolder done [18:24:20]ProducePacketName [18:24:20]name=ofd_packets/00002282 [18:24:20]NVStorageSaveData ofd_packets/00002282 [18:24:20]File name is /storage/ofd_packets/00002282 [18:24:20]Write 301 bytes [18:24:20]NVStorageSaveData done [18:24:20]OFDSenderStorePacket done [18:24:20]KKMCreateOFDPacket done [18:24:20]NVStorageSaveData kkm_last_timestamp [18:24:20]File name is /storage/kkm_last_timestamp [18:24:20]Write 4 bytes [18:24:20]NVStorageSaveData done [18:24:20]ExternCall_PrintAddStr [18:24:20]wPrintStart [18:24:20]Write to MH i2c: 01 00 00 1D 12 2F [18:24:20]Write i2c OK [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: 01 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: 01 07 00 [18:24:20]MH_I2C_Read... [18:24:20]Read from MH i2c: 01 07 00 1D 12 00 00 00 00 00 FF 0F 44 [18:24:20]RasterBufferAndPrint [18:24:20]line Счет N : (1)610044 [18:24:20]line ИНН: 02508201610067 [18:24:20]line Контрольно-Кассовый Чек [18:24:20]line ПРОДАЖА [18:24:20]line ТРК (МРК, ГНК) : 32 [18:24:20]line Товар: 2710124130 [18:24:20]line Аи-92-К-2 [18:24:20]line 22.130 * 67.80 [18:24:20]line = 1500.41 [18:24:20]line НДС 12% НСП 1% [18:24:20]line > о реализуемом товаре [18:24:20]line ИТОГО: 1500.41 [18:24:20]line НСП 1% : 13.28 [18:24:20]line НДС 12% : 159.34 [18:24:20]line Наличными: 0.00 [18:24:20]line Безнал.: 1500.41 [18:24:20]line Место: АЗС № 127 "Партнер Нефть" [18:24:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:24:20]line СНО: Общий режим [18:24:20]line Чек 131 29.07.2024 18:24 [18:24:20]line Смена: 15 ФФД: 1.0 [18:24:20]line ЗНМ: 0300000161 [18:24:20]line РНМ: 0000000000189667 [18:24:20]line Версия ККМ: v1.0 [18:24:20]line Платежная система: O! деньги [18:24:20]line ФМ: 0000000002094248 [18:24:20]line ФД: 2282 [18:24:20]line ФПД: 126792830769996 [18:24:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182420&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2282&fm=126792830769996&tin=02508201610067®Number=0000000000189667&sum=150041 [18:24:20]OFD Sender: Processing packet 2282 [packets to send 1, broken 0] [18:24:20]ProducePacketName [18:24:20]name=ofd_packets/00002282 [18:24:20]OFD Sender: To server: pG, [18:24:20]CommunicateWithHost lk.salyk.kg:30040 [18:24:20]ConnectInit lk.salyk.kg [18:24:20]written 0, free lines is 4095 [18:24:20]Connected sock=10 [18:24:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F1 09 07 01 31 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 54 DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EA 08 00 00 35 04 06 00 73 51 41 A3 5B 4C 96 92 6F 69 BC 97 CF 98 [18:24:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6C 07 47 00 A8 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 32 30 39 34 32 34 38 10 04 04 00 EA 08 00 00 F4 03 04 00 BF 89 A7 66 B6 04 01 00 00 1D 5A 6F 97 BF B0 B1 6F [18:24:20]CommunicateWithHost err = 0 [18:24:20]CheckOFDResponse [18:24:20]1017 (14) - 77093643461234 [18:24:20]1041 (16) - 0000000002094248 [18:24:20]1040 (4) - 2282 [18:24:20]1012 (4) - 29.07.2024 12:23 [18:24:20]1206 (1) - 0 [18:24:20]OFD Sender: Remove packet 2282 [18:24:20]ProducePacketName [18:24:20]name=ofd_packets/00002282 [18:24:20]NVStorageDeleteData [18:24:21]Write to MH i2c: 01 00 00 47 12 59 [18:24:21]Write i2c OK [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: 01 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: 01 07 00 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: 01 07 00 47 12 00 00 00 00 00 FF 0C 6B [18:24:21]RasterBufferAndPrint [18:24:21]line [18:24:21]line [18:24:21]line [18:24:21]line [18:24:21]line [18:24:21]written 0, free lines is 3333 [18:24:21]MH_Cut [18:24:21]Write to MH i2c: D1 01 00 4E 12 01 32 [18:24:21]Write i2c OK [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: D1 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: D1 01 00 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: D1 01 00 4E 12 00 31 [18:24:21]Write to MH i2c: 01 00 00 4F 12 61 [18:24:21]Write i2c OK [18:24:21]MH_I2C_Read... [18:24:21]OFD Sender: No OFD packet to send [18:24:21]*** Cut start [18:24:21]*** Partial cut [18:24:21]*** CUTSNS_PIN = 1 [18:24:21]*** CUTSNS_PIN = 0 [18:24:22]*** Brake cut motor [18:24:22]Read from MH i2c: 01 [18:24:22]MH_I2C_Read... [18:24:22]*** Stop cut motor [18:24:22]*** Cut end [18:24:22]Read from MH i2c: 01 07 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 FF 0F 76 [18:24:22]process_action close_receipt done [18:24:22]requested_data is exist [18:24:22]produce_requested_data [18:24:22]requested_item fm.sn is exist - process it [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 11 00 00 [18:24:22]Write to MH i2c: E2 08 00 50 12 80 11 00 00 00 00 00 00 DC [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 17 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 17 00 50 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2C [18:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:24:22]wFMCommunicate OK [18:24:22]requested_item fd.num is exist - process it [18:24:22]SAM_PROTO_GetFieldsCounters [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 13 00 00 [18:24:22]Write to MH i2c: E2 08 00 51 12 80 13 00 00 00 00 00 00 DF [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 62 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 62 00 51 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EA 08 00 00 0E 04 04 00 0F 00 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 93 [18:24:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EA 08 00 00 0E 04 04 00 0F 00 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 [18:24:22]wFMCommunicate OK [18:24:22]SAM_PROTO_GetFieldsCounters done [18:24:22]requested_item shift.num is exist - process it [18:24:22]requested_item shift.opened is exist - process it [18:24:22]req_shift_opened [18:24:22]FM_GetShiftState [18:24:22]SAM_PROTO_GetShiftState [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 13 01 00 [18:24:22]Write to MH i2c: E2 08 00 52 12 80 13 01 00 00 00 00 00 E1 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 0E 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 0E 00 52 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DA [18:24:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:24:22]wFMCommunicate OK [18:24:22]SAM_PROTO_GetShiftState done [18:24:22]FM_GetShiftState done [18:24:22]req_shift_opened done [18:24:22]requested_item shift.open_date is exist - process it [18:24:22]req_shift_open_date [18:24:22]req_shift_open_date done [18:24:22]produce_requested_data done [18:24:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2282,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:24:22]process_action_free close_receipt [18:24:22]json_value_free [18:24:22]json_value_free done [18:24:22]process_json_proto returns [18:24:22]Send response to host [18:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2282,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:24:22]free response buf [18:24:22]execute_script done [18:24:22]execute_script returns [18:24:22]free content buf [18:24:22]Sock 8.Close socket [18:24:22]Sock 8.Thread stoped [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:50]accept exits with 9 [18:26:50]New connection [18:26:50]New thread 3067157860 created [18:26:50]Thread 3067014500 joined [18:26:50]Waiting for new connection... [18:26:50] Sock 9.Parse request [18:26:50]Sock 9.Check first char [18:26:50]Sock 9.First char is OK [18:26:50]request: POST /json_proto HTTP/1.0 [18:26:50]Method: POST [18:26:50]URL: /json_proto [18:26:50]Method is POST - this is cgi request [18:26:50]url: /json_proto [18:26:50]query_string will be loaded in cgi processing [18:26:50]execute_cgi json_proto POST (null) [18:26:50]execute_cgi path=json_proto method=POST [18:26:50]POST find Content-Length [18:26:50]Host: 172.17.45.132:8080 [18:26:50]Content-Length: 803 [18:26:50]Content-Type: application/json [18:26:50] [18:26:50]POST finish read [18:26:50]Found Content-Length = 803 [18:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:50]execute_script... [18:26:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:50]POST & json_proto [18:26:50]process_json_proto [18:26:50]json parsed OK: [18:26:50]protocol is kg_v1.0 [18:26:50]action value=close_receipt [18:26:50]process_action close_receipt [18:26:50]cmd_close_receipt [18:26:50]MH_GetDate [18:26:50]Write to MH i2c: F0 00 00 53 12 54 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: F0 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: F0 09 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: F0 09 00 53 12 00 EB DE A7 66 E3 0B 90 66 17 [18:26:50]GetLastDocTimeStamp 1722277460 [18:26:50]current date 1722277611 [18:26:50]FM_GetShiftState [18:26:50]SAM_PROTO_GetShiftState [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 13 01 00 [18:26:50]Write to MH i2c: E2 08 00 54 12 80 13 01 00 00 00 00 00 E3 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0E 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0E 00 54 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DC [18:26:50]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:26:50]wFMCommunicate OK [18:26:50]SAM_PROTO_GetShiftState done [18:26:50]FM_GetShiftState done [18:26:50]opened in 1722213119 [18:26:50]opened+sec_in_day 1722299519 [18:26:50]quantity*price = 100005 [18:26:50]sum+1 = 100006 [18:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 132 29.07.2024 18:26 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2283 ФПД: 213952891391377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182651&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2283&fm=213952891391377&tin=02508201610067®Number=0000000000189667&sum=100005 [18:26:51]StoreToDocumentArchive [18:26:51]shift 15 fd 2283 [18:26:51]save to /storage/0015/doc_00002283 [18:26:51]save last doc name /storage/0015/doc_00002283 to /storage/kkm_last_doc_name [18:26:51]save OK [18:26:51]Clear old archive folders... [18:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:51]tlvbuf is 01FECA30 [18:26:51]SAM_PROTO_ClearQueue [18:26:51]wFMCommunicate request_size=4 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 09 00 00 [18:26:51]Write to MH i2c: E2 08 00 61 12 80 09 00 00 00 00 00 00 E5 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 61 12 00 90 00 E7 [18:26:51]RAPDU: 90 00 [18:26:51]wFMCommunicate OK [18:26:51]SAM_PROTO_ClearQueue done [18:26:51]KKMCreateOFDPacket [18:26:51]OFDProtocolAddRootSTLVToBuf [18:26:51]FM_MakeSignedData [18:26:51]FM_MakeSignedData [18:26:51]SAM_PROTO_SignData [18:26:51]wFMCommunicate request_size=4 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 0D 01 02 [18:26:51]Write to MH i2c: E2 08 00 62 12 80 0D 01 02 00 00 00 00 ED [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:51]OFD Sender: No OFD packet to send [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 62 12 00 90 00 E8 [18:26:51]RAPDU: 90 00 [18:26:51]wFMCommunicate OK [18:26:51]wFMCommunicate request_size=255 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 EB DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EB 08 00 00 35 04 06 00 C2 [18:26:51]Write to MH i2c: E2 02 01 63 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 EB DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EB 08 00 00 35 04 06 00 C2 00 00 29 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 63 12 00 90 00 E9 [18:26:51]RAPDU: 90 00 [18:26:51]wFMCommunicate OK [18:26:51]wFMCommunicate request_size=10 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 0D 02 02 05 96 CA 17 0D 91 [18:26:51]Write to MH i2c: E2 0D 00 64 12 80 0D 02 02 05 00 96 CA 17 0D 91 00 00 0F [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:51]Read from MH i2c: E2 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: E2 03 00 64 12 00 90 00 EA [18:26:51]RAPDU: 90 00 [18:26:51]wFMCommunicate OK [18:26:51]wFMCommunicate request_size=4 [18:26:51]MH_SAM_APDU [18:26:51]CAPDU: 80 0D 03 02 [18:26:51]Write to MH i2c: E2 08 00 65 12 80 0D 03 02 00 00 00 00 F2 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 0B 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 0B 00 65 12 00 31 4A FC 62 40 A1 93 20 90 00 60 [18:26:52]RAPDU: 31 4A FC 62 40 A1 93 20 90 00 [18:26:52]wFMCommunicate OK [18:26:52]SAM_PROTO_SignData done [18:26:52]FM_MakeSignedData done [18:26:52]CreateOFDProtocolMessage [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 11 00 00 [18:26:52]Write to MH i2c: E2 08 00 66 12 80 11 00 00 00 00 00 00 F2 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 17 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 17 00 66 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 42 [18:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:26:52]wFMCommunicate OK [18:26:52]CreateOFDProtocolMessage done [18:26:52]OFDSenderStorePacket 2283 [18:26:52]StoreOFDPacket docnum=2283 [18:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 FB A0 07 01 3B EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 EB DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EB 08 00 00 35 04 06 00 C2 96 CA 17 0D 91 31 4A FC 62 40 A1 93 20 [18:26:52]CheckFolder [18:26:52]dirname=/storage/ofd_packets [18:26:52]CheckFolder done [18:26:52]ProducePacketName [18:26:52]name=ofd_packets/00002283 [18:26:52]NVStorageSaveData ofd_packets/00002283 [18:26:52]File name is /storage/ofd_packets/00002283 [18:26:52]Write 301 bytes [18:26:52]NVStorageSaveData done [18:26:52]OFDSenderStorePacket done [18:26:52]KKMCreateOFDPacket done [18:26:52]NVStorageSaveData kkm_last_timestamp [18:26:52]File name is /storage/kkm_last_timestamp [18:26:52]Write 4 bytes [18:26:52]NVStorageSaveData done [18:26:52]ExternCall_PrintAddStr [18:26:52]wPrintStart [18:26:52]Write to MH i2c: 01 00 00 67 12 79 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 07 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 07 00 67 12 00 00 00 00 00 FF 0F 8E [18:26:52]RasterBufferAndPrint [18:26:52]line Счет N : (1)610045 [18:26:52]line ИНН: 02508201610067 [18:26:52]line Контрольно-Кассовый Чек [18:26:52]line ПРОДАЖА [18:26:52]line ТРК (МРК, ГНК) : 32 [18:26:52]line Товар: 2710124130 [18:26:52]line Аи-92-К-2 [18:26:52]line 14.750 * 67.80 [18:26:52]line = 1000.05 [18:26:52]line НДС 12% НСП 1% [18:26:52]line > о реализуемом товаре [18:26:52]line ИТОГО: 1000.05 [18:26:52]line НСП 1% : 8.85 [18:26:52]line НДС 12% : 106.20 [18:26:52]line Наличными: 0.00 [18:26:52]line Безнал.: 1000.05 [18:26:52]line Место: АЗС № 127 "Партнер Нефть" [18:26:52]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:26:52]line СНО: Общий режим [18:26:52]line Чек 132 29.07.2024 18:26 [18:26:52]line Смена: 15 ФФД: 1.0 [18:26:52]line ЗНМ: 0300000161 [18:26:52]line РНМ: 0000000000189667 [18:26:52]line Версия ККМ: v1.0 [18:26:52]line Платежная система: O! деньги [18:26:52]line ФМ: 0000000002094248 [18:26:52]line ФД: 2283 [18:26:52]line ФПД: 213952891391377 [18:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182651&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2283&fm=213952891391377&tin=02508201610067®Number=0000000000189667&sum=100005 [18:26:52]OFD Sender: Processing packet 2283 [packets to send 1, broken 0] [18:26:52]ProducePacketName [18:26:52]name=ofd_packets/00002283 [18:26:52]OFD Sender: To server: pG, [18:26:52]CommunicateWithHost lk.salyk.kg:30040 [18:26:52]ConnectInit lk.salyk.kg [18:26:52]written 0, free lines is 4095 [18:26:52]Connected sock=10 [18:26:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 FB A0 07 01 3B EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 EB DE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EB 08 00 00 35 04 06 00 C2 96 CA 17 0D 91 31 4A FC 62 40 A1 93 20 [18:26:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7B A4 47 00 AE 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 32 30 39 34 32 34 38 10 04 04 00 EB 08 00 00 F4 03 04 00 57 8A A7 66 B6 04 01 00 00 D3 8D 01 05 E3 46 2A D7 [18:26:52]CommunicateWithHost err = 0 [18:26:52]CheckOFDResponse [18:26:52]1017 (14) - 77093643461234 [18:26:52]1041 (16) - 0000000002094248 [18:26:52]1040 (4) - 2283 [18:26:52]1012 (4) - 29.07.2024 12:25 [18:26:52]1206 (1) - 0 [18:26:52]OFD Sender: Remove packet 2283 [18:26:52]ProducePacketName [18:26:52]name=ofd_packets/00002283 [18:26:52]NVStorageDeleteData [18:26:52]Write to MH i2c: 01 00 00 91 12 A3 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 07 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 07 00 91 12 00 00 00 00 00 F7 0C AD [18:26:52]RasterBufferAndPrint [18:26:52]line [18:26:52]line [18:26:52]line [18:26:52]line [18:26:52]line [18:26:52]written 0, free lines is 3323 [18:26:52]MH_Cut [18:26:52]Write to MH i2c: D1 01 00 98 12 01 7C [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: D1 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: D1 01 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: D1 01 00 98 12 00 7B [18:26:52]Write to MH i2c: 01 00 00 99 12 AB [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:53]OFD Sender: No OFD packet to send [18:26:53]*** Cut start [18:26:53]*** Partial cut [18:26:53]*** CUTSNS_PIN = 1 [18:26:53]*** CUTSNS_PIN = 0 [18:26:53]*** Brake cut motor [18:26:54]Read from MH i2c: 01 [18:26:54]MH_I2C_Read... [18:26:54]*** Stop cut motor [18:26:54]*** Cut end [18:26:54]Read from MH i2c: 01 07 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: 01 07 00 99 12 00 00 00 00 00 FF 0F C0 [18:26:54]process_action close_receipt done [18:26:54]requested_data is exist [18:26:54]produce_requested_data [18:26:54]requested_item fm.sn is exist - process it [18:26:54]wFMCommunicate request_size=4 [18:26:54]MH_SAM_APDU [18:26:54]CAPDU: 80 11 00 00 [18:26:54]Write to MH i2c: E2 08 00 9A 12 80 11 00 00 00 00 00 00 26 [18:26:54]Write i2c OK [18:26:54]MH_I2C_Read... [18:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:54]Read from MH i2c: E2 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 17 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 17 00 9A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 76 [18:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:26:54]wFMCommunicate OK [18:26:54]requested_item fd.num is exist - process it [18:26:54]SAM_PROTO_GetFieldsCounters [18:26:54]wFMCommunicate request_size=4 [18:26:54]MH_SAM_APDU [18:26:54]CAPDU: 80 13 00 00 [18:26:54]Write to MH i2c: E2 08 00 9B 12 80 13 00 00 00 00 00 00 29 [18:26:54]Write i2c OK [18:26:54]MH_I2C_Read... [18:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:54]Read from MH i2c: E2 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 62 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 62 00 9B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EB 08 00 00 0E 04 04 00 0F 00 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 E1 [18:26:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EB 08 00 00 0E 04 04 00 0F 00 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 [18:26:54]wFMCommunicate OK [18:26:54]SAM_PROTO_GetFieldsCounters done [18:26:54]requested_item shift.num is exist - process it [18:26:54]requested_item shift.opened is exist - process it [18:26:54]req_shift_opened [18:26:54]FM_GetShiftState [18:26:54]SAM_PROTO_GetShiftState [18:26:54]wFMCommunicate request_size=4 [18:26:54]MH_SAM_APDU [18:26:54]CAPDU: 80 13 01 00 [18:26:54]Write to MH i2c: E2 08 00 9C 12 80 13 01 00 00 00 00 00 2B [18:26:54]Write i2c OK [18:26:54]MH_I2C_Read... [18:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:54]Read from MH i2c: E2 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 0E 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 0E 00 9C 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 24 [18:26:54]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:26:54]wFMCommunicate OK [18:26:54]SAM_PROTO_GetShiftState done [18:26:54]FM_GetShiftState done [18:26:54]req_shift_opened done [18:26:54]requested_item shift.open_date is exist - process it [18:26:54]req_shift_open_date [18:26:54]req_shift_open_date done [18:26:54]produce_requested_data done [18:26:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2283,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:26:54]process_action_free close_receipt [18:26:54]json_value_free [18:26:54]json_value_free done [18:26:54]process_json_proto returns [18:26:54]Send response to host [18:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2283,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:26:54]free response buf [18:26:54]execute_script done [18:26:54]execute_script returns [18:26:54]free content buf [18:26:54]Sock 9.Close socket [18:26:54]Sock 9.Thread stoped [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]accept exits with 8 [18:28:08]New connection [18:28:08]New thread 3067014500 created [18:28:08]Thread 3067157860 joined [18:28:08]Waiting for new connection... [18:28:08] Sock 8.Parse request [18:28:08]Sock 8.Check first char [18:28:08]Sock 8.First char is OK [18:28:08]request: POST /json_proto HTTP/1.0 [18:28:08]Method: POST [18:28:08]URL: /json_proto [18:28:08]Method is POST - this is cgi request [18:28:08]url: /json_proto [18:28:08]query_string will be loaded in cgi processing [18:28:08]execute_cgi json_proto POST (null) [18:28:08]execute_cgi path=json_proto method=POST [18:28:08]POST find Content-Length [18:28:08]Host: 172.17.45.132:8080 [18:28:08]Content-Length: 803 [18:28:08]Content-Type: application/json [18:28:08] [18:28:08]POST finish read [18:28:08]Found Content-Length = 803 [18:28:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:08]execute_script... [18:28:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:08]POST & json_proto [18:28:08]process_json_proto [18:28:08]json parsed OK: [18:28:08]protocol is kg_v1.0 [18:28:08]action value=close_receipt [18:28:08]process_action close_receipt [18:28:08]cmd_close_receipt [18:28:08]MH_GetDate [18:28:08]Write to MH i2c: F0 00 00 9D 12 9E [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: F0 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: F0 09 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: F0 09 00 9D 12 00 39 DF A7 66 E3 0B 90 66 B0 [18:28:08]GetLastDocTimeStamp 1722277611 [18:28:08]current date 1722277689 [18:28:08]FM_GetShiftState [18:28:08]SAM_PROTO_GetShiftState [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 01 00 [18:28:08]Write to MH i2c: E2 08 00 9E 12 80 13 01 00 00 00 00 00 2D [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 9E 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 26 [18:28:08]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetShiftState done [18:28:08]FM_GetShiftState done [18:28:08]opened in 1722213119 [18:28:08]opened+sec_in_day 1722299519 [18:28:08]quantity*price = 200010 [18:28:08]sum+1 = 200011 [18:28:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 133 29.07.2024 18:28 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2284 ФПД: 69460031515420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182809&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2284&fm=69460031515420&tin=02508201610067®Number=0000000000189667&sum=200010 [18:28:09]StoreToDocumentArchive [18:28:09]shift 15 fd 2284 [18:28:09]save to /storage/0015/doc_00002284 [18:28:09]save last doc name /storage/0015/doc_00002284 to /storage/kkm_last_doc_name [18:28:09]save OK [18:28:09]Clear old archive folders... [18:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:09]tlvbuf is 02031DC0 [18:28:09]SAM_PROTO_ClearQueue [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 09 00 00 [18:28:09]Write to MH i2c: E2 08 00 AB 12 80 09 00 00 00 00 00 00 2F [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 AB 12 00 90 00 31 [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]SAM_PROTO_ClearQueue done [18:28:09]KKMCreateOFDPacket [18:28:09]OFDProtocolAddRootSTLVToBuf [18:28:09]FM_MakeSignedData [18:28:09]FM_MakeSignedData [18:28:09]SAM_PROTO_SignData [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 01 02 [18:28:09]Write to MH i2c: E2 08 00 AC 12 80 0D 01 02 00 00 00 00 37 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 AC 12 00 90 00 32 [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]wFMCommunicate request_size=255 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 39 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 08 00 00 35 04 06 00 3F [18:28:09]Write to MH i2c: E2 02 01 AD 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 39 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 08 00 00 35 04 06 00 3F 00 00 C0 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 AD 12 00 90 00 33 [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]wFMCommunicate request_size=10 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 02 02 05 2C 6C 81 2B 1C [18:28:09]Write to MH i2c: E2 0D 00 AE 12 80 0D 02 02 05 00 2C 6C 81 2B 1C 00 00 A4 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 AE 12 00 90 00 34 [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 03 02 [18:28:09]Write to MH i2c: E2 08 00 AF 12 80 0D 03 02 00 00 00 00 3C [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 0B 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 0B 00 AF 12 00 3A 5B 84 F3 3B FC 90 54 90 00 64 [18:28:09]RAPDU: 3A 5B 84 F3 3B FC 90 54 90 00 [18:28:09]wFMCommunicate OK [18:28:09]SAM_PROTO_SignData done [18:28:09]FM_MakeSignedData done [18:28:09]CreateOFDProtocolMessage [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 11 00 00 [18:28:09]Write to MH i2c: E2 08 00 B0 12 80 11 00 00 00 00 00 00 3C [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 17 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 17 00 B0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8C [18:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:28:09]wFMCommunicate OK [18:28:09]CreateOFDProtocolMessage done [18:28:09]OFDSenderStorePacket 2284 [18:28:09]StoreOFDPacket docnum=2284 [18:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B0 05 07 01 02 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 39 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 08 00 00 35 04 06 00 3F 2C 6C 81 2B 1C 3A 5B 84 F3 3B FC 90 54 [18:28:09]CheckFolder [18:28:09]dirname=/storage/ofd_packets [18:28:09]CheckFolder done [18:28:09]ProducePacketName [18:28:09]name=ofd_packets/00002284 [18:28:09]NVStorageSaveData ofd_packets/00002284 [18:28:09]File name is /storage/ofd_packets/00002284 [18:28:09]Write 301 bytes [18:28:09]NVStorageSaveData done [18:28:09]OFDSenderStorePacket done [18:28:09]KKMCreateOFDPacket done [18:28:09]NVStorageSaveData kkm_last_timestamp [18:28:09]File name is /storage/kkm_last_timestamp [18:28:09]Write 4 bytes [18:28:09]NVStorageSaveData done [18:28:09]ExternCall_PrintAddStr [18:28:09]wPrintStart [18:28:10]Write to MH i2c: 01 00 00 B1 12 C3 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [18:28:10]RasterBufferAndPrint [18:28:10]line Счет N : (1)610046 [18:28:10]line ИНН: 02508201610067 [18:28:10]line Контрольно-Кассовый Чек [18:28:10]line ПРОДАЖА [18:28:10]line ТРК (МРК, ГНК) : 42 [18:28:10]line Товар: 2710124130 [18:28:10]line Аи-92-К-2 [18:28:10]line 29.500 * 67.80 [18:28:10]line = 2000.10 [18:28:10]line НДС 12% НСП 1% [18:28:10]line > о реализуемом товаре [18:28:10]line ИТОГО: 2000.10 [18:28:10]line НСП 1% : 17.70 [18:28:10]line НДС 12% : 212.40 [18:28:10]line Наличными: 0.00 [18:28:10]line Безнал.: 2000.10 [18:28:10]line Место: АЗС № 127 "Партнер Нефть" [18:28:10]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:28:10]line СНО: Общий режим [18:28:10]line Чек 133 29.07.2024 18:28 [18:28:10]line Смена: 15 ФФД: 1.0 [18:28:10]line ЗНМ: 0300000161 [18:28:10]line РНМ: 0000000000189667 [18:28:10]line Версия ККМ: v1.0 [18:28:10]line Платежная система: O! деньги [18:28:10]line ФМ: 0000000002094248 [18:28:10]line ФД: 2284 [18:28:10]line ФПД: 69460031515420 [18:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182809&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2284&fm=69460031515420&tin=02508201610067®Number=0000000000189667&sum=200010 [18:28:10]OFD Sender: Processing packet 2284 [packets to send 1, broken 0] [18:28:10]ProducePacketName [18:28:10]name=ofd_packets/00002284 [18:28:10]OFD Sender: To server: pG, [18:28:10]CommunicateWithHost lk.salyk.kg:30040 [18:28:10]ConnectInit lk.salyk.kg [18:28:10]written 0, free lines is 4095 [18:28:10]Connected sock=10 [18:28:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B0 05 07 01 02 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 39 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 08 00 00 35 04 06 00 3F 2C 6C 81 2B 1C 3A 5B 84 F3 3B FC 90 54 [18:28:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6E 1D 47 00 B8 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EC 08 00 00 F4 03 04 00 A5 8A A7 66 B6 04 01 00 00 74 7A 13 7C 66 10 8C FD [18:28:10]CommunicateWithHost err = 0 [18:28:10]CheckOFDResponse [18:28:10]1017 (14) - 77093643461234 [18:28:10]1041 (16) - 0000000002094248 [18:28:10]1040 (4) - 2284 [18:28:10]1012 (4) - 29.07.2024 12:27 [18:28:10]1206 (1) - 0 [18:28:10]OFD Sender: Remove packet 2284 [18:28:10]ProducePacketName [18:28:10]name=ofd_packets/00002284 [18:28:10]NVStorageDeleteData [18:28:10]Write to MH i2c: 01 00 00 DB 12 ED [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 DB 12 00 00 00 00 00 FB 0C FB [18:28:10]RasterBufferAndPrint [18:28:10]line [18:28:10]line [18:28:10]line [18:28:10]line [18:28:10]line [18:28:10]written 0, free lines is 3332 [18:28:10]MH_Cut [18:28:10]Write to MH i2c: D1 01 00 E2 12 01 C6 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: D1 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: D1 01 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: D1 01 00 E2 12 00 C5 [18:28:10]Write to MH i2c: 01 00 00 E3 12 F5 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:11]OFD Sender: No OFD packet to send [18:28:11]*** Cut start [18:28:11]*** Partial cut [18:28:11]*** CUTSNS_PIN = 1 [18:28:11]*** CUTSNS_PIN = 0 [18:28:11]*** Brake cut motor [18:28:12]Read from MH i2c: 01 [18:28:12]MH_I2C_Read... [18:28:12]*** Stop cut motor [18:28:12]*** Cut end [18:28:12]Read from MH i2c: 01 07 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: 01 07 00 E3 12 00 00 00 00 00 FF 0F 0A [18:28:12]process_action close_receipt done [18:28:12]requested_data is exist [18:28:12]produce_requested_data [18:28:12]requested_item fm.sn is exist - process it [18:28:12]wFMCommunicate request_size=4 [18:28:12]MH_SAM_APDU [18:28:12]CAPDU: 80 11 00 00 [18:28:12]Write to MH i2c: E2 08 00 E4 12 80 11 00 00 00 00 00 00 70 [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:12]Read from MH i2c: E2 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 17 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 17 00 E4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C0 [18:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:28:12]wFMCommunicate OK [18:28:12]requested_item fd.num is exist - process it [18:28:12]SAM_PROTO_GetFieldsCounters [18:28:12]wFMCommunicate request_size=4 [18:28:12]MH_SAM_APDU [18:28:12]CAPDU: 80 13 00 00 [18:28:12]Write to MH i2c: E2 08 00 E5 12 80 13 00 00 00 00 00 00 73 [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:12]Read from MH i2c: E2 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 62 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 62 00 E5 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EC 08 00 00 0E 04 04 00 0F 00 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 2F [18:28:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EC 08 00 00 0E 04 04 00 0F 00 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 [18:28:12]wFMCommunicate OK [18:28:12]SAM_PROTO_GetFieldsCounters done [18:28:12]requested_item shift.num is exist - process it [18:28:12]requested_item shift.opened is exist - process it [18:28:12]req_shift_opened [18:28:12]FM_GetShiftState [18:28:12]SAM_PROTO_GetShiftState [18:28:12]wFMCommunicate request_size=4 [18:28:12]MH_SAM_APDU [18:28:12]CAPDU: 80 13 01 00 [18:28:12]Write to MH i2c: E2 08 00 E6 12 80 13 01 00 00 00 00 00 75 [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:12]Read from MH i2c: E2 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 0E 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 0E 00 E6 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6E [18:28:12]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:28:12]wFMCommunicate OK [18:28:12]SAM_PROTO_GetShiftState done [18:28:12]FM_GetShiftState done [18:28:12]req_shift_opened done [18:28:12]requested_item shift.open_date is exist - process it [18:28:12]req_shift_open_date [18:28:12]req_shift_open_date done [18:28:12]produce_requested_data done [18:28:12]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2284,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:28:12]process_action_free close_receipt [18:28:12]json_value_free [18:28:12]json_value_free done [18:28:12]process_json_proto returns [18:28:12]Send response to host [18:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2284,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:28:12]free response buf [18:28:12]execute_script done [18:28:12]execute_script returns [18:28:12]free content buf [18:28:12]Sock 8.Close socket [18:28:12]Sock 8.Thread stoped [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:11]accept exits with 9 [18:31:11]New connection [18:31:11]New thread 3067157860 created [18:31:11]Thread 3067014500 joined [18:31:11]Waiting for new connection... [18:31:11] Sock 9.Parse request [18:31:11]Sock 9.Check first char [18:31:11]Sock 9.First char is OK [18:31:11]request: POST /json_proto HTTP/1.0 [18:31:11]Method: POST [18:31:11]URL: /json_proto [18:31:11]Method is POST - this is cgi request [18:31:11]url: /json_proto [18:31:11]query_string will be loaded in cgi processing [18:31:11]execute_cgi json_proto POST (null) [18:31:11]execute_cgi path=json_proto method=POST [18:31:11]POST find Content-Length [18:31:11]Host: 172.17.45.132:8080 [18:31:11]Content-Length: 816 [18:31:11]Content-Type: application/json [18:31:11] [18:31:11]POST finish read [18:31:11]Found Content-Length = 816 [18:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:11]execute_script... [18:31:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:11]POST & json_proto [18:31:11]process_json_proto [18:31:11]json parsed OK: [18:31:11]protocol is kg_v1.0 [18:31:11]action value=close_receipt [18:31:11]process_action close_receipt [18:31:11]cmd_close_receipt [18:31:11]MH_GetDate [18:31:11]Write to MH i2c: F0 00 00 E7 12 E8 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 09 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 09 00 E7 12 00 F1 DF A7 66 E3 0B 90 66 B2 [18:31:11]GetLastDocTimeStamp 1722277689 [18:31:11]current date 1722277873 [18:31:11]FM_GetShiftState [18:31:11]SAM_PROTO_GetShiftState [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 13 01 00 [18:31:11]Write to MH i2c: E2 08 00 E8 12 80 13 01 00 00 00 00 00 77 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 E8 12 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 70 [18:31:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:31:11]wFMCommunicate OK [18:31:11]SAM_PROTO_GetShiftState done [18:31:11]FM_GetShiftState done [18:31:11]opened in 1722213119 [18:31:11]opened+sec_in_day 1722299519 [18:31:11]quantity*price = 50036 [18:31:11]sum+1 = 50037 [18:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 134 29.07.2024 18:31 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2285 ФПД: 166442343645962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183113&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2285&fm=166442343645962&tin=02508201610067®Number=0000000000189667&sum=50036 [18:31:12]StoreToDocumentArchive [18:31:12]shift 15 fd 2285 [18:31:12]save to /storage/0015/doc_00002285 [18:31:12]save last doc name /storage/0015/doc_00002285 to /storage/kkm_last_doc_name [18:31:12]save OK [18:31:12]Clear old archive folders... [18:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:12]tlvbuf is B6EF3660 [18:31:12]SAM_PROTO_ClearQueue [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 09 00 00 [18:31:12]Write to MH i2c: E2 08 00 F5 12 80 09 00 00 00 00 00 00 79 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]SAM_PROTO_ClearQueue done [18:31:12]KKMCreateOFDPacket [18:31:12]OFDProtocolAddRootSTLVToBuf [18:31:12]FM_MakeSignedData [18:31:12]FM_MakeSignedData [18:31:12]SAM_PROTO_SignData [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 0D 01 02 [18:31:12]Write to MH i2c: E2 08 00 F6 12 80 0D 01 02 00 00 00 00 81 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 F6 12 00 90 00 7C [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]wFMCommunicate request_size=255 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 ED 08 00 00 35 04 06 00 97 [18:31:12]Write to MH i2c: E2 02 01 F7 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 ED 08 00 00 35 04 06 00 97 00 00 4C [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 F7 12 00 90 00 7D [18:31:13]RAPDU: 90 00 [18:31:13]wFMCommunicate OK [18:31:13]wFMCommunicate request_size=10 [18:31:13]MH_SAM_APDU [18:31:13]CAPDU: 80 0D 02 02 05 60 E0 C4 C3 0A [18:31:13]Write to MH i2c: E2 0D 00 F8 12 80 0D 02 02 05 00 60 E0 C4 C3 0A 00 00 5F [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 F8 12 00 90 00 7E [18:31:13]RAPDU: 90 00 [18:31:13]wFMCommunicate OK [18:31:13]wFMCommunicate request_size=4 [18:31:13]MH_SAM_APDU [18:31:13]CAPDU: 80 0D 03 02 [18:31:13]Write to MH i2c: E2 08 00 F9 12 80 0D 03 02 00 00 00 00 86 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 0B 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 0B 00 F9 12 00 D5 C3 95 64 13 64 EF E9 90 00 67 [18:31:13]RAPDU: D5 C3 95 64 13 64 EF E9 90 00 [18:31:13]wFMCommunicate OK [18:31:13]SAM_PROTO_SignData done [18:31:13]FM_MakeSignedData done [18:31:13]CreateOFDProtocolMessage [18:31:13]wFMCommunicate request_size=4 [18:31:13]MH_SAM_APDU [18:31:13]CAPDU: 80 11 00 00 [18:31:13]Write to MH i2c: E2 08 00 FA 12 80 11 00 00 00 00 00 00 86 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 17 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 17 00 FA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D6 [18:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:31:13]wFMCommunicate OK [18:31:13]CreateOFDProtocolMessage done [18:31:13]OFDSenderStorePacket 2285 [18:31:13]StoreOFDPacket docnum=2285 [18:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 BB 1C 07 01 11 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 ED 08 00 00 35 04 06 00 97 60 E0 C4 C3 0A D5 C3 95 64 13 64 EF E9 [18:31:13]CheckFolder [18:31:13]dirname=/storage/ofd_packets [18:31:13]CheckFolder done [18:31:13]ProducePacketName [18:31:13]name=ofd_packets/00002285 [18:31:13]NVStorageSaveData ofd_packets/00002285 [18:31:13]File name is /storage/ofd_packets/00002285 [18:31:13]Write 301 bytes [18:31:13]NVStorageSaveData done [18:31:13]OFDSenderStorePacket done [18:31:13]KKMCreateOFDPacket done [18:31:13]NVStorageSaveData kkm_last_timestamp [18:31:13]File name is /storage/kkm_last_timestamp [18:31:13]Write 4 bytes [18:31:13]NVStorageSaveData done [18:31:13]ExternCall_PrintAddStr [18:31:13]wPrintStart [18:31:13]Write to MH i2c: 01 00 00 FB 12 0D [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 07 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 07 00 FB 12 00 00 00 00 00 FF 0F 22 [18:31:13]RasterBufferAndPrint [18:31:13]line Счет N : (1)610047 [18:31:13]line ИНН: 02508201610067 [18:31:13]line Контрольно-Кассовый Чек [18:31:13]line ПРОДАЖА [18:31:13]line ТРК (МРК, ГНК) : 52 [18:31:13]line Товар: 2710124130 [18:31:13]line Аи-92-К-2 [18:31:13]line 7.380 * 67.80 [18:31:13]line = 500.36 [18:31:13]line НДС 12% НСП 1% [18:31:13]line > о реализуемом товаре [18:31:13]line ИТОГО: 500.36 [18:31:13]line НСП 1% : 4.43 [18:31:13]line НДС 12% : 53.14 [18:31:13]line Наличными: 0.00 [18:31:13]line Безнал.: 500.36 [18:31:13]line Место: АЗС № 127 "Партнер Нефть" [18:31:13]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:31:13]line СНО: Общий режим [18:31:13]line Чек 134 29.07.2024 18:31 [18:31:13]line Смена: 15 ФФД: 1.0 [18:31:13]line ЗНМ: 0300000161 [18:31:13]line РНМ: 0000000000189667 [18:31:13]line Версия ККМ: v1.0 [18:31:13]line Платежная система: Бакай Банк [18:31:13]line ФМ: 0000000002094248 [18:31:13]line ФД: 2285 [18:31:13]line ФПД: 166442343645962 [18:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183113&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2285&fm=166442343645962&tin=02508201610067®Number=0000000000189667&sum=50036 [18:31:13]OFD Sender: Processing packet 2285 [packets to send 1, broken 0] [18:31:13]ProducePacketName [18:31:13]name=ofd_packets/00002285 [18:31:13]OFD Sender: To server: pG, [18:31:13]CommunicateWithHost lk.salyk.kg:30040 [18:31:13]ConnectInit lk.salyk.kg [18:31:13]written 0, free lines is 4095 [18:31:14]Write to MH i2c: 01 00 00 25 13 38 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: 01 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: 01 07 00 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: 01 07 00 25 13 00 00 00 00 00 F5 0C 40 [18:31:14]RasterBufferAndPrint [18:31:14]line [18:31:14]line [18:31:14]line [18:31:14]line [18:31:14]line [18:31:14]written 0, free lines is 3323 [18:31:14]MH_Cut [18:31:14]Write to MH i2c: D1 01 00 2C 13 01 11 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: D1 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: D1 01 00 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: D1 01 00 2C 13 00 10 [18:31:14]Write to MH i2c: 01 00 00 2D 13 40 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]*** Cut start [18:31:14]*** Partial cut [18:31:14]*** CUTSNS_PIN = 1 [18:31:14]*** CUTSNS_PIN = 0 [18:31:15]*** Brake cut motor [18:31:15]Read from MH i2c: 01 [18:31:15]MH_I2C_Read... [18:31:15]*** Stop cut motor [18:31:15]*** Cut end [18:31:15]Read from MH i2c: 01 07 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 07 00 2D 13 00 00 00 00 00 FF 0F 55 [18:31:15]process_action close_receipt done [18:31:15]requested_data is exist [18:31:15]produce_requested_data [18:31:15]requested_item fm.sn is exist - process it [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 11 00 00 [18:31:15]Write to MH i2c: E2 08 00 2E 13 80 11 00 00 00 00 00 00 BB [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 17 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 17 00 2E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0B [18:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:31:15]wFMCommunicate OK [18:31:15]requested_item fd.num is exist - process it [18:31:15]SAM_PROTO_GetFieldsCounters [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 13 00 00 [18:31:15]Write to MH i2c: E2 08 00 2F 13 80 13 00 00 00 00 00 00 BE [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 62 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 62 00 2F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 ED 08 00 00 0E 04 04 00 0F 00 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 7E [18:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 ED 08 00 00 0E 04 04 00 0F 00 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 [18:31:15]wFMCommunicate OK [18:31:15]SAM_PROTO_GetFieldsCounters done [18:31:15]requested_item shift.num is exist - process it [18:31:15]requested_item shift.opened is exist - process it [18:31:15]req_shift_opened [18:31:15]FM_GetShiftState [18:31:15]SAM_PROTO_GetShiftState [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 13 01 00 [18:31:15]Write to MH i2c: E2 08 00 30 13 80 13 01 00 00 00 00 00 C0 [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 30 13 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B9 [18:31:15]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:31:15]wFMCommunicate OK [18:31:15]SAM_PROTO_GetShiftState done [18:31:15]FM_GetShiftState done [18:31:15]req_shift_opened done [18:31:15]requested_item shift.open_date is exist - process it [18:31:15]req_shift_open_date [18:31:15]req_shift_open_date done [18:31:15]produce_requested_data done [18:31:15]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2285,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:31:15]process_action_free close_receipt [18:31:15]json_value_free [18:31:15]json_value_free done [18:31:15]process_json_proto returns [18:31:15]Send response to host [18:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2285,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:31:15]free response buf [18:31:15]execute_script done [18:31:15]execute_script returns [18:31:15]free content buf [18:31:15]Sock 9.Close socket [18:31:15]Sock 9.Thread stoped [18:33:15]accept exits with 8 [18:33:15]New connection [18:33:15]New thread 3067014500 created [18:33:15]Thread 3067157860 joined [18:33:15]Waiting for new connection... [18:33:15] Sock 8.Parse request [18:33:15]Sock 8.Check first char [18:33:15]Sock 8.First char is OK [18:33:15]request: POST /json_proto HTTP/1.0 [18:33:15]Method: POST [18:33:15]URL: /json_proto [18:33:15]Method is POST - this is cgi request [18:33:15]url: /json_proto [18:33:15]query_string will be loaded in cgi processing [18:33:15]execute_cgi json_proto POST (null) [18:33:15]execute_cgi path=json_proto method=POST [18:33:15]POST find Content-Length [18:33:15]Host: 172.17.45.132:8080 [18:33:15]Content-Length: 1139 [18:33:15]Content-Type: application/json [18:33:15] [18:33:15]POST finish read [18:33:15]Found Content-Length = 1139 [18:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126542", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:15]execute_script... [18:33:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126542", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:15]POST & json_proto [18:33:15]process_json_proto [18:33:15]json parsed OK: [18:33:15]protocol is kg_v1.0 [18:33:15]action value=close_receipt [18:33:15]process_action close_receipt [18:33:15]cmd_close_receipt [18:33:15]MH_GetDate [18:33:15]Write to MH i2c: F0 00 00 31 13 33 [18:33:15]Write i2c OK [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: F0 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: F0 09 00 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: F0 09 00 31 13 00 6C E0 A7 66 E3 0B 90 66 79 [18:33:15]GetLastDocTimeStamp 1722277873 [18:33:15]current date 1722277996 [18:33:15]FM_GetShiftState [18:33:15]SAM_PROTO_GetShiftState [18:33:15]wFMCommunicate request_size=4 [18:33:15]MH_SAM_APDU [18:33:15]CAPDU: 80 13 01 00 [18:33:15]Write to MH i2c: E2 08 00 32 13 80 13 01 00 00 00 00 00 C2 [18:33:15]Write i2c OK [18:33:15]MH_I2C_Read... [18:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:15]Read from MH i2c: E2 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: E2 0E 00 [18:33:15]MH_I2C_Read... [18:33:15]Read from MH i2c: E2 0E 00 32 13 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BB [18:33:15]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:33:15]wFMCommunicate OK [18:33:15]SAM_PROTO_GetShiftState done [18:33:15]FM_GetShiftState done [18:33:15]opened in 1722213119 [18:33:15]opened+sec_in_day 1722299519 [18:33:15]quantity*price = 6000 [18:33:15]sum+1 = 6001 [18:33:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480814 Пиво Живое 0,5 ст 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.85 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 135 29.07.2024 18:33 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2286 ФПД: 98723642978806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183316&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2286&fm=98723642978806&tin=02508201610067®Number=0000000000189667&sum=21000 0 [18:33:16]StoreToDocumentArchive [18:33:16]shift 15 fd 2286 [18:33:16]save to /storage/0015/doc_00002286 [18:33:16]save last doc name /storage/0015/doc_00002286 to /storage/kkm_last_doc_name [18:33:16]save OK [18:33:16]Clear old archive folders... [18:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=475 [18:33:16]tlvbuf is 02031760 [18:33:16]SAM_PROTO_ClearQueue [18:33:16]wFMCommunicate request_size=4 [18:33:16]MH_SAM_APDU [18:33:16]CAPDU: 80 09 00 00 [18:33:16]Write to MH i2c: E2 08 00 3F 13 80 09 00 00 00 00 00 00 C4 [18:33:16]Write i2c OK [18:33:16]MH_I2C_Read... [18:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:16]Read from MH i2c: E2 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [18:33:16]RAPDU: 90 00 [18:33:16]wFMCommunicate OK [18:33:16]SAM_PROTO_ClearQueue done [18:33:16]KKMCreateOFDPacket [18:33:16]OFDProtocolAddRootSTLVToBuf [18:33:16]FM_MakeSignedData [18:33:16]FM_MakeSignedData [18:33:16]SAM_PROTO_SignData [18:33:16]wFMCommunicate request_size=4 [18:33:16]MH_SAM_APDU [18:33:16]CAPDU: 80 0D 01 02 [18:33:16]Write to MH i2c: E2 08 00 40 13 80 0D 01 02 00 00 00 00 CC [18:33:16]Write i2c OK [18:33:16]MH_I2C_Read... [18:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:16]Read from MH i2c: E2 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 [18:33:16]MH_I2C_Read... [18:33:16]Read from MH i2c: E2 03 00 40 13 00 90 00 C7 [18:33:16]RAPDU: 90 00 [18:33:16]wFMCommunicate OK [18:33:16]wFMCommunicate request_size=255 [18:33:16]MH_SAM_APDU [18:33:16]CAPDU: 80 0D 02 02 FA 03 00 DB 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 [18:33:16]Write to MH i2c: E2 02 01 41 13 80 0D 02 02 FA 00 03 00 DB 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 00 00 B1 [18:33:16]Write i2c OK [18:33:16]MH_I2C_Read... [18:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:17]Read from MH i2c: E2 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 03 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 03 00 41 13 00 90 00 C8 [18:33:17]RAPDU: 90 00 [18:33:17]wFMCommunicate OK [18:33:17]wFMCommunicate request_size=234 [18:33:17]MH_SAM_APDU [18:33:17]CAPDU: 80 0D 02 02 E5 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 6C E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 08 00 00 35 04 06 00 59 C9 E3 AB B1 F6 [18:33:17]Write to MH i2c: E2 ED 00 42 13 80 0D 02 02 E5 00 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 6C E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 08 00 00 35 04 06 00 59 C9 E3 AB B1 F6 00 00 20 [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:17]Read from MH i2c: E2 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 03 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 03 00 42 13 00 90 00 C9 [18:33:17]RAPDU: 90 00 [18:33:17]wFMCommunicate OK [18:33:17]wFMCommunicate request_size=4 [18:33:17]MH_SAM_APDU [18:33:17]CAPDU: 80 0D 03 02 [18:33:17]Write to MH i2c: E2 08 00 43 13 80 0D 03 02 00 00 00 00 D1 [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:17]Read from MH i2c: E2 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 0B 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 0B 00 43 13 00 80 F1 AE 58 A1 57 17 70 90 00 C8 [18:33:17]RAPDU: 80 F1 AE 58 A1 57 17 70 90 00 [18:33:17]wFMCommunicate OK [18:33:17]SAM_PROTO_SignData done [18:33:17]FM_MakeSignedData done [18:33:17]CreateOFDProtocolMessage [18:33:17]wFMCommunicate request_size=4 [18:33:17]MH_SAM_APDU [18:33:17]CAPDU: 80 11 00 00 [18:33:17]Write to MH i2c: E2 08 00 44 13 80 11 00 00 00 00 00 00 D1 [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:17]Read from MH i2c: E2 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 17 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: E2 17 00 44 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 21 [18:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:33:17]wFMCommunicate OK [18:33:17]CreateOFDProtocolMessage done [18:33:17]OFDSenderStorePacket 2286 [18:33:17]StoreOFDPacket docnum=2286 [18:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 EF 01 00 00 A0 3C E7 01 54 0C 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 6C E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 08 00 00 35 04 06 00 59 C9 E3 AB B1 F6 80 F1 AE 58 A1 57 17 70 [18:33:17]CheckFolder [18:33:17]dirname=/storage/ofd_packets [18:33:17]CheckFolder done [18:33:17]ProducePacketName [18:33:17]name=ofd_packets/00002286 [18:33:17]NVStorageSaveData ofd_packets/00002286 [18:33:17]File name is /storage/ofd_packets/00002286 [18:33:17]Write 525 bytes [18:33:17]NVStorageSaveData done [18:33:17]OFDSenderStorePacket done [18:33:17]KKMCreateOFDPacket done [18:33:17]NVStorageSaveData kkm_last_timestamp [18:33:17]File name is /storage/kkm_last_timestamp [18:33:17]Write 4 bytes [18:33:17]NVStorageSaveData done [18:33:17]ExternCall_PrintAddStr [18:33:17]wPrintStart [18:33:17]Write to MH i2c: 01 00 00 45 13 58 [18:33:17]Write i2c OK [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: 01 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: 01 07 00 [18:33:17]MH_I2C_Read... [18:33:17]Read from MH i2c: 01 07 00 45 13 00 00 00 00 00 FF 0F 6D [18:33:17]RasterBufferAndPrint [18:33:17]line Счет N : (3)126542 [18:33:17]line ИНН: 02508201610067 [18:33:17]line Контрольно-Кассовый Чек [18:33:17]line ПРОДАЖА [18:33:17]line Товар: 4700000310043 [18:33:17]line Вода Жалалабат 27 1л [18:33:17]line 1.000 * 60.00 [18:33:17]line = 60.00 [18:33:17]line НДС 12% НСП 1% [18:33:17]line > о реализуемом товаре [18:33:17]line Товар: 4700000480814 [18:33:17]line Пиво Живое 0,5 ст [18:33:17]line 1.000 * 100.00 [18:33:17]line = 100.00 [18:33:17]line НДС 12% НСП 1% [18:33:17]line > о реализуемом товаре [18:33:17]line Товар: 4700000160358 [18:33:17]line Вода Легенда 1л [18:33:17]line 1.000 * 50.00 [18:33:17]line = 50.00 [18:33:17]line НДС 12% НСП 1% [18:33:17]line > о реализуемом товаре [18:33:17]line ИТОГО: 210.00 [18:33:17]line НСП 1% : 1.85 [18:33:17]line НДС 12% : 22.30 [18:33:17]line Наличными: 210.00 [18:33:17]line Безнал.: 0.00 [18:33:17]line Место: АЗС № 127 "Партнер Нефть" [18:33:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:33:17]line СНО: Общий режим [18:33:17]line Чек 135 29.07.2024 18:33 [18:33:17]line Смена: 15 ФФД: 1.0 [18:33:17]line ЗНМ: 0300000161 [18:33:17]line РНМ: 0000000000189667 [18:33:17]line Версия ККМ: v1.0 [18:33:17]line ФМ: 0000000002094248 [18:33:17]line ФД: 2286 [18:33:17]line ФПД: 98723642978806 [18:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183316&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2286&fm=98723642978806&tin=02508201610067®Number=0000000000189667&sum=21000 [18:33:17]line 0 [18:33:17]written 0, free lines is 4095 [18:33:18]Write to MH i2c: 01 00 00 79 13 8C [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: 01 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: 01 07 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: 01 07 00 79 13 00 00 00 00 00 6D 0C 0C [18:33:18]RasterBufferAndPrint [18:33:18]line [18:33:18]line [18:33:18]line [18:33:18]line [18:33:18]line [18:33:18]written 0, free lines is 3190 [18:33:18]MH_Cut [18:33:18]Write to MH i2c: D1 01 00 80 13 01 65 [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: D1 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: D1 01 00 [18:33:18]MH_I2C_Read... [18:33:18]Read from MH i2c: D1 01 00 80 13 00 64 [18:33:18]Write to MH i2c: 01 00 00 81 13 94 [18:33:18]Write i2c OK [18:33:18]MH_I2C_Read... [18:33:18]*** Cut start [18:33:18]*** Partial cut [18:33:18]*** CUTSNS_PIN = 1 [18:33:18]*** CUTSNS_PIN = 0 [18:33:19]*** Brake cut motor [18:33:19]Read from MH i2c: 01 [18:33:19]MH_I2C_Read... [18:33:19]*** Stop cut motor [18:33:19]*** Cut end [18:33:19]Read from MH i2c: 01 07 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [18:33:19]process_action close_receipt done [18:33:19]requested_data is exist [18:33:19]produce_requested_data [18:33:19]requested_item fm.sn is exist - process it [18:33:19]wFMCommunicate request_size=4 [18:33:19]MH_SAM_APDU [18:33:19]CAPDU: 80 11 00 00 [18:33:19]Write to MH i2c: E2 08 00 82 13 80 11 00 00 00 00 00 00 0F [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:19]Read from MH i2c: E2 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 17 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 17 00 82 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5F [18:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:33:19]wFMCommunicate OK [18:33:19]requested_item fd.num is exist - process it [18:33:19]SAM_PROTO_GetFieldsCounters [18:33:19]wFMCommunicate request_size=4 [18:33:19]MH_SAM_APDU [18:33:19]CAPDU: 80 13 00 00 [18:33:19]Write to MH i2c: E2 08 00 83 13 80 13 00 00 00 00 00 00 12 [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:19]Read from MH i2c: E2 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 62 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 62 00 83 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EE 08 00 00 0E 04 04 00 0F 00 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 D6 [18:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EE 08 00 00 0E 04 04 00 0F 00 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 [18:33:19]wFMCommunicate OK [18:33:19]SAM_PROTO_GetFieldsCounters done [18:33:19]requested_item shift.num is exist - process it [18:33:19]requested_item shift.opened is exist - process it [18:33:19]req_shift_opened [18:33:19]FM_GetShiftState [18:33:19]SAM_PROTO_GetShiftState [18:33:19]wFMCommunicate request_size=4 [18:33:19]MH_SAM_APDU [18:33:19]CAPDU: 80 13 01 00 [18:33:19]Write to MH i2c: E2 08 00 84 13 80 13 01 00 00 00 00 00 14 [18:33:19]Write i2c OK [18:33:19]MH_I2C_Read... [18:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:19]Read from MH i2c: E2 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 0E 00 [18:33:19]MH_I2C_Read... [18:33:19]Read from MH i2c: E2 0E 00 84 13 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 0D [18:33:19]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:33:19]wFMCommunicate OK [18:33:19]SAM_PROTO_GetShiftState done [18:33:19]FM_GetShiftState done [18:33:19]req_shift_opened done [18:33:19]requested_item shift.open_date is exist - process it [18:33:19]req_shift_open_date [18:33:19]req_shift_open_date done [18:33:19]produce_requested_data done [18:33:19]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2286,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:33:19]process_action_free close_receipt [18:33:19]json_value_free [18:33:19]json_value_free done [18:33:19]process_json_proto returns [18:33:19]Send response to host [18:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2286,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:33:19]free response buf [18:33:19]execute_script done [18:33:19]execute_script returns [18:33:19]free content buf [18:33:19]Sock 8.Close socket [18:33:19]Sock 8.Thread stoped [18:33:22]ConnectInit Can't connect to host [18:33:22]CommunicateWithHost connect error [18:33:22]CommunicateWithHost err = -1 [18:33:22]OFD Sender: Server communicate error [18:33:23]OFD Sender: Processing packet 2285 [packets to send 2, broken 0] [18:33:23]ProducePacketName [18:33:23]name=ofd_packets/00002285 [18:33:23]OFD Sender: To server: pG, [18:33:23]CommunicateWithHost lk.salyk.kg:30040 [18:33:23]ConnectInit lk.salyk.kg [18:33:23]Connected sock=8 [18:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 BB 1C 07 01 11 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F1 DF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 ED 08 00 00 35 04 06 00 97 60 E0 C4 C3 0A D5 C3 95 64 13 64 EF E9 [18:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F7 2E 47 00 83 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 ED 08 00 00 F4 03 04 00 DE 8B A7 66 B6 04 01 00 00 3C BC 5E 3D 46 F6 6D AE [18:33:23]CommunicateWithHost err = 0 [18:33:23]CheckOFDResponse [18:33:23]1017 (14) - 77093643461234 [18:33:23]1041 (16) - 0000000002094248 [18:33:23]1040 (4) - 2285 [18:33:23]1012 (4) - 29.07.2024 12:32 [18:33:23]1206 (1) - 0 [18:33:23]OFD Sender: Remove packet 2285 [18:33:23]ProducePacketName [18:33:23]name=ofd_packets/00002285 [18:33:23]NVStorageDeleteData [18:33:23]OFD Sender: Processing packet 2286 [packets to send 1, broken 0] [18:33:23]ProducePacketName [18:33:23]name=ofd_packets/00002286 [18:33:23]OFD Sender: To server: pG, [18:33:23]CommunicateWithHost lk.salyk.kg:30040 [18:33:23]ConnectInit lk.salyk.kg [18:33:24]Connected sock=8 [18:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 EF 01 00 00 A0 3C E7 01 54 0C 5A 03 01 00 03 00 DB 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 6C E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EE 08 00 00 35 04 06 00 59 C9 E3 AB B1 F6 80 F1 AE 58 A1 57 17 70 [18:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 86 BD 47 00 5A 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 32 30 39 34 32 34 38 10 04 04 00 EE 08 00 00 F4 03 04 00 DF 8B A7 66 B6 04 01 00 00 93 83 18 65 05 8B A6 72 [18:33:24]CommunicateWithHost err = 0 [18:33:24]CheckOFDResponse [18:33:24]1017 (14) - 77093643461234 [18:33:24]1041 (16) - 0000000002094248 [18:33:24]1040 (4) - 2286 [18:33:24]1012 (4) - 29.07.2024 12:32 [18:33:24]1206 (1) - 0 [18:33:24]OFD Sender: Remove packet 2286 [18:33:24]ProducePacketName [18:33:24]name=ofd_packets/00002286 [18:33:24]NVStorageDeleteData [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:54]accept exits with 9 [18:33:54]New connection [18:33:54]New thread 3067157860 created [18:33:54]Thread 3067014500 joined [18:33:54]Waiting for new connection... [18:33:54] Sock 9.Parse request [18:33:54]Sock 9.Check first char [18:33:54]Sock 9.First char is OK [18:33:54]request: POST /json_proto HTTP/1.0 [18:33:54]Method: POST [18:33:54]URL: /json_proto [18:33:54]Method is POST - this is cgi request [18:33:54]url: /json_proto [18:33:54]query_string will be loaded in cgi processing [18:33:54]execute_cgi json_proto POST (null) [18:33:54]execute_cgi path=json_proto method=POST [18:33:54]POST find Content-Length [18:33:54]Host: 172.17.45.132:8080 [18:33:54]Content-Length: 803 [18:33:54]Content-Type: application/json [18:33:54] [18:33:54]POST finish read [18:33:54]Found Content-Length = 803 [18:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:54]execute_script... [18:33:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:54]POST & json_proto [18:33:54]process_json_proto [18:33:54]json parsed OK: [18:33:54]protocol is kg_v1.0 [18:33:54]action value=close_receipt [18:33:54]process_action close_receipt [18:33:54]cmd_close_receipt [18:33:54]MH_GetDate [18:33:54]Write to MH i2c: F0 00 00 85 13 87 [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: F0 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: F0 09 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: F0 09 00 85 13 00 94 E0 A7 66 E3 0B 90 66 F5 [18:33:54]GetLastDocTimeStamp 1722277996 [18:33:54]current date 1722278036 [18:33:54]FM_GetShiftState [18:33:54]SAM_PROTO_GetShiftState [18:33:54]wFMCommunicate request_size=4 [18:33:54]MH_SAM_APDU [18:33:54]CAPDU: 80 13 01 00 [18:33:54]Write to MH i2c: E2 08 00 86 13 80 13 01 00 00 00 00 00 16 [18:33:54]Write i2c OK [18:33:54]MH_I2C_Read... [18:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:55]Read from MH i2c: E2 [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: E2 0E 00 [18:33:55]MH_I2C_Read... [18:33:55]Read from MH i2c: E2 0E 00 86 13 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 0F [18:33:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:33:55]wFMCommunicate OK [18:33:55]SAM_PROTO_GetShiftState done [18:33:55]FM_GetShiftState done [18:33:55]opened in 1722213119 [18:33:55]opened+sec_in_day 1722299519 [18:33:55]quantity*price = 200010 [18:33:55]sum+1 = 200011 [18:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 136 29.07.2024 18:33 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2287 ФПД: 36447367617770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2287&fm=36447367617770&tin=02508201610067®Number=0000000000189667&sum=200010 [18:33:56]StoreToDocumentArchive [18:33:56]shift 15 fd 2287 [18:33:56]save to /storage/0015/doc_00002287 [18:33:56]save last doc name /storage/0015/doc_00002287 to /storage/kkm_last_doc_name [18:33:56]save OK [18:33:56]Clear old archive folders... [18:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:56]tlvbuf is 02018E00 [18:33:56]SAM_PROTO_ClearQueue [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 09 00 00 [18:33:56]Write to MH i2c: E2 08 00 93 13 80 09 00 00 00 00 00 00 18 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 93 13 00 90 00 1A [18:33:56]RAPDU: 90 00 [18:33:56]wFMCommunicate OK [18:33:56]SAM_PROTO_ClearQueue done [18:33:56]KKMCreateOFDPacket [18:33:56]OFDProtocolAddRootSTLVToBuf [18:33:56]FM_MakeSignedData [18:33:56]FM_MakeSignedData [18:33:56]SAM_PROTO_SignData [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 0D 01 02 [18:33:56]Write to MH i2c: E2 08 00 94 13 80 0D 01 02 00 00 00 00 20 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [18:33:56]RAPDU: 90 00 [18:33:56]wFMCommunicate OK [18:33:56]wFMCommunicate request_size=255 [18:33:56]MH_SAM_APDU [18: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 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 94 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EF 08 00 00 35 04 06 00 21 [18:33:56]Write to MH i2c: E2 02 01 95 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 94 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EF 08 00 00 35 04 06 00 21 00 00 ED [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [18:33:56]RAPDU: 90 00 [18:33:56]wFMCommunicate OK [18:33:56]wFMCommunicate request_size=10 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 0D 02 02 05 26 10 66 5C EA [18:33:56]Write to MH i2c: E2 0D 00 96 13 80 0D 02 02 05 00 26 10 66 5C EA 00 00 0F [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [18:33:56]RAPDU: 90 00 [18:33:56]wFMCommunicate OK [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 0D 03 02 [18:33:56]Write to MH i2c: E2 08 00 97 13 80 0D 03 02 00 00 00 00 25 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0B 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0B 00 97 13 00 34 A8 7E 4A C4 AB 6B D3 90 00 77 [18:33:56]RAPDU: 34 A8 7E 4A C4 AB 6B D3 90 00 [18:33:56]wFMCommunicate OK [18:33:56]SAM_PROTO_SignData done [18:33:56]FM_MakeSignedData done [18:33:56]CreateOFDProtocolMessage [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 11 00 00 [18:33:56]Write to MH i2c: E2 08 00 98 13 80 11 00 00 00 00 00 00 25 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 17 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 17 00 98 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 75 [18:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:33:56]wFMCommunicate OK [18:33:56]CreateOFDProtocolMessage done [18:33:56]OFDSenderStorePacket 2287 [18:33:56]StoreOFDPacket docnum=2287 [18:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 17 D6 07 01 C9 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 94 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EF 08 00 00 35 04 06 00 21 26 10 66 5C EA 34 A8 7E 4A C4 AB 6B D3 [18:33:56]CheckFolder [18:33:56]dirname=/storage/ofd_packets [18:33:56]CheckFolder done [18:33:56]ProducePacketName [18:33:56]name=ofd_packets/00002287 [18:33:56]NVStorageSaveData ofd_packets/00002287 [18:33:56]File name is /storage/ofd_packets/00002287 [18:33:56]Write 301 bytes [18:33:56]NVStorageSaveData done [18:33:56]OFDSenderStorePacket done [18:33:56]KKMCreateOFDPacket done [18:33:56]NVStorageSaveData kkm_last_timestamp [18:33:56]File name is /storage/kkm_last_timestamp [18:33:56]Write 4 bytes [18:33:56]NVStorageSaveData done [18:33:56]ExternCall_PrintAddStr [18:33:56]wPrintStart [18:33:56]Write to MH i2c: 01 00 00 99 13 AC [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: 01 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: 01 07 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 FF 0F C1 [18:33:56]RasterBufferAndPrint [18:33:56]line Счет N : (1)610042 [18:33:56]line ИНН: 02508201610067 [18:33:56]line Контрольно-Кассовый Чек [18:33:56]line ПРОДАЖА [18:33:56]line ТРК (МРК, ГНК) : 62 [18:33:56]line Товар: 2710124130 [18:33:56]line Аи-92-К-2 [18:33:56]line 29.500 * 67.80 [18:33:56]line = 2000.10 [18:33:56]line НДС 12% НСП 1% [18:33:56]line > о реализуемом товаре [18:33:56]line ИТОГО: 2000.10 [18:33:56]line НСП 1% : 17.70 [18:33:56]line НДС 12% : 212.40 [18:33:56]line Наличными: 0.00 [18:33:56]line Безнал.: 2000.10 [18:33:56]line Место: АЗС № 127 "Партнер Нефть" [18:33:56]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:33:56]line СНО: Общий режим [18:33:56]line Чек 136 29.07.2024 18:33 [18:33:56]line Смена: 15 ФФД: 1.0 [18:33:56]line ЗНМ: 0300000161 [18:33:56]line РНМ: 0000000000189667 [18:33:56]line Версия ККМ: v1.0 [18:33:56]line Платежная система: O! деньги [18:33:56]line ФМ: 0000000002094248 [18:33:56]line ФД: 2287 [18:33:56]line ФПД: 36447367617770 [18:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2287&fm=36447367617770&tin=02508201610067®Number=0000000000189667&sum=200010 [18:33:57]OFD Sender: Processing packet 2287 [packets to send 1, broken 0] [18:33:57]ProducePacketName [18:33:57]name=ofd_packets/00002287 [18:33:57]OFD Sender: To server: pG, [18:33:57]CommunicateWithHost lk.salyk.kg:30040 [18:33:57]ConnectInit lk.salyk.kg [18:33:57]written 0, free lines is 4095 [18:33:57]Connected sock=10 [18:33:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 17 D6 07 01 C9 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 94 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EF 08 00 00 35 04 06 00 21 26 10 66 5C EA 34 A8 7E 4A C4 AB 6B D3 [18:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D4 6E 47 00 3D F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 EF 08 00 00 F4 03 04 00 00 8C A7 66 B6 04 01 00 00 10 C7 A7 7F 0C 76 03 55 [18:33:57]CommunicateWithHost err = 0 [18:33:57]CheckOFDResponse [18:33:57]1017 (14) - 77093643461234 [18:33:57]1041 (16) - 0000000002094248 [18:33:57]1040 (4) - 2287 [18:33:57]1012 (4) - 29.07.2024 12:33 [18:33:57]1206 (1) - 0 [18:33:57]OFD Sender: Remove packet 2287 [18:33:57]ProducePacketName [18:33:57]name=ofd_packets/00002287 [18:33:57]NVStorageDeleteData [18:33:57]Write to MH i2c: 01 00 00 C3 13 D6 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 07 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 07 00 C3 13 00 00 00 00 00 05 0D EF [18:33:57]RasterBufferAndPrint [18:33:57]line [18:33:57]line [18:33:57]line [18:33:57]line [18:33:57]line [18:33:57]written 0, free lines is 3339 [18:33:57]MH_Cut [18:33:57]Write to MH i2c: D1 01 00 CA 13 01 AF [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: D1 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: D1 01 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: D1 01 00 CA 13 00 AE [18:33:57]Write to MH i2c: 01 00 00 CB 13 DE [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]OFD Sender: No OFD packet to send [18:33:58]*** Cut start [18:33:58]*** Partial cut [18:33:58]*** CUTSNS_PIN = 1 [18:33:58]*** CUTSNS_PIN = 0 [18:33:58]*** Brake cut motor [18:33:58]Read from MH i2c: 01 [18:33:58]MH_I2C_Read... [18:33:58]*** Stop cut motor [18:33:58]*** Cut end [18:33:58]Read from MH i2c: 01 07 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: 01 07 00 CB 13 00 00 00 00 00 FF 0F F3 [18:33:58]process_action close_receipt done [18:33:58]requested_data is exist [18:33:58]produce_requested_data [18:33:58]requested_item fm.sn is exist - process it [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 11 00 00 [18:33:58]Write to MH i2c: E2 08 00 CC 13 80 11 00 00 00 00 00 00 59 [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 17 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 17 00 CC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A9 [18:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:33:58]wFMCommunicate OK [18:33:58]requested_item fd.num is exist - process it [18:33:58]SAM_PROTO_GetFieldsCounters [18:33:58]wFMCommunicate request_size=4 [18:33:58]MH_SAM_APDU [18:33:58]CAPDU: 80 13 00 00 [18:33:58]Write to MH i2c: E2 08 00 CD 13 80 13 00 00 00 00 00 00 5C [18:33:58]Write i2c OK [18:33:58]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 62 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 62 00 CD 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EF 08 00 00 0E 04 04 00 0F 00 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 24 [18:33:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 EF 08 00 00 0E 04 04 00 0F 00 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 [18:33:59]wFMCommunicate OK [18:33:59]SAM_PROTO_GetFieldsCounters done [18:33:59]requested_item shift.num is exist - process it [18:33:59]requested_item shift.opened is exist - process it [18:33:59]req_shift_opened [18:33:59]FM_GetShiftState [18:33:59]SAM_PROTO_GetShiftState [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 13 01 00 [18:33:59]Write to MH i2c: E2 08 00 CE 13 80 13 01 00 00 00 00 00 5E [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 0E 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 0E 00 CE 13 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 57 [18:33:59]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:33:59]wFMCommunicate OK [18:33:59]SAM_PROTO_GetShiftState done [18:33:59]FM_GetShiftState done [18:33:59]req_shift_opened done [18:33:59]requested_item shift.open_date is exist - process it [18:33:59]req_shift_open_date [18:33:59]req_shift_open_date done [18:33:59]produce_requested_data done [18:33:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2287,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:33:59]process_action_free close_receipt [18:33:59]json_value_free [18:33:59]json_value_free done [18:33:59]process_json_proto returns [18:33:59]Send response to host [18:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2287,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:33:59]free response buf [18:33:59]execute_script done [18:33:59]execute_script returns [18:33:59]free content buf [18:33:59]Sock 9.Close socket [18:33:59]Sock 9.Thread stoped [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:43]accept exits with 8 [18:34:43]New connection [18:34:43]New thread 3067014500 created [18:34:43]Thread 3067157860 joined [18:34:43]Waiting for new connection... [18:34:43] Sock 8.Parse request [18:34:43]Sock 8.Check first char [18:34:43]Sock 8.First char is OK [18:34:43]request: POST /json_proto HTTP/1.0 [18:34:43]Method: POST [18:34:43]URL: /json_proto [18:34:43]Method is POST - this is cgi request [18:34:43]url: /json_proto [18:34:43]query_string will be loaded in cgi processing [18:34:43]execute_cgi json_proto POST (null) [18:34:43]execute_cgi path=json_proto method=POST [18:34:43]POST find Content-Length [18:34:43]Host: 172.17.45.132:8080 [18:34:43]Content-Length: 747 [18:34:43]Content-Type: application/json [18:34:43] [18:34:43]POST finish read [18:34:43]Found Content-Length = 747 [18:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126543", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "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" ] } } [18:34:43]execute_script... [18:34: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)126543", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "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" ] } } [18:34:43]POST & json_proto [18:34:43]process_json_proto [18:34:43]json parsed OK: [18:34:43]protocol is kg_v1.0 [18:34:43]action value=close_receipt [18:34:43]process_action close_receipt [18:34:43]cmd_close_receipt [18:34:43]MH_GetDate [18:34:43]Write to MH i2c: F0 00 00 CF 13 D1 [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 09 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 09 00 CF 13 00 C5 E0 A7 66 E3 0B 90 66 70 [18:34:43]GetLastDocTimeStamp 1722278036 [18:34:43]current date 1722278085 [18:34:43]FM_GetShiftState [18:34:43]SAM_PROTO_GetShiftState [18:34:43]wFMCommunicate request_size=4 [18:34:43]MH_SAM_APDU [18:34:43]CAPDU: 80 13 01 00 [18:34:43]Write to MH i2c: E2 08 00 D0 13 80 13 01 00 00 00 00 00 60 [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:43]Read from MH i2c: E2 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: E2 0E 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: E2 0E 00 D0 13 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 59 [18:34:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:34:43]wFMCommunicate OK [18:34:43]SAM_PROTO_GetShiftState done [18:34:43]FM_GetShiftState done [18:34:43]opened in 1722213119 [18:34:43]opened+sec_in_day 1722299519 [18:34:43]quantity*price = 59000 [18:34:43]sum+1 = 59001 [18:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 137 29.07.2024 18:34 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2288 ФПД: 211272929711837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2288&fm=211272929711837&tin=02508201610067®Number=0000000000189667&sum=59000 0 [18:34:45]StoreToDocumentArchive [18:34:45]shift 15 fd 2288 [18:34:45]save to /storage/0015/doc_00002288 [18:34:45]save last doc name /storage/0015/doc_00002288 to /storage/kkm_last_doc_name [18:34:45]save OK [18:34:45]Clear old archive folders... [18:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=307 [18:34:45]tlvbuf is 020184A0 [18:34:45]SAM_PROTO_ClearQueue [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 09 00 00 [18:34:45]Write to MH i2c: E2 08 00 DD 13 80 09 00 00 00 00 00 00 62 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 DD 13 00 90 00 64 [18:34:45]RAPDU: 90 00 [18:34:45]wFMCommunicate OK [18:34:45]SAM_PROTO_ClearQueue done [18:34:45]KKMCreateOFDPacket [18:34:45]OFDProtocolAddRootSTLVToBuf [18:34:45]FM_MakeSignedData [18:34:45]FM_MakeSignedData [18:34:45]SAM_PROTO_SignData [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 0D 01 02 [18:34:45]Write to MH i2c: E2 08 00 DE 13 80 0D 01 02 00 00 00 00 6A [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [18:34:45]RAPDU: 90 00 [18:34:45]wFMCommunicate OK [18:34:45]wFMCommunicate request_size=255 [18:34:45]MH_SAM_APDU [18:34:45]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 38 34 31 30 30 32 35 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 89 00 00 00 F4 03 04 00 C5 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 [18:34:45]Write to MH i2c: E2 02 01 DF 13 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 38 34 31 30 30 32 35 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 89 00 00 00 F4 03 04 00 C5 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 00 00 35 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [18:34:45]RAPDU: 90 00 [18:34:45]wFMCommunicate OK [18:34:45]wFMCommunicate request_size=66 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 08 00 00 35 04 06 00 C0 26 CF ED 16 DD [18:34:45]Write to MH i2c: E2 45 00 E0 13 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 08 00 00 35 04 06 00 C0 26 CF ED 16 DD 00 00 55 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [18:34:45]RAPDU: 90 00 [18:34:45]wFMCommunicate OK [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 0D 03 02 [18:34:45]Write to MH i2c: E2 08 00 E1 13 80 0D 03 02 00 00 00 00 6F [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 0B 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 0B 00 E1 13 00 A6 B6 B2 E7 12 9B 04 12 90 00 28 [18:34:45]RAPDU: A6 B6 B2 E7 12 9B 04 12 90 00 [18:34:45]wFMCommunicate OK [18:34:45]SAM_PROTO_SignData done [18:34:45]FM_MakeSignedData done [18:34:45]CreateOFDProtocolMessage [18:34:45]wFMCommunicate request_size=4 [18:34:45]MH_SAM_APDU [18:34:45]CAPDU: 80 11 00 00 [18:34:45]Write to MH i2c: E2 08 00 E2 13 80 11 00 00 00 00 00 00 6F [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:45]Read from MH i2c: E2 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: E2 17 00 E2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BF [18:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:34:45]wFMCommunicate OK [18:34:45]CreateOFDProtocolMessage done [18:34:45]OFDSenderStorePacket 2288 [18:34:45]StoreOFDPacket docnum=2288 [18:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 03 FE 3F 01 B2 99 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 38 34 31 30 30 32 35 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 89 00 00 00 F4 03 04 00 C5 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 08 00 00 35 04 06 00 C0 26 CF ED 16 DD A6 B6 B2 E7 12 9B 04 12 [18:34:45]CheckFolder [18:34:45]dirname=/storage/ofd_packets [18:34:45]CheckFolder done [18:34:45]ProducePacketName [18:34:45]name=ofd_packets/00002288 [18:34:45]NVStorageSaveData ofd_packets/00002288 [18:34:45]File name is /storage/ofd_packets/00002288 [18:34:45]Write 357 bytes [18:34:45]NVStorageSaveData done [18:34:45]OFDSenderStorePacket done [18:34:45]KKMCreateOFDPacket done [18:34:45]NVStorageSaveData kkm_last_timestamp [18:34:45]File name is /storage/kkm_last_timestamp [18:34:45]Write 4 bytes [18:34:45]NVStorageSaveData done [18:34:45]ExternCall_PrintAddStr [18:34:45]wPrintStart [18:34:45]Write to MH i2c: 01 00 00 E3 13 F6 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 E3 13 00 00 00 00 00 FF 0F 0B [18:34:45]RasterBufferAndPrint [18:34:45]line Счет N : (3)126543 [18:34:45]line ИНН: 02508201610067 [18:34:45]line Контрольно-Кассовый Чек [18:34:45]line ПРОДАЖА [18:34:45]line Товар: 2000028410025 [18:34:45]line Очки солнцезащитные в ассортименте [18:34:45]line 1.000 * 590.00 [18:34:45]line = 590.00 [18:34:45]line НДС 12% НСП 1% [18:34:45]line > о реализуемом товаре [18:34:45]line ИТОГО: 590.00 [18:34:45]line НСП 1% : 5.22 [18:34:45]line НДС 12% : 62.65 [18:34:45]line Наличными: 590.00 [18:34:45]line Безнал.: 0.00 [18:34:45]line Место: АЗС № 127 "Партнер Нефть" [18:34:45]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:34:45]line СНО: Общий режим [18:34:45]line Чек 137 29.07.2024 18:34 [18:34:45]line Смена: 15 ФФД: 1.0 [18:34:45]line ЗНМ: 0300000161 [18:34:45]line РНМ: 0000000000189667 [18:34:45]line Версия ККМ: v1.0 [18:34:45]line ФМ: 0000000002094248 [18:34:45]line ФД: 2288 [18:34:45]line ФПД: 211272929711837 [18:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183445&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2288&fm=211272929711837&tin=02508201610067®Number=0000000000189667&sum=59000 [18:34:45]line 0 [18:34:45]OFD Sender: Processing packet 2288 [packets to send 1, broken 0] [18:34:45]ProducePacketName [18:34:45]name=ofd_packets/00002288 [18:34:45]OFD Sender: To server: pG, [18:34:45]CommunicateWithHost lk.salyk.kg:30040 [18:34:45]ConnectInit lk.salyk.kg [18:34:45]written 0, free lines is 4095 [18:34:46]Connected sock=10 [18:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 47 01 00 00 03 FE 3F 01 B2 99 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 38 34 31 30 30 32 35 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 89 00 00 00 F4 03 04 00 C5 E0 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 08 00 00 35 04 06 00 C0 26 CF ED 16 DD A6 B6 B2 E7 12 9B 04 12 [18:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4D 5D 47 00 06 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F0 08 00 00 F4 03 04 00 31 8C A7 66 B6 04 01 00 00 EA EF 3F 45 00 B5 30 1F [18:34:46]CommunicateWithHost err = 0 [18:34:46]CheckOFDResponse [18:34:46]1017 (14) - 77093643461234 [18:34:46]1041 (16) - 0000000002094248 [18:34:46]1040 (4) - 2288 [18:34:46]1012 (4) - 29.07.2024 12:33 [18:34:46]1206 (1) - 0 [18:34:46]OFD Sender: Remove packet 2288 [18:34:46]ProducePacketName [18:34:46]name=ofd_packets/00002288 [18:34:46]NVStorageDeleteData [18:34:46]Write to MH i2c: 01 00 00 0C 14 20 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: 01 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: 01 07 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: 01 07 00 0C 14 00 00 00 00 00 03 0D 37 [18:34:46]RasterBufferAndPrint [18:34:46]line [18:34:46]line [18:34:46]line [18:34:46]line [18:34:46]line [18:34:46]written 0, free lines is 3337 [18:34:46]MH_Cut [18:34:46]Write to MH i2c: D1 01 00 13 14 01 F9 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: D1 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: D1 01 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: D1 01 00 13 14 00 F8 [18:34:46]Write to MH i2c: 01 00 00 14 14 28 [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]OFD Sender: No OFD packet to send [18:34:47]*** Cut start [18:34:47]*** Partial cut [18:34:47]*** CUTSNS_PIN = 1 [18:34:47]*** CUTSNS_PIN = 0 [18:34:47]*** Brake cut motor [18:34:47]Read from MH i2c: 01 [18:34:47]MH_I2C_Read... [18:34:47]*** Stop cut motor [18:34:47]*** Cut end [18:34:47]Read from MH i2c: 01 07 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: 01 07 00 14 14 00 00 00 00 00 FF 0F 3D [18:34:47]process_action close_receipt done [18:34:47]requested_data is exist [18:34:47]produce_requested_data [18:34:47]requested_item fm.sn is exist - process it [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 11 00 00 [18:34:47]Write to MH i2c: E2 08 00 15 14 80 11 00 00 00 00 00 00 A3 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 17 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 17 00 15 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F3 [18:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:34:47]wFMCommunicate OK [18:34:47]requested_item fd.num is exist - process it [18:34:47]SAM_PROTO_GetFieldsCounters [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 13 00 00 [18:34:47]Write to MH i2c: E2 08 00 16 14 80 13 00 00 00 00 00 00 A6 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 62 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 62 00 16 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F0 08 00 00 0E 04 04 00 0F 00 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 72 [18:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F0 08 00 00 0E 04 04 00 0F 00 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 [18:34:47]wFMCommunicate OK [18:34:47]SAM_PROTO_GetFieldsCounters done [18:34:47]requested_item shift.num is exist - process it [18:34:47]requested_item shift.opened is exist - process it [18:34:47]req_shift_opened [18:34:47]FM_GetShiftState [18:34:47]SAM_PROTO_GetShiftState [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 13 01 00 [18:34:47]Write to MH i2c: E2 08 00 17 14 80 13 01 00 00 00 00 00 A8 [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:48]Read from MH i2c: E2 [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: E2 0E 00 [18:34:48]MH_I2C_Read... [18:34:48]Read from MH i2c: E2 0E 00 17 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A1 [18:34:48]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:34:48]wFMCommunicate OK [18:34:48]SAM_PROTO_GetShiftState done [18:34:48]FM_GetShiftState done [18:34:48]req_shift_opened done [18:34:48]requested_item shift.open_date is exist - process it [18:34:48]req_shift_open_date [18:34:48]req_shift_open_date done [18:34:48]produce_requested_data done [18:34:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2288,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:34:48]process_action_free close_receipt [18:34:48]json_value_free [18:34:48]json_value_free done [18:34:48]process_json_proto returns [18:34:48]Send response to host [18:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2288,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:34:48]free response buf [18:34:48]execute_script done [18:34:48]execute_script returns [18:34:48]free content buf [18:34:48]Sock 8.Close socket [18:34:48]Sock 8.Thread stoped [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:20]accept exits with 9 [18:36:20]New connection [18:36:20]New thread 3067157860 created [18:36:20]Thread 3067014500 joined [18:36:20]Waiting for new connection... [18:36:20] Sock 9.Parse request [18:36:20]Sock 9.Check first char [18:36:20]Sock 9.First char is OK [18:36:20]request: POST /json_proto HTTP/1.0 [18:36:20]Method: POST [18:36:20]URL: /json_proto [18:36:20]Method is POST - this is cgi request [18:36:20]url: /json_proto [18:36:20]query_string will be loaded in cgi processing [18:36:20]execute_cgi json_proto POST (null) [18:36:20]execute_cgi path=json_proto method=POST [18:36:20]POST find Content-Length [18:36:20]Host: 172.17.45.132:8080 [18:36:20]Content-Length: 682 [18:36:20]Content-Type: application/json [18:36:20] [18:36:20]POST finish read [18:36:20]Found Content-Length = 682 [18:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.900, "sum" : 1010.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:20]execute_script... [18:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.900, "sum" : 1010.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:20]POST & json_proto [18:36:20]process_json_proto [18:36:20]json parsed OK: [18:36:20]protocol is kg_v1.0 [18:36:20]action value=close_receipt [18:36:20]process_action close_receipt [18:36:20]cmd_close_receipt [18:36:20]MH_GetDate [18:36:20]Write to MH i2c: F0 00 00 18 14 1B [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: F0 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: F0 09 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: F0 09 00 18 14 00 26 E1 A7 66 E3 0B 90 66 1C [18:36:20]GetLastDocTimeStamp 1722278085 [18:36:20]current date 1722278182 [18:36:20]FM_GetShiftState [18:36:20]SAM_PROTO_GetShiftState [18:36:20]wFMCommunicate request_size=4 [18:36:20]MH_SAM_APDU [18:36:20]CAPDU: 80 13 01 00 [18:36:20]Write to MH i2c: E2 08 00 19 14 80 13 01 00 00 00 00 00 AA [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:20]Read from MH i2c: E2 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 0E 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 0E 00 19 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A3 [18:36:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:36:20]wFMCommunicate OK [18:36:20]SAM_PROTO_GetShiftState done [18:36:20]FM_GetShiftState done [18:36:20]opened in 1722213119 [18:36:20]opened+sec_in_day 1722299519 [18:36:20]quantity*price = 101022 [18:36:20]sum+1 = 101023 [18:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1010.00 Внесено: 1010.00 СДАЧА: 0.00 НСП 1% : 8.94 НДС 12% : 107.28 Наличными: 1010.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 138 29.07.2024 18:36 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2289 ФПД: 2705328197474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183622&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2289&fm=2705328197474&tin=02508201610067®Number=0000000000189667&sum=101000 [18:36:22]StoreToDocumentArchive [18:36:22]shift 15 fd 2289 [18:36:22]save to /storage/0015/doc_00002289 [18:36:22]save last doc name /storage/0015/doc_00002289 to /storage/kkm_last_doc_name [18:36:22]save OK [18:36:22]Clear old archive folders... [18:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:22]tlvbuf is 01F53640 [18:36:22]SAM_PROTO_ClearQueue [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 09 00 00 [18:36:22]Write to MH i2c: E2 08 00 26 14 80 09 00 00 00 00 00 00 AC [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 26 14 00 90 00 AE [18:36:22]RAPDU: 90 00 [18:36:22]wFMCommunicate OK [18:36:22]SAM_PROTO_ClearQueue done [18:36:22]KKMCreateOFDPacket [18:36:22]OFDProtocolAddRootSTLVToBuf [18:36:22]FM_MakeSignedData [18:36:22]FM_MakeSignedData [18:36:22]SAM_PROTO_SignData [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 0D 01 02 [18:36:22]Write to MH i2c: E2 08 00 27 14 80 0D 01 02 00 00 00 00 B4 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 27 14 00 90 00 AF [18:36:22]RAPDU: 90 00 [18:36:22]wFMCommunicate OK [18:36:22]wFMCommunicate request_size=255 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9E 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 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 26 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F1 08 00 00 35 04 06 00 02 [18:36:22]Write to MH i2c: E2 02 01 28 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9E 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 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 26 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F1 08 00 00 35 04 06 00 02 00 00 51 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 28 14 00 90 00 B0 [18:36:22]RAPDU: 90 00 [18:36:22]wFMCommunicate OK [18:36:22]wFMCommunicate request_size=10 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 0D 02 02 05 75 E2 20 4F 62 [18:36:22]Write to MH i2c: E2 0D 00 29 14 80 0D 02 02 05 00 75 E2 20 4F 62 00 00 E9 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 03 00 29 14 00 90 00 B1 [18:36:22]RAPDU: 90 00 [18:36:22]wFMCommunicate OK [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 0D 03 02 [18:36:22]Write to MH i2c: E2 08 00 2A 14 80 0D 03 02 00 00 00 00 B9 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 0B 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 0B 00 2A 14 00 74 E4 D9 82 02 66 9E 96 90 00 09 [18:36:22]RAPDU: 74 E4 D9 82 02 66 9E 96 90 00 [18:36:22]wFMCommunicate OK [18:36:22]SAM_PROTO_SignData done [18:36:22]FM_MakeSignedData done [18:36:22]CreateOFDProtocolMessage [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 11 00 00 [18:36:22]Write to MH i2c: E2 08 00 2B 14 80 11 00 00 00 00 00 00 B9 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 17 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 17 00 2B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 09 [18:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:36:22]wFMCommunicate OK [18:36:22]CreateOFDProtocolMessage done [18:36:22]OFDSenderStorePacket 2289 [18:36:22]StoreOFDPacket docnum=2289 [18:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 5A 62 07 01 51 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9E 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 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 26 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F1 08 00 00 35 04 06 00 02 75 E2 20 4F 62 74 E4 D9 82 02 66 9E 96 [18:36:22]CheckFolder [18:36:22]dirname=/storage/ofd_packets [18:36:22]CheckFolder done [18:36:22]ProducePacketName [18:36:22]name=ofd_packets/00002289 [18:36:22]NVStorageSaveData ofd_packets/00002289 [18:36:22]File name is /storage/ofd_packets/00002289 [18:36:22]Write 301 bytes [18:36:22]NVStorageSaveData done [18:36:22]OFDSenderStorePacket done [18:36:22]KKMCreateOFDPacket done [18:36:22]NVStorageSaveData kkm_last_timestamp [18:36:22]File name is /storage/kkm_last_timestamp [18:36:22]Write 4 bytes [18:36:22]NVStorageSaveData done [18:36:22]ExternCall_PrintAddStr [18:36:22]wPrintStart [18:36:22]Write to MH i2c: 01 00 00 2C 14 40 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: 01 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: 01 07 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 FF 0F 55 [18:36:22]RasterBufferAndPrint [18:36:22]line Счет N : (1)610052 [18:36:22]line ИНН: 02508201610067 [18:36:22]line Контрольно-Кассовый Чек [18:36:22]line ПРОДАЖА [18:36:22]line ТРК (МРК, ГНК) : 52 [18:36:22]line Товар: 2710124130 [18:36:22]line Аи-92-К-2 [18:36:22]line 14.900 * 67.80 [18:36:22]line = 1010.22 [18:36:22]line НДС 12% НСП 1% [18:36:22]line > о реализуемом товаре [18:36:22]line ОКРУГЛЕНИЕ: -0.22 [18:36:22]line ИТОГО: 1010.00 [18:36:22]line Внесено: 1010.00 [18:36:22]line СДАЧА: 0.00 [18:36:22]line НСП 1% : 8.94 [18:36:22]line НДС 12% : 107.28 [18:36:22]line Наличными: 1010.00 [18:36:22]line Безнал.: 0.00 [18:36:22]line Место: АЗС № 127 "Партнер Нефть" [18:36:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:36:22]line СНО: Общий режим [18:36:22]line Чек 138 29.07.2024 18:36 [18:36:22]line Смена: 15 ФФД: 1.0 [18:36:22]line ЗНМ: 0300000161 [18:36:22]line РНМ: 0000000000189667 [18:36:22]line Версия ККМ: v1.0 [18:36:22]line ФМ: 0000000002094248 [18:36:22]line ФД: 2289 [18:36:22]line ФПД: 2705328197474 [18:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183622&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2289&fm=2705328197474&tin=02508201610067®Number=0000000000189667&sum=101000 [18:36:22]OFD Sender: Processing packet 2289 [packets to send 1, broken 0] [18:36:22]ProducePacketName [18:36:22]name=ofd_packets/00002289 [18:36:22]OFD Sender: To server: pG, [18:36:22]CommunicateWithHost lk.salyk.kg:30040 [18:36:22]ConnectInit lk.salyk.kg [18:36:22]written 0, free lines is 4095 [18:36:23]Connected sock=11 [18:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 5A 62 07 01 51 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 3A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9E 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 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 26 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F1 08 00 00 35 04 06 00 02 75 E2 20 4F 62 74 E4 D9 82 02 66 9E 96 [18:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 98 E7 47 00 BC 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F1 08 00 00 F4 03 04 00 92 8C A7 66 B6 04 01 00 00 E5 93 63 0F B2 B4 54 A8 [18:36:23]CommunicateWithHost err = 0 [18:36:23]CheckOFDResponse [18:36:23]1017 (14) - 77093643461234 [18:36:23]1041 (16) - 0000000002094248 [18:36:23]1040 (4) - 2289 [18:36:23]1012 (4) - 29.07.2024 12:35 [18:36:23]1206 (1) - 0 [18:36:23]OFD Sender: Remove packet 2289 [18:36:23]ProducePacketName [18:36:23]name=ofd_packets/00002289 [18:36:23]NVStorageDeleteData [18:36:23]Write to MH i2c: 01 00 00 57 14 6B [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: 01 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: 01 07 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: 01 07 00 57 14 00 00 00 00 00 E3 0C 61 [18:36:23]RasterBufferAndPrint [18:36:23]line [18:36:23]line [18:36:23]line [18:36:23]line [18:36:23]line [18:36:23]written 0, free lines is 3305 [18:36:23]MH_Cut [18:36:23]Write to MH i2c: D1 01 00 5E 14 01 44 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: D1 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: D1 01 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: D1 01 00 5E 14 00 43 [18:36:23]Write to MH i2c: 01 00 00 5F 14 73 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]OFD Sender: No OFD packet to send [18:36:24]*** Cut start [18:36:24]*** Partial cut [18:36:24]*** CUTSNS_PIN = 1 [18:36:24]*** CUTSNS_PIN = 0 [18:36:24]*** Brake cut motor [18:36:24]Read from MH i2c: 01 [18:36:24]MH_I2C_Read... [18:36:24]*** Stop cut motor [18:36:24]*** Cut end [18:36:24]Read from MH i2c: 01 07 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: 01 07 00 5F 14 00 00 00 00 00 FF 0F 88 [18:36:24]process_action close_receipt done [18:36:24]requested_data is exist [18:36:24]produce_requested_data [18:36:24]requested_item fm.sn is exist - process it [18:36:24]wFMCommunicate request_size=4 [18:36:24]MH_SAM_APDU [18:36:24]CAPDU: 80 11 00 00 [18:36:24]Write to MH i2c: E2 08 00 60 14 80 11 00 00 00 00 00 00 EE [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 17 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 17 00 60 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [18:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:36:24]wFMCommunicate OK [18:36:24]requested_item fd.num is exist - process it [18:36:24]SAM_PROTO_GetFieldsCounters [18:36:24]wFMCommunicate request_size=4 [18:36:24]MH_SAM_APDU [18:36:24]CAPDU: 80 13 00 00 [18:36:24]Write to MH i2c: E2 08 00 61 14 80 13 00 00 00 00 00 00 F1 [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 62 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 62 00 61 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F1 08 00 00 0E 04 04 00 0F 00 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 C1 [18:36:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F1 08 00 00 0E 04 04 00 0F 00 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 [18:36:24]wFMCommunicate OK [18:36:24]SAM_PROTO_GetFieldsCounters done [18:36:24]requested_item shift.num is exist - process it [18:36:24]requested_item shift.opened is exist - process it [18:36:24]req_shift_opened [18:36:24]FM_GetShiftState [18:36:24]SAM_PROTO_GetShiftState [18:36:24]wFMCommunicate request_size=4 [18:36:24]MH_SAM_APDU [18:36:24]CAPDU: 80 13 01 00 [18:36:24]Write to MH i2c: E2 08 00 62 14 80 13 01 00 00 00 00 00 F3 [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:24]Read from MH i2c: E2 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 0E 00 [18:36:24]MH_I2C_Read... [18:36:24]Read from MH i2c: E2 0E 00 62 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EC [18:36:24]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:36:24]wFMCommunicate OK [18:36:24]SAM_PROTO_GetShiftState done [18:36:24]FM_GetShiftState done [18:36:24]req_shift_opened done [18:36:24]requested_item shift.open_date is exist - process it [18:36:24]req_shift_open_date [18:36:24]req_shift_open_date done [18:36:24]produce_requested_data done [18:36:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2289,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:36:24]process_action_free close_receipt [18:36:24]json_value_free [18:36:24]json_value_free done [18:36:24]process_json_proto returns [18:36:24]Send response to host [18:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2289,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:36:24]free response buf [18:36:24]execute_script done [18:36:24]execute_script returns [18:36:24]free content buf [18:36:24]Sock 9.Close socket [18:36:24]Sock 9.Thread stoped [18:36:26]accept exits with 8 [18:36:26]New connection [18:36:26]New thread 3067014500 created [18:36:26]Thread 3067157860 joined [18:36:26]Waiting for new connection... [18:36:26] Sock 8.Parse request [18:36:26]Sock 8.Check first char [18:36:26]Sock 8.First char is OK [18:36:26]request: POST /json_proto HTTP/1.0 [18:36:26]Method: POST [18:36:26]URL: /json_proto [18:36:26]Method is POST - this is cgi request [18:36:26]url: /json_proto [18:36:26]query_string will be loaded in cgi processing [18:36:26]execute_cgi json_proto POST (null) [18:36:26]execute_cgi path=json_proto method=POST [18:36:26]POST find Content-Length [18:36:26]Host: 172.17.45.132:8080 [18:36:26]Content-Length: 677 [18:36:26]Content-Type: application/json [18:36:26] [18:36:26]POST finish read [18:36:26]Found Content-Length = 677 [18:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:26]execute_script... [18:36: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)610053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:26]POST & json_proto [18:36:26]process_json_proto [18:36:26]json parsed OK: [18:36:26]protocol is kg_v1.0 [18:36:26]action value=close_receipt [18:36:26]process_action close_receipt [18:36:26]cmd_close_receipt [18:36:26]MH_GetDate [18:36:26]Write to MH i2c: F0 00 00 63 14 66 [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: F0 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: F0 09 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: F0 09 00 63 14 00 2B E1 A7 66 E3 0B 90 66 6C [18:36:26]GetLastDocTimeStamp 1722278182 [18:36:26]current date 1722278187 [18:36:26]FM_GetShiftState [18:36:26]SAM_PROTO_GetShiftState [18:36:26]wFMCommunicate request_size=4 [18:36:26]MH_SAM_APDU [18:36:26]CAPDU: 80 13 01 00 [18:36:26]Write to MH i2c: E2 08 00 64 14 80 13 01 00 00 00 00 00 F5 [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:26]Read from MH i2c: E2 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 0E 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: E2 0E 00 64 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EE [18:36:26]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:36:26]wFMCommunicate OK [18:36:26]SAM_PROTO_GetShiftState done [18:36:26]FM_GetShiftState done [18:36:26]opened in 1722213119 [18:36:26]opened+sec_in_day 1722299519 [18:36:26]quantity*price = 50036 [18:36:26]sum+1 = 50037 [18:36:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 139 29.07.2024 18:36 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2290 ФПД: 205498059468009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183627&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2290&fm=205498059468009&tin=02508201610067®Number=0000000000189667&sum=50000 [18:36:27]StoreToDocumentArchive [18:36:27]shift 15 fd 2290 [18:36:27]save to /storage/0015/doc_00002290 [18:36:27]save last doc name /storage/0015/doc_00002290 to /storage/kkm_last_doc_name [18:36:27]save OK [18:36:27]Clear old archive folders... [18:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:27]tlvbuf is 01F84330 [18:36:27]SAM_PROTO_ClearQueue [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 09 00 00 [18:36:27]Write to MH i2c: E2 08 00 71 14 80 09 00 00 00 00 00 00 F7 [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]SAM_PROTO_ClearQueue done [18:36:27]KKMCreateOFDPacket [18:36:27]OFDProtocolAddRootSTLVToBuf [18:36:27]FM_MakeSignedData [18:36:27]FM_MakeSignedData [18:36:27]SAM_PROTO_SignData [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 01 02 [18:36:27]Write to MH i2c: E2 08 00 72 14 80 0D 01 02 00 00 00 00 FF [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 72 14 00 90 00 FA [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]wFMCommunicate request_size=255 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2B E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F2 08 00 00 35 04 06 00 BA [18:36:27]Write to MH i2c: E2 02 01 73 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2B E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F2 08 00 00 35 04 06 00 BA 00 00 EB [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 73 14 00 90 00 FB [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]wFMCommunicate request_size=10 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 02 02 05 E6 3E D6 2C E9 [18:36:27]Write to MH i2c: E2 0D 00 74 14 80 0D 02 02 05 00 E6 3E D6 2C E9 00 00 1B [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 03 02 [18:36:27]Write to MH i2c: E2 08 00 75 14 80 0D 03 02 00 00 00 00 04 [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 0B 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 0B 00 75 14 00 84 03 32 55 5D 3B 8C 17 90 00 4E [18:36:27]RAPDU: 84 03 32 55 5D 3B 8C 17 90 00 [18:36:27]wFMCommunicate OK [18:36:27]SAM_PROTO_SignData done [18:36:27]FM_MakeSignedData done [18:36:27]CreateOFDProtocolMessage [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 11 00 00 [18:36:27]Write to MH i2c: E2 08 00 76 14 80 11 00 00 00 00 00 00 04 [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 17 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 17 00 76 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 54 [18:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:36:27]wFMCommunicate OK [18:36:27]CreateOFDProtocolMessage done [18:36:27]OFDSenderStorePacket 2290 [18:36:27]StoreOFDPacket docnum=2290 [18:36:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D8 C7 07 01 C7 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2B E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F2 08 00 00 35 04 06 00 BA E6 3E D6 2C E9 84 03 32 55 5D 3B 8C 17 [18:36:27]CheckFolder [18:36:27]dirname=/storage/ofd_packets [18:36:27]CheckFolder done [18:36:27]ProducePacketName [18:36:27]name=ofd_packets/00002290 [18:36:27]NVStorageSaveData ofd_packets/00002290 [18:36:27]File name is /storage/ofd_packets/00002290 [18:36:27]Write 301 bytes [18:36:27]NVStorageSaveData done [18:36:27]OFDSenderStorePacket done [18:36:27]KKMCreateOFDPacket done [18:36:27]NVStorageSaveData kkm_last_timestamp [18:36:27]File name is /storage/kkm_last_timestamp [18:36:27]OFD Sender: Processing packet 2290 [packets to send 1, broken 0] [18:36:27]ProducePacketName [18:36:27]name=ofd_packets/00002290 [18:36:27]OFD Sender: To server: pG, [18:36:27]CommunicateWithHost lk.salyk.kg:30040 [18:36:27]ConnectInit lk.salyk.kg [18:36:27]Write 4 bytes [18:36:27]NVStorageSaveData done [18:36:27]ExternCall_PrintAddStr [18:36:27]wPrintStart [18:36:27]Write to MH i2c: 01 00 00 77 14 8B [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 07 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 07 00 77 14 00 00 00 00 00 FF 0F A0 [18:36:28]RasterBufferAndPrint [18:36:28]line Счет N : (1)610053 [18:36:28]line ИНН: 02508201610067 [18:36:28]line Контрольно-Кассовый Чек [18:36:28]line ПРОДАЖА [18:36:28]line ТРК (МРК, ГНК) : 42 [18:36:28]line Товар: 2710124130 [18:36:28]line Аи-92-К-2 [18:36:28]line 7.380 * 67.80 [18:36:28]line = 500.36 [18:36:28]line НДС 12% НСП 1% [18:36:28]line > о реализуемом товаре [18:36:28]line ОКРУГЛЕНИЕ: -0.36 [18:36:28]line ИТОГО: 500.00 [18:36:28]line Внесено: 500.00 [18:36:28]line СДАЧА: 0.00 [18:36:28]line НСП 1% : 4.43 [18:36:28]line НДС 12% : 53.14 [18:36:28]line Наличными: 500.00 [18:36:28]line Безнал.: 0.00 [18:36:28]line Место: АЗС № 127 "Партнер Нефть" [18:36:28]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:36:28]line СНО: Общий режим [18:36:28]line Чек 139 29.07.2024 18:36 [18:36:28]line Смена: 15 ФФД: 1.0 [18:36:28]line ЗНМ: 0300000161 [18:36:28]line РНМ: 0000000000189667 [18:36:28]line Версия ККМ: v1.0 [18:36:28]line ФМ: 0000000002094248 [18:36:28]line ФД: 2290 [18:36:28]line ФПД: 205498059468009 [18:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183627&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2290&fm=205498059468009&tin=02508201610067®Number=0000000000189667&sum=50000 [18:36:28]written 0, free lines is 4095 [18:36:28]Connected sock=11 [18:36:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D8 C7 07 01 C7 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 2B E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F2 08 00 00 35 04 06 00 BA E6 3E D6 2C E9 84 03 32 55 5D 3B 8C 17 [18:36:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E3 1B 47 00 EE 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F2 08 00 00 F4 03 04 00 97 8C A7 66 B6 04 01 00 00 D0 B3 65 3D 4D C3 36 C1 [18:36:28]CommunicateWithHost err = 0 [18:36:28]CheckOFDResponse [18:36:28]1017 (14) - 77093643461234 [18:36:28]1041 (16) - 0000000002094248 [18:36:28]1040 (4) - 2290 [18:36:28]1012 (4) - 29.07.2024 12:35 [18:36:28]1206 (1) - 0 [18:36:28]OFD Sender: Remove packet 2290 [18:36:28]ProducePacketName [18:36:28]name=ofd_packets/00002290 [18:36:28]NVStorageDeleteData [18:36:28]Write to MH i2c: 01 00 00 A2 14 B6 [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: 01 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: 01 07 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: 01 07 00 A2 14 00 00 00 00 00 F2 0C BB [18:36:28]RasterBufferAndPrint [18:36:28]line [18:36:28]line [18:36:28]line [18:36:28]line [18:36:28]line [18:36:28]written 0, free lines is 3323 [18:36:28]MH_Cut [18:36:28]Write to MH i2c: D1 01 00 A9 14 01 8F [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: D1 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: D1 01 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: D1 01 00 A9 14 00 8E [18:36:28]Write to MH i2c: 01 00 00 AA 14 BE [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]OFD Sender: No OFD packet to send [18:36:29]*** Cut start [18:36:29]*** Partial cut [18:36:29]*** CUTSNS_PIN = 1 [18:36:29]*** CUTSNS_PIN = 0 [18:36:29]*** Brake cut motor [18:36:29]Read from MH i2c: 01 [18:36:29]MH_I2C_Read... [18:36:29]*** Stop cut motor [18:36:29]*** Cut end [18:36:29]Read from MH i2c: 01 07 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 FF 0F D3 [18:36:29]process_action close_receipt done [18:36:29]requested_data is exist [18:36:29]produce_requested_data [18:36:29]requested_item fm.sn is exist - process it [18:36:29]wFMCommunicate request_size=4 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 11 00 00 [18:36:29]Write to MH i2c: E2 08 00 AB 14 80 11 00 00 00 00 00 00 39 [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:29]Read from MH i2c: E2 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 17 00 [18:36:29]MH_I2C_Read... [18:36:29]Read from MH i2c: E2 17 00 AB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [18:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:36:29]wFMCommunicate OK [18:36:29]requested_item fd.num is exist - process it [18:36:29]SAM_PROTO_GetFieldsCounters [18:36:29]wFMCommunicate request_size=4 [18:36:29]MH_SAM_APDU [18:36:29]CAPDU: 80 13 00 00 [18:36:29]Write to MH i2c: E2 08 00 AC 14 80 13 00 00 00 00 00 00 3C [18:36:29]Write i2c OK [18:36:29]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 62 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 62 00 AC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F2 08 00 00 0E 04 04 00 0F 00 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 10 [18:36:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F2 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_GetFieldsCounters done [18:36:30]requested_item shift.num is exist - process it [18:36:30]requested_item shift.opened is exist - process it [18:36:30]req_shift_opened [18:36:30]FM_GetShiftState [18:36:30]SAM_PROTO_GetShiftState [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 13 01 00 [18:36:30]Write to MH i2c: E2 08 00 AD 14 80 13 01 00 00 00 00 00 3E [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0E 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 0E 00 AD 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 37 [18:36:30]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:36:30]wFMCommunicate OK [18:36:30]SAM_PROTO_GetShiftState done [18:36:30]FM_GetShiftState done [18:36:30]req_shift_opened done [18:36:30]requested_item shift.open_date is exist - process it [18:36:30]req_shift_open_date [18:36:30]req_shift_open_date done [18:36:30]produce_requested_data done [18:36:30]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2290,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:36:30]process_action_free close_receipt [18:36:30]json_value_free [18:36:30]json_value_free done [18:36:30]process_json_proto returns [18:36:30]Send response to host [18:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2290,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:36:30]free response buf [18:36:30]execute_script done [18:36:30]execute_script returns [18:36:30]free content buf [18:36:30]Sock 8.Close socket [18:36:30]Sock 8.Thread stoped [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]accept exits with 9 [18:37:58]New connection [18:37:58]New thread 3067157860 created [18:37:58]Thread 3067014500 joined [18:37:58]Waiting for new connection... [18:37:58] Sock 9.Parse request [18:37:58]Sock 9.Check first char [18:37:58]Sock 9.First char is OK [18:37:58]request: POST /json_proto HTTP/1.0 [18:37:58]Method: POST [18:37:58]URL: /json_proto [18:37:58]Method is POST - this is cgi request [18:37:58]url: /json_proto [18:37:58]query_string will be loaded in cgi processing [18:37:58]execute_cgi json_proto POST (null) [18:37:58]execute_cgi path=json_proto method=POST [18:37:58]POST find Content-Length [18:37:58]Host: 172.17.45.132:8080 [18:37:58]Content-Length: 803 [18:37:58]Content-Type: application/json [18:37:58] [18:37:58]POST finish read [18:37:58]Found Content-Length = 803 [18:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.440, "sum" : 1996.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1996.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:58]execute_script... [18:37:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.440, "sum" : 1996.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1996.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:58]POST & json_proto [18:37:58]process_json_proto [18:37:58]json parsed OK: [18:37:58]protocol is kg_v1.0 [18:37:58]action value=close_receipt [18:37:58]process_action close_receipt [18:37:58]cmd_close_receipt [18:37:58]MH_GetDate [18:37:58]Write to MH i2c: F0 00 00 AE 14 B1 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: F0 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: F0 09 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: F0 09 00 AE 14 00 87 E1 A7 66 E3 0B 90 66 13 [18:37:58]GetLastDocTimeStamp 1722278187 [18:37:58]current date 1722278279 [18:37:58]FM_GetShiftState [18:37:58]SAM_PROTO_GetShiftState [18:37:58]wFMCommunicate request_size=4 [18:37:58]MH_SAM_APDU [18:37:58]CAPDU: 80 13 01 00 [18:37:58]Write to MH i2c: E2 08 00 AF 14 80 13 01 00 00 00 00 00 40 [18:37:58]Write i2c OK [18:37:58]MH_I2C_Read... [18:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:58]Read from MH i2c: E2 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 0E 00 [18:37:58]MH_I2C_Read... [18:37:58]Read from MH i2c: E2 0E 00 AF 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 39 [18:37:58]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:37:58]wFMCommunicate OK [18:37:58]SAM_PROTO_GetShiftState done [18:37:58]FM_GetShiftState done [18:37:58]opened in 1722213119 [18:37:58]opened+sec_in_day 1722299519 [18:37:58]quantity*price = 199603 [18:37:58]sum+1 = 199604 [18:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1996.03 НСП 1% : 17.66 НДС 12% : 211.97 Наличными: 0.00 Безнал.: 1996.03 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 140 29.07.2024 18:38 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2291 ФПД: 191025444481949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183800&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2291&fm=191025444481949&tin=02508201610067®Number=0000000000189667&sum=199603 [18:37:59]StoreToDocumentArchive [18:37:59]shift 15 fd 2291 [18:37:59]save to /storage/0015/doc_00002291 [18:37:59]save last doc name /storage/0015/doc_00002291 to /storage/kkm_last_doc_name [18:37:59]save OK [18:37:59]Clear old archive folders... [18:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:59]tlvbuf is B6F8AEF0 [18:37:59]SAM_PROTO_ClearQueue [18:37:59]wFMCommunicate request_size=4 [18:37:59]MH_SAM_APDU [18:37:59]CAPDU: 80 09 00 00 [18:37:59]Write to MH i2c: E2 08 00 BC 14 80 09 00 00 00 00 00 00 42 [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:59]Read from MH i2c: E2 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 03 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 03 00 BC 14 00 90 00 44 [18:37:59]RAPDU: 90 00 [18:37:59]wFMCommunicate OK [18:37:59]SAM_PROTO_ClearQueue done [18:37:59]KKMCreateOFDPacket [18:37:59]OFDProtocolAddRootSTLVToBuf [18:37:59]FM_MakeSignedData [18:37:59]FM_MakeSignedData [18:37:59]SAM_PROTO_SignData [18:37:59]wFMCommunicate request_size=4 [18:37:59]MH_SAM_APDU [18:37:59]CAPDU: 80 0D 01 02 [18:37:59]Write to MH i2c: E2 08 00 BD 14 80 0D 01 02 00 00 00 00 4A [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:59]Read from MH i2c: E2 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 03 00 [18:37:59]MH_I2C_Read... [18:37:59]Read from MH i2c: E2 03 00 BD 14 00 90 00 45 [18:37:59]RAPDU: 90 00 [18:37:59]wFMCommunicate OK [18:37:59]wFMCommunicate request_size=255 [18:37:59]MH_SAM_APDU [18:37:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 88 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F3 08 00 00 35 04 06 00 AD [18:37:59]Write to MH i2c: E2 02 01 BE 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 88 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F3 08 00 00 35 04 06 00 AD 00 00 6A [18:37:59]Write i2c OK [18:37:59]MH_I2C_Read... [18:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:00]Read from MH i2c: E2 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 03 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 03 00 BE 14 00 90 00 46 [18:38:00]RAPDU: 90 00 [18:38:00]wFMCommunicate OK [18:38:00]wFMCommunicate request_size=10 [18:38:00]MH_SAM_APDU [18:38:00]CAPDU: 80 0D 02 02 05 BC 93 C2 EB 9D [18:38:00]Write to MH i2c: E2 0D 00 BF 14 80 0D 02 02 05 00 BC 93 C2 EB 9D 00 00 F0 [18:38:00]Write i2c OK [18:38:00]MH_I2C_Read... [18:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:00]Read from MH i2c: E2 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 03 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 03 00 BF 14 00 90 00 47 [18:38:00]RAPDU: 90 00 [18:38:00]wFMCommunicate OK [18:38:00]wFMCommunicate request_size=4 [18:38:00]MH_SAM_APDU [18:38:00]CAPDU: 80 0D 03 02 [18:38:00]Write to MH i2c: E2 08 00 C0 14 80 0D 03 02 00 00 00 00 4F [18:38:00]Write i2c OK [18:38:00]MH_I2C_Read... [18:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:00]Read from MH i2c: E2 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 0B 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 0B 00 C0 14 00 48 9D CA A5 64 D7 13 EF 90 00 E1 [18:38:00]RAPDU: 48 9D CA A5 64 D7 13 EF 90 00 [18:38:00]wFMCommunicate OK [18:38:00]SAM_PROTO_SignData done [18:38:00]FM_MakeSignedData done [18:38:00]CreateOFDProtocolMessage [18:38:00]wFMCommunicate request_size=4 [18:38:00]MH_SAM_APDU [18:38:00]CAPDU: 80 11 00 00 [18:38:00]Write to MH i2c: E2 08 00 C1 14 80 11 00 00 00 00 00 00 4F [18:38:00]Write i2c OK [18:38:00]MH_I2C_Read... [18:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:00]Read from MH i2c: E2 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 17 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: E2 17 00 C1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9F [18:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:38:00]wFMCommunicate OK [18:38:00]CreateOFDProtocolMessage done [18:38:00]OFDSenderStorePacket 2291 [18:38:00]StoreOFDPacket docnum=2291 [18:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 63 89 07 01 9B 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 88 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F3 08 00 00 35 04 06 00 AD BC 93 C2 EB 9D 48 9D CA A5 64 D7 13 EF [18:38:00]CheckFolder [18:38:00]dirname=/storage/ofd_packets [18:38:00]CheckFolder done [18:38:00]ProducePacketName [18:38:00]name=ofd_packets/00002291 [18:38:00]NVStorageSaveData ofd_packets/00002291 [18:38:00]File name is /storage/ofd_packets/00002291 [18:38:00]Write 301 bytes [18:38:00]NVStorageSaveData done [18:38:00]OFDSenderStorePacket done [18:38:00]KKMCreateOFDPacket done [18:38:00]NVStorageSaveData kkm_last_timestamp [18:38:00]File name is /storage/kkm_last_timestamp [18:38:00]Write 4 bytes [18:38:00]NVStorageSaveData done [18:38:00]ExternCall_PrintAddStr [18:38:00]wPrintStart [18:38:00]Write to MH i2c: 01 00 00 C2 14 D6 [18:38:00]Write i2c OK [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: 01 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: 01 07 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: 01 07 00 C2 14 00 00 00 00 00 FF 0F EB [18:38:00]RasterBufferAndPrint [18:38:00]line Счет N : (1)610051 [18:38:00]line ИНН: 02508201610067 [18:38:00]line Контрольно-Кассовый Чек [18:38:00]line ПРОДАЖА [18:38:00]line ТРК (МРК, ГНК) : 62 [18:38:00]line Товар: 2710124130 [18:38:00]line Аи-92-К-2 [18:38:00]line 29.440 * 67.80 [18:38:00]line = 1996.03 [18:38:00]line НДС 12% НСП 1% [18:38:00]line > о реализуемом товаре [18:38:00]line ИТОГО: 1996.03 [18:38:00]line НСП 1% : 17.66 [18:38:00]line НДС 12% : 211.97 [18:38:00]line Наличными: 0.00 [18:38:00]line Безнал.: 1996.03 [18:38:00]line Место: АЗС № 127 "Партнер Нефть" [18:38:00]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:38:00]line СНО: Общий режим [18:38:00]line Чек 140 29.07.2024 18:38 [18:38:00]line Смена: 15 ФФД: 1.0 [18:38:00]line ЗНМ: 0300000161 [18:38:00]line РНМ: 0000000000189667 [18:38:00]line Версия ККМ: v1.0 [18:38:00]line Платежная система: O! деньги [18:38:00]line ФМ: 0000000002094248 [18:38:00]line ФД: 2291 [18:38:00]line ФПД: 191025444481949 [18:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183800&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2291&fm=191025444481949&tin=02508201610067®Number=0000000000189667&sum=199603 [18:38:00]OFD Sender: Processing packet 2291 [packets to send 1, broken 0] [18:38:00]ProducePacketName [18:38:00]name=ofd_packets/00002291 [18:38:00]OFD Sender: To server: pG, [18:38:00]CommunicateWithHost lk.salyk.kg:30040 [18:38:00]ConnectInit lk.salyk.kg [18:38:00]written 0, free lines is 4095 [18:38:00]Connected sock=10 [18:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 63 89 07 01 9B 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 0B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 88 E1 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F3 08 00 00 35 04 06 00 AD BC 93 C2 EB 9D 48 9D CA A5 64 D7 13 EF [18:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C1 72 47 00 5F 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 32 30 39 34 32 34 38 10 04 04 00 F3 08 00 00 F4 03 04 00 F3 8C A7 66 B6 04 01 00 00 B5 EE 1C 45 F5 96 D9 08 [18:38:00]CommunicateWithHost err = 0 [18:38:00]CheckOFDResponse [18:38:00]1017 (14) - 77093643461234 [18:38:00]1041 (16) - 0000000002094248 [18:38:00]1040 (4) - 2291 [18:38:00]1012 (4) - 29.07.2024 12:37 [18:38:00]1206 (1) - 0 [18:38:00]OFD Sender: Remove packet 2291 [18:38:00]ProducePacketName [18:38:00]name=ofd_packets/00002291 [18:38:00]NVStorageDeleteData [18:38:00]Write to MH i2c: 01 00 00 EC 14 00 [18:38:00]Write i2c OK [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: 01 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: 01 07 00 [18:38:00]MH_I2C_Read... [18:38:00]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 0B 0D 1F [18:38:01]RasterBufferAndPrint [18:38:01]line [18:38:01]line [18:38:01]line [18:38:01]line [18:38:01]line [18:38:01]written 0, free lines is 3345 [18:38:01]MH_Cut [18:38:01]Write to MH i2c: D1 01 00 F3 14 01 D9 [18:38:01]Write i2c OK [18:38:01]MH_I2C_Read... [18:38:01]Read from MH i2c: D1 [18:38:01]MH_I2C_Read... [18:38:01]Read from MH i2c: D1 01 00 [18:38:01]MH_I2C_Read... [18:38:01]Read from MH i2c: D1 01 00 F3 14 00 D8 [18:38:01]Write to MH i2c: 01 00 00 F4 14 08 [18:38:01]Write i2c OK [18:38:01]MH_I2C_Read... [18:38:01]OFD Sender: No OFD packet to send [18:38:01]*** Cut start [18:38:01]*** Partial cut [18:38:01]*** CUTSNS_PIN = 1 [18:38:01]*** CUTSNS_PIN = 0 [18:38:01]*** Brake cut motor [18:38:02]Read from MH i2c: 01 [18:38:02]MH_I2C_Read... [18:38:02]*** Stop cut motor [18:38:02]*** Cut end [18:38:02]Read from MH i2c: 01 07 00 [18:38:02]MH_I2C_Read... [18:38:02]Read from MH i2c: 01 07 00 F4 14 00 00 00 00 00 FF 0F 1D [18:38:02]process_action close_receipt done [18:38:02]requested_data is exist [18:38:02]produce_requested_data [18:38:02]requested_item fm.sn is exist - process it [18:38:02]wFMCommunicate request_size=4 [18:38:02]MH_SAM_APDU [18:38:02]CAPDU: 80 11 00 00 [18:38:02]Write to MH i2c: E2 08 00 F5 14 80 11 00 00 00 00 00 00 83 [18:38:02]Write i2c OK [18:38:02]MH_I2C_Read... [18:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:02]Read from MH i2c: E2 [18:38:02]MH_I2C_Read... [18:38:02]Read from MH i2c: E2 17 00 [18:38:02]MH_I2C_Read... [18:38:02]Read from MH i2c: E2 17 00 F5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D3 [18:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:38:02]wFMCommunicate OK [18:38:02]requested_item fd.num is exist - process it [18:38:02]SAM_PROTO_GetFieldsCounters [18:38:02]wFMCommunicate request_size=4 [18:38:02]MH_SAM_APDU [18:38:02]CAPDU: 80 13 00 00 [18:38:02]Write to MH i2c: E2 08 00 F6 14 80 13 00 00 00 00 00 00 86 [18:38:02]Write i2c OK [18:38:02]MH_I2C_Read... [18:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:02]Read from MH i2c: E2 [18:38:02]MH_I2C_Read... [18:38:02]Read from MH i2c: E2 62 00 [18:38:02]MH_I2C_Read... [18:38:02]Read from MH i2c: E2 62 00 F6 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F3 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F3 08 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:02]wFMCommunicate OK [18:38:02]SAM_PROTO_GetFieldsCounters done [18:38:02]requested_item shift.num is exist - process it [18:38:02]requested_item shift.opened is exist - process it [18:38:02]req_shift_opened [18:38:02]FM_GetShiftState [18:38:02]SAM_PROTO_GetShiftState [18:38:02]wFMCommunicate request_size=4 [18:38:02]MH_SAM_APDU [18:38:02]CAPDU: 80 13 01 00 [18:38:02]Write to MH i2c: E2 08 00 F7 14 80 13 01 00 00 00 00 00 88 [18:38:02]Write i2c OK [18:38:02]MH_I2C_Read... [18:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:02]Read from MH i2c: E2 [18:38:02]MH_I2C_Read... [18:38:02]Read from MH i2c: E2 0E 00 [18:38:02]MH_I2C_Read... [18:38:02]Read from MH i2c: E2 0E 00 F7 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 81 [18:38:02]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:38:02]wFMCommunicate OK [18:38:02]SAM_PROTO_GetShiftState done [18:38:02]FM_GetShiftState done [18:38:02]req_shift_opened done [18:38:02]requested_item shift.open_date is exist - process it [18:38:02]req_shift_open_date [18:38:02]req_shift_open_date done [18:38:02]produce_requested_data done [18:38:02]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2291,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:38:02]process_action_free close_receipt [18:38:02]json_value_free [18:38:02]json_value_free done [18:38:02]process_json_proto returns [18:38:02]Send response to host [18:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2291,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:38:02]free response buf [18:38:02]execute_script done [18:38:02]execute_script returns [18:38:02]free content buf [18:38:02]Sock 9.Close socket [18:38:02]Sock 9.Thread stoped [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:40]accept exits with 8 [18:41:40]New connection [18:41:40]New thread 3067014500 created [18:41:40]Thread 3067157860 joined [18:41:40]Waiting for new connection... [18:41:40] Sock 8.Parse request [18:41:40]Sock 8.Check first char [18:41:40]Sock 8.First char is OK [18:41:40]request: POST /json_proto HTTP/1.0 [18:41:40]Method: POST [18:41:40]URL: /json_proto [18:41:40]Method is POST - this is cgi request [18:41:40]url: /json_proto [18:41:40]query_string will be loaded in cgi processing [18:41:40]execute_cgi json_proto POST (null) [18:41:40]execute_cgi path=json_proto method=POST [18:41:40]POST find Content-Length [18:41:40]Host: 172.17.45.132:8080 [18:41:40]Content-Length: 709 [18:41:40]Content-Type: application/json [18:41:40] [18:41:40]POST finish read [18:41:40]Found Content-Length = 709 [18:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126544", "tax_sys" : 0, "items" : [ { "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "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" ] } } [18:41:40]execute_script... [18:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126544", "tax_sys" : 0, "items" : [ { "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "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" ] } } [18:41:40]POST & json_proto [18:41:40]process_json_proto [18:41:40]json parsed OK: [18:41:40]protocol is kg_v1.0 [18:41:40]action value=close_receipt [18:41:40]process_action close_receipt [18:41:40]cmd_close_receipt [18:41:40]MH_GetDate [18:41:40]Write to MH i2c: F0 00 00 F8 14 FB [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: F0 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: F0 09 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: F0 09 00 F8 14 00 66 E2 A7 66 E3 0B 90 66 3D [18:41:40]GetLastDocTimeStamp 1722278280 [18:41:40]current date 1722278502 [18:41:40]FM_GetShiftState [18:41:40]SAM_PROTO_GetShiftState [18:41:40]wFMCommunicate request_size=4 [18:41:40]MH_SAM_APDU [18:41:40]CAPDU: 80 13 01 00 [18:41:40]Write to MH i2c: E2 08 00 F9 14 80 13 01 00 00 00 00 00 8A [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:40]Read from MH i2c: E2 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 0E 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 0E 00 F9 14 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 83 [18:41:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:41:40]wFMCommunicate OK [18:41:40]SAM_PROTO_GetShiftState done [18:41:40]FM_GetShiftState done [18:41:40]opened in 1722213119 [18:41:40]opened+sec_in_day 1722299519 [18:41:40]quantity*price = 5000 [18:41:40]sum+1 = 5001 [18:41:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 141 29.07.2024 18:41 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2292 ФПД: 256382946303640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184142&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2292&fm=256382946303640&tin=02508201610067®Number=0000000000189667&sum=5000 0 [18:41:42]StoreToDocumentArchive [18:41:42]shift 15 fd 2292 [18:41:42]save to /storage/0015/doc_00002292 [18:41:42]save last doc name /storage/0015/doc_00002292 to /storage/kkm_last_doc_name [18:41:42]save OK [18:41:42]Clear old archive folders... [18:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=304 [18:41:42]tlvbuf is 0200D730 [18:41:42]SAM_PROTO_ClearQueue [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 09 00 00 [18:41:42]Write to MH i2c: E2 08 00 06 15 80 09 00 00 00 00 00 00 8D [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 06 15 00 90 00 8F [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]SAM_PROTO_ClearQueue done [18:41:42]KKMCreateOFDPacket [18:41:42]OFDProtocolAddRootSTLVToBuf [18:41:42]FM_MakeSignedData [18:41:42]FM_MakeSignedData [18:41:42]SAM_PROTO_SignData [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 01 02 [18:41:42]Write to MH i2c: E2 08 00 07 15 80 0D 01 02 00 00 00 00 95 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 07 15 00 90 00 90 [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]wFMCommunicate request_size=255 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 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 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 8D 00 00 00 F4 03 04 00 66 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 [18:41:42]Write to MH i2c: E2 02 01 08 15 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 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 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 8D 00 00 00 F4 03 04 00 66 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 00 00 A4 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 08 15 00 90 00 91 [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]wFMCommunicate request_size=63 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F4 08 00 00 35 04 06 00 E9 2D CE 70 DE 98 [18:41:42]Write to MH i2c: E2 42 00 09 15 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F4 08 00 00 35 04 06 00 E9 2D CE 70 DE 98 00 00 B1 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 03 00 09 15 00 90 00 92 [18:41:42]RAPDU: 90 00 [18:41:42]wFMCommunicate OK [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 0D 03 02 [18:41:42]Write to MH i2c: E2 08 00 0A 15 80 0D 03 02 00 00 00 00 9A [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 0B 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 0B 00 0A 15 00 4E 2D 89 2D A2 3F 81 67 90 00 95 [18:41:42]RAPDU: 4E 2D 89 2D A2 3F 81 67 90 00 [18:41:42]wFMCommunicate OK [18:41:42]SAM_PROTO_SignData done [18:41:42]FM_MakeSignedData done [18:41:42]CreateOFDProtocolMessage [18:41:42]wFMCommunicate request_size=4 [18:41:42]MH_SAM_APDU [18:41:42]CAPDU: 80 11 00 00 [18:41:42]Write to MH i2c: E2 08 00 0B 15 80 11 00 00 00 00 00 00 9A [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:42]Read from MH i2c: E2 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 17 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: E2 17 00 0B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [18:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:41:42]wFMCommunicate OK [18:41:42]CreateOFDProtocolMessage done [18:41:42]OFDSenderStorePacket 2292 [18:41:42]StoreOFDPacket docnum=2292 [18:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 16 56 3C 01 47 1A 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 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 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 8D 00 00 00 F4 03 04 00 66 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F4 08 00 00 35 04 06 00 E9 2D CE 70 DE 98 4E 2D 89 2D A2 3F 81 67 [18:41:42]CheckFolder [18:41:42]dirname=/storage/ofd_packets [18:41:42]CheckFolder done [18:41:42]ProducePacketName [18:41:42]name=ofd_packets/00002292 [18:41:42]NVStorageSaveData ofd_packets/00002292 [18:41:42]File name is /storage/ofd_packets/00002292 [18:41:42]Write 354 bytes [18:41:42]NVStorageSaveData done [18:41:42]OFDSenderStorePacket done [18:41:42]KKMCreateOFDPacket done [18:41:42]NVStorageSaveData kkm_last_timestamp [18:41:42]File name is /storage/kkm_last_timestamp [18:41:42]Write 4 bytes [18:41:42]NVStorageSaveData done [18:41:42]ExternCall_PrintAddStr [18:41:42]wPrintStart [18:41:42]Write to MH i2c: 01 00 00 0C 15 21 [18:41:42]Write i2c OK [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 07 00 [18:41:42]MH_I2C_Read... [18:41:42]Read from MH i2c: 01 07 00 0C 15 00 00 00 00 00 FF 0F 36 [18:41:42]RasterBufferAndPrint [18:41:42]line Счет N : (3)126544 [18:41:42]line ИНН: 02508201610067 [18:41:42]line Контрольно-Кассовый Чек [18:41:42]line ПРОДАЖА [18:41:42]line Товар: 4700003010049 [18:41:42]line Let`s GO Чай зеленый грейпфрут 0,5л ПЭТ [18:41:42]line 1.000 * 50.00 [18:41:42]line = 50.00 [18:41:42]line НДС 12% НСП 1% [18:41:42]line > о реализуемом товаре [18:41:42]line ИТОГО: 50.00 [18:41:42]line НСП 1% : 0.44 [18:41:42]line НДС 12% : 5.31 [18:41:42]line Наличными: 50.00 [18:41:42]line Безнал.: 0.00 [18:41:42]line Место: АЗС № 127 "Партнер Нефть" [18:41:42]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:41:42]line СНО: Общий режим [18:41:42]line Чек 141 29.07.2024 18:41 [18:41:42]line Смена: 15 ФФД: 1.0 [18:41:42]line ЗНМ: 0300000161 [18:41:42]line РНМ: 0000000000189667 [18:41:42]line Версия ККМ: v1.0 [18:41:42]line ФМ: 0000000002094248 [18:41:42]line ФД: 2292 [18:41:42]line ФПД: 256382946303640 [18:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184142&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2292&fm=256382946303640&tin=02508201610067®Number=0000000000189667&sum=5000 [18:41:43]line 0 [18:41:43]OFD Sender: Processing packet 2292 [packets to send 1, broken 0] [18:41:43]ProducePacketName [18:41:43]name=ofd_packets/00002292 [18:41:43]OFD Sender: To server: pG, [18:41:43]CommunicateWithHost lk.salyk.kg:30040 [18:41:43]ConnectInit lk.salyk.kg [18:41:43]written 0, free lines is 4095 [18:41:43]Connected sock=10 [18:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 44 01 00 00 16 56 3C 01 47 1A 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 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 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 8D 00 00 00 F4 03 04 00 66 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F4 08 00 00 35 04 06 00 E9 2D CE 70 DE 98 4E 2D 89 2D A2 3F 81 67 [18:41:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 34 69 47 00 77 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F4 08 00 00 F4 03 04 00 D2 8D A7 66 B6 04 01 00 00 6A 4B CF 84 BD 15 CF 1A [18:41:43]CommunicateWithHost err = 0 [18:41:43]CheckOFDResponse [18:41:43]1017 (14) - 77093643461234 [18:41:43]1041 (16) - 0000000002094248 [18:41:43]1040 (4) - 2292 [18:41:43]1012 (4) - 29.07.2024 12:40 [18:41:43]1206 (1) - 0 [18:41:43]OFD Sender: Remove packet 2292 [18:41:43]ProducePacketName [18:41:43]name=ofd_packets/00002292 [18:41:43]NVStorageDeleteData [18:41:43]Write to MH i2c: 01 00 00 35 15 4A [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 07 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 10 0D 6E [18:41:43]RasterBufferAndPrint [18:41:43]line [18:41:43]line [18:41:43]line [18:41:43]line [18:41:43]line [18:41:43]written 0, free lines is 3350 [18:41:43]MH_Cut [18:41:43]Write to MH i2c: D1 01 00 3C 15 01 23 [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D1 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D1 01 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D1 01 00 3C 15 00 22 [18:41:43]Write to MH i2c: 01 00 00 3D 15 52 [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]OFD Sender: No OFD packet to send [18:41:44]*** Cut start [18:41:44]*** Partial cut [18:41:44]*** CUTSNS_PIN = 1 [18:41:44]*** CUTSNS_PIN = 0 [18:41:44]*** Brake cut motor [18:41:44]Read from MH i2c: 01 [18:41:44]MH_I2C_Read... [18:41:44]*** Stop cut motor [18:41:44]*** Cut end [18:41:44]Read from MH i2c: 01 07 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [18:41:44]process_action close_receipt done [18:41:44]requested_data is exist [18:41:44]produce_requested_data [18:41:44]requested_item fm.sn is exist - process it [18:41:44]wFMCommunicate request_size=4 [18:41:44]MH_SAM_APDU [18:41:44]CAPDU: 80 11 00 00 [18:41:44]Write to MH i2c: E2 08 00 3E 15 80 11 00 00 00 00 00 00 CD [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:44]Read from MH i2c: E2 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 17 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 17 00 3E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1D [18:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:41:44]wFMCommunicate OK [18:41:44]requested_item fd.num is exist - process it [18:41:44]SAM_PROTO_GetFieldsCounters [18:41:44]wFMCommunicate request_size=4 [18:41:44]MH_SAM_APDU [18:41:44]CAPDU: 80 13 00 00 [18:41:44]Write to MH i2c: E2 08 00 3F 15 80 13 00 00 00 00 00 00 D0 [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:44]Read from MH i2c: E2 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 62 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: E2 62 00 3F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F4 08 00 00 0E 04 04 00 0F 00 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 AC [18:41:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F4 08 00 00 0E 04 04 00 0F 00 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 [18:41:44]wFMCommunicate OK [18:41:44]SAM_PROTO_GetFieldsCounters done [18:41:44]requested_item shift.num is exist - process it [18:41:44]requested_item shift.opened is exist - process it [18:41:44]req_shift_opened [18:41:44]FM_GetShiftState [18:41:44]SAM_PROTO_GetShiftState [18:41:44]wFMCommunicate request_size=4 [18:41:44]MH_SAM_APDU [18:41:44]CAPDU: 80 13 01 00 [18:41:44]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:45]Read from MH i2c: E2 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 0E 00 [18:41:45]MH_I2C_Read... [18:41:45]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CB [18:41:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:41:45]wFMCommunicate OK [18:41:45]SAM_PROTO_GetShiftState done [18:41:45]FM_GetShiftState done [18:41:45]req_shift_opened done [18:41:45]requested_item shift.open_date is exist - process it [18:41:45]req_shift_open_date [18:41:45]req_shift_open_date done [18:41:45]produce_requested_data done [18:41:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2292,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:41:45]process_action_free close_receipt [18:41:45]json_value_free [18:41:45]json_value_free done [18:41:45]process_json_proto returns [18:41:45]Send response to host [18:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2292,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:41:45]free response buf [18:41:45]execute_script done [18:41:45]execute_script returns [18:41:45]free content buf [18:41:45]Sock 8.Close socket [18:41:45]Sock 8.Thread stoped [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:26]accept exits with 9 [18:42:26]New connection [18:42:26]New thread 3067157860 created [18:42:26]Thread 3067014500 joined [18:42:26]Waiting for new connection... [18:42:26] Sock 9.Parse request [18:42:26]Sock 9.Check first char [18:42:26]Sock 9.First char is OK [18:42:26]request: POST /json_proto HTTP/1.0 [18:42:26]Method: POST [18:42:26]URL: /json_proto [18:42:26]Method is POST - this is cgi request [18:42:26]url: /json_proto [18:42:26]query_string will be loaded in cgi processing [18:42:26]execute_cgi json_proto POST (null) [18:42:26]execute_cgi path=json_proto method=POST [18:42:26]POST find Content-Length [18:42:26]Host: 172.17.45.132:8080 [18:42:26]Content-Length: 658 [18:42:26]Content-Type: application/json [18:42:26] [18:42:26]POST finish read [18:42:26]Found Content-Length = 658 [18:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126545", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:26]execute_script... [18:42:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126545", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:26]POST & json_proto [18:42:26]process_json_proto [18:42:26]json parsed OK: [18:42:26]protocol is kg_v1.0 [18:42:26]action value=close_receipt [18:42:26]process_action close_receipt [18:42:26]cmd_close_receipt [18:42:26]MH_GetDate [18:42:26]Write to MH i2c: F0 00 00 41 15 45 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: F0 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: F0 09 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: F0 09 00 41 15 00 94 E2 A7 66 E3 0B 90 66 B5 [18:42:26]GetLastDocTimeStamp 1722278502 [18:42:26]current date 1722278548 [18:42:26]FM_GetShiftState [18:42:26]SAM_PROTO_GetShiftState [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 13 01 00 [18:42:26]Write to MH i2c: E2 08 00 42 15 80 13 01 00 00 00 00 00 D4 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0E 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0E 00 42 15 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CD [18:42:26]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_GetShiftState done [18:42:26]FM_GetShiftState done [18:42:26]opened in 1722213119 [18:42:26]opened+sec_in_day 1722299519 [18:42:26]quantity*price = 20500 [18:42:26]sum+1 = 20501 [18:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 142 29.07.2024 18:42 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2293 ФПД: 163042685652052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184228&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2293&fm=163042685652052&tin=02508201610067®Number=0000000000189667&sum=20500 0 [18:42:28]StoreToDocumentArchive [18:42:28]shift 15 fd 2293 [18:42:28]save to /storage/0015/doc_00002293 [18:42:28]save last doc name /storage/0015/doc_00002293 to /storage/kkm_last_doc_name [18:42:28]save OK [18:42:28]Clear old archive folders... [18:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=278 [18:42:28]tlvbuf is 0201BDD0 [18:42:28]SAM_PROTO_ClearQueue [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 09 00 00 [18:42:28]Write to MH i2c: E2 08 00 4F 15 80 09 00 00 00 00 00 00 D6 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [18:42:28]RAPDU: 90 00 [18:42:28]wFMCommunicate OK [18:42:28]SAM_PROTO_ClearQueue done [18:42:28]KKMCreateOFDPacket [18:42:28]OFDProtocolAddRootSTLVToBuf [18:42:28]FM_MakeSignedData [18:42:28]FM_MakeSignedData [18:42:28]SAM_PROTO_SignData [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 0D 01 02 [18:42:28]Write to MH i2c: E2 08 00 50 15 80 0D 01 02 00 00 00 00 DE [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 50 15 00 90 00 D9 [18:42:28]RAPDU: 90 00 [18:42:28]wFMCommunicate OK [18:42:28]wFMCommunicate request_size=255 [18:42:28]MH_SAM_APDU [18:42:28]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 30 30 32 38 36 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 32 D0 BB 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 14 50 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 94 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [18:42:28]Write to MH i2c: E2 02 01 51 15 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 30 30 32 38 36 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 32 D0 BB 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 14 50 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 94 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 CE [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 51 15 00 90 00 DA [18:42:28]RAPDU: 90 00 [18:42:28]wFMCommunicate OK [18:42:28]wFMCommunicate request_size=37 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F5 08 00 00 35 04 06 00 94 49 55 5C 8C 54 [18:42:28]Write to MH i2c: E2 28 00 52 15 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F5 08 00 00 35 04 06 00 94 49 55 5C 8C 54 00 00 A0 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 03 00 52 15 00 90 00 DB [18:42:28]RAPDU: 90 00 [18:42:28]wFMCommunicate OK [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 0D 03 02 [18:42:28]Write to MH i2c: E2 08 00 53 15 80 0D 03 02 00 00 00 00 E3 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 0B 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 0B 00 53 15 00 8C 44 4C E1 EA DC 47 75 90 00 63 [18:42:28]RAPDU: 8C 44 4C E1 EA DC 47 75 90 00 [18:42:28]wFMCommunicate OK [18:42:28]SAM_PROTO_SignData done [18:42:28]FM_MakeSignedData done [18:42:28]CreateOFDProtocolMessage [18:42:28]wFMCommunicate request_size=4 [18:42:28]MH_SAM_APDU [18:42:28]CAPDU: 80 11 00 00 [18:42:28]Write to MH i2c: E2 08 00 54 15 80 11 00 00 00 00 00 00 E3 [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:28]Read from MH i2c: E2 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 17 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: E2 17 00 54 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 33 [18:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:42:28]wFMCommunicate OK [18:42:28]CreateOFDProtocolMessage done [18:42:28]OFDSenderStorePacket 2293 [18:42:28]StoreOFDPacket docnum=2293 [18:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 52 7F 22 01 E2 AF 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 30 30 32 38 36 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 32 D0 BB 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 14 50 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 94 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F5 08 00 00 35 04 06 00 94 49 55 5C 8C 54 8C 44 4C E1 EA DC 47 75 [18:42:28]CheckFolder [18:42:28]dirname=/storage/ofd_packets [18:42:28]CheckFolder done [18:42:28]ProducePacketName [18:42:28]name=ofd_packets/00002293 [18:42:28]NVStorageSaveData ofd_packets/00002293 [18:42:28]File name is /storage/ofd_packets/00002293 [18:42:28]Write 328 bytes [18:42:28]NVStorageSaveData done [18:42:28]OFDSenderStorePacket done [18:42:28]KKMCreateOFDPacket done [18:42:28]NVStorageSaveData kkm_last_timestamp [18:42:28]File name is /storage/kkm_last_timestamp [18:42:28]Write 4 bytes [18:42:28]NVStorageSaveData done [18:42:28]ExternCall_PrintAddStr [18:42:28]wPrintStart [18:42:28]Write to MH i2c: 01 00 00 55 15 6A [18:42:28]Write i2c OK [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: 01 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: 01 07 00 [18:42:28]MH_I2C_Read... [18:42:28]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 FF 0F 7F [18:42:28]RasterBufferAndPrint [18:42:28]line Счет N : (3)126545 [18:42:28]line ИНН: 02508201610067 [18:42:28]line Контрольно-Кассовый Чек [18:42:28]line ПРОДАЖА [18:42:28]line Товар: 5449000000286 [18:42:28]line Напиток Кока-Кола 2л [18:42:28]line 1.000 * 205.00 [18:42:28]line = 205.00 [18:42:28]line НДС 12% НСП 1% [18:42:28]line > о реализуемом товаре [18:42:28]line ИТОГО: 205.00 [18:42:28]line НСП 1% : 1.81 [18:42:28]line НДС 12% : 21.77 [18:42:28]line Наличными: 205.00 [18:42:28]line Безнал.: 0.00 [18:42:28]line Место: АЗС № 127 "Партнер Нефть" [18:42:28]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:42:28]line СНО: Общий режим [18:42:28]line Чек 142 29.07.2024 18:42 [18:42:28]line Смена: 15 ФФД: 1.0 [18:42:28]line ЗНМ: 0300000161 [18:42:28]line РНМ: 0000000000189667 [18:42:28]line Версия ККМ: v1.0 [18:42:28]line ФМ: 0000000002094248 [18:42:28]line ФД: 2293 [18:42:28]line ФПД: 163042685652052 [18:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184228&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2293&fm=163042685652052&tin=02508201610067®Number=0000000000189667&sum=20500 [18:42:28]line 0 [18:42:28]OFD Sender: Processing packet 2293 [packets to send 1, broken 0] [18:42:28]ProducePacketName [18:42:28]name=ofd_packets/00002293 [18:42:28]OFD Sender: To server: pG, [18:42:28]CommunicateWithHost lk.salyk.kg:30040 [18:42:28]ConnectInit lk.salyk.kg [18:42:28]written 0, free lines is 4095 [18:42:29]Connected sock=8 [18:42:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 52 7F 22 01 E2 AF 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 30 30 32 38 36 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 32 D0 BB 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 14 50 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 94 E2 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F5 08 00 00 35 04 06 00 94 49 55 5C 8C 54 8C 44 4C E1 EA DC 47 75 [18:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A3 5D 47 00 E7 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 32 30 39 34 32 34 38 10 04 04 00 F5 08 00 00 F4 03 04 00 00 8E A7 66 B6 04 01 00 00 0C 50 26 10 C5 7F FA 17 [18:42:29]CommunicateWithHost err = 0 [18:42:29]CheckOFDResponse [18:42:29]1017 (14) - 77093643461234 [18:42:29]1041 (16) - 0000000002094248 [18:42:29]1040 (4) - 2293 [18:42:29]1012 (4) - 29.07.2024 12:41 [18:42:29]1206 (1) - 0 [18:42:29]OFD Sender: Remove packet 2293 [18:42:29]ProducePacketName [18:42:29]name=ofd_packets/00002293 [18:42:29]NVStorageDeleteData [18:42:29]Write to MH i2c: 01 00 00 7D 15 92 [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: 01 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: 01 07 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 24 0D CA [18:42:29]RasterBufferAndPrint [18:42:29]line [18:42:29]line [18:42:29]line [18:42:29]line [18:42:29]line [18:42:29]written 0, free lines is 3370 [18:42:29]MH_Cut [18:42:29]Write to MH i2c: D1 01 00 84 15 01 6B [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: D1 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: D1 01 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: D1 01 00 84 15 00 6A [18:42:29]Write to MH i2c: 01 00 00 85 15 9A [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]OFD Sender: No OFD packet to send [18:42:30]*** Cut start [18:42:30]*** Partial cut [18:42:30]*** CUTSNS_PIN = 1 [18:42:30]*** CUTSNS_PIN = 0 [18:42:30]*** Brake cut motor [18:42:30]Read from MH i2c: 01 [18:42:30]MH_I2C_Read... [18:42:30]*** Stop cut motor [18:42:30]*** Cut end [18:42:30]Read from MH i2c: 01 07 00 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: 01 07 00 85 15 00 00 00 00 00 FF 0F AF [18:42:30]process_action close_receipt done [18:42:30]requested_data is exist [18:42:30]produce_requested_data [18:42:30]requested_item fm.sn is exist - process it [18:42:30]wFMCommunicate request_size=4 [18:42:30]MH_SAM_APDU [18:42:30]CAPDU: 80 11 00 00 [18:42:30]Write to MH i2c: E2 08 00 86 15 80 11 00 00 00 00 00 00 15 [18:42:30]Write i2c OK [18:42:30]MH_I2C_Read... [18:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:30]Read from MH i2c: E2 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: E2 17 00 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: E2 17 00 86 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [18:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:42:30]wFMCommunicate OK [18:42:30]requested_item fd.num is exist - process it [18:42:30]SAM_PROTO_GetFieldsCounters [18:42:30]wFMCommunicate request_size=4 [18:42:30]MH_SAM_APDU [18:42:30]CAPDU: 80 13 00 00 [18:42:30]Write to MH i2c: E2 08 00 87 15 80 13 00 00 00 00 00 00 18 [18:42:30]Write i2c OK [18:42:30]MH_I2C_Read... [18:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:30]Read from MH i2c: E2 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: E2 62 00 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: E2 62 00 87 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F5 08 00 00 0E 04 04 00 0F 00 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 F8 [18:42:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F5 08 00 00 0E 04 04 00 0F 00 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 [18:42:30]wFMCommunicate OK [18:42:30]SAM_PROTO_GetFieldsCounters done [18:42:30]requested_item shift.num is exist - process it [18:42:30]requested_item shift.opened is exist - process it [18:42:30]req_shift_opened [18:42:30]FM_GetShiftState [18:42:30]SAM_PROTO_GetShiftState [18:42:30]wFMCommunicate request_size=4 [18:42:30]MH_SAM_APDU [18:42:30]CAPDU: 80 13 01 00 [18:42:30]Write to MH i2c: E2 08 00 88 15 80 13 01 00 00 00 00 00 1A [18:42:30]Write i2c OK [18:42:30]MH_I2C_Read... [18:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:30]Read from MH i2c: E2 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: E2 0E 00 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: E2 0E 00 88 15 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 13 [18:42:30]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:42:30]wFMCommunicate OK [18:42:30]SAM_PROTO_GetShiftState done [18:42:30]FM_GetShiftState done [18:42:30]req_shift_opened done [18:42:30]requested_item shift.open_date is exist - process it [18:42:30]req_shift_open_date [18:42:30]req_shift_open_date done [18:42:30]produce_requested_data done [18:42:30]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2293,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:42:30]process_action_free close_receipt [18:42:30]json_value_free [18:42:30]json_value_free done [18:42:30]process_json_proto returns [18:42:30]Send response to host [18:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2293,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:42:30]free response buf [18:42:30]execute_script done [18:42:30]execute_script returns [18:42:30]free content buf [18:42:30]Sock 9.Close socket [18:42:30]Sock 9.Thread stoped [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:44]accept exits with 10 [18:48:44]New connection [18:48:44]New thread 3067014500 created [18:48:44]Thread 3067157860 joined [18:48:44]Waiting for new connection... [18:48:44] Sock 10.Parse request [18:48:44]Sock 10.Check first char [18:48:44]Sock 10.First char is OK [18:48:44]request: POST /json_proto HTTP/1.0 [18:48:44]Method: POST [18:48:44]URL: /json_proto [18:48:44]Method is POST - this is cgi request [18:48:44]url: /json_proto [18:48:44]query_string will be loaded in cgi processing [18:48:44]execute_cgi json_proto POST (null) [18:48:44]execute_cgi path=json_proto method=POST [18:48:44]POST find Content-Length [18:48:44]Host: 172.17.45.132:8080 [18:48:44]Content-Length: 630 [18:48:44]Content-Type: application/json [18:48:44] [18:48:44]POST finish read [18:48:44]Found Content-Length = 630 [18:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126546", "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" ] } } [18:48:44]execute_script... [18:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126546", "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" ] } } [18:48:44]POST & json_proto [18:48:44]process_json_proto [18:48:44]json parsed OK: [18:48:44]protocol is kg_v1.0 [18:48:44]action value=close_receipt [18:48:44]process_action close_receipt [18:48:44]cmd_close_receipt [18:48:44]MH_GetDate [18:48:44]Write to MH i2c: F0 00 00 89 15 8D [18:48:44]Write i2c OK [18:48:44]MH_I2C_Read... [18:48:44]Read from MH i2c: F0 [18:48:44]MH_I2C_Read... [18:48:44]Read from MH i2c: F0 09 00 [18:48:44]MH_I2C_Read... [18:48:44]Read from MH i2c: F0 09 00 89 15 00 0E E4 A7 66 E3 0B 90 66 79 [18:48:44]GetLastDocTimeStamp 1722278548 [18:48:44]current date 1722278926 [18:48:44]FM_GetShiftState [18:48:44]SAM_PROTO_GetShiftState [18:48:44]wFMCommunicate request_size=4 [18:48:44]MH_SAM_APDU [18:48:44]CAPDU: 80 13 01 00 [18:48:44]Write to MH i2c: E2 08 00 8A 15 80 13 01 00 00 00 00 00 1C [18:48:44]Write i2c OK [18:48:44]MH_I2C_Read... [18:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:44]Read from MH i2c: E2 [18:48:44]MH_I2C_Read... [18:48:44]Read from MH i2c: E2 0E 00 [18:48:44]MH_I2C_Read... [18:48:44]Read from MH i2c: E2 0E 00 8A 15 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 15 [18:48:44]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:48:44]wFMCommunicate OK [18:48:44]SAM_PROTO_GetShiftState done [18:48:44]FM_GetShiftState done [18:48:44]opened in 1722213119 [18:48:44]opened+sec_in_day 1722299519 [18:48:44]quantity*price = 5000 [18:48:44]sum+1 = 5001 [18:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 143 29.07.2024 18:48 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2294 ФПД: 62949513679968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184846&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2294&fm=62949513679968&tin=02508201610067®Number=0000000000189667&sum=5000 0 [18:48:46]StoreToDocumentArchive [18:48:46]shift 15 fd 2294 [18:48:46]save to /storage/0015/doc_00002294 [18:48:46]save last doc name /storage/0015/doc_00002294 to /storage/kkm_last_doc_name [18:48:46]save OK [18:48:46]Clear old archive folders... [18:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:48:46]tlvbuf is 0201B9B0 [18:48:46]SAM_PROTO_ClearQueue [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 09 00 00 [18:48:46]Write to MH i2c: E2 08 00 97 15 80 09 00 00 00 00 00 00 1E [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]SAM_PROTO_ClearQueue done [18:48:46]KKMCreateOFDPacket [18:48:46]OFDProtocolAddRootSTLVToBuf [18:48:46]FM_MakeSignedData [18:48:46]FM_MakeSignedData [18:48:46]SAM_PROTO_SignData [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 0D 01 02 [18:48:46]Write to MH i2c: E2 08 00 98 15 80 0D 01 02 00 00 00 00 26 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]wFMCommunicate request_size=255 [18:48:46]MH_SAM_APDU [18:48:46]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 8F 00 00 00 F4 03 04 00 0E E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 [18:48:46]Write to MH i2c: E2 02 01 99 15 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 8F 00 00 00 F4 03 04 00 0E E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 00 00 E0 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 99 15 00 90 00 22 [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]wFMCommunicate request_size=28 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 0D 02 02 17 39 34 32 34 38 10 04 04 00 F6 08 00 00 35 04 06 00 39 40 93 66 D4 60 [18:48:46]Write to MH i2c: E2 1F 00 9A 15 80 0D 02 02 17 00 39 34 32 34 38 10 04 04 00 F6 08 00 00 35 04 06 00 39 40 93 66 D4 60 00 00 5D [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 9A 15 00 90 00 23 [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 0D 03 02 [18:48:46]Write to MH i2c: E2 08 00 9B 15 80 0D 03 02 00 00 00 00 2B [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0B 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0B 00 9B 15 00 CC 60 13 A6 85 FD 7B 30 90 00 3E [18:48:46]RAPDU: CC 60 13 A6 85 FD 7B 30 90 00 [18:48:46]wFMCommunicate OK [18:48:46]SAM_PROTO_SignData done [18:48:46]FM_MakeSignedData done [18:48:46]CreateOFDProtocolMessage [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 11 00 00 [18:48:46]Write to MH i2c: E2 08 00 9C 15 80 11 00 00 00 00 00 00 2B [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 17 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 17 00 9C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [18:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:48:46]wFMCommunicate OK [18:48:46]CreateOFDProtocolMessage done [18:48:46]OFDSenderStorePacket 2294 [18:48:46]StoreOFDPacket docnum=2294 [18:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 8D A4 19 01 28 BE 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 8F 00 00 00 F4 03 04 00 0E E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F6 08 00 00 35 04 06 00 39 40 93 66 D4 60 CC 60 13 A6 85 FD 7B 30 [18:48:46]CheckFolder [18:48:46]dirname=/storage/ofd_packets [18:48:46]CheckFolder done [18:48:46]ProducePacketName [18:48:46]name=ofd_packets/00002294 [18:48:46]NVStorageSaveData ofd_packets/00002294 [18:48:46]File name is /storage/ofd_packets/00002294 [18:48:46]Write 319 bytes [18:48:46]NVStorageSaveData done [18:48:46]OFDSenderStorePacket done [18:48:46]KKMCreateOFDPacket done [18:48:46]NVStorageSaveData kkm_last_timestamp [18:48:46]File name is /storage/kkm_last_timestamp [18:48:46]Write 4 bytes [18:48:46]NVStorageSaveData done [18:48:46]ExternCall_PrintAddStr [18:48:46]wPrintStart [18:48:46]Write to MH i2c: 01 00 00 9D 15 B2 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: 01 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: 01 07 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: 01 07 00 9D 15 00 00 00 00 00 FF 0F C7 [18:48:46]RasterBufferAndPrint [18:48:46]line Счет N : (3)126546 [18:48:46]line ИНН: 02508201610067 [18:48:46]line Контрольно-Кассовый Чек [18:48:46]line ПРОДАЖА [18:48:46]line Товар: 4700000160358 [18:48:46]line Вода Легенда 1л [18:48:46]line 1.000 * 50.00 [18:48:46]line = 50.00 [18:48:46]line НДС 12% НСП 1% [18:48:46]line > о реализуемом товаре [18:48:46]line ИТОГО: 50.00 [18:48:46]line НСП 1% : 0.44 [18:48:46]line НДС 12% : 5.31 [18:48:46]line Наличными: 50.00 [18:48:46]line Безнал.: 0.00 [18:48:46]line Место: АЗС № 127 "Партнер Нефть" [18:48:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:48:46]line СНО: Общий режим [18:48:46]line Чек 143 29.07.2024 18:48 [18:48:46]line Смена: 15 ФФД: 1.0 [18:48:46]line ЗНМ: 0300000161 [18:48:46]line РНМ: 0000000000189667 [18:48:46]line Версия ККМ: v1.0 [18:48:46]line ФМ: 0000000002094248 [18:48:46]line ФД: 2294 [18:48:46]line ФПД: 62949513679968 [18:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184846&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2294&fm=62949513679968&tin=02508201610067®Number=0000000000189667&sum=5000 [18:48:46]line 0 [18:48:46]OFD Sender: Processing packet 2294 [packets to send 1, broken 0] [18:48:46]ProducePacketName [18:48:46]name=ofd_packets/00002294 [18:48:46]OFD Sender: To server: pG, [18:48:46]CommunicateWithHost lk.salyk.kg:30040 [18:48:46]ConnectInit lk.salyk.kg [18:48:46]written 0, free lines is 4095 [18:48:47]Connected sock=9 [18:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 21 01 00 00 8D A4 19 01 28 BE 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 8F 00 00 00 F4 03 04 00 0E E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F6 08 00 00 35 04 06 00 39 40 93 66 D4 60 CC 60 13 A6 85 FD 7B 30 [18:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 85 3F 47 00 3F 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 32 30 39 34 32 34 38 10 04 04 00 F6 08 00 00 F4 03 04 00 7A 8F A7 66 B6 04 01 00 00 42 CF 06 02 2A C4 DD 8D [18:48:47]CommunicateWithHost err = 0 [18:48:47]CheckOFDResponse [18:48:47]1017 (14) - 77093643461234 [18:48:47]1041 (16) - 0000000002094248 [18:48:47]1040 (4) - 2294 [18:48:47]1012 (4) - 29.07.2024 12:47 [18:48:47]1206 (1) - 0 [18:48:47]OFD Sender: Remove packet 2294 [18:48:47]ProducePacketName [18:48:47]name=ofd_packets/00002294 [18:48:47]NVStorageDeleteData [18:48:47]Write to MH i2c: 01 00 00 C5 15 DA [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 C5 15 00 00 00 00 00 14 0D 02 [18:48:47]RasterBufferAndPrint [18:48:47]line [18:48:47]line [18:48:47]line [18:48:47]line [18:48:47]line [18:48:47]written 0, free lines is 3354 [18:48:47]MH_Cut [18:48:47]Write to MH i2c: D1 01 00 CC 15 01 B3 [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: D1 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: D1 01 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: D1 01 00 CC 15 00 B2 [18:48:47]Write to MH i2c: 01 00 00 CD 15 E2 [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]OFD Sender: No OFD packet to send [18:48:47]*** Cut start [18:48:47]*** Partial cut [18:48:47]*** CUTSNS_PIN = 1 [18:48:48]*** CUTSNS_PIN = 0 [18:48:48]*** Brake cut motor [18:48:48]Read from MH i2c: 01 [18:48:48]MH_I2C_Read... [18:48:48]*** Stop cut motor [18:48:48]*** Cut end [18:48:48]Read from MH i2c: 01 07 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 FF 0F F7 [18:48:48]process_action close_receipt done [18:48:48]requested_data is exist [18:48:48]produce_requested_data [18:48:48]requested_item fm.sn is exist - process it [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 11 00 00 [18:48:48]Write to MH i2c: E2 08 00 CE 15 80 11 00 00 00 00 00 00 5D [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 17 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 17 00 CE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AD [18:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:48:48]wFMCommunicate OK [18:48:48]requested_item fd.num is exist - process it [18:48:48]SAM_PROTO_GetFieldsCounters [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 13 00 00 [18:48:48]Write to MH i2c: E2 08 00 CF 15 80 13 00 00 00 00 00 00 60 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 62 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 62 00 CF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F6 08 00 00 0E 04 04 00 0F 00 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 44 [18:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F6 08 00 00 0E 04 04 00 0F 00 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 [18:48:48]wFMCommunicate OK [18:48:48]SAM_PROTO_GetFieldsCounters done [18:48:48]requested_item shift.num is exist - process it [18:48:48]requested_item shift.opened is exist - process it [18:48:48]req_shift_opened [18:48:48]FM_GetShiftState [18:48:48]SAM_PROTO_GetShiftState [18:48:48]wFMCommunicate request_size=4 [18:48:48]MH_SAM_APDU [18:48:48]CAPDU: 80 13 01 00 [18:48:48]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [18:48:48]Write i2c OK [18:48:48]MH_I2C_Read... [18:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:48]Read from MH i2c: E2 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0E 00 [18:48:48]MH_I2C_Read... [18:48:48]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5B [18:48:48]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:48:48]wFMCommunicate OK [18:48:48]SAM_PROTO_GetShiftState done [18:48:48]FM_GetShiftState done [18:48:48]req_shift_opened done [18:48:48]requested_item shift.open_date is exist - process it [18:48:48]req_shift_open_date [18:48:48]req_shift_open_date done [18:48:48]produce_requested_data done [18:48:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2294,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:48:48]process_action_free close_receipt [18:48:48]json_value_free [18:48:48]json_value_free done [18:48:48]process_json_proto returns [18:48:48]Send response to host [18:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2294,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:48:48]free response buf [18:48:48]execute_script done [18:48:48]execute_script returns [18:48:48]free content buf [18:48:48]Sock 10.Close socket [18:48:48]Sock 10.Thread stoped [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:11]accept exits with 8 [18:51:11]New connection [18:51:11]New thread 3067157860 created [18:51:11]Thread 3067014500 joined [18:51:11]Waiting for new connection... [18:51:11] Sock 8.Parse request [18:51:11]Sock 8.Check first char [18:51:11]Sock 8.First char is OK [18:51:11]request: POST /json_proto HTTP/1.0 [18:51:11]Method: POST [18:51:11]URL: /json_proto [18:51:11]Method is POST - this is cgi request [18:51:11]url: /json_proto [18:51:11]query_string will be loaded in cgi processing [18:51:11]execute_cgi json_proto POST (null) [18:51:11]execute_cgi path=json_proto method=POST [18:51:11]POST find Content-Length [18:51:11]Host: 172.17.45.132:8080 [18:51:11]Content-Length: 646 [18:51:11]Content-Type: application/json [18:51:11] [18:51:11]POST finish read [18:51:11]Found Content-Length = 646 [18:51:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126547", "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" ] } } [18:51:11]execute_script... [18:51: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)126547", "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" ] } } [18:51:11]POST & json_proto [18:51:11]process_json_proto [18:51:11]json parsed OK: [18:51:11]protocol is kg_v1.0 [18:51:11]action value=close_receipt [18:51:11]process_action close_receipt [18:51:11]cmd_close_receipt [18:51:11]MH_GetDate [18:51:11]Write to MH i2c: F0 00 00 D1 15 D5 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: F0 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: F0 09 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: F0 09 00 D1 15 00 A1 E4 A7 66 E3 0B 90 66 54 [18:51:11]GetLastDocTimeStamp 1722278926 [18:51:11]current date 1722279073 [18:51:11]FM_GetShiftState [18:51:11]SAM_PROTO_GetShiftState [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 13 01 00 [18:51:11]Write to MH i2c: E2 08 00 D2 15 80 13 01 00 00 00 00 00 64 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 0E 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 0E 00 D2 15 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5D [18:51:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:51:11]wFMCommunicate OK [18:51:11]SAM_PROTO_GetShiftState done [18:51:11]FM_GetShiftState done [18:51:11]opened in 1722213119 [18:51:11]opened+sec_in_day 1722299519 [18:51:11]quantity*price = 13000 [18:51:11]sum+1 = 13001 [18:51:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 144 29.07.2024 18:51 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2295 ФПД: 84091549905856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185113&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2295&fm=84091549905856&tin=02508201610067®Number=0000000000189667&sum=13000 0 [18:51:13]StoreToDocumentArchive [18:51:13]shift 15 fd 2295 [18:51:13]save to /storage/0015/doc_00002295 [18:51:13]save last doc name /storage/0015/doc_00002295 to /storage/kkm_last_doc_name [18:51:13]save OK [18:51:13]Clear old archive folders... [18:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:51:13]tlvbuf is 01FE3360 [18:51:13]SAM_PROTO_ClearQueue [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 09 00 00 [18:51:13]Write to MH i2c: E2 08 00 DF 15 80 09 00 00 00 00 00 00 66 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [18:51:13]RAPDU: 90 00 [18:51:13]wFMCommunicate OK [18:51:13]SAM_PROTO_ClearQueue done [18:51:13]KKMCreateOFDPacket [18:51:13]OFDProtocolAddRootSTLVToBuf [18:51:13]FM_MakeSignedData [18:51:13]FM_MakeSignedData [18:51:13]SAM_PROTO_SignData [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 0D 01 02 [18:51:13]Write to MH i2c: E2 08 00 E0 15 80 0D 01 02 00 00 00 00 6E [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [18:51:13]RAPDU: 90 00 [18:51:13]wFMCommunicate OK [18:51:13]wFMCommunicate request_size=255 [18:51:13]MH_SAM_APDU [18:51:13]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 90 00 00 00 F4 03 04 00 A1 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [18:51:13]Write to MH i2c: E2 02 01 E1 15 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 90 00 00 00 F4 03 04 00 A1 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 BA [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [18:51:13]RAPDU: 90 00 [18:51:13]wFMCommunicate OK [18:51:13]wFMCommunicate request_size=41 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F7 08 00 00 35 04 06 00 4C 7B 16 F5 F3 C0 [18:51:13]Write to MH i2c: E2 2C 00 E2 15 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F7 08 00 00 35 04 06 00 4C 7B 16 F5 F3 C0 00 00 C1 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 E2 15 00 90 00 6B [18:51:13]RAPDU: 90 00 [18:51:13]wFMCommunicate OK [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 0D 03 02 [18:51:13]Write to MH i2c: E2 08 00 E3 15 80 0D 03 02 00 00 00 00 73 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 0B 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 0B 00 E3 15 00 E6 8E E4 7A A0 71 83 B1 90 00 8B [18:51:13]RAPDU: E6 8E E4 7A A0 71 83 B1 90 00 [18:51:13]wFMCommunicate OK [18:51:13]SAM_PROTO_SignData done [18:51:13]FM_MakeSignedData done [18:51:13]CreateOFDProtocolMessage [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 11 00 00 [18:51:13]Write to MH i2c: E2 08 00 E4 15 80 11 00 00 00 00 00 00 73 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 17 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 17 00 E4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C3 [18:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:51:13]wFMCommunicate OK [18:51:13]CreateOFDProtocolMessage done [18:51:13]OFDSenderStorePacket 2295 [18:51:13]StoreOFDPacket docnum=2295 [18:51:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 04 F9 26 01 79 59 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 90 00 00 00 F4 03 04 00 A1 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F7 08 00 00 35 04 06 00 4C 7B 16 F5 F3 C0 E6 8E E4 7A A0 71 83 B1 [18:51:13]CheckFolder [18:51:13]dirname=/storage/ofd_packets [18:51:13]CheckFolder done [18:51:13]ProducePacketName [18:51:13]name=ofd_packets/00002295 [18:51:13]NVStorageSaveData ofd_packets/00002295 [18:51:13]File name is /storage/ofd_packets/00002295 [18:51:13]Write 332 bytes [18:51:13]NVStorageSaveData done [18:51:13]OFDSenderStorePacket done [18:51:13]KKMCreateOFDPacket done [18:51:13]NVStorageSaveData kkm_last_timestamp [18:51:13]File name is /storage/kkm_last_timestamp [18:51:13]Write 4 bytes [18:51:13]NVStorageSaveData done [18:51:13]ExternCall_PrintAddStr [18:51:13]wPrintStart [18:51:13]Write to MH i2c: 01 00 00 E5 15 FA [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 E5 15 00 00 00 00 00 FF 0F 0F [18:51:13]RasterBufferAndPrint [18:51:13]line Счет N : (3)126547 [18:51:13]line ИНН: 02508201610067 [18:51:13]line Контрольно-Кассовый Чек [18:51:13]line ПРОДАЖА [18:51:13]line Товар: 2000036220012 [18:51:13]line Кофе Капучино XL(GABB TRADE) [18:51:13]line 1.000 * 130.00 [18:51:13]line = 130.00 [18:51:13]line НДС 12% НСП 1% [18:51:13]line > о реализуемом товаре [18:51:13]line ИТОГО: 130.00 [18:51:13]line НСП 1% : 1.15 [18:51:13]line НДС 12% : 13.80 [18:51:13]line Наличными: 130.00 [18:51:13]line Безнал.: 0.00 [18:51:13]line Место: АЗС № 127 "Партнер Нефть" [18:51:13]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:51:13]line СНО: Общий режим [18:51:13]line Чек 144 29.07.2024 18:51 [18:51:13]line Смена: 15 ФФД: 1.0 [18:51:13]line ЗНМ: 0300000161 [18:51:13]line РНМ: 0000000000189667 [18:51:13]line Версия ККМ: v1.0 [18:51:13]line ФМ: 0000000002094248 [18:51:13]line ФД: 2295 [18:51:13]line ФПД: 84091549905856 [18:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185113&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2295&fm=84091549905856&tin=02508201610067®Number=0000000000189667&sum=13000 [18:51:14]line 0 [18:51:14]OFD Sender: Processing packet 2295 [packets to send 1, broken 0] [18:51:14]ProducePacketName [18:51:14]name=ofd_packets/00002295 [18:51:14]OFD Sender: To server: pG, [18:51:14]CommunicateWithHost lk.salyk.kg:30040 [18:51:14]ConnectInit lk.salyk.kg [18:51:14]written 0, free lines is 4095 [18:51:14]Connected sock=10 [18:51:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 04 F9 26 01 79 59 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 90 00 00 00 F4 03 04 00 A1 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F7 08 00 00 35 04 06 00 4C 7B 16 F5 F3 C0 E6 8E E4 7A A0 71 83 B1 [18:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BA 82 47 00 73 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F7 08 00 00 F4 03 04 00 0D 90 A7 66 B6 04 01 00 00 91 60 C0 C9 1C 92 37 8B [18:51:14]CommunicateWithHost err = 0 [18:51:14]CheckOFDResponse [18:51:14]1017 (14) - 77093643461234 [18:51:14]1041 (16) - 0000000002094248 [18:51:14]1040 (4) - 2295 [18:51:14]1012 (4) - 29.07.2024 12:50 [18:51:14]1206 (1) - 0 [18:51:14]OFD Sender: Remove packet 2295 [18:51:14]ProducePacketName [18:51:14]name=ofd_packets/00002295 [18:51:14]NVStorageDeleteData [18:51:14]Write to MH i2c: 01 00 00 0E 16 24 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 0E 16 00 00 00 00 00 17 0D 4F [18:51:14]RasterBufferAndPrint [18:51:14]line [18:51:14]line [18:51:14]line [18:51:14]line [18:51:14]line [18:51:14]written 0, free lines is 3357 [18:51:14]MH_Cut [18:51:14]Write to MH i2c: D1 01 00 15 16 01 FD [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: D1 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: D1 01 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: D1 01 00 15 16 00 FC [18:51:14]Write to MH i2c: 01 00 00 16 16 2C [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]OFD Sender: No OFD packet to send [18:51:15]*** Cut start [18:51:15]*** Partial cut [18:51:15]*** CUTSNS_PIN = 1 [18:51:15]*** CUTSNS_PIN = 0 [18:51:15]*** Brake cut motor [18:51:15]Read from MH i2c: 01 [18:51:15]MH_I2C_Read... [18:51:15]*** Stop cut motor [18:51:15]*** Cut end [18:51:15]Read from MH i2c: 01 07 00 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: 01 07 00 16 16 00 00 00 00 00 FF 0F 41 [18:51:15]process_action close_receipt done [18:51:15]requested_data is exist [18:51:15]produce_requested_data [18:51:15]requested_item fm.sn is exist - process it [18:51:15]wFMCommunicate request_size=4 [18:51:15]MH_SAM_APDU [18:51:15]CAPDU: 80 11 00 00 [18:51:15]Write to MH i2c: E2 08 00 17 16 80 11 00 00 00 00 00 00 A7 [18:51:15]Write i2c OK [18:51:15]MH_I2C_Read... [18:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:15]Read from MH i2c: E2 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: E2 17 00 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: E2 17 00 17 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F7 [18:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:51:15]wFMCommunicate OK [18:51:15]requested_item fd.num is exist - process it [18:51:15]SAM_PROTO_GetFieldsCounters [18:51:15]wFMCommunicate request_size=4 [18:51:15]MH_SAM_APDU [18:51:15]CAPDU: 80 13 00 00 [18:51:15]Write to MH i2c: E2 08 00 18 16 80 13 00 00 00 00 00 00 AA [18:51:15]Write i2c OK [18:51:15]MH_I2C_Read... [18:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:15]Read from MH i2c: E2 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: E2 62 00 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: E2 62 00 18 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F7 08 00 00 0E 04 04 00 0F 00 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 92 [18:51:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F7 08 00 00 0E 04 04 00 0F 00 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 [18:51:15]wFMCommunicate OK [18:51:15]SAM_PROTO_GetFieldsCounters done [18:51:15]requested_item shift.num is exist - process it [18:51:15]requested_item shift.opened is exist - process it [18:51:15]req_shift_opened [18:51:15]FM_GetShiftState [18:51:15]SAM_PROTO_GetShiftState [18:51:15]wFMCommunicate request_size=4 [18:51:15]MH_SAM_APDU [18:51:15]CAPDU: 80 13 01 00 [18:51:15]Write to MH i2c: E2 08 00 19 16 80 13 01 00 00 00 00 00 AC [18:51:15]Write i2c OK [18:51:16]MH_I2C_Read... [18:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:16]Read from MH i2c: E2 [18:51:16]MH_I2C_Read... [18:51:16]Read from MH i2c: E2 0E 00 [18:51:16]MH_I2C_Read... [18:51:16]Read from MH i2c: E2 0E 00 19 16 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A5 [18:51:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:51:16]wFMCommunicate OK [18:51:16]SAM_PROTO_GetShiftState done [18:51:16]FM_GetShiftState done [18:51:16]req_shift_opened done [18:51:16]requested_item shift.open_date is exist - process it [18:51:16]req_shift_open_date [18:51:16]req_shift_open_date done [18:51:16]produce_requested_data done [18:51:16]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2295,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:51:16]process_action_free close_receipt [18:51:16]json_value_free [18:51:16]json_value_free done [18:51:16]process_json_proto returns [18:51:16]Send response to host [18:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2295,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:51:16]free response buf [18:51:16]execute_script done [18:51:16]execute_script returns [18:51:16]free content buf [18:51:16]Sock 8.Close socket [18:51:16]Sock 8.Thread stoped [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:07]accept exits with 9 [18:52:07]New connection [18:52:07]New thread 3067014500 created [18:52:07]Thread 3067157860 joined [18:52:07]Waiting for new connection... [18:52:07] Sock 9.Parse request [18:52:07]Sock 9.Check first char [18:52:07]Sock 9.First char is OK [18:52:07]request: POST /json_proto HTTP/1.0 [18:52:07]Method: POST [18:52:07]URL: /json_proto [18:52:07]Method is POST - this is cgi request [18:52:07]url: /json_proto [18:52:07]query_string will be loaded in cgi processing [18:52:07]execute_cgi json_proto POST (null) [18:52:07]execute_cgi path=json_proto method=POST [18:52:07]POST find Content-Length [18:52:07]Host: 172.17.45.132:8080 [18:52:07]Content-Length: 907 [18:52:07]Content-Type: application/json [18:52:07] [18:52:07]POST finish read [18:52:07]Found Content-Length = 907 [18:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126548", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" ] } } [18:52:07]execute_script... [18:52: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)126548", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" ] } } [18:52:07]POST & json_proto [18:52:07]process_json_proto [18:52:07]json parsed OK: [18:52:07]protocol is kg_v1.0 [18:52:07]action value=close_receipt [18:52:07]process_action close_receipt [18:52:07]cmd_close_receipt [18:52:07]MH_GetDate [18:52:07]Write to MH i2c: F0 00 00 1A 16 1F [18:52:07]Write i2c OK [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: F0 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: F0 09 00 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: F0 09 00 1A 16 00 D8 E4 A7 66 E3 0B 90 66 D5 [18:52:07]GetLastDocTimeStamp 1722279073 [18:52:07]current date 1722279128 [18:52:07]FM_GetShiftState [18:52:07]SAM_PROTO_GetShiftState [18:52:07]wFMCommunicate request_size=4 [18:52:07]MH_SAM_APDU [18:52:07]CAPDU: 80 13 01 00 [18:52:07]Write to MH i2c: E2 08 00 1B 16 80 13 01 00 00 00 00 00 AE [18:52:07]Write i2c OK [18:52:07]MH_I2C_Read... [18:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:07]Read from MH i2c: E2 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 0E 00 [18:52:07]MH_I2C_Read... [18:52:07]Read from MH i2c: E2 0E 00 1B 16 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A7 [18:52:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:52:07]wFMCommunicate OK [18:52:07]SAM_PROTO_GetShiftState done [18:52:07]FM_GetShiftState done [18:52:07]opened in 1722213119 [18:52:07]opened+sec_in_day 1722299519 [18:52:07]quantity*price = 6000 [18:52:07]sum+1 = 6001 [18:52:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 145 29.07.2024 18:52 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2296 ФПД: 183583168684365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185208&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2296&fm=183583168684365&tin=02508201610067®Number=0000000000189667&sum=11000 0 [18:52:08]StoreToDocumentArchive [18:52:08]shift 15 fd 2296 [18:52:08]save to /storage/0015/doc_00002296 [18:52:08]save last doc name /storage/0015/doc_00002296 to /storage/kkm_last_doc_name [18:52:08]save OK [18:52:08]Clear old archive folders... [18:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=381 [18:52:08]tlvbuf is 01F543E0 [18:52:08]SAM_PROTO_ClearQueue [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 09 00 00 [18:52:08]Write to MH i2c: E2 08 00 28 16 80 09 00 00 00 00 00 00 B0 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_ClearQueue done [18:52:08]KKMCreateOFDPacket [18:52:08]OFDProtocolAddRootSTLVToBuf [18:52:08]FM_MakeSignedData [18:52:08]FM_MakeSignedData [18:52:08]SAM_PROTO_SignData [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 0D 01 02 [18:52:08]Write to MH i2c: E2 08 00 29 16 80 0D 01 02 00 00 00 00 B8 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]wFMCommunicate request_size=255 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 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 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 [18:52:08]Write to MH i2c: E2 02 01 2A 16 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 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 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 A4 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]wFMCommunicate request_size=140 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 0D 02 02 87 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 91 00 00 00 F4 03 04 00 D8 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 08 00 00 35 04 06 00 A6 F7 C9 8E 61 4D [18:52:08]Write to MH i2c: E2 8F 00 2B 16 80 0D 02 02 87 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 91 00 00 00 F4 03 04 00 D8 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 08 00 00 35 04 06 00 A6 F7 C9 8E 61 4D 00 00 C0 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [18:52:08]RAPDU: 90 00 [18:52:08]wFMCommunicate OK [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 0D 03 02 [18:52:08]Write to MH i2c: E2 08 00 2C 16 80 0D 03 02 00 00 00 00 BD [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0B 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0B 00 2C 16 00 77 D4 B5 16 A0 6D A1 F6 90 00 78 [18:52:08]RAPDU: 77 D4 B5 16 A0 6D A1 F6 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_SignData done [18:52:08]FM_MakeSignedData done [18:52:08]CreateOFDProtocolMessage [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 11 00 00 [18:52:08]Write to MH i2c: E2 08 00 2D 16 80 11 00 00 00 00 00 00 BD [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 2D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0D [18:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:52:08]wFMCommunicate OK [18:52:08]CreateOFDProtocolMessage done [18:52:08]OFDSenderStorePacket 2296 [18:52:08]StoreOFDPacket docnum=2296 [18:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 91 01 00 00 CA AA 89 01 20 BB 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 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 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 91 00 00 00 F4 03 04 00 D8 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 08 00 00 35 04 06 00 A6 F7 C9 8E 61 4D 77 D4 B5 16 A0 6D A1 F6 [18:52:08]CheckFolder [18:52:08]dirname=/storage/ofd_packets [18:52:08]CheckFolder done [18:52:08]ProducePacketName [18:52:08]name=ofd_packets/00002296 [18:52:08]NVStorageSaveData ofd_packets/00002296 [18:52:08]File name is /storage/ofd_packets/00002296 [18:52:08]Write 431 bytes [18:52:08]NVStorageSaveData done [18:52:08]OFDSenderStorePacket done [18:52:08]KKMCreateOFDPacket done [18:52:08]NVStorageSaveData kkm_last_timestamp [18:52:08]File name is /storage/kkm_last_timestamp [18:52:08]Write 4 bytes [18:52:08]NVStorageSaveData done [18:52:08]ExternCall_PrintAddStr [18:52:08]wPrintStart [18:52:08]Write to MH i2c: 01 00 00 2E 16 44 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 07 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 07 00 2E 16 00 00 00 00 00 FF 0F 59 [18:52:08]RasterBufferAndPrint [18:52:08]line Счет N : (3)126548 [18:52:08]line ИНН: 02508201610067 [18:52:08]line Контрольно-Кассовый Чек [18:52:08]line ПРОДАЖА [18:52:08]line Товар: 4700000310043 [18:52:09]line Вода Жалалабат 27 1л [18:52:09]line 1.000 * 60.00 [18:52:09]line = 60.00 [18:52:09]line НДС 12% НСП 1% [18:52:09]line > о реализуемом товаре [18:52:09]line Товар: 5449000005489 [18:52:09]line Вода Бонаква 1л б/г [18:52:09]line 1.000 * 50.00 [18:52:09]line = 50.00 [18:52:09]line НДС 12% НСП 1% [18:52:09]line > о реализуемом товаре [18:52:09]line ИТОГО: 110.00 [18:52:09]line НСП 1% : 0.97 [18:52:09]line НДС 12% : 11.68 [18:52:09]line Наличными: 110.00 [18:52:09]line Безнал.: 0.00 [18:52:09]line Место: АЗС № 127 "Партнер Нефть" [18:52:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [18:52:09]line СНО: Общий режим [18:52:09]line Чек 145 29.07.2024 18:52 [18:52:09]line Смена: 15 ФФД: 1.0 [18:52:09]line ЗНМ: 0300000161 [18:52:09]line РНМ: 0000000000189667 [18:52:09]line Версия ККМ: v1.0 [18:52:09]line ФМ: 0000000002094248 [18:52:09]line ФД: 2296 [18:52:09]line ФПД: 183583168684365 [18:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185208&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2296&fm=183583168684365&tin=02508201610067®Number=0000000000189667&sum=11000 [18:52:09]line 0 [18:52:09]OFD Sender: Processing packet 2296 [packets to send 1, broken 0] [18:52:09]ProducePacketName [18:52:09]name=ofd_packets/00002296 [18:52:09]OFD Sender: To server: pG, [18:52:09]CommunicateWithHost lk.salyk.kg:30040 [18:52:09]ConnectInit lk.salyk.kg [18:52:09]written 0, free lines is 4095 [18:52:09]Connected sock=10 [18:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 91 01 00 00 CA AA 89 01 20 BB 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 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 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 91 00 00 00 F4 03 04 00 D8 E4 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 08 00 00 35 04 06 00 A6 F7 C9 8E 61 4D 77 D4 B5 16 A0 6D A1 F6 [18:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4C 53 47 00 D9 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F8 08 00 00 F4 03 04 00 44 90 A7 66 B6 04 01 00 00 FD DA 1C 11 61 C0 77 C0 [18:52:09]CommunicateWithHost err = 0 [18:52:09]CheckOFDResponse [18:52:09]1017 (14) - 77093643461234 [18:52:09]1041 (16) - 0000000002094248 [18:52:09]1040 (4) - 2296 [18:52:09]1012 (4) - 29.07.2024 12:51 [18:52:09]1206 (1) - 0 [18:52:09]OFD Sender: Remove packet 2296 [18:52:09]ProducePacketName [18:52:09]name=ofd_packets/00002296 [18:52:09]NVStorageDeleteData [18:52:09]Write to MH i2c: 01 00 00 5C 16 72 [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: 01 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: 01 07 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: 01 07 00 5C 16 00 00 00 00 00 CB 0C 50 [18:52:09]RasterBufferAndPrint [18:52:09]line [18:52:09]line [18:52:09]line [18:52:09]line [18:52:09]line [18:52:09]written 0, free lines is 3284 [18:52:09]MH_Cut [18:52:09]Write to MH i2c: D1 01 00 63 16 01 4B [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: D1 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: D1 01 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: D1 01 00 63 16 00 4A [18:52:09]Write to MH i2c: 01 00 00 64 16 7A [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:10]OFD Sender: No OFD packet to send [18:52:10]*** Cut start [18:52:10]*** Partial cut [18:52:10]*** CUTSNS_PIN = 1 [18:52:10]*** CUTSNS_PIN = 0 [18:52:10]*** Brake cut motor [18:52:11]Read from MH i2c: 01 [18:52:11]MH_I2C_Read... [18:52:11]*** Stop cut motor [18:52:11]*** Cut end [18:52:11]Read from MH i2c: 01 07 00 [18:52:11]MH_I2C_Read... [18:52:11]Read from MH i2c: 01 07 00 64 16 00 00 00 00 00 FF 0F 8F [18:52:11]process_action close_receipt done [18:52:11]requested_data is exist [18:52:11]produce_requested_data [18:52:11]requested_item fm.sn is exist - process it [18:52:11]wFMCommunicate request_size=4 [18:52:11]MH_SAM_APDU [18:52:11]CAPDU: 80 11 00 00 [18:52:11]Write to MH i2c: E2 08 00 65 16 80 11 00 00 00 00 00 00 F5 [18:52:11]Write i2c OK [18:52:11]MH_I2C_Read... [18:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:11]Read from MH i2c: E2 [18:52:11]MH_I2C_Read... [18:52:11]Read from MH i2c: E2 17 00 [18:52:11]MH_I2C_Read... [18:52:11]Read from MH i2c: E2 17 00 65 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 45 [18:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [18:52:11]wFMCommunicate OK [18:52:11]requested_item fd.num is exist - process it [18:52:11]SAM_PROTO_GetFieldsCounters [18:52:11]wFMCommunicate request_size=4 [18:52:11]MH_SAM_APDU [18:52:11]CAPDU: 80 13 00 00 [18:52:11]Write to MH i2c: E2 08 00 66 16 80 13 00 00 00 00 00 00 F8 [18:52:11]Write i2c OK [18:52:11]MH_I2C_Read... [18:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:11]Read from MH i2c: E2 [18:52:11]MH_I2C_Read... [18:52:11]Read from MH i2c: E2 62 00 [18:52:11]MH_I2C_Read... [18:52:11]Read from MH i2c: E2 62 00 66 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F8 08 00 00 0E 04 04 00 0F 00 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 E4 [18:52:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F8 08 00 00 0E 04 04 00 0F 00 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 [18:52:11]wFMCommunicate OK [18:52:11]SAM_PROTO_GetFieldsCounters done [18:52:11]requested_item shift.num is exist - process it [18:52:11]requested_item shift.opened is exist - process it [18:52:11]req_shift_opened [18:52:11]FM_GetShiftState [18:52:11]SAM_PROTO_GetShiftState [18:52:11]wFMCommunicate request_size=4 [18:52:11]MH_SAM_APDU [18:52:11]CAPDU: 80 13 01 00 [18:52:11]Write to MH i2c: E2 08 00 67 16 80 13 01 00 00 00 00 00 FA [18:52:11]Write i2c OK [18:52:11]MH_I2C_Read... [18:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:11]Read from MH i2c: E2 [18:52:11]MH_I2C_Read... [18:52:11]Read from MH i2c: E2 0E 00 [18:52:11]MH_I2C_Read... [18:52:11]Read from MH i2c: E2 0E 00 67 16 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F3 [18:52:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [18:52:11]wFMCommunicate OK [18:52:11]SAM_PROTO_GetShiftState done [18:52:11]FM_GetShiftState done [18:52:11]req_shift_opened done [18:52:11]requested_item shift.open_date is exist - process it [18:52:11]req_shift_open_date [18:52:11]req_shift_open_date done [18:52:11]produce_requested_data done [18:52:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2296,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [18:52:11]process_action_free close_receipt [18:52:11]json_value_free [18:52:11]json_value_free done [18:52:11]process_json_proto returns [18:52:11]Send response to host [18:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2296,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [18:52:11]free response buf [18:52:11]execute_script done [18:52:11]execute_script returns [18:52:11]free content buf [18:52:11]Sock 9.Close socket [18:52:11]Sock 9.Thread stoped [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:44]ConnectInit Can't connect to host [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:22]accept exits with 8 [19:00:22]New connection [19:00:22]New thread 3067157860 created [19:00:22]Thread 3067014500 joined [19:00:22]Waiting for new connection... [19:00:22] Sock 8.Parse request [19:00:22]Sock 8.Check first char [19:00:22]Sock 8.First char is OK [19:00:22]request: POST /json_proto HTTP/1.0 [19:00:22]Method: POST [19:00:22]URL: /json_proto [19:00:22]Method is POST - this is cgi request [19:00:22]url: /json_proto [19:00:22]query_string will be loaded in cgi processing [19:00:22]execute_cgi json_proto POST (null) [19:00:22]execute_cgi path=json_proto method=POST [19:00:22]POST find Content-Length [19:00:22]Host: 172.17.45.132:8080 [19:00:22]Content-Length: 1199 [19:00:22]Content-Type: application/json [19:00:22] [19:00:22]POST finish read [19:00:22]Found Content-Length = 1199 [19:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610066\u000A29.07.2024 18:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 20.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 1514.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4048426\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:22]execute_script... [19:00:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610066\u000A29.07.2024 18:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 20.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 1514.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4048426\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:22]POST & json_proto [19:00:22]process_json_proto [19:00:22]json parsed OK: [19:00:22]protocol is kg_v1.0 [19:00:22]action value=print_text [19:00:22]process_action print_text [19:00:22]cmd_print_text [19:00:22]ExternCall_PrintAddStr [19:00:22]wPrintStart [19:00:22]Write to MH i2c: 01 00 00 68 16 7E [19:00:22]Write i2c OK [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: 01 [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: 01 07 00 [19:00:22]MH_I2C_Read... [19:00:22]Read from MH i2c: 01 07 00 68 16 00 00 00 00 00 FF 0F 93 [19:00:22]RasterBufferAndPrint [19:00:22]line *****ТОВАРНЫЙ ЧЕК***** [19:00:22]line АЗС 127 [19:00:22]line Партнер нефть [19:00:22]line 02508201610067 [19:00:22]line Кассир : Мансуров А. [19:00:22]line Счет N : (1)610066 [19:00:22]line 29.07.2024 18:49 [19:00:22]line ПРОДАЖА [19:00:22]line ТРК (МРК, ГНК): 1 [19:00:22]line Вид ГСМ : 2710194210 [19:00:22]line ДТ-К-2 [19:00:22]line 20.000 x 75.70 [19:00:22]line ИТОГ: 1514.00 [19:00:22]line Тип оплаты: Талоны: Топливные Талоны [19:00:22]line 4048426 [19:00:22]line ______________________ [19:00:22]line (подпись) [19:00:22]written 0, free lines is 4095 [19:00:23]Write to MH i2c: 01 00 00 7C 16 92 [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: 01 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: 01 07 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 0F 0E B6 [19:00:23]RasterBufferAndPrint [19:00:23]line [19:00:23]line [19:00:23]line [19:00:23]line [19:00:23]line [19:00:23]written 0, free lines is 3600 [19:00:23]MH_Cut [19:00:23]Write to MH i2c: D1 01 00 83 16 01 6B [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: D1 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: D1 01 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: D1 01 00 83 16 00 6A [19:00:23]Write to MH i2c: 01 00 00 84 16 9A [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]*** Cut start [19:00:23]*** Partial cut [19:00:23]*** CUTSNS_PIN = 1 [19:00:23]*** CUTSNS_PIN = 0 [19:00:23]*** Brake cut motor [19:00:24]Read from MH i2c: 01 [19:00:24]MH_I2C_Read... [19:00:24]*** Stop cut motor [19:00:24]*** Cut end [19:00:24]Read from MH i2c: 01 07 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: 01 07 00 84 16 00 00 00 00 00 FF 0F AF [19:00:24]process_action print_text done [19:00:24]requested_data is exist [19:00:24]produce_requested_data [19:00:24]requested_item fm.sn is exist - process it [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 11 00 00 [19:00:24]Write to MH i2c: E2 08 00 85 16 80 11 00 00 00 00 00 00 15 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 17 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 17 00 85 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [19:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:00:24]wFMCommunicate OK [19:00:24]requested_item fd.num is exist - process it [19:00:24]SAM_PROTO_GetFieldsCounters [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 13 00 00 [19:00:24]Write to MH i2c: E2 08 00 86 16 80 13 00 00 00 00 00 00 18 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 62 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 62 00 86 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F8 08 00 00 0E 04 04 00 0F 00 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 04 [19:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F8 08 00 00 0E 04 04 00 0F 00 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 [19:00:24]wFMCommunicate OK [19:00:24]SAM_PROTO_GetFieldsCounters done [19:00:24]requested_item shift.num is exist - process it [19:00:24]requested_item shift.opened is exist - process it [19:00:24]req_shift_opened [19:00:24]FM_GetShiftState [19:00:24]SAM_PROTO_GetShiftState [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 13 01 00 [19:00:24]Write to MH i2c: E2 08 00 87 16 80 13 01 00 00 00 00 00 1A [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0E 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0E 00 87 16 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 13 [19:00:24]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:00:24]wFMCommunicate OK [19:00:24]SAM_PROTO_GetShiftState done [19:00:24]FM_GetShiftState done [19:00:24]req_shift_opened done [19:00:24]requested_item shift.open_date is exist - process it [19:00:24]req_shift_open_date [19:00:24]req_shift_open_date done [19:00:24]produce_requested_data done [19:00:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2296,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:00:24]process_action_free print_text [19:00:24]json_value_free [19:00:24]json_value_free done [19:00:24]process_json_proto returns [19:00:24]Send response to host [19:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2296,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:00:24]free response buf [19:00:24]execute_script done [19:00:24]execute_script returns [19:00:24]free content buf [19:00:24]Sock 8.Close socket [19:00:24]Sock 8.Thread stoped [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:42]accept exits with 9 [19:01:42]New connection [19:01:42]New thread 3067014500 created [19:01:42]Thread 3067157860 joined [19:01:42]Waiting for new connection... [19:01:42] Sock 9.Parse request [19:01:42]Sock 9.Check first char [19:01:42]Sock 9.First char is OK [19:01:42]request: POST /json_proto HTTP/1.0 [19:01:42]Method: POST [19:01:42]URL: /json_proto [19:01:42]Method is POST - this is cgi request [19:01:42]url: /json_proto [19:01:42]query_string will be loaded in cgi processing [19:01:42]execute_cgi json_proto POST (null) [19:01:42]execute_cgi path=json_proto method=POST [19:01:42]POST find Content-Length [19:01:42]Host: 172.17.45.132:8080 [19:01:42]Content-Length: 677 [19:01:42]Content-Type: application/json [19:01:42] [19:01:42]POST finish read [19:01:42]Found Content-Length = 677 [19:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:42]execute_script... [19:01:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:42]POST & json_proto [19:01:42]process_json_proto [19:01:42]json parsed OK: [19:01:42]protocol is kg_v1.0 [19:01:42]action value=close_receipt [19:01:42]process_action close_receipt [19:01:42]cmd_close_receipt [19:01:42]MH_GetDate [19:01:42]Write to MH i2c: F0 00 00 88 16 8D [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: F0 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: F0 09 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: F0 09 00 88 16 00 18 E7 A7 66 E3 0B 90 66 86 [19:01:42]GetLastDocTimeStamp 1722279128 [19:01:42]current date 1722279704 [19:01:42]FM_GetShiftState [19:01:42]SAM_PROTO_GetShiftState [19:01:42]wFMCommunicate request_size=4 [19:01:42]MH_SAM_APDU [19:01:42]CAPDU: 80 13 01 00 [19:01:42]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [19:01:42]Write i2c OK [19:01:42]MH_I2C_Read... [19:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:42]Read from MH i2c: E2 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 0E 00 [19:01:42]MH_I2C_Read... [19:01:42]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 15 [19:01:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:01:42]wFMCommunicate OK [19:01:42]SAM_PROTO_GetShiftState done [19:01:42]FM_GetShiftState done [19:01:42]opened in 1722213119 [19:01:42]opened+sec_in_day 1722299519 [19:01:42]quantity*price = 40002 [19:01:42]sum+1 = 40003 [19:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 146 29.07.2024 19:01 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2297 ФПД: 170626627020965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190144&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2297&fm=170626627020965&tin=02508201610067®Number=0000000000189667&sum=40000 [19:01:43]StoreToDocumentArchive [19:01:43]shift 15 fd 2297 [19:01:43]save to /storage/0015/doc_00002297 [19:01:43]save last doc name /storage/0015/doc_00002297 to /storage/kkm_last_doc_name [19:01:43]save OK [19:01:43]Clear old archive folders... [19:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:43]tlvbuf is 01FF7030 [19:01:43]SAM_PROTO_ClearQueue [19:01:43]wFMCommunicate request_size=4 [19:01:43]MH_SAM_APDU [19:01:43]CAPDU: 80 09 00 00 [19:01:43]Write to MH i2c: E2 08 00 96 16 80 09 00 00 00 00 00 00 1E [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:43]Read from MH i2c: E2 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: E2 03 00 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: E2 03 00 96 16 00 90 00 20 [19:01:43]RAPDU: 90 00 [19:01:43]wFMCommunicate OK [19:01:43]SAM_PROTO_ClearQueue done [19:01:43]KKMCreateOFDPacket [19:01:43]OFDProtocolAddRootSTLVToBuf [19:01:43]FM_MakeSignedData [19:01:43]FM_MakeSignedData [19:01:43]SAM_PROTO_SignData [19:01:43]wFMCommunicate request_size=4 [19:01:43]MH_SAM_APDU [19:01:43]CAPDU: 80 0D 01 02 [19:01:43]Write to MH i2c: E2 08 00 97 16 80 0D 01 02 00 00 00 00 26 [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:43]Read from MH i2c: E2 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: E2 03 00 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: E2 03 00 97 16 00 90 00 21 [19:01:43]RAPDU: 90 00 [19:01:43]wFMCommunicate OK [19:01:43]wFMCommunicate request_size=255 [19:01:43]MH_SAM_APDU [19:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F9 08 00 00 35 04 06 00 9B [19:01:43]Write to MH i2c: E2 02 01 98 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F9 08 00 00 35 04 06 00 9B 00 00 D9 [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [19:01:44]RAPDU: 90 00 [19:01:44]wFMCommunicate OK [19:01:44]wFMCommunicate request_size=10 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 0D 02 02 05 2F 1B 7E 28 A5 [19:01:44]Write to MH i2c: E2 0D 00 99 16 80 0D 02 02 05 00 2F 1B 7E 28 A5 00 00 C8 [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [19:01:44]RAPDU: 90 00 [19:01:44]wFMCommunicate OK [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 0D 03 02 [19:01:44]Write to MH i2c: E2 08 00 9A 16 80 0D 03 02 00 00 00 00 2B [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 0B 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 0B 00 9A 16 00 76 85 B8 36 52 8B 97 3C 90 00 C5 [19:01:44]RAPDU: 76 85 B8 36 52 8B 97 3C 90 00 [19:01:44]wFMCommunicate OK [19:01:44]SAM_PROTO_SignData done [19:01:44]FM_MakeSignedData done [19:01:44]CreateOFDProtocolMessage [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 11 00 00 [19:01:44]Write to MH i2c: E2 08 00 9B 16 80 11 00 00 00 00 00 00 2B [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 17 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 17 00 9B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [19:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:01:44]wFMCommunicate OK [19:01:44]CreateOFDProtocolMessage done [19:01:44]OFDSenderStorePacket 2297 [19:01:44]StoreOFDPacket docnum=2297 [19:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D9 63 07 01 A5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F9 08 00 00 35 04 06 00 9B 2F 1B 7E 28 A5 76 85 B8 36 52 8B 97 3C [19:01:44]CheckFolder [19:01:44]dirname=/storage/ofd_packets [19:01:44]CheckFolder done [19:01:44]ProducePacketName [19:01:44]name=ofd_packets/00002297 [19:01:44]NVStorageSaveData ofd_packets/00002297 [19:01:44]File name is /storage/ofd_packets/00002297 [19:01:44]Write 301 bytes [19:01:44]NVStorageSaveData done [19:01:44]OFDSenderStorePacket done [19:01:44]KKMCreateOFDPacket done [19:01:44]NVStorageSaveData kkm_last_timestamp [19:01:44]File name is /storage/kkm_last_timestamp [19:01:44]Write 4 bytes [19:01:44]NVStorageSaveData done [19:01:44]ExternCall_PrintAddStr [19:01:44]wPrintStart [19:01:44]Write to MH i2c: 01 00 00 9C 16 B2 [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: 01 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: 01 07 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 FF 0F C7 [19:01:44]RasterBufferAndPrint [19:01:44]line Счет N : (1)610068 [19:01:44]line ИНН: 02508201610067 [19:01:44]line Контрольно-Кассовый Чек [19:01:44]line ПРОДАЖА [19:01:44]line ТРК (МРК, ГНК) : 32 [19:01:44]line Товар: 2710124130 [19:01:44]line Аи-92-К-2 [19:01:44]line 5.900 * 67.80 [19:01:44]line = 400.02 [19:01:44]line НДС 12% НСП 1% [19:01:44]line > о реализуемом товаре [19:01:44]line ОКРУГЛЕНИЕ: -0.02 [19:01:44]line ИТОГО: 400.00 [19:01:44]line Внесено: 400.00 [19:01:44]line СДАЧА: 0.00 [19:01:44]line НСП 1% : 3.54 [19:01:44]line НДС 12% : 42.48 [19:01:44]line Наличными: 400.00 [19:01:44]line Безнал.: 0.00 [19:01:44]line Место: АЗС № 127 "Партнер Нефть" [19:01:44]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:01:44]line СНО: Общий режим [19:01:44]line Чек 146 29.07.2024 19:01 [19:01:44]line Смена: 15 ФФД: 1.0 [19:01:44]line ЗНМ: 0300000161 [19:01:44]line РНМ: 0000000000189667 [19:01:44]line Версия ККМ: v1.0 [19:01:44]line ФМ: 0000000002094248 [19:01:44]line ФД: 2297 [19:01:44]line ФПД: 170626627020965 [19:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190144&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2297&fm=170626627020965&tin=02508201610067®Number=0000000000189667&sum=40000 [19:01:44]OFD Sender: Processing packet 2297 [packets to send 1, broken 0] [19:01:44]ProducePacketName [19:01:44]name=ofd_packets/00002297 [19:01:44]OFD Sender: To server: pG, [19:01:44]CommunicateWithHost lk.salyk.kg:30040 [19:01:44]ConnectInit lk.salyk.kg [19:01:44]written 0, free lines is 4095 [19:01:44]Connected sock=10 [19:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 D9 63 07 01 A5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 18 E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 F9 08 00 00 35 04 06 00 9B 2F 1B 7E 28 A5 76 85 B8 36 52 8B 97 3C [19:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B2 E3 47 00 A0 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 32 30 39 34 32 34 38 10 04 04 00 F9 08 00 00 F4 03 04 00 83 92 A7 66 B6 04 01 00 00 DA DB 88 B8 2F A5 EB 3E [19:01:44]CommunicateWithHost err = 0 [19:01:44]CheckOFDResponse [19:01:44]1017 (14) - 77093643461234 [19:01:44]1041 (16) - 0000000002094248 [19:01:44]1040 (4) - 2297 [19:01:44]1012 (4) - 29.07.2024 13:00 [19:01:44]1206 (1) - 0 [19:01:44]OFD Sender: Remove packet 2297 [19:01:44]ProducePacketName [19:01:44]name=ofd_packets/00002297 [19:01:44]NVStorageDeleteData [19:01:45]Write to MH i2c: 01 00 00 C7 16 DD [19:01:45]Write i2c OK [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 07 00 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 07 00 C7 16 00 00 00 00 00 F8 0C E8 [19:01:45]RasterBufferAndPrint [19:01:45]line [19:01:45]line [19:01:45]line [19:01:45]line [19:01:45]line [19:01:45]written 0, free lines is 3326 [19:01:45]MH_Cut [19:01:45]Write to MH i2c: D1 01 00 CE 16 01 B6 [19:01:45]Write i2c OK [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: D1 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: D1 01 00 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: D1 01 00 CE 16 00 B5 [19:01:45]Write to MH i2c: 01 00 00 CF 16 E5 [19:01:45]Write i2c OK [19:01:45]MH_I2C_Read... [19:01:45]OFD Sender: No OFD packet to send [19:01:45]*** Cut start [19:01:45]*** Partial cut [19:01:45]*** CUTSNS_PIN = 1 [19:01:45]*** CUTSNS_PIN = 0 [19:01:45]*** Brake cut motor [19:01:46]Read from MH i2c: 01 [19:01:46]MH_I2C_Read... [19:01:46]*** Stop cut motor [19:01:46]*** Cut end [19:01:46]Read from MH i2c: 01 07 00 [19:01:46]MH_I2C_Read... [19:01:46]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [19:01:46]process_action close_receipt done [19:01:46]requested_data is exist [19:01:46]produce_requested_data [19:01:46]requested_item fm.sn is exist - process it [19:01:46]wFMCommunicate request_size=4 [19:01:46]MH_SAM_APDU [19:01:46]CAPDU: 80 11 00 00 [19:01:46]Write to MH i2c: E2 08 00 D0 16 80 11 00 00 00 00 00 00 60 [19:01:46]Write i2c OK [19:01:46]MH_I2C_Read... [19:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:46]Read from MH i2c: E2 [19:01:46]MH_I2C_Read... [19:01:46]Read from MH i2c: E2 17 00 [19:01:46]MH_I2C_Read... [19:01:46]Read from MH i2c: E2 17 00 D0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B0 [19:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:01:46]wFMCommunicate OK [19:01:46]requested_item fd.num is exist - process it [19:01:46]SAM_PROTO_GetFieldsCounters [19:01:46]wFMCommunicate request_size=4 [19:01:46]MH_SAM_APDU [19:01:46]CAPDU: 80 13 00 00 [19:01:46]Write to MH i2c: E2 08 00 D1 16 80 13 00 00 00 00 00 00 63 [19:01:46]Write i2c OK [19:01:46]MH_I2C_Read... [19:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:46]Read from MH i2c: E2 [19:01:46]MH_I2C_Read... [19:01:46]Read from MH i2c: E2 62 00 [19:01:46]MH_I2C_Read... [19:01:46]Read from MH i2c: E2 62 00 D1 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F9 08 00 00 0E 04 04 00 0F 00 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 53 [19:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 F9 08 00 00 0E 04 04 00 0F 00 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 [19:01:46]wFMCommunicate OK [19:01:46]SAM_PROTO_GetFieldsCounters done [19:01:46]requested_item shift.num is exist - process it [19:01:46]requested_item shift.opened is exist - process it [19:01:46]req_shift_opened [19:01:46]FM_GetShiftState [19:01:46]SAM_PROTO_GetShiftState [19:01:46]wFMCommunicate request_size=4 [19:01:46]MH_SAM_APDU [19:01:46]CAPDU: 80 13 01 00 [19:01:46]Write to MH i2c: E2 08 00 D2 16 80 13 01 00 00 00 00 00 65 [19:01:46]Write i2c OK [19:01:46]MH_I2C_Read... [19:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:46]Read from MH i2c: E2 [19:01:46]MH_I2C_Read... [19:01:46]Read from MH i2c: E2 0E 00 [19:01:46]MH_I2C_Read... [19:01:46]Read from MH i2c: E2 0E 00 D2 16 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5E [19:01:46]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:01:46]wFMCommunicate OK [19:01:46]SAM_PROTO_GetShiftState done [19:01:46]FM_GetShiftState done [19:01:46]req_shift_opened done [19:01:46]requested_item shift.open_date is exist - process it [19:01:46]req_shift_open_date [19:01:46]req_shift_open_date done [19:01:46]produce_requested_data done [19:01:46]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2297,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:01:46]process_action_free close_receipt [19:01:46]json_value_free [19:01:46]json_value_free done [19:01:46]process_json_proto returns [19:01:46]Send response to host [19:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2297,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:01:46]free response buf [19:01:46]execute_script done [19:01:46]execute_script returns [19:01:46]free content buf [19:01:46]Sock 9.Close socket [19:01:46]Sock 9.Thread stoped [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]accept exits with 8 [19:02:20]New connection [19:02:20]New thread 3067157860 created [19:02:20]Thread 3067014500 joined [19:02:20]Waiting for new connection... [19:02:20] Sock 8.Parse request [19:02:20]Sock 8.Check first char [19:02:20]Sock 8.First char is OK [19:02:20]request: POST /json_proto HTTP/1.0 [19:02:20]Method: POST [19:02:20]URL: /json_proto [19:02:20]Method is POST - this is cgi request [19:02:20]url: /json_proto [19:02:20]query_string will be loaded in cgi processing [19:02:20]execute_cgi json_proto POST (null) [19:02:20]execute_cgi path=json_proto method=POST [19:02:20]POST find Content-Length [19:02:20]Host: 172.17.45.132:8080 [19:02:20]Content-Length: 678 [19:02:20]Content-Type: application/json [19:02:20] [19:02:20]POST finish read [19:02:20]Found Content-Length = 678 [19:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 19.820, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:20]execute_script... [19:02:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 19.820, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:20]POST & json_proto [19:02:20]process_json_proto [19:02:20]json parsed OK: [19:02:20]protocol is kg_v1.0 [19:02:20]action value=close_receipt [19:02:20]process_action close_receipt [19:02:20]cmd_close_receipt [19:02:20]MH_GetDate [19:02:20]Write to MH i2c: F0 00 00 D3 16 D8 [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 09 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 09 00 D3 16 00 3D E7 A7 66 E3 0B 90 66 F6 [19:02:20]GetLastDocTimeStamp 1722279704 [19:02:20]current date 1722279741 [19:02:20]FM_GetShiftState [19:02:20]SAM_PROTO_GetShiftState [19:02:20]wFMCommunicate request_size=4 [19:02:20]MH_SAM_APDU [19:02:20]CAPDU: 80 13 01 00 [19:02:20]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:20]Read from MH i2c: E2 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: E2 0E 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 60 [19:02:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:02:20]wFMCommunicate OK [19:02:20]SAM_PROTO_GetShiftState done [19:02:20]FM_GetShiftState done [19:02:20]opened in 1722213119 [19:02:20]opened+sec_in_day 1722299519 [19:02:20]quantity*price = 150037 [19:02:20]sum+1 = 150038 [19:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 147 29.07.2024 19:02 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2298 ФПД: 210554264377161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190221&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2298&fm=210554264377161&tin=02508201610067®Number=0000000000189667&sum=150000 [19:02:21]StoreToDocumentArchive [19:02:21]shift 15 fd 2298 [19:02:21]save to /storage/0015/doc_00002298 [19:02:21]save last doc name /storage/0015/doc_00002298 to /storage/kkm_last_doc_name [19:02:21]save OK [19:02:21]Clear old archive folders... [19:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:02:21]tlvbuf is 01F5A7C0 [19:02:21]SAM_PROTO_ClearQueue [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 09 00 00 [19:02:21]Write to MH i2c: E2 08 00 E1 16 80 09 00 00 00 00 00 00 69 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]SAM_PROTO_ClearQueue done [19:02:21]KKMCreateOFDPacket [19:02:21]OFDProtocolAddRootSTLVToBuf [19:02:21]FM_MakeSignedData [19:02:21]FM_MakeSignedData [19:02:21]SAM_PROTO_SignData [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 01 02 [19:02:21]Write to MH i2c: E2 08 00 E2 16 80 0D 01 02 00 00 00 00 71 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 E2 16 00 90 00 6C [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=255 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3D E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FA 08 00 00 35 04 06 00 BF 7F 7C 22 [19:02:21]Write to MH i2c: E2 02 01 E3 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3D E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FA 08 00 00 35 04 06 00 BF 7F 7C 22 00 00 74 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=7 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 02 02 02 57 49 [19:02:21]Write to MH i2c: E2 0A 00 E4 16 80 0D 02 02 02 00 57 49 00 00 18 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 03 02 [19:02:21]Write to MH i2c: E2 08 00 E5 16 80 0D 03 02 00 00 00 00 76 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 0B 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 0B 00 E5 16 00 A4 E9 7B 0F 98 D8 31 93 90 00 C2 [19:02:21]RAPDU: A4 E9 7B 0F 98 D8 31 93 90 00 [19:02:21]wFMCommunicate OK [19:02:21]SAM_PROTO_SignData done [19:02:21]FM_MakeSignedData done [19:02:21]CreateOFDProtocolMessage [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 11 00 00 [19:02:21]Write to MH i2c: E2 08 00 E6 16 80 11 00 00 00 00 00 00 76 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 17 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 17 00 E6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C6 [19:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:02:21]wFMCommunicate OK [19:02:21]CreateOFDProtocolMessage done [19:02:21]OFDSenderStorePacket 2298 [19:02:21]StoreOFDPacket docnum=2298 [19:02:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 A9 A1 04 01 D6 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3D E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FA 08 00 00 35 04 06 00 BF 7F 7C 22 57 49 A4 E9 7B 0F 98 D8 31 93 [19:02:21]CheckFolder [19:02:21]dirname=/storage/ofd_packets [19:02:21]CheckFolder done [19:02:21]ProducePacketName [19:02:21]name=ofd_packets/00002298 [19:02:21]NVStorageSaveData ofd_packets/00002298 [19:02:21]File name is /storage/ofd_packets/00002298 [19:02:21]Write 298 bytes [19:02:21]NVStorageSaveData done [19:02:21]OFDSenderStorePacket done [19:02:21]KKMCreateOFDPacket done [19:02:21]NVStorageSaveData kkm_last_timestamp [19:02:21]File name is /storage/kkm_last_timestamp [19:02:21]Write 4 bytes [19:02:21]NVStorageSaveData done [19:02:21]ExternCall_PrintAddStr [19:02:21]wPrintStart [19:02:21]Write to MH i2c: 01 00 00 E7 16 FD [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: 01 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: 01 07 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FF 0F 12 [19:02:21]RasterBufferAndPrint [19:02:21]line Счет N : (1)610069 [19:02:21]line ИНН: 02508201610067 [19:02:21]line Контрольно-Кассовый Чек [19:02:21]line ПРОДАЖА [19:02:21]line ТРК (МРК, ГНК) : 2 [19:02:21]line Товар: 2710194210 [19:02:21]line ДТ-К-2 [19:02:21]line 19.820 * 75.70 [19:02:21]line = 1500.37 [19:02:21]line НДС 12% НСП 1% [19:02:21]line > о реализуемом товаре [19:02:21]line ОКРУГЛЕНИЕ: -0.37 [19:02:21]line ИТОГО: 1500.00 [19:02:21]line Внесено: 1500.00 [19:02:21]line СДАЧА: 0.00 [19:02:21]line НСП 1% : 13.28 [19:02:21]line НДС 12% : 159.33 [19:02:21]line Наличными: 1500.00 [19:02:21]line Безнал.: 0.00 [19:02:21]line Место: АЗС № 127 "Партнер Нефть" [19:02:21]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:02:21]line СНО: Общий режим [19:02:21]line Чек 147 29.07.2024 19:02 [19:02:21]line Смена: 15 ФФД: 1.0 [19:02:21]line ЗНМ: 0300000161 [19:02:21]line РНМ: 0000000000189667 [19:02:21]line Версия ККМ: v1.0 [19:02:21]line ФМ: 0000000002094248 [19:02:21]line ФД: 2298 [19:02:21]line ФПД: 210554264377161 [19:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190221&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2298&fm=210554264377161&tin=02508201610067®Number=0000000000189667&sum=150000 [19:02:22]OFD Sender: Processing packet 2298 [packets to send 1, broken 0] [19:02:22]ProducePacketName [19:02:22]name=ofd_packets/00002298 [19:02:22]OFD Sender: To server: pG, [19:02:22]CommunicateWithHost lk.salyk.kg:30040 [19:02:22]ConnectInit lk.salyk.kg [19:02:22]written 0, free lines is 4095 [19:02:22]Connected sock=10 [19:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 A9 A1 04 01 D6 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3D E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FA 08 00 00 35 04 06 00 BF 7F 7C 22 57 49 A4 E9 7B 0F 98 D8 31 93 [19:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6D 2D 47 00 70 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 32 30 39 34 32 34 38 10 04 04 00 FA 08 00 00 F4 03 04 00 A9 92 A7 66 B6 04 01 00 00 51 6E 74 C3 CB CA 63 6A [19:02:22]CommunicateWithHost err = 0 [19:02:22]CheckOFDResponse [19:02:22]1017 (14) - 77093643461234 [19:02:22]1041 (16) - 0000000002094248 [19:02:22]1040 (4) - 2298 [19:02:22]1012 (4) - 29.07.2024 13:01 [19:02:22]1206 (1) - 0 [19:02:22]OFD Sender: Remove packet 2298 [19:02:22]ProducePacketName [19:02:22]name=ofd_packets/00002298 [19:02:22]NVStorageDeleteData [19:02:22]Write to MH i2c: 01 00 00 12 17 29 [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: 01 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: 01 07 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: 01 07 00 12 17 00 00 00 00 00 03 0D 40 [19:02:22]RasterBufferAndPrint [19:02:22]line [19:02:22]line [19:02:22]line [19:02:22]line [19:02:22]line [19:02:22]written 0, free lines is 3340 [19:02:22]MH_Cut [19:02:22]Write to MH i2c: D1 01 00 19 17 01 02 [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: D1 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: D1 01 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: D1 01 00 19 17 00 01 [19:02:22]Write to MH i2c: 01 00 00 1A 17 31 [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:23]OFD Sender: No OFD packet to send [19:02:23]*** Cut start [19:02:23]*** Partial cut [19:02:23]*** CUTSNS_PIN = 1 [19:02:23]*** CUTSNS_PIN = 0 [19:02:23]*** Brake cut motor [19:02:23]Read from MH i2c: 01 [19:02:23]MH_I2C_Read... [19:02:23]*** Stop cut motor [19:02:23]*** Cut end [19:02:23]Read from MH i2c: 01 07 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: 01 07 00 1A 17 00 00 00 00 00 FF 0F 46 [19:02:23]process_action close_receipt done [19:02:23]requested_data is exist [19:02:23]produce_requested_data [19:02:23]requested_item fm.sn is exist - process it [19:02:23]wFMCommunicate request_size=4 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 11 00 00 [19:02:23]Write to MH i2c: E2 08 00 1B 17 80 11 00 00 00 00 00 00 AC [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:23]Read from MH i2c: E2 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 17 00 [19:02:23]MH_I2C_Read... [19:02:23]Read from MH i2c: E2 17 00 1B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [19:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:02:23]wFMCommunicate OK [19:02:23]requested_item fd.num is exist - process it [19:02:23]SAM_PROTO_GetFieldsCounters [19:02:23]wFMCommunicate request_size=4 [19:02:23]MH_SAM_APDU [19:02:23]CAPDU: 80 13 00 00 [19:02:23]Write to MH i2c: E2 08 00 1C 17 80 13 00 00 00 00 00 00 AF [19:02:23]Write i2c OK [19:02:23]MH_I2C_Read... [19:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:24]Read from MH i2c: E2 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 62 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 62 00 1C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FA 08 00 00 0E 04 04 00 0F 00 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 A3 [19:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FA 08 00 00 0E 04 04 00 0F 00 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 [19:02:24]wFMCommunicate OK [19:02:24]SAM_PROTO_GetFieldsCounters done [19:02:24]requested_item shift.num is exist - process it [19:02:24]requested_item shift.opened is exist - process it [19:02:24]req_shift_opened [19:02:24]FM_GetShiftState [19:02:24]SAM_PROTO_GetShiftState [19:02:24]wFMCommunicate request_size=4 [19:02:24]MH_SAM_APDU [19:02:24]CAPDU: 80 13 01 00 [19:02:24]Write to MH i2c: E2 08 00 1D 17 80 13 01 00 00 00 00 00 B1 [19:02:24]Write i2c OK [19:02:24]MH_I2C_Read... [19:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:24]Read from MH i2c: E2 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 [19:02:24]MH_I2C_Read... [19:02:24]Read from MH i2c: E2 0E 00 1D 17 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AA [19:02:24]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:02:24]wFMCommunicate OK [19:02:24]SAM_PROTO_GetShiftState done [19:02:24]FM_GetShiftState done [19:02:24]req_shift_opened done [19:02:24]requested_item shift.open_date is exist - process it [19:02:24]req_shift_open_date [19:02:24]req_shift_open_date done [19:02:24]produce_requested_data done [19:02:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2298,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:02:24]process_action_free close_receipt [19:02:24]json_value_free [19:02:24]json_value_free done [19:02:24]process_json_proto returns [19:02:24]Send response to host [19:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2298,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:02:24]free response buf [19:02:24]execute_script done [19:02:24]execute_script returns [19:02:24]free content buf [19:02:24]Sock 8.Close socket [19:02:24]Sock 8.Thread stoped [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:55]accept exits with 9 [19:03:55]New connection [19:03:55]New thread 3067014500 created [19:03:55]Thread 3067157860 joined [19:03:55]Waiting for new connection... [19:03:55] Sock 9.Parse request [19:03:55]Sock 9.Check first char [19:03:55]Sock 9.First char is OK [19:03:55]request: POST /json_proto HTTP/1.0 [19:03:55]Method: POST [19:03:55]URL: /json_proto [19:03:55]Method is POST - this is cgi request [19:03:55]url: /json_proto [19:03:55]query_string will be loaded in cgi processing [19:03:55]execute_cgi json_proto POST (null) [19:03:55]execute_cgi path=json_proto method=POST [19:03:55]POST find Content-Length [19:03:55]Host: 172.17.45.132:8080 [19:03:55]Content-Length: 914 [19:03:55]Content-Type: application/json [19:03:55] [19:03:55]POST finish read [19:03:55]Found Content-Length = 914 [19:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126549", "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": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [19:03:55]execute_script... [19:03:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126549", "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": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [19:03:55]POST & json_proto [19:03:55]process_json_proto [19:03:55]json parsed OK: [19:03:55]protocol is kg_v1.0 [19:03:55]action value=close_receipt [19:03:55]process_action close_receipt [19:03:55]cmd_close_receipt [19:03:55]MH_GetDate [19:03:55]Write to MH i2c: F0 00 00 1E 17 24 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: F0 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: F0 09 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: F0 09 00 1E 17 00 9C E7 A7 66 E3 0B 90 66 A1 [19:03:55]GetLastDocTimeStamp 1722279741 [19:03:55]current date 1722279836 [19:03:55]FM_GetShiftState [19:03:55]SAM_PROTO_GetShiftState [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 13 01 00 [19:03:55]Write to MH i2c: E2 08 00 1F 17 80 13 01 00 00 00 00 00 B3 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0E 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0E 00 1F 17 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AC [19:03:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:03:55]wFMCommunicate OK [19:03:55]SAM_PROTO_GetShiftState done [19:03:55]FM_GetShiftState done [19:03:55]opened in 1722213119 [19:03:55]opened+sec_in_day 1722299519 [19:03:55]quantity*price = 5000 [19:03:55]sum+1 = 5001 [19:03:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329937 Напиток Lipton IceTea 1л персик Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 148 29.07.2024 19:03 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2299 ФПД: 193731236819429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2299&fm=193731236819429&tin=02508201610067®Number=0000000000189667&sum=18000 0 [19:03:56]StoreToDocumentArchive [19:03:56]shift 15 fd 2299 [19:03:56]save to /storage/0015/doc_00002299 [19:03:56]save last doc name /storage/0015/doc_00002299 to /storage/kkm_last_doc_name [19:03:56]save OK [19:03:56]Clear old archive folders... [19:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=394 [19:03:56]tlvbuf is 01F58410 [19:03:56]SAM_PROTO_ClearQueue [19:03:56]wFMCommunicate request_size=4 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 09 00 00 [19:03:56]Write to MH i2c: E2 08 00 2C 17 80 09 00 00 00 00 00 00 B5 [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 2C 17 00 90 00 B7 [19:03:56]RAPDU: 90 00 [19:03:56]wFMCommunicate OK [19:03:56]SAM_PROTO_ClearQueue done [19:03:56]KKMCreateOFDPacket [19:03:56]OFDProtocolAddRootSTLVToBuf [19:03:56]FM_MakeSignedData [19:03:56]FM_MakeSignedData [19:03:56]SAM_PROTO_SignData [19:03:56]wFMCommunicate request_size=4 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 0D 01 02 [19:03:56]Write to MH i2c: E2 08 00 2D 17 80 0D 01 02 00 00 00 00 BD [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 2D 17 00 90 00 B8 [19:03:56]RAPDU: 90 00 [19:03:56]wFMCommunicate OK [19:03:56]wFMCommunicate request_size=255 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 0D 02 02 FA 03 00 8A 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F [19:03:56]Write to MH i2c: E2 02 01 2E 17 80 0D 02 02 FA 00 03 00 8A 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 CC [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [19:03:56]RAPDU: 90 00 [19:03:56]wFMCommunicate OK [19:03:56]wFMCommunicate request_size=153 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 0D 02 02 94 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 94 00 00 00 F4 03 04 00 9C E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 08 00 00 35 04 06 00 B0 32 91 8D 71 E5 [19:03:56]Write to MH i2c: E2 9C 00 2F 17 80 0D 02 02 94 00 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 94 00 00 00 F4 03 04 00 9C E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 08 00 00 35 04 06 00 B0 32 91 8D 71 E5 00 00 58 [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [19:03:56]RAPDU: 90 00 [19:03:56]wFMCommunicate OK [19:03:56]wFMCommunicate request_size=4 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 0D 03 02 [19:03:56]Write to MH i2c: E2 08 00 30 17 80 0D 03 02 00 00 00 00 C2 [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 0B 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 0B 00 30 17 00 07 75 34 DE A2 94 2C 1C 90 00 CF [19:03:56]RAPDU: 07 75 34 DE A2 94 2C 1C 90 00 [19:03:56]wFMCommunicate OK [19:03:56]SAM_PROTO_SignData done [19:03:56]FM_MakeSignedData done [19:03:56]CreateOFDProtocolMessage [19:03:56]wFMCommunicate request_size=4 [19:03:56]MH_SAM_APDU [19:03:56]CAPDU: 80 11 00 00 [19:03:56]Write to MH i2c: E2 08 00 31 17 80 11 00 00 00 00 00 00 C2 [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:56]Read from MH i2c: E2 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 17 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: E2 17 00 31 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 12 [19:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:03:56]wFMCommunicate OK [19:03:56]CreateOFDProtocolMessage done [19:03:56]OFDSenderStorePacket 2299 [19:03:56]StoreOFDPacket docnum=2299 [19:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 2F EF 96 01 C3 87 5A 03 01 00 03 00 8A 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 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 94 00 00 00 F4 03 04 00 9C E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 08 00 00 35 04 06 00 B0 32 91 8D 71 E5 07 75 34 DE A2 94 2C 1C [19:03:56]CheckFolder [19:03:56]dirname=/storage/ofd_packets [19:03:56]CheckFolder done [19:03:56]ProducePacketName [19:03:56]name=ofd_packets/00002299 [19:03:56]NVStorageSaveData ofd_packets/00002299 [19:03:56]File name is /storage/ofd_packets/00002299 [19:03:56]Write 444 bytes [19:03:56]NVStorageSaveData done [19:03:56]OFDSenderStorePacket done [19:03:56]KKMCreateOFDPacket done [19:03:56]NVStorageSaveData kkm_last_timestamp [19:03:56]File name is /storage/kkm_last_timestamp [19:03:56]Write 4 bytes [19:03:56]NVStorageSaveData done [19:03:56]ExternCall_PrintAddStr [19:03:56]wPrintStart [19:03:56]Write to MH i2c: 01 00 00 32 17 49 [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: 01 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: 01 07 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: 01 07 00 32 17 00 00 00 00 00 FF 0F 5E [19:03:56]RasterBufferAndPrint [19:03:56]line Счет N : (3)126549 [19:03:57]line ИНН: 02508201610067 [19:03:57]line Контрольно-Кассовый Чек [19:03:57]line ПРОДАЖА [19:03:57]line Товар: 4700000160358 [19:03:57]line Вода Легенда 1л [19:03:57]line 1.000 * 50.00 [19:03:57]line = 50.00 [19:03:57]line НДС 12% НСП 1% [19:03:57]line > о реализуемом товаре [19:03:57]line Товар: 4870002329937 [19:03:57]line Напиток Lipton IceTea 1л персик Regular [19:03:57]line 1.000 * 130.00 [19:03:57]line = 130.00 [19:03:57]line НДС 12% НСП 1% [19:03:57]line > о реализуемом товаре [19:03:57]line ИТОГО: 180.00 [19:03:57]line НСП 1% : 1.59 [19:03:57]line НДС 12% : 19.11 [19:03:57]line Наличными: 180.00 [19:03:57]line Безнал.: 0.00 [19:03:57]line Место: АЗС № 127 "Партнер Нефть" [19:03:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:03:57]line СНО: Общий режим [19:03:57]line Чек 148 29.07.2024 19:03 [19:03:57]line Смена: 15 ФФД: 1.0 [19:03:57]line ЗНМ: 0300000161 [19:03:57]line РНМ: 0000000000189667 [19:03:57]line Версия ККМ: v1.0 [19:03:57]line ФМ: 0000000002094248 [19:03:57]line ФД: 2299 [19:03:57]line ФПД: 193731236819429 [19:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2299&fm=193731236819429&tin=02508201610067®Number=0000000000189667&sum=18000 [19:03:57]line 0 [19:03:57]OFD Sender: Processing packet 2299 [packets to send 1, broken 0] [19:03:57]ProducePacketName [19:03:57]name=ofd_packets/00002299 [19:03:57]OFD Sender: To server: pG, [19:03:57]CommunicateWithHost lk.salyk.kg:30040 [19:03:57]ConnectInit lk.salyk.kg [19:03:57]written 0, free lines is 4095 [19:03:57]Connected sock=10 [19:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 2F EF 96 01 C3 87 5A 03 01 00 03 00 8A 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 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 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 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 94 00 00 00 F4 03 04 00 9C E7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FB 08 00 00 35 04 06 00 B0 32 91 8D 71 E5 07 75 34 DE A2 94 2C 1C [19:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FF 07 47 00 F1 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 32 30 39 34 32 34 38 10 04 04 00 FB 08 00 00 F4 03 04 00 08 93 A7 66 B6 04 01 00 00 69 49 AB 2E 36 CB BF FE [19:03:57]CommunicateWithHost err = 0 [19:03:57]CheckOFDResponse [19:03:57]1017 (14) - 77093643461234 [19:03:57]1041 (16) - 0000000002094248 [19:03:57]1040 (4) - 2299 [19:03:57]1012 (4) - 29.07.2024 13:03 [19:03:57]1206 (1) - 0 [19:03:57]OFD Sender: Remove packet 2299 [19:03:57]ProducePacketName [19:03:57]name=ofd_packets/00002299 [19:03:57]NVStorageDeleteData [19:03:57]Write to MH i2c: 01 00 00 61 17 78 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: 01 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: 01 07 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: 01 07 00 61 17 00 00 00 00 00 C5 0C 50 [19:03:57]RasterBufferAndPrint [19:03:57]line [19:03:57]line [19:03:57]line [19:03:57]line [19:03:57]line [19:03:57]written 0, free lines is 3274 [19:03:57]MH_Cut [19:03:57]Write to MH i2c: D1 01 00 68 17 01 51 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: D1 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: D1 01 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: D1 01 00 68 17 00 50 [19:03:57]Write to MH i2c: 01 00 00 69 17 80 [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:58]OFD Sender: No OFD packet to send [19:03:58]*** Cut start [19:03:58]*** Partial cut [19:03:58]*** CUTSNS_PIN = 1 [19:03:58]*** CUTSNS_PIN = 0 [19:03:58]*** Brake cut motor [19:03:59]Read from MH i2c: 01 [19:03:59]MH_I2C_Read... [19:03:59]*** Stop cut motor [19:03:59]*** Cut end [19:03:59]Read from MH i2c: 01 07 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 69 17 00 00 00 00 00 FF 0F 95 [19:03:59]process_action close_receipt done [19:03:59]requested_data is exist [19:03:59]produce_requested_data [19:03:59]requested_item fm.sn is exist - process it [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 11 00 00 [19:03:59]Write to MH i2c: E2 08 00 6A 17 80 11 00 00 00 00 00 00 FB [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 17 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 17 00 6A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4B [19:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:03:59]wFMCommunicate OK [19:03:59]requested_item fd.num is exist - process it [19:03:59]SAM_PROTO_GetFieldsCounters [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 13 00 00 [19:03:59]Write to MH i2c: E2 08 00 6B 17 80 13 00 00 00 00 00 00 FE [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 62 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 62 00 6B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FB 08 00 00 0E 04 04 00 0F 00 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 F6 [19:03:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FB 08 00 00 0E 04 04 00 0F 00 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 [19:03:59]wFMCommunicate OK [19:03:59]SAM_PROTO_GetFieldsCounters done [19:03:59]requested_item shift.num is exist - process it [19:03:59]requested_item shift.opened is exist - process it [19:03:59]req_shift_opened [19:03:59]FM_GetShiftState [19:03:59]SAM_PROTO_GetShiftState [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 13 01 00 [19:03:59]Write to MH i2c: E2 08 00 6C 17 80 13 01 00 00 00 00 00 00 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 0E 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 0E 00 6C 17 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F9 [19:03:59]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:03:59]wFMCommunicate OK [19:03:59]SAM_PROTO_GetShiftState done [19:03:59]FM_GetShiftState done [19:03:59]req_shift_opened done [19:03:59]requested_item shift.open_date is exist - process it [19:03:59]req_shift_open_date [19:03:59]req_shift_open_date done [19:03:59]produce_requested_data done [19:03:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2299,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:03:59]process_action_free close_receipt [19:03:59]json_value_free [19:03:59]json_value_free done [19:03:59]process_json_proto returns [19:03:59]Send response to host [19:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2299,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:03:59]free response buf [19:03:59]execute_script done [19:03:59]execute_script returns [19:03:59]free content buf [19:03:59]Sock 9.Close socket [19:03:59]Sock 9.Thread stoped [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:39]accept exits with 8 [19:06:39]New connection [19:06:39]New thread 3067157860 created [19:06:39]Thread 3067014500 joined [19:06:39]Waiting for new connection... [19:06:39] Sock 8.Parse request [19:06:39]Sock 8.Check first char [19:06:39]Sock 8.First char is OK [19:06:39]request: POST /json_proto HTTP/1.0 [19:06:39]Method: POST [19:06:39]URL: /json_proto [19:06:39]Method is POST - this is cgi request [19:06:39]url: /json_proto [19:06:39]query_string will be loaded in cgi processing [19:06:39]execute_cgi json_proto POST (null) [19:06:39]execute_cgi path=json_proto method=POST [19:06:39]POST find Content-Length [19:06:39]Host: 172.17.45.132:8080 [19:06:39]Content-Length: 677 [19:06:39]Content-Type: application/json [19:06:39] [19:06:39]POST finish read [19:06:39]Found Content-Length = 677 [19:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:39]execute_script... [19:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:39]POST & json_proto [19:06:39]process_json_proto [19:06:39]json parsed OK: [19:06:39]protocol is kg_v1.0 [19:06:39]action value=close_receipt [19:06:39]process_action close_receipt [19:06:39]cmd_close_receipt [19:06:39]MH_GetDate [19:06:39]Write to MH i2c: F0 00 00 6D 17 73 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 09 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 09 00 6D 17 00 41 E8 A7 66 E3 0B 90 66 96 [19:06:39]GetLastDocTimeStamp 1722279836 [19:06:39]current date 1722280001 [19:06:39]FM_GetShiftState [19:06:39]SAM_PROTO_GetShiftState [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 13 01 00 [19:06:39]Write to MH i2c: E2 08 00 6E 17 80 13 01 00 00 00 00 00 02 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 6E 17 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FB [19:06:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_GetShiftState done [19:06:39]FM_GetShiftState done [19:06:39]opened in 1722213119 [19:06:39]opened+sec_in_day 1722299519 [19:06:39]quantity*price = 65020 [19:06:39]sum+1 = 65021 [19:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 149 29.07.2024 19:06 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2300 ФПД: 110130807884166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190641&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2300&fm=110130807884166&tin=02508201610067®Number=0000000000189667&sum=65000 [19:06:40]StoreToDocumentArchive [19:06:40]shift 15 fd 2300 [19:06:40]save to /storage/0015/doc_00002300 [19:06:40]save last doc name /storage/0015/doc_00002300 to /storage/kkm_last_doc_name [19:06:40]save OK [19:06:40]Clear old archive folders... [19:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:40]tlvbuf is 01F8ECB0 [19:06:40]SAM_PROTO_ClearQueue [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 09 00 00 [19:06:40]Write to MH i2c: E2 08 00 7B 17 80 09 00 00 00 00 00 00 04 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]SAM_PROTO_ClearQueue done [19:06:41]KKMCreateOFDPacket [19:06:41]OFDProtocolAddRootSTLVToBuf [19:06:41]FM_MakeSignedData [19:06:41]FM_MakeSignedData [19:06:41]SAM_PROTO_SignData [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 0D 01 02 [19:06:41]Write to MH i2c: E2 08 00 7C 17 80 0D 01 02 00 00 00 00 0C [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 7C 17 00 90 00 07 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]wFMCommunicate request_size=255 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 41 E8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 08 00 00 35 04 06 00 64 [19:06:41]Write to MH i2c: E2 02 01 7D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 41 E8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 08 00 00 35 04 06 00 64 00 00 A6 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 7D 17 00 90 00 08 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]wFMCommunicate request_size=10 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 0D 02 02 05 29 D3 AE C9 86 [19:06:41]Write to MH i2c: E2 0D 00 7E 17 80 0D 02 02 05 00 29 D3 AE C9 86 00 00 12 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 03 00 7E 17 00 90 00 09 [19:06:41]RAPDU: 90 00 [19:06:41]wFMCommunicate OK [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 0D 03 02 [19:06:41]Write to MH i2c: E2 08 00 7F 17 80 0D 03 02 00 00 00 00 11 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 0B 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 0B 00 7F 17 00 16 0C A4 E2 A4 5C 10 5A 90 00 24 [19:06:41]RAPDU: 16 0C A4 E2 A4 5C 10 5A 90 00 [19:06:41]wFMCommunicate OK [19:06:41]SAM_PROTO_SignData done [19:06:41]FM_MakeSignedData done [19:06:41]CreateOFDProtocolMessage [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 11 00 00 [19:06:41]Write to MH i2c: E2 08 00 80 17 80 11 00 00 00 00 00 00 11 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 80 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 61 [19:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:06:41]wFMCommunicate OK [19:06:41]CreateOFDProtocolMessage done [19:06:41]OFDSenderStorePacket 2300 [19:06:41]StoreOFDPacket docnum=2300 [19:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 60 CE 07 01 38 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 41 E8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 08 00 00 35 04 06 00 64 29 D3 AE C9 86 16 0C A4 E2 A4 5C 10 5A [19:06:41]CheckFolder [19:06:41]dirname=/storage/ofd_packets [19:06:41]CheckFolder done [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00002300 [19:06:41]NVStorageSaveData ofd_packets/00002300 [19:06:41]File name is /storage/ofd_packets/00002300 [19:06:41]Write 301 bytes [19:06:41]NVStorageSaveData done [19:06:41]OFDSenderStorePacket done [19:06:41]KKMCreateOFDPacket done [19:06:41]NVStorageSaveData kkm_last_timestamp [19:06:41]File name is /storage/kkm_last_timestamp [19:06:41]Write 4 bytes [19:06:41]NVStorageSaveData done [19:06:41]ExternCall_PrintAddStr [19:06:41]wPrintStart [19:06:41]Write to MH i2c: 01 00 00 81 17 98 [19:06:41]OFD Sender: Processing packet 2300 [packets to send 1, broken 0] [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00002300 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]OFD Sender: To server: pG, [19:06:41]CommunicateWithHost lk.salyk.kg:30040 [19:06:41]ConnectInit lk.salyk.kg [19:06:41]Read from MH i2c: 01 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 FF 0F AD [19:06:41]RasterBufferAndPrint [19:06:41]line Счет N : (1)610072 [19:06:41]line ИНН: 02508201610067 [19:06:41]line Контрольно-Кассовый Чек [19:06:41]line ПРОДАЖА [19:06:41]line ТРК (МРК, ГНК) : 32 [19:06:41]line Товар: 2710124130 [19:06:41]line Аи-92-К-2 [19:06:41]line 9.590 * 67.80 [19:06:41]line = 650.20 [19:06:41]line НДС 12% НСП 1% [19:06:41]line > о реализуемом товаре [19:06:41]line ОКРУГЛЕНИЕ: -0.20 [19:06:41]line ИТОГО: 650.00 [19:06:41]line Внесено: 650.00 [19:06:41]line СДАЧА: 0.00 [19:06:41]line НСП 1% : 5.75 [19:06:41]line НДС 12% : 69.05 [19:06:41]line Наличными: 650.00 [19:06:41]line Безнал.: 0.00 [19:06:41]line Место: АЗС № 127 "Партнер Нефть" [19:06:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:06:41]line СНО: Общий режим [19:06:41]line Чек 149 29.07.2024 19:06 [19:06:41]line Смена: 15 ФФД: 1.0 [19:06:41]line ЗНМ: 0300000161 [19:06:41]line РНМ: 0000000000189667 [19:06:41]line Версия ККМ: v1.0 [19:06:41]line ФМ: 0000000002094248 [19:06:41]line ФД: 2300 [19:06:41]line ФПД: 110130807884166 [19:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190641&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2300&fm=110130807884166&tin=02508201610067®Number=0000000000189667&sum=65000 [19:06:41]written 0, free lines is 4095 [19:06:41]Connected sock=11 [19:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 60 CE 07 01 38 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 41 E8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 08 00 00 35 04 06 00 64 29 D3 AE C9 86 16 0C A4 E2 A4 5C 10 5A [19:06:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1F DE 47 00 D5 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FC 08 00 00 F4 03 04 00 AD 93 A7 66 B6 04 01 00 00 19 F4 56 EF 91 E4 6B FC [19:06:42]CommunicateWithHost err = 0 [19:06:42]CheckOFDResponse [19:06:42]1017 (14) - 77093643461234 [19:06:42]1041 (16) - 0000000002094248 [19:06:42]1040 (4) - 2300 [19:06:42]1012 (4) - 29.07.2024 13:05 [19:06:42]1206 (1) - 0 [19:06:42]OFD Sender: Remove packet 2300 [19:06:42]ProducePacketName [19:06:42]name=ofd_packets/00002300 [19:06:42]NVStorageDeleteData [19:06:42]Write to MH i2c: 01 00 00 AC 17 C3 [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: 01 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: 01 07 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: 01 07 00 AC 17 00 00 00 00 00 EC 0C C2 [19:06:42]RasterBufferAndPrint [19:06:42]line [19:06:42]line [19:06:42]line [19:06:42]line [19:06:42]line [19:06:42]written 0, free lines is 3314 [19:06:42]MH_Cut [19:06:42]Write to MH i2c: D1 01 00 B3 17 01 9C [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: D1 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: D1 01 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: D1 01 00 B3 17 00 9B [19:06:42]Write to MH i2c: 01 00 00 B4 17 CB [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]OFD Sender: No OFD packet to send [19:06:43]*** Cut start [19:06:43]*** Partial cut [19:06:43]*** CUTSNS_PIN = 1 [19:06:43]*** CUTSNS_PIN = 0 [19:06:43]*** Brake cut motor [19:06:43]Read from MH i2c: 01 [19:06:43]MH_I2C_Read... [19:06:43]*** Stop cut motor [19:06:43]*** Cut end [19:06:43]Read from MH i2c: 01 07 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: 01 07 00 B4 17 00 00 00 00 00 FF 0F E0 [19:06:43]process_action close_receipt done [19:06:43]requested_data is exist [19:06:43]produce_requested_data [19:06:43]requested_item fm.sn is exist - process it [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 11 00 00 [19:06:43]Write to MH i2c: E2 08 00 B5 17 80 11 00 00 00 00 00 00 46 [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 17 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 17 00 B5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 96 [19:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:06:43]wFMCommunicate OK [19:06:43]requested_item fd.num is exist - process it [19:06:43]SAM_PROTO_GetFieldsCounters [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 13 00 00 [19:06:43]Write to MH i2c: E2 08 00 B6 17 80 13 00 00 00 00 00 00 49 [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 62 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 62 00 B6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FC 08 00 00 0E 04 04 00 0F 00 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 45 [19:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FC 08 00 00 0E 04 04 00 0F 00 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 [19:06:43]wFMCommunicate OK [19:06:43]SAM_PROTO_GetFieldsCounters done [19:06:43]requested_item shift.num is exist - process it [19:06:43]requested_item shift.opened is exist - process it [19:06:43]req_shift_opened [19:06:43]FM_GetShiftState [19:06:43]SAM_PROTO_GetShiftState [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 13 01 00 [19:06:43]Write to MH i2c: E2 08 00 B7 17 80 13 01 00 00 00 00 00 4B [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 0E 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 0E 00 B7 17 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 44 [19:06:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:06:43]wFMCommunicate OK [19:06:43]SAM_PROTO_GetShiftState done [19:06:43]FM_GetShiftState done [19:06:43]req_shift_opened done [19:06:43]requested_item shift.open_date is exist - process it [19:06:43]req_shift_open_date [19:06:43]req_shift_open_date done [19:06:43]produce_requested_data done [19:06:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2300,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:06:43]process_action_free close_receipt [19:06:43]json_value_free [19:06:43]json_value_free done [19:06:43]process_json_proto returns [19:06:43]Send response to host [19:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2300,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:06:43]free response buf [19:06:43]execute_script done [19:06:43]execute_script returns [19:06:43]free content buf [19:06:43]Sock 8.Close socket [19:06:43]Sock 8.Thread stoped [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:26]accept exits with 9 [19:13:26]New connection [19:13:26]New thread 3067014500 created [19:13:26]Thread 3067157860 joined [19:13:26]Waiting for new connection... [19:13:26] Sock 9.Parse request [19:13:26]Sock 9.Check first char [19:13:26]Sock 9.First char is OK [19:13:26]request: POST /json_proto HTTP/1.0 [19:13:26]Method: POST [19:13:26]URL: /json_proto [19:13:26]Method is POST - this is cgi request [19:13:26]url: /json_proto [19:13:26]query_string will be loaded in cgi processing [19:13:26]execute_cgi json_proto POST (null) [19:13:26]execute_cgi path=json_proto method=POST [19:13:26]POST find Content-Length [19:13:26]Host: 172.17.45.132:8080 [19:13:26]Content-Length: 1191 [19:13:26]Content-Type: application/json [19:13:26] [19:13:26]POST finish read [19:13:26]Found Content-Length = 1191 [19:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610074\u000A29.07.2024 19:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 79.270 x 75.70\u000A\u0418\u0422\u041E\u0413: 6000.74\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:26]execute_script... [19:13:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610074\u000A29.07.2024 19:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 79.270 x 75.70\u000A\u0418\u0422\u041E\u0413: 6000.74\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:26]POST & json_proto [19:13:26]process_json_proto [19:13:26]json parsed OK: [19:13:26]protocol is kg_v1.0 [19:13:26]action value=print_text [19:13:26]process_action print_text [19:13:26]cmd_print_text [19:13:26]ExternCall_PrintAddStr [19:13:26]wPrintStart [19:13:26]Write to MH i2c: 01 00 00 B8 17 CF [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 B8 17 00 00 00 00 00 FF 0F E4 [19:13:26]RasterBufferAndPrint [19:13:26]line *****ТОВАРНЫЙ ЧЕК***** [19:13:26]line АЗС 127 [19:13:26]line Партнер нефть [19:13:26]line 02508201610067 [19:13:26]line Кассир : Мансуров А. [19:13:26]line Счет N : (1)610074 [19:13:26]line 29.07.2024 19:02 [19:13:26]line ПРОДАЖА [19:13:26]line ТРК (МРК, ГНК): 1 [19:13:26]line Вид ГСМ : 2710194210 [19:13:26]line ДТ-К-2 [19:13:26]line 79.270 x 75.70 [19:13:26]line ИТОГ: 6000.74 [19:13:26]line Тип оплаты: Талоны: Топливная Карта [19:13:26]line 99614 [19:13:26]line ______________________ [19:13:26]line (подпись) [19:13:26]written 0, free lines is 4095 [19:13:26]Write to MH i2c: 01 00 00 CC 17 E3 [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 0F 0E 07 [19:13:26]RasterBufferAndPrint [19:13:26]line [19:13:26]line [19:13:26]line [19:13:26]line [19:13:26]line [19:13:26]written 0, free lines is 3600 [19:13:26]MH_Cut [19:13:26]Write to MH i2c: D1 01 00 D3 17 01 BC [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: D1 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: D1 01 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: D1 01 00 D3 17 00 BB [19:13:26]Write to MH i2c: 01 00 00 D4 17 EB [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:27]*** Cut start [19:13:27]*** Partial cut [19:13:27]*** CUTSNS_PIN = 1 [19:13:27]*** CUTSNS_PIN = 0 [19:13:27]*** Brake cut motor [19:13:27]Read from MH i2c: 01 [19:13:27]MH_I2C_Read... [19:13:27]*** Stop cut motor [19:13:27]*** Cut end [19:13:27]Read from MH i2c: 01 07 00 [19:13:27]MH_I2C_Read... [19:13:27]Read from MH i2c: 01 07 00 D4 17 00 00 00 00 00 FF 0F 00 [19:13:27]process_action print_text done [19:13:27]requested_data is exist [19:13:27]produce_requested_data [19:13:27]requested_item fm.sn is exist - process it [19:13:27]wFMCommunicate request_size=4 [19:13:27]MH_SAM_APDU [19:13:27]CAPDU: 80 11 00 00 [19:13:27]Write to MH i2c: E2 08 00 D5 17 80 11 00 00 00 00 00 00 66 [19:13:27]Write i2c OK [19:13:27]MH_I2C_Read... [19:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:27]Read from MH i2c: E2 [19:13:27]MH_I2C_Read... [19:13:27]Read from MH i2c: E2 17 00 [19:13:27]MH_I2C_Read... [19:13:27]Read from MH i2c: E2 17 00 D5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B6 [19:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:13:27]wFMCommunicate OK [19:13:27]requested_item fd.num is exist - process it [19:13:27]SAM_PROTO_GetFieldsCounters [19:13:27]wFMCommunicate request_size=4 [19:13:27]MH_SAM_APDU [19:13:27]CAPDU: 80 13 00 00 [19:13:27]Write to MH i2c: E2 08 00 D6 17 80 13 00 00 00 00 00 00 69 [19:13:27]Write i2c OK [19:13:27]MH_I2C_Read... [19:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:27]Read from MH i2c: E2 [19:13:27]MH_I2C_Read... [19:13:27]Read from MH i2c: E2 62 00 [19:13:27]MH_I2C_Read... [19:13:27]Read from MH i2c: E2 62 00 D6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FC 08 00 00 0E 04 04 00 0F 00 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 65 [19:13:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FC 08 00 00 0E 04 04 00 0F 00 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 [19:13:27]wFMCommunicate OK [19:13:27]SAM_PROTO_GetFieldsCounters done [19:13:27]requested_item shift.num is exist - process it [19:13:27]requested_item shift.opened is exist - process it [19:13:27]req_shift_opened [19:13:27]FM_GetShiftState [19:13:27]SAM_PROTO_GetShiftState [19:13:27]wFMCommunicate request_size=4 [19:13:27]MH_SAM_APDU [19:13:27]CAPDU: 80 13 01 00 [19:13:27]Write to MH i2c: E2 08 00 D7 17 80 13 01 00 00 00 00 00 6B [19:13:27]Write i2c OK [19:13:27]MH_I2C_Read... [19:13:27]OFD Sender: No OFD packet to send [19:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:27]Read from MH i2c: E2 [19:13:27]MH_I2C_Read... [19:13:27]Read from MH i2c: E2 0E 00 [19:13:27]MH_I2C_Read... [19:13:27]Read from MH i2c: E2 0E 00 D7 17 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 64 [19:13:27]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:13:27]wFMCommunicate OK [19:13:27]SAM_PROTO_GetShiftState done [19:13:27]FM_GetShiftState done [19:13:27]req_shift_opened done [19:13:27]requested_item shift.open_date is exist - process it [19:13:27]req_shift_open_date [19:13:27]req_shift_open_date done [19:13:27]produce_requested_data done [19:13:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2300,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:13:27]process_action_free print_text [19:13:27]json_value_free [19:13:27]json_value_free done [19:13:27]process_json_proto returns [19:13:27]Send response to host [19:13:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2300,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:13:27]free response buf [19:13:27]execute_script done [19:13:27]execute_script returns [19:13:27]free content buf [19:13:27]Sock 9.Close socket [19:13:27]Sock 9.Thread stoped [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [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:06]accept exits with 8 [19:26:06]New connection [19:26:06]New thread 3067157860 created [19:26:06]Thread 3067014500 joined [19:26:06]Waiting for new connection... [19:26:06] Sock 8.Parse request [19:26:06]Sock 8.Check first char [19:26:06]Sock 8.First char is OK [19:26:06]request: POST /json_proto HTTP/1.0 [19:26:06]Method: POST [19:26:06]URL: /json_proto [19:26:06]Method is POST - this is cgi request [19:26:06]url: /json_proto [19:26:06]query_string will be loaded in cgi processing [19:26:06]execute_cgi json_proto POST (null) [19:26:06]execute_cgi path=json_proto method=POST [19:26:06]POST find Content-Length [19:26:06]Host: 172.17.45.132:8080 [19:26:06]Content-Length: 900 [19:26:06]Content-Type: application/json [19:26:06] [19:26:06]POST finish read [19:26:06]Found Content-Length = 900 [19:26:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126550", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:06]execute_script... [19: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)126550", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:06]POST & json_proto [19:26:06]process_json_proto [19:26:06]json parsed OK: [19:26:06]protocol is kg_v1.0 [19:26:06]action value=close_receipt [19:26:06]process_action close_receipt [19:26:06]cmd_close_receipt [19:26:06]MH_GetDate [19:26:06]Write to MH i2c: F0 00 00 D8 17 DE [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: F0 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: F0 09 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: F0 09 00 D8 17 00 CF EC A7 66 E3 0B 90 66 93 [19:26:06]GetLastDocTimeStamp 1722280001 [19:26:06]current date 1722281167 [19:26:06]FM_GetShiftState [19:26:06]SAM_PROTO_GetShiftState [19:26:06]wFMCommunicate request_size=4 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 13 01 00 [19:26:06]Write to MH i2c: E2 08 00 D9 17 80 13 01 00 00 00 00 00 6D [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 0E 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 0E 00 D9 17 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 66 [19:26:06]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:26:06]wFMCommunicate OK [19:26:06]SAM_PROTO_GetShiftState done [19:26:06]FM_GetShiftState done [19:26:06]opened in 1722213119 [19:26:06]opened+sec_in_day 1722299519 [19:26:06]quantity*price = 7500 [19:26:06]sum+1 = 7501 [19:26:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.33 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 150 29.07.2024 19:26 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2301 ФПД: 76855677066292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192607&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2301&fm=76855677066292&tin=02508201610067®Number=0000000000189667&sum=13500 0 [19:26:07]StoreToDocumentArchive [19:26:07]shift 15 fd 2301 [19:26:07]save to /storage/0015/doc_00002301 [19:26:07]save last doc name /storage/0015/doc_00002301 to /storage/kkm_last_doc_name [19:26:07]save OK [19:26:07]Clear old archive folders... [19:26:07]ProcessDocumentItem done err = 0, tmpTLVsize=386 [19:26:07]tlvbuf is 01F93070 [19:26:07]SAM_PROTO_ClearQueue [19:26:07]wFMCommunicate request_size=4 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 09 00 00 [19:26:07]Write to MH i2c: E2 08 00 E6 17 80 09 00 00 00 00 00 00 6F [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 E6 17 00 90 00 71 [19:26:07]RAPDU: 90 00 [19:26:07]wFMCommunicate OK [19:26:07]SAM_PROTO_ClearQueue done [19:26:07]KKMCreateOFDPacket [19:26:07]OFDProtocolAddRootSTLVToBuf [19:26:07]FM_MakeSignedData [19:26:07]FM_MakeSignedData [19:26:07]SAM_PROTO_SignData [19:26:07]wFMCommunicate request_size=4 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 0D 01 02 [19:26:07]Write to MH i2c: E2 08 00 E7 17 80 0D 01 02 00 00 00 00 77 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 E7 17 00 90 00 72 [19:26:07]RAPDU: 90 00 [19:26:07]wFMCommunicate OK [19:26:07]wFMCommunicate request_size=255 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [19:26:07]Write to MH i2c: E2 02 01 E8 17 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 00 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 E8 17 00 90 00 73 [19:26:07]RAPDU: 90 00 [19:26:07]wFMCommunicate OK [19:26:07]wFMCommunicate request_size=145 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 0D 02 02 8C 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 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 96 00 00 00 F4 03 04 00 CF EC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 08 00 00 35 04 06 00 45 E6 5B 54 9C 34 [19:26:07]Write to MH i2c: E2 94 00 E9 17 80 0D 02 02 8C 00 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 05 00 00 00 00 07 04 06 00 BC 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 96 00 00 00 F4 03 04 00 CF EC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 08 00 00 35 04 06 00 45 E6 5B 54 9C 34 00 00 EF [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [19:26:07]RAPDU: 90 00 [19:26:07]wFMCommunicate OK [19:26:07]wFMCommunicate request_size=4 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 0D 03 02 [19:26:07]Write to MH i2c: E2 08 00 EA 17 80 0D 03 02 00 00 00 00 7C [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 0B 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 0B 00 EA 17 00 0A D0 64 A2 46 2A 70 31 90 00 6E [19:26:07]RAPDU: 0A D0 64 A2 46 2A 70 31 90 00 [19:26:07]wFMCommunicate OK [19:26:07]SAM_PROTO_SignData done [19:26:07]FM_MakeSignedData done [19:26:07]CreateOFDProtocolMessage [19:26:07]wFMCommunicate request_size=4 [19:26:07]MH_SAM_APDU [19:26:07]CAPDU: 80 11 00 00 [19:26:07]Write to MH i2c: E2 08 00 EB 17 80 11 00 00 00 00 00 00 7C [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:07]Read from MH i2c: E2 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 17 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: E2 17 00 EB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CC [19:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:26:07]wFMCommunicate OK [19:26:07]CreateOFDProtocolMessage done [19:26:07]OFDSenderStorePacket 2301 [19:26:07]StoreOFDPacket docnum=2301 [19:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 96 01 00 00 E1 64 8E 01 A2 D6 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 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 BC 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 99 05 00 00 00 00 07 04 06 00 BC 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 96 00 00 00 F4 03 04 00 CF EC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 08 00 00 35 04 06 00 45 E6 5B 54 9C 34 0A D0 64 A2 46 2A 70 31 [19:26:07]CheckFolder [19:26:07]dirname=/storage/ofd_packets [19:26:07]CheckFolder done [19:26:07]ProducePacketName [19:26:07]name=ofd_packets/00002301 [19:26:07]NVStorageSaveData ofd_packets/00002301 [19:26:07]File name is /storage/ofd_packets/00002301 [19:26:07]Write 436 bytes [19:26:07]NVStorageSaveData done [19:26:07]OFDSenderStorePacket done [19:26:07]KKMCreateOFDPacket done [19:26:07]NVStorageSaveData kkm_last_timestamp [19:26:07]File name is /storage/kkm_last_timestamp [19:26:07]Write 4 bytes [19:26:07]NVStorageSaveData done [19:26:07]ExternCall_PrintAddStr [19:26:07]wPrintStart [19:26:07]Write to MH i2c: 01 00 00 EC 17 03 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 07 00 [19:26:08]MH_I2C_Read... [19:26:08]OFD Sender: Processing packet 2301 [packets to send 1, broken 0] [19:26:08]ProducePacketName [19:26:08]name=ofd_packets/00002301 [19:26:08]Read from MH i2c: OFD Sender: To server: pG, [19:26:08]01 CommunicateWithHost lk.salyk.kg:30040 [19:26:08]07 ConnectInit lk.salyk.kg [19:26:08]00 EC 17 00 00 00 00 00 FF 0F 18 [19:26:08]RasterBufferAndPrint [19:26:08]line Счет N : (3)126550 [19:26:08]line ИНН: 02508201610067 [19:26:08]line Контрольно-Кассовый Чек [19:26:08]line ПРОДАЖА [19:26:08]line Товар: 4870112002775 [19:26:08]line Шок батончик ALBENI BITES 80гр [19:26:08]line 1.000 * 75.00 [19:26:08]line = 75.00 [19:26:08]line НДС 12% НСП 1% [19:26:08]line > о реализуемом товаре [19:26:08]line Товар: 4700000160204 [19:26:08]line Вода Легенда 1,5л [19:26:08]line 1.000 * 60.00 [19:26:08]line = 60.00 [19:26:08]line НДС 12% НСП 1% [19:26:08]line > о реализуемом товаре [19:26:08]line ИТОГО: 135.00 [19:26:08]line НСП 1% : 1.19 [19:26:08]line НДС 12% : 14.33 [19:26:08]line Наличными: 135.00 [19:26:08]line Безнал.: 0.00 [19:26:08]line Место: АЗС № 127 "Партнер Нефть" [19:26:08]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:26:08]line СНО: Общий режим [19:26:08]line Чек 150 29.07.2024 19:26 [19:26:08]line Смена: 15 ФФД: 1.0 [19:26:08]line ЗНМ: 0300000161 [19:26:08]line РНМ: 0000000000189667 [19:26:08]line Версия ККМ: v1.0 [19:26:08]line ФМ: 0000000002094248 [19:26:08]line ФД: 2301 [19:26:08]line ФПД: 76855677066292 [19:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192607&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2301&fm=76855677066292&tin=02508201610067®Number=0000000000189667&sum=13500 [19:26:08]line 0 [19:26:08]written 0, free lines is 4095 [19:26:08]Connected sock=10 [19:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 96 01 00 00 E1 64 8E 01 A2 D6 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 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 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 BC 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 99 05 00 00 00 00 07 04 06 00 BC 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 96 00 00 00 F4 03 04 00 CF EC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 08 00 00 35 04 06 00 45 E6 5B 54 9C 34 0A D0 64 A2 46 2A 70 31 [19:26:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8C 9A 47 00 53 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FD 08 00 00 F4 03 04 00 3B 98 A7 66 B6 04 01 00 00 73 04 9F A8 DB 15 7E 6B [19:26:08]CommunicateWithHost err = 0 [19:26:08]CheckOFDResponse [19:26:08]1017 (14) - 77093643461234 [19:26:08]1041 (16) - 0000000002094248 [19:26:08]1040 (4) - 2301 [19:26:08]1012 (4) - 29.07.2024 13:25 [19:26:08]1206 (1) - 0 [19:26:08]OFD Sender: Remove packet 2301 [19:26:08]ProducePacketName [19:26:08]name=ofd_packets/00002301 [19:26:08]NVStorageDeleteData [19:26:08]Write to MH i2c: 01 00 00 1B 18 33 [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: 01 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: 01 07 00 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: 01 07 00 1B 18 00 00 00 00 00 B1 0C F7 [19:26:08]RasterBufferAndPrint [19:26:08]line [19:26:08]line [19:26:08]line [19:26:08]line [19:26:08]line [19:26:08]written 0, free lines is 3255 [19:26:08]MH_Cut [19:26:08]Write to MH i2c: D1 01 00 22 18 01 0C [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: D1 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: D1 01 00 [19:26:08]MH_I2C_Read... [19:26:08]Read from MH i2c: D1 01 00 22 18 00 0B [19:26:08]Write to MH i2c: 01 00 00 23 18 3B [19:26:08]Write i2c OK [19:26:08]MH_I2C_Read... [19:26:09]OFD Sender: No OFD packet to send [19:26:09]*** Cut start [19:26:09]*** Partial cut [19:26:09]*** CUTSNS_PIN = 1 [19:26:09]*** CUTSNS_PIN = 0 [19:26:09]*** Brake cut motor [19:26:10]Read from MH i2c: 01 [19:26:10]MH_I2C_Read... [19:26:10]*** Stop cut motor [19:26:10]*** Cut end [19:26:10]Read from MH i2c: 01 07 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: 01 07 00 23 18 00 00 00 00 00 FF 0F 50 [19:26:10]process_action close_receipt done [19:26:10]requested_data is exist [19:26:10]produce_requested_data [19:26:10]requested_item fm.sn is exist - process it [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 11 00 00 [19:26:10]Write to MH i2c: E2 08 00 24 18 80 11 00 00 00 00 00 00 B6 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 17 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 17 00 24 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 06 [19:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:26:10]wFMCommunicate OK [19:26:10]requested_item fd.num is exist - process it [19:26:10]SAM_PROTO_GetFieldsCounters [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 13 00 00 [19:26:10]Write to MH i2c: E2 08 00 25 18 80 13 00 00 00 00 00 00 B9 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 62 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 62 00 25 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FD 08 00 00 0E 04 04 00 0F 00 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 B9 [19:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FD 08 00 00 0E 04 04 00 0F 00 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 [19:26:10]wFMCommunicate OK [19:26:10]SAM_PROTO_GetFieldsCounters done [19:26:10]requested_item shift.num is exist - process it [19:26:10]requested_item shift.opened is exist - process it [19:26:10]req_shift_opened [19:26:10]FM_GetShiftState [19:26:10]SAM_PROTO_GetShiftState [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 13 01 00 [19:26:10]Write to MH i2c: E2 08 00 26 18 80 13 01 00 00 00 00 00 BB [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0E 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0E 00 26 18 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B4 [19:26:10]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:26:10]wFMCommunicate OK [19:26:10]SAM_PROTO_GetShiftState done [19:26:10]FM_GetShiftState done [19:26:10]req_shift_opened done [19:26:10]requested_item shift.open_date is exist - process it [19:26:10]req_shift_open_date [19:26:10]req_shift_open_date done [19:26:10]produce_requested_data done [19:26:10]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2301,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:26:10]process_action_free close_receipt [19:26:10]json_value_free [19:26:10]json_value_free done [19:26:10]process_json_proto returns [19:26:10]Send response to host [19:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2301,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:26:10]free response buf [19:26:10]execute_script done [19:26:10]execute_script returns [19:26:10]free content buf [19:26:10]Sock 8.Close socket [19:26:10]Sock 8.Thread stoped [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:01]accept exits with 9 [19:28:01]New connection [19:28:01]New thread 3067014500 created [19:28:01]Thread 3067157860 joined [19:28:01]Waiting for new connection... [19:28:01] Sock 9.Parse request [19:28:01]Sock 9.Check first char [19:28:01]Sock 9.First char is OK [19:28:01]request: POST /json_proto HTTP/1.0 [19:28:01]Method: POST [19:28:01]URL: /json_proto [19:28:01]Method is POST - this is cgi request [19:28:01]url: /json_proto [19:28:01]query_string will be loaded in cgi processing [19:28:01]execute_cgi json_proto POST (null) [19:28:01]execute_cgi path=json_proto method=POST [19:28:01]POST find Content-Length [19:28:01]Host: 172.17.45.132:8080 [19:28:01]Content-Length: 1191 [19:28:01]Content-Type: application/json [19:28:01] [19:28:01]POST finish read [19:28:01]Found Content-Length = 1191 [19:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610084\u000A29.07.2024 19:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 13.210 x 75.70\u000A\u0418\u0422\u041E\u0413: 1000.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:01]execute_script... [19:28:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610084\u000A29.07.2024 19:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 13.210 x 75.70\u000A\u0418\u0422\u041E\u0413: 1000.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:01]POST & json_proto [19:28:01]process_json_proto [19:28:01]json parsed OK: [19:28:01]protocol is kg_v1.0 [19:28:01]action value=print_text [19:28:01]process_action print_text [19:28:01]cmd_print_text [19:28:01]ExternCall_PrintAddStr [19:28:01]wPrintStart [19:28:01]Write to MH i2c: 01 00 00 27 18 3F [19:28:01]Write i2c OK [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: 01 [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: 01 07 00 [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: 01 07 00 27 18 00 00 00 00 00 FF 0F 54 [19:28:01]RasterBufferAndPrint [19:28:01]line *****ТОВАРНЫЙ ЧЕК***** [19:28:01]line АЗС 127 [19:28:01]line Партнер нефть [19:28:01]line 02508201610067 [19:28:01]line Кассир : Мансуров А. [19:28:01]line Счет N : (1)610084 [19:28:01]line 29.07.2024 19:17 [19:28:01]line ПРОДАЖА [19:28:01]line ТРК (МРК, ГНК): 2 [19:28:01]line Вид ГСМ : 2710194210 [19:28:01]line ДТ-К-2 [19:28:01]line 13.210 x 75.70 [19:28:01]line ИТОГ: 1000.00 [19:28:01]line Тип оплаты: Талоны: Топливная Карта [19:28:01]line 99614 [19:28:01]line ______________________ [19:28:01]line (подпись) [19:28:01]written 0, free lines is 4095 [19:28:01]Write to MH i2c: 01 00 00 3B 18 53 [19:28:01]Write i2c OK [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: 01 [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: 01 07 00 [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 0D 0E 75 [19:28:01]RasterBufferAndPrint [19:28:01]line [19:28:01]line [19:28:01]line [19:28:01]line [19:28:01]line [19:28:01]written 0, free lines is 3598 [19:28:01]MH_Cut [19:28:01]Write to MH i2c: D1 01 00 42 18 01 2C [19:28:01]Write i2c OK [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: D1 [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: D1 01 00 [19:28:01]MH_I2C_Read... [19:28:01]Read from MH i2c: D1 01 00 42 18 00 2B [19:28:01]Write to MH i2c: 01 00 00 43 18 5B [19:28:01]Write i2c OK [19:28:01]MH_I2C_Read... [19:28:02]*** Cut start [19:28:02]*** Partial cut [19:28:02]*** CUTSNS_PIN = 1 [19:28:02]*** CUTSNS_PIN = 0 [19:28:02]*** Brake cut motor [19:28:02]Read from MH i2c: 01 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: 01 07 00 [19:28:02]MH_I2C_Read... [19:28:02]*** Stop cut motor [19:28:02]*** Cut end [19:28:02]Read from MH i2c: 01 07 00 43 18 00 00 00 00 00 FF 0F 70 [19:28:02]process_action print_text done [19:28:02]requested_data is exist [19:28:02]produce_requested_data [19:28:02]requested_item fm.sn is exist - process it [19:28:02]wFMCommunicate request_size=4 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 11 00 00 [19:28:02]Write to MH i2c: E2 08 00 44 18 80 11 00 00 00 00 00 00 D6 [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 17 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 17 00 44 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 26 [19:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:28:02]wFMCommunicate OK [19:28:02]requested_item fd.num is exist - process it [19:28:02]SAM_PROTO_GetFieldsCounters [19:28:02]wFMCommunicate request_size=4 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 13 00 00 [19:28:02]Write to MH i2c: E2 08 00 45 18 80 13 00 00 00 00 00 00 D9 [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 62 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 62 00 45 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FD 08 00 00 0E 04 04 00 0F 00 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 D9 [19:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FD 08 00 00 0E 04 04 00 0F 00 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 [19:28:02]wFMCommunicate OK [19:28:02]SAM_PROTO_GetFieldsCounters done [19:28:02]requested_item shift.num is exist - process it [19:28:02]requested_item shift.opened is exist - process it [19:28:02]req_shift_opened [19:28:02]FM_GetShiftState [19:28:02]SAM_PROTO_GetShiftState [19:28:02]wFMCommunicate request_size=4 [19:28:02]MH_SAM_APDU [19:28:02]CAPDU: 80 13 01 00 [19:28:02]Write to MH i2c: E2 08 00 46 18 80 13 01 00 00 00 00 00 DB [19:28:02]Write i2c OK [19:28:02]MH_I2C_Read... [19:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:02]Read from MH i2c: E2 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 0E 00 [19:28:02]MH_I2C_Read... [19:28:02]Read from MH i2c: E2 0E 00 46 18 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D4 [19:28:02]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:28:02]wFMCommunicate OK [19:28:02]SAM_PROTO_GetShiftState done [19:28:02]FM_GetShiftState done [19:28:02]req_shift_opened done [19:28:02]requested_item shift.open_date is exist - process it [19:28:02]req_shift_open_date [19:28:02]req_shift_open_date done [19:28:02]produce_requested_data done [19:28:02]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2301,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:28:02]process_action_free print_text [19:28:02]json_value_free [19:28:02]json_value_free done [19:28:02]process_json_proto returns [19:28:02]Send response to host [19:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2301,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:28:02]free response buf [19:28:02]execute_script done [19:28:02]execute_script returns [19:28:02]free content buf [19:28:02]Sock 9.Close socket [19:28:02]Sock 9.Thread stoped [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:38]accept exits with 8 [19:30:38]New connection [19:30:38]New thread 3067157860 created [19:30:38]Thread 3067014500 joined [19:30:38]Waiting for new connection... [19:30:38] Sock 8.Parse request [19:30:38]Sock 8.Check first char [19:30:38]Sock 8.First char is OK [19:30:38]request: POST /json_proto HTTP/1.0 [19:30:38]Method: POST [19:30:38]URL: /json_proto [19:30:38]Method is POST - this is cgi request [19:30:38]url: /json_proto [19:30:38]query_string will be loaded in cgi processing [19:30:38]execute_cgi json_proto POST (null) [19:30:38]execute_cgi path=json_proto method=POST [19:30:38]POST find Content-Length [19:30:38]Host: 172.17.45.132:8080 [19:30:38]Content-Length: 634 [19:30:38]Content-Type: application/json [19:30:38] [19:30:38]POST finish read [19:30:38]Found Content-Length = 634 [19:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126551", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:38]execute_script... [19:30: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)126551", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:38]POST & json_proto [19:30:38]process_json_proto [19:30:38]json parsed OK: [19:30:38]protocol is kg_v1.0 [19:30:38]action value=close_receipt [19:30:38]process_action close_receipt [19:30:38]cmd_close_receipt [19:30:38]MH_GetDate [19:30:38]Write to MH i2c: F0 00 00 47 18 4E [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: F0 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: F0 09 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: F0 09 00 47 18 00 E0 ED A7 66 E3 0B 90 66 15 [19:30:38]GetLastDocTimeStamp 1722281167 [19:30:38]current date 1722281440 [19:30:38]FM_GetShiftState [19:30:38]SAM_PROTO_GetShiftState [19:30:38]wFMCommunicate request_size=4 [19:30:38]MH_SAM_APDU [19:30:38]CAPDU: 80 13 01 00 [19:30:38]Write to MH i2c: E2 08 00 48 18 80 13 01 00 00 00 00 00 DD [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:38]Read from MH i2c: E2 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 0E 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: E2 0E 00 48 18 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D6 [19:30:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:30:38]wFMCommunicate OK [19:30:38]SAM_PROTO_GetShiftState done [19:30:38]FM_GetShiftState done [19:30:38]opened in 1722213119 [19:30:38]opened+sec_in_day 1722299519 [19:30:38]quantity*price = 12000 [19:30:38]sum+1 = 12001 [19:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 151 29.07.2024 19:30 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2302 ФПД: 271120158333258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193040&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2302&fm=271120158333258&tin=02508201610067®Number=0000000000189667&sum=12000 0 [19:30:39]StoreToDocumentArchive [19:30:39]shift 15 fd 2302 [19:30:39]save to /storage/0015/doc_00002302 [19:30:39]save last doc name /storage/0015/doc_00002302 to /storage/kkm_last_doc_name [19:30:39]save OK [19:30:39]Clear old archive folders... [19:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:30:39]tlvbuf is 01FE2DF0 [19:30:39]SAM_PROTO_ClearQueue [19:30:39]wFMCommunicate request_size=4 [19:30:39]MH_SAM_APDU [19:30:39]CAPDU: 80 09 00 00 [19:30:39]Write to MH i2c: E2 08 00 55 18 80 09 00 00 00 00 00 00 DF [19:30:39]Write i2c OK [19:30:39]MH_I2C_Read... [19:30:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:40]Read from MH i2c: E2 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 55 18 00 90 00 E1 [19:30:40]RAPDU: 90 00 [19:30:40]wFMCommunicate OK [19:30:40]SAM_PROTO_ClearQueue done [19:30:40]KKMCreateOFDPacket [19:30:40]OFDProtocolAddRootSTLVToBuf [19:30:40]FM_MakeSignedData [19:30:40]FM_MakeSignedData [19:30:40]SAM_PROTO_SignData [19:30:40]wFMCommunicate request_size=4 [19:30:40]MH_SAM_APDU [19:30:40]CAPDU: 80 0D 01 02 [19:30:40]Write to MH i2c: E2 08 00 56 18 80 0D 01 02 00 00 00 00 E7 [19:30:40]Write i2c OK [19:30:40]MH_I2C_Read... [19:30:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:40]Read from MH i2c: E2 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 56 18 00 90 00 E2 [19:30:40]RAPDU: 90 00 [19:30:40]wFMCommunicate OK [19:30:40]wFMCommunicate request_size=255 [19:30:40]MH_SAM_APDU [19:30:40]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E0 ED A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:30:40]Write to MH i2c: E2 02 01 57 18 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E0 ED A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 FE [19:30:40]Write i2c OK [19:30:40]MH_I2C_Read... [19:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:40]Read from MH i2c: E2 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 57 18 00 90 00 E3 [19:30:40]RAPDU: 90 00 [19:30:40]wFMCommunicate OK [19:30:40]wFMCommunicate request_size=30 [19:30:40]MH_SAM_APDU [19:30:40]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 FE 08 00 00 35 04 06 00 F6 95 14 BA 99 4A [19:30:40]Write to MH i2c: E2 21 00 58 18 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 FE 08 00 00 35 04 06 00 F6 95 14 BA 99 4A 00 00 22 [19:30:40]Write i2c OK [19:30:40]MH_I2C_Read... [19:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:40]Read from MH i2c: E2 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 03 00 58 18 00 90 00 E4 [19:30:40]RAPDU: 90 00 [19:30:40]wFMCommunicate OK [19:30:40]wFMCommunicate request_size=4 [19:30:40]MH_SAM_APDU [19:30:40]CAPDU: 80 0D 03 02 [19:30:40]Write to MH i2c: E2 08 00 59 18 80 0D 03 02 00 00 00 00 EC [19:30:40]Write i2c OK [19:30:40]MH_I2C_Read... [19:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:40]Read from MH i2c: E2 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 0B 00 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 0B 00 59 18 00 FD D3 16 CD 98 E5 7C FB 90 00 94 [19:30:40]RAPDU: FD D3 16 CD 98 E5 7C FB 90 00 [19:30:40]wFMCommunicate OK [19:30:40]SAM_PROTO_SignData done [19:30:40]FM_MakeSignedData done [19:30:40]CreateOFDProtocolMessage [19:30:40]wFMCommunicate request_size=4 [19:30:40]MH_SAM_APDU [19:30:40]CAPDU: 80 11 00 00 [19:30:40]Write to MH i2c: E2 08 00 5A 18 80 11 00 00 00 00 00 00 EC [19:30:40]Write i2c OK [19:30:40]MH_I2C_Read... [19:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:40]Read from MH i2c: E2 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 17 00 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: E2 17 00 5A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3C [19:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:30:40]wFMCommunicate OK [19:30:40]CreateOFDProtocolMessage done [19:30:40]OFDSenderStorePacket 2302 [19:30:40]StoreOFDPacket docnum=2302 [19:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 F0 93 1B 01 53 E8 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E0 ED A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 08 00 00 35 04 06 00 F6 95 14 BA 99 4A FD D3 16 CD 98 E5 7C FB [19:30:40]CheckFolder [19:30:40]dirname=/storage/ofd_packets [19:30:40]CheckFolder done [19:30:40]ProducePacketName [19:30:40]name=ofd_packets/00002302 [19:30:40]NVStorageSaveData ofd_packets/00002302 [19:30:40]File name is /storage/ofd_packets/00002302 [19:30:40]Write 321 bytes [19:30:40]NVStorageSaveData done [19:30:40]OFDSenderStorePacket done [19:30:40]KKMCreateOFDPacket done [19:30:40]NVStorageSaveData kkm_last_timestamp [19:30:40]File name is /storage/kkm_last_timestamp [19:30:40]Write 4 bytes [19:30:40]NVStorageSaveData done [19:30:40]ExternCall_PrintAddStr [19:30:40]wPrintStart [19:30:40]Write to MH i2c: 01 00 00 5B 18 73 [19:30:40]Write i2c OK [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: 01 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: 01 07 00 [19:30:40]MH_I2C_Read... [19:30:40]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 FF 0F 88 [19:30:40]RasterBufferAndPrint [19:30:40]line Счет N : (3)126551 [19:30:40]line ИНН: 02508201610067 [19:30:40]line Контрольно-Кассовый Чек [19:30:40]line ПРОДАЖА [19:30:40]line Товар: 4700025313937 [19:30:40]line ВОДКА МЯГКАЯ 0,1л [19:30:40]line 2.000 * 60.00 [19:30:40]line = 120.00 [19:30:40]line НДС 12% НСП 1% [19:30:40]line > о реализуемом товаре [19:30:40]line ИТОГО: 120.00 [19:30:40]line НСП 1% : 1.06 [19:30:40]line НДС 12% : 12.74 [19:30:40]line Наличными: 120.00 [19:30:40]line Безнал.: 0.00 [19:30:40]line Место: АЗС № 127 "Партнер Нефть" [19:30:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:30:40]line СНО: Общий режим [19:30:40]line Чек 151 29.07.2024 19:30 [19:30:40]line Смена: 15 ФФД: 1.0 [19:30:40]line ЗНМ: 0300000161 [19:30:40]line РНМ: 0000000000189667 [19:30:40]line Версия ККМ: v1.0 [19:30:40]line ФМ: 0000000002094248 [19:30:40]line ФД: 2302 [19:30:40]line ФПД: 271120158333258 [19:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193040&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2302&fm=271120158333258&tin=02508201610067®Number=0000000000189667&sum=12000 [19:30:40]line 0 [19:30:40]OFD Sender: Processing packet 2302 [packets to send 1, broken 0] [19:30:40]ProducePacketName [19:30:40]name=ofd_packets/00002302 [19:30:40]OFD Sender: To server: pG, [19:30:40]CommunicateWithHost lk.salyk.kg:30040 [19:30:40]ConnectInit lk.salyk.kg [19:30:40]written 0, free lines is 4095 [19:30:40]Connected sock=10 [19:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 F0 93 1B 01 53 E8 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 E0 ED A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 08 00 00 35 04 06 00 F6 95 14 BA 99 4A FD D3 16 CD 98 E5 7C FB [19:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8E 0E 47 00 FC B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FE 08 00 00 F4 03 04 00 4C 99 A7 66 B6 04 01 00 00 C6 C4 90 7E FA 68 E2 04 [19:30:41]CommunicateWithHost err = 0 [19:30:41]CheckOFDResponse [19:30:41]1017 (14) - 77093643461234 [19:30:41]1041 (16) - 0000000002094248 [19:30:41]1040 (4) - 2302 [19:30:41]1012 (4) - 29.07.2024 13:29 [19:30:41]1206 (1) - 0 [19:30:41]OFD Sender: Remove packet 2302 [19:30:41]ProducePacketName [19:30:41]name=ofd_packets/00002302 [19:30:41]NVStorageDeleteData [19:30:41]Write to MH i2c: 01 00 00 83 18 9B [19:30:41]Write i2c OK [19:30:41]MH_I2C_Read... [19:30:41]Read from MH i2c: 01 [19:30:41]MH_I2C_Read... [19:30:41]Read from MH i2c: 01 07 00 [19:30:41]MH_I2C_Read... [19:30:41]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 07 0D B6 [19:30:41]RasterBufferAndPrint [19:30:41]line [19:30:41]line [19:30:41]line [19:30:41]line [19:30:41]line [19:30:41]written 0, free lines is 3341 [19:30:41]MH_Cut [19:30:41]Write to MH i2c: D1 01 00 8A 18 01 74 [19:30:41]Write i2c OK [19:30:41]MH_I2C_Read... [19:30:41]Read from MH i2c: D1 [19:30:41]MH_I2C_Read... [19:30:41]Read from MH i2c: D1 01 00 [19:30:41]MH_I2C_Read... [19:30:41]Read from MH i2c: D1 01 00 8A 18 00 73 [19:30:41]Write to MH i2c: 01 00 00 8B 18 A3 [19:30:41]Write i2c OK [19:30:41]MH_I2C_Read... [19:30:41]OFD Sender: No OFD packet to send [19:30:41]*** Cut start [19:30:41]*** Partial cut [19:30:41]*** CUTSNS_PIN = 1 [19:30:42]*** CUTSNS_PIN = 0 [19:30:42]*** Brake cut motor [19:30:42]Read from MH i2c: 01 [19:30:42]MH_I2C_Read... [19:30:42]*** Stop cut motor [19:30:42]*** Cut end [19:30:42]Read from MH i2c: 01 07 00 [19:30:42]MH_I2C_Read... [19:30:42]Read from MH i2c: 01 07 00 8B 18 00 00 00 00 00 FF 0F B8 [19:30:42]process_action close_receipt done [19:30:42]requested_data is exist [19:30:42]produce_requested_data [19:30:42]requested_item fm.sn is exist - process it [19:30:42]wFMCommunicate request_size=4 [19:30:42]MH_SAM_APDU [19:30:42]CAPDU: 80 11 00 00 [19:30:42]Write to MH i2c: E2 08 00 8C 18 80 11 00 00 00 00 00 00 1E [19:30:42]Write i2c OK [19:30:42]MH_I2C_Read... [19:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:42]Read from MH i2c: E2 [19:30:42]MH_I2C_Read... [19:30:42]Read from MH i2c: E2 17 00 [19:30:42]MH_I2C_Read... [19:30:42]Read from MH i2c: E2 17 00 8C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6E [19:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:30:42]wFMCommunicate OK [19:30:42]requested_item fd.num is exist - process it [19:30:42]SAM_PROTO_GetFieldsCounters [19:30:42]wFMCommunicate request_size=4 [19:30:42]MH_SAM_APDU [19:30:42]CAPDU: 80 13 00 00 [19:30:42]Write to MH i2c: E2 08 00 8D 18 80 13 00 00 00 00 00 00 21 [19:30:42]Write i2c OK [19:30:42]MH_I2C_Read... [19:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:42]Read from MH i2c: E2 [19:30:42]MH_I2C_Read... [19:30:42]Read from MH i2c: E2 62 00 [19:30:42]MH_I2C_Read... [19:30:42]Read from MH i2c: E2 62 00 8D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FE 08 00 00 0E 04 04 00 0F 00 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 25 [19:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FE 08 00 00 0E 04 04 00 0F 00 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 [19:30:42]wFMCommunicate OK [19:30:42]SAM_PROTO_GetFieldsCounters done [19:30:42]requested_item shift.num is exist - process it [19:30:42]requested_item shift.opened is exist - process it [19:30:42]req_shift_opened [19:30:42]FM_GetShiftState [19:30:42]SAM_PROTO_GetShiftState [19:30:42]wFMCommunicate request_size=4 [19:30:42]MH_SAM_APDU [19:30:42]CAPDU: 80 13 01 00 [19:30:42]Write to MH i2c: E2 08 00 8E 18 80 13 01 00 00 00 00 00 23 [19:30:42]Write i2c OK [19:30:42]MH_I2C_Read... [19:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:42]Read from MH i2c: E2 [19:30:42]MH_I2C_Read... [19:30:42]Read from MH i2c: E2 0E 00 [19:30:42]MH_I2C_Read... [19:30:42]Read from MH i2c: E2 0E 00 8E 18 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1C [19:30:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:30:42]wFMCommunicate OK [19:30:42]SAM_PROTO_GetShiftState done [19:30:42]FM_GetShiftState done [19:30:42]req_shift_opened done [19:30:42]requested_item shift.open_date is exist - process it [19:30:42]req_shift_open_date [19:30:42]req_shift_open_date done [19:30:42]produce_requested_data done [19:30:42]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2302,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:30:42]process_action_free close_receipt [19:30:42]json_value_free [19:30:42]json_value_free done [19:30:42]process_json_proto returns [19:30:42]Send response to host [19:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2302,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:30:42]free response buf [19:30:42]execute_script done [19:30:42]execute_script returns [19:30:42]free content buf [19:30:42]Sock 8.Close socket [19:30:42]Sock 8.Thread stoped [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:18]accept exits with 9 [19:35:18]New connection [19:35:18]New thread 3067014500 created [19:35:18]Thread 3067157860 joined [19:35:18]Waiting for new connection... [19:35:18] Sock 9.Parse request [19:35:18]Sock 9.Check first char [19:35:18]Sock 9.First char is OK [19:35:18]request: POST /json_proto HTTP/1.0 [19:35:18]Method: POST [19:35:18]URL: /json_proto [19:35:18]Method is POST - this is cgi request [19:35:18]url: /json_proto [19:35:18]query_string will be loaded in cgi processing [19:35:18]execute_cgi json_proto POST (null) [19:35:18]execute_cgi path=json_proto method=POST [19:35:18]POST find Content-Length [19:35:18]Host: 172.17.45.132:8080 [19:35:18]Content-Length: 646 [19:35:18]Content-Type: application/json [19:35:18] [19:35:18]POST finish read [19:35:18]Found Content-Length = 646 [19:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126552", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:18]execute_script... [19:35: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)126552", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:18]POST & json_proto [19:35:18]process_json_proto [19:35:18]json parsed OK: [19:35:18]protocol is kg_v1.0 [19:35:18]action value=close_receipt [19:35:18]process_action close_receipt [19:35:18]cmd_close_receipt [19:35:18]MH_GetDate [19:35:18]Write to MH i2c: F0 00 00 8F 18 96 [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 09 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 09 00 8F 18 00 F8 EE A7 66 E3 0B 90 66 76 [19:35:18]GetLastDocTimeStamp 1722281440 [19:35:18]current date 1722281720 [19:35:18]FM_GetShiftState [19:35:18]SAM_PROTO_GetShiftState [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 13 01 00 [19:35:18]Write to MH i2c: E2 08 00 90 18 80 13 01 00 00 00 00 00 25 [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 90 18 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1E [19:35:18]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:35:18]wFMCommunicate OK [19:35:18]SAM_PROTO_GetShiftState done [19:35:18]FM_GetShiftState done [19:35:18]opened in 1722213119 [19:35:18]opened+sec_in_day 1722299519 [19:35:18]quantity*price = 3000 [19:35:18]sum+1 = 3001 [19:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 152 29.07.2024 19:35 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2303 ФПД: 217468937924518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193520&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2303&fm=217468937924518&tin=02508201610067®Number=0000000000189667&sum=3000 0 [19:35:19]StoreToDocumentArchive [19:35:19]shift 15 fd 2303 [19:35:19]save to /storage/0015/doc_00002303 [19:35:19]save last doc name /storage/0015/doc_00002303 to /storage/kkm_last_doc_name [19:35:19]save OK [19:35:19]Clear old archive folders... [19:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=277 [19:35:19]tlvbuf is 01F642F0 [19:35:19]SAM_PROTO_ClearQueue [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 09 00 00 [19:35:19]Write to MH i2c: E2 08 00 9D 18 80 09 00 00 00 00 00 00 27 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 9D 18 00 90 00 29 [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_ClearQueue done [19:35:20]KKMCreateOFDPacket [19:35:20]OFDProtocolAddRootSTLVToBuf [19:35:20]FM_MakeSignedData [19:35:20]FM_MakeSignedData [19:35:20]SAM_PROTO_SignData [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 01 02 [19:35:20]Write to MH i2c: E2 08 00 9E 18 80 0D 01 02 00 00 00 00 2F [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 9E 18 00 90 00 2A [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=255 [19:35:20]MH_SAM_APDU [19:35:20]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 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 EE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 [19:35:20]Write to MH i2c: E2 02 01 9F 18 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 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 EE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 00 00 B1 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 9F 18 00 90 00 2B [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=36 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FF 08 00 00 35 04 06 00 C5 C9 6E CB 6F A6 [19:35:20]Write to MH i2c: E2 27 00 A0 18 80 0D 02 02 1F 00 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FF 08 00 00 35 04 06 00 C5 C9 6E CB 6F A6 00 00 37 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [19:35:20]RAPDU: 90 00 [19:35:20]wFMCommunicate OK [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 0D 03 02 [19:35:20]Write to MH i2c: E2 08 00 A1 18 80 0D 03 02 00 00 00 00 34 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0B 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 0B 00 A1 18 00 49 13 F2 36 FD 51 BA 6A 90 00 2B [19:35:20]RAPDU: 49 13 F2 36 FD 51 BA 6A 90 00 [19:35:20]wFMCommunicate OK [19:35:20]SAM_PROTO_SignData done [19:35:20]FM_MakeSignedData done [19:35:20]CreateOFDProtocolMessage [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 11 00 00 [19:35:20]Write to MH i2c: E2 08 00 A2 18 80 11 00 00 00 00 00 00 34 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 A2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 84 [19:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:35:20]wFMCommunicate OK [19:35:20]CreateOFDProtocolMessage done [19:35:20]OFDSenderStorePacket 2303 [19:35:20]StoreOFDPacket docnum=2303 [19:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 F4 9B 21 01 4E 67 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 EE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FF 08 00 00 35 04 06 00 C5 C9 6E CB 6F A6 49 13 F2 36 FD 51 BA 6A [19:35:20]CheckFolder [19:35:20]dirname=/storage/ofd_packets [19:35:20]CheckFolder done [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00002303 [19:35:20]NVStorageSaveData ofd_packets/00002303 [19:35:20]File name is /storage/ofd_packets/00002303 [19:35:20]Write 327 bytes [19:35:20]NVStorageSaveData done [19:35:20]OFDSenderStorePacket done [19:35:20]KKMCreateOFDPacket done [19:35:20]NVStorageSaveData kkm_last_timestamp [19:35:20]File name is /storage/kkm_last_timestamp [19:35:20]Write 4 bytes [19:35:20]NVStorageSaveData done [19:35:20]ExternCall_PrintAddStr [19:35:20]wPrintStart [19:35:20]Write to MH i2c: 01 00 00 A3 18 BB [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 A3 18 00 00 00 00 00 FF 0F D0 [19:35:20]RasterBufferAndPrint [19:35:20]line Счет N : (3)126552 [19:35:20]line ИНН: 02508201610067 [19:35:20]line Контрольно-Кассовый Чек [19:35:20]line ПРОДАЖА [19:35:20]line Товар: 4700000310173 [19:35:20]line Вода Адыгене 0,5л б/г [19:35:20]line 1.000 * 30.00 [19:35:20]line = 30.00 [19:35:20]line НДС 12% НСП 1% [19:35:20]line > о реализуемом товаре [19:35:20]line ИТОГО: 30.00 [19:35:20]line НСП 1% : 0.26 [19:35:20]line НДС 12% : 3.19 [19:35:20]line Наличными: 30.00 [19:35:20]line Безнал.: 0.00 [19:35:20]line Место: АЗС № 127 "Партнер Нефть" [19:35:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:35:20]line СНО: Общий режим [19:35:20]line Чек 152 29.07.2024 19:35 [19:35:20]line Смена: 15 ФФД: 1.0 [19:35:20]line ЗНМ: 0300000161 [19:35:20]line РНМ: 0000000000189667 [19:35:20]line Версия ККМ: v1.0 [19:35:20]line ФМ: 0000000002094248 [19:35:20]line ФД: 2303 [19:35:20]line ФПД: 217468937924518 [19:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193520&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2303&fm=217468937924518&tin=02508201610067®Number=0000000000189667&sum=3000 [19:35:20]line 0 [19:35:20]OFD Sender: Processing packet 2303 [packets to send 1, broken 0] [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00002303 [19:35:20]OFD Sender: To server: pG, [19:35:20]CommunicateWithHost lk.salyk.kg:30040 [19:35:20]ConnectInit lk.salyk.kg [19:35:20]written 0, free lines is 4095 [19:35:20]Connected sock=10 [19:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 29 01 00 00 F4 9B 21 01 4E 67 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F8 EE A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 FF 08 00 00 35 04 06 00 C5 C9 6E CB 6F A6 49 13 F2 36 FD 51 BA 6A [19:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3A 51 47 00 19 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 32 30 39 34 32 34 38 10 04 04 00 FF 08 00 00 F4 03 04 00 64 9A A7 66 B6 04 01 00 00 E9 F2 93 22 58 28 19 D4 [19:35:21]CommunicateWithHost err = 0 [19:35:21]CheckOFDResponse [19:35:21]1017 (14) - 77093643461234 [19:35:21]1041 (16) - 0000000002094248 [19:35:21]1040 (4) - 2303 [19:35:21]1012 (4) - 29.07.2024 13:34 [19:35:21]1206 (1) - 0 [19:35:21]OFD Sender: Remove packet 2303 [19:35:21]ProducePacketName [19:35:21]name=ofd_packets/00002303 [19:35:21]NVStorageDeleteData [19:35:21]Write to MH i2c: 01 00 00 CB 18 E3 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 07 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 19 0D 10 [19:35:21]RasterBufferAndPrint [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]line [19:35:21]written 0, free lines is 3362 [19:35:21]MH_Cut [19:35:21]Write to MH i2c: D1 01 00 D2 18 01 BC [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 01 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: D1 01 00 D2 18 00 BB [19:35:21]Write to MH i2c: 01 00 00 D3 18 EB [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]OFD Sender: No OFD packet to send [19:35:21]*** Cut start [19:35:21]*** Partial cut [19:35:21]*** CUTSNS_PIN = 1 [19:35:21]*** CUTSNS_PIN = 0 [19:35:22]*** Brake cut motor [19:35:22]Read from MH i2c: 01 [19:35:22]MH_I2C_Read... [19:35:22]*** Stop cut motor [19:35:22]*** Cut end [19:35:22]Read from MH i2c: 01 07 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: 01 07 00 D3 18 00 00 00 00 00 FF 0F 00 [19:35:22]process_action close_receipt done [19:35:22]requested_data is exist [19:35:22]produce_requested_data [19:35:22]requested_item fm.sn is exist - process it [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 11 00 00 [19:35:22]Write to MH i2c: E2 08 00 D4 18 80 11 00 00 00 00 00 00 66 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 17 00 D4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B6 [19:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:35:22]wFMCommunicate OK [19:35:22]requested_item fd.num is exist - process it [19:35:22]SAM_PROTO_GetFieldsCounters [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 13 00 00 [19:35:22]Write to MH i2c: E2 08 00 D5 18 80 13 00 00 00 00 00 00 69 [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 62 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 62 00 D5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FF 08 00 00 0E 04 04 00 0F 00 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 71 [19:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 FF 08 00 00 0E 04 04 00 0F 00 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 [19:35:22]wFMCommunicate OK [19:35:22]SAM_PROTO_GetFieldsCounters done [19:35:22]requested_item shift.num is exist - process it [19:35:22]requested_item shift.opened is exist - process it [19:35:22]req_shift_opened [19:35:22]FM_GetShiftState [19:35:22]SAM_PROTO_GetShiftState [19:35:22]wFMCommunicate request_size=4 [19:35:22]MH_SAM_APDU [19:35:22]CAPDU: 80 13 01 00 [19:35:22]Write to MH i2c: E2 08 00 D6 18 80 13 01 00 00 00 00 00 6B [19:35:22]Write i2c OK [19:35:22]MH_I2C_Read... [19:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:22]Read from MH i2c: E2 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0E 00 [19:35:22]MH_I2C_Read... [19:35:22]Read from MH i2c: E2 0E 00 D6 18 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 64 [19:35:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:35:22]wFMCommunicate OK [19:35:22]SAM_PROTO_GetShiftState done [19:35:22]FM_GetShiftState done [19:35:22]req_shift_opened done [19:35:22]requested_item shift.open_date is exist - process it [19:35:22]req_shift_open_date [19:35:22]req_shift_open_date done [19:35:22]produce_requested_data done [19:35:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2303,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:35:22]process_action_free close_receipt [19:35:22]json_value_free [19:35:22]json_value_free done [19:35:22]process_json_proto returns [19:35:22]Send response to host [19:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2303,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:35:22]free response buf [19:35:22]execute_script done [19:35:22]execute_script returns [19:35:22]free content buf [19:35:22]Sock 9.Close socket [19:35:22]Sock 9.Thread stoped [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:39]accept exits with 8 [19:35:39]New connection [19:35:39]New thread 3067157860 created [19:35:39]Thread 3067014500 joined [19:35:39]Waiting for new connection... [19:35:39] Sock 8.Parse request [19:35:39]Sock 8.Check first char [19:35:39]Sock 8.First char is OK [19:35:39]request: POST /json_proto HTTP/1.0 [19:35:39]Method: POST [19:35:39]URL: /json_proto [19:35:39]Method is POST - this is cgi request [19:35:39]url: /json_proto [19:35:39]query_string will be loaded in cgi processing [19:35:39]execute_cgi json_proto POST (null) [19:35:39]execute_cgi path=json_proto method=POST [19:35:39]POST find Content-Length [19:35:39]Host: 172.17.45.132:8080 [19:35:39]Content-Length: 634 [19:35:39]Content-Type: application/json [19:35:39] [19:35:39]POST finish read [19:35:39]Found Content-Length = 634 [19:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126553", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:39]execute_script... [19:35:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126553", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:39]POST & json_proto [19:35:39]process_json_proto [19:35:39]json parsed OK: [19:35:39]protocol is kg_v1.0 [19:35:39]action value=close_receipt [19:35:39]process_action close_receipt [19:35:39]cmd_close_receipt [19:35:39]MH_GetDate [19:35:39]Write to MH i2c: F0 00 00 D7 18 DE [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: F0 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: F0 09 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: F0 09 00 D7 18 00 0D EF A7 66 E3 0B 90 66 D4 [19:35:39]GetLastDocTimeStamp 1722281720 [19:35:39]current date 1722281741 [19:35:39]FM_GetShiftState [19:35:39]SAM_PROTO_GetShiftState [19:35:39]wFMCommunicate request_size=4 [19:35:39]MH_SAM_APDU [19:35:39]CAPDU: 80 13 01 00 [19:35:39]Write to MH i2c: E2 08 00 D8 18 80 13 01 00 00 00 00 00 6D [19:35:39]Write i2c OK [19:35:39]MH_I2C_Read... [19:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:39]Read from MH i2c: E2 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0E 00 [19:35:39]MH_I2C_Read... [19:35:39]Read from MH i2c: E2 0E 00 D8 18 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 66 [19:35:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:35:39]wFMCommunicate OK [19:35:39]SAM_PROTO_GetShiftState done [19:35:39]FM_GetShiftState done [19:35:39]opened in 1722213119 [19:35:39]opened+sec_in_day 1722299519 [19:35:39]quantity*price = 12000 [19:35:39]sum+1 = 12001 [19:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 153 29.07.2024 19:35 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2304 ФПД: 162097670524350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193541&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2304&fm=162097670524350&tin=02508201610067®Number=0000000000189667&sum=12000 0 [19:35:40]StoreToDocumentArchive [19:35:40]shift 15 fd 2304 [19:35:40]save to /storage/0015/doc_00002304 [19:35:40]save last doc name /storage/0015/doc_00002304 to /storage/kkm_last_doc_name [19:35:40]save OK [19:35:40]Clear old archive folders... [19:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:35:40]tlvbuf is 0201B3C0 [19:35:40]SAM_PROTO_ClearQueue [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 09 00 00 [19:35:40]Write to MH i2c: E2 08 00 E5 18 80 09 00 00 00 00 00 00 6F [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 E5 18 00 90 00 71 [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]SAM_PROTO_ClearQueue done [19:35:41]KKMCreateOFDPacket [19:35:41]OFDProtocolAddRootSTLVToBuf [19:35:41]FM_MakeSignedData [19:35:41]FM_MakeSignedData [19:35:41]SAM_PROTO_SignData [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 0D 01 02 [19:35:41]Write to MH i2c: E2 08 00 E6 18 80 0D 01 02 00 00 00 00 77 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]wFMCommunicate request_size=255 [19:35:41]MH_SAM_APDU [19:35:41]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 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 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 0D EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:35:41]Write to MH i2c: E2 02 01 E7 18 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 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 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 0D EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 98 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 E7 18 00 90 00 73 [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]wFMCommunicate request_size=30 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 00 09 00 00 35 04 06 00 93 6D 4E 12 0D BE [19:35:41]Write to MH i2c: E2 21 00 E8 18 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 00 09 00 00 35 04 06 00 93 6D 4E 12 0D BE 00 00 A4 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 0D 03 02 [19:35:41]Write to MH i2c: E2 08 00 E9 18 80 0D 03 02 00 00 00 00 7C [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 0B 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 0B 00 E9 18 00 CA DC E7 53 DF 4D EF 88 90 00 00 [19:35:41]RAPDU: CA DC E7 53 DF 4D EF 88 90 00 [19:35:41]wFMCommunicate OK [19:35:41]SAM_PROTO_SignData done [19:35:41]FM_MakeSignedData done [19:35:41]CreateOFDProtocolMessage [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 11 00 00 [19:35:41]Write to MH i2c: E2 08 00 EA 18 80 11 00 00 00 00 00 00 7C [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 17 00 EA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CC [19:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:35:41]wFMCommunicate OK [19:35:41]CreateOFDProtocolMessage done [19:35:41]OFDSenderStorePacket 2304 [19:35:41]StoreOFDPacket docnum=2304 [19:35:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 B0 10 1B 01 D0 7D 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 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 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 0D EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 09 00 00 35 04 06 00 93 6D 4E 12 0D BE CA DC E7 53 DF 4D EF 88 [19:35:41]CheckFolder [19:35:41]dirname=/storage/ofd_packets [19:35:41]CheckFolder done [19:35:41]ProducePacketName [19:35:41]name=ofd_packets/00002304 [19:35:41]NVStorageSaveData ofd_packets/00002304 [19:35:41]File name is /storage/ofd_packets/00002304 [19:35:41]Write 321 bytes [19:35:41]NVStorageSaveData done [19:35:41]OFDSenderStorePacket done [19:35:41]KKMCreateOFDPacket done [19:35:41]NVStorageSaveData kkm_last_timestamp [19:35:41]File name is /storage/kkm_last_timestamp [19:35:41]Write 4 bytes [19:35:41]NVStorageSaveData done [19:35:41]ExternCall_PrintAddStr [19:35:41]wPrintStart [19:35:41]Write to MH i2c: 01 00 00 EB 18 03 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 07 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: 01 07 00 EB 18 00 00 00 00 00 FF 0F 18 [19:35:41]RasterBufferAndPrint [19:35:41]line Счет N : (3)126553 [19:35:41]line ИНН: 02508201610067 [19:35:41]line Контрольно-Кассовый Чек [19:35:41]line ПРОДАЖА [19:35:41]line Товар: 4700000160204 [19:35:41]line Вода Легенда 1,5л [19:35:41]line 2.000 * 60.00 [19:35:41]line = 120.00 [19:35:41]line НДС 12% НСП 1% [19:35:41]line > о реализуемом товаре [19:35:41]line ИТОГО: 120.00 [19:35:41]line НСП 1% : 1.06 [19:35:41]line НДС 12% : 12.74 [19:35:41]line Наличными: 120.00 [19:35:41]line Безнал.: 0.00 [19:35:41]line Место: АЗС № 127 "Партнер Нефть" [19:35:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:35:41]line СНО: Общий режим [19:35:41]line Чек 153 29.07.2024 19:35 [19:35:41]line Смена: 15 ФФД: 1.0 [19:35:41]line ЗНМ: 0300000161 [19:35:41]line РНМ: 0000000000189667 [19:35:41]line Версия ККМ: v1.0 [19:35:41]line ФМ: 0000000002094248 [19:35:41]line ФД: 2304 [19:35:41]line ФПД: 162097670524350 [19:35:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193541&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2304&fm=162097670524350&tin=02508201610067®Number=0000000000189667&sum=12000 [19:35:41]line 0 [19:35:41]OFD Sender: Processing packet 2304 [packets to send 1, broken 0] [19:35:41]ProducePacketName [19:35:41]name=ofd_packets/00002304 [19:35:41]OFD Sender: To server: pG, [19:35:41]CommunicateWithHost lk.salyk.kg:30040 [19:35:41]ConnectInit lk.salyk.kg [19:35:41]written 0, free lines is 4095 [19:35:41]Connected sock=10 [19:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 B0 10 1B 01 D0 7D 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 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 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 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 0D EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 09 00 00 35 04 06 00 93 6D 4E 12 0D BE CA DC E7 53 DF 4D EF 88 [19:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 85 3F 47 00 3F 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 32 30 39 34 32 34 38 10 04 04 00 00 09 00 00 F4 03 04 00 79 9A A7 66 B6 04 01 00 00 65 04 05 60 62 5B E5 61 [19:35:42]CommunicateWithHost err = 0 [19:35:42]CheckOFDResponse [19:35:42]1017 (14) - 77093643461234 [19:35:42]1041 (16) - 0000000002094248 [19:35:42]1040 (4) - 2304 [19:35:42]1012 (4) - 29.07.2024 13:34 [19:35:42]1206 (1) - 0 [19:35:42]OFD Sender: Remove packet 2304 [19:35:42]ProducePacketName [19:35:42]name=ofd_packets/00002304 [19:35:42]NVStorageDeleteData [19:35:42]Write to MH i2c: 01 00 00 13 19 2C [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 13 19 00 00 00 00 00 07 0D 47 [19:35:42]RasterBufferAndPrint [19:35:42]line [19:35:42]line [19:35:42]line [19:35:42]line [19:35:42]line [19:35:42]written 0, free lines is 3344 [19:35:42]MH_Cut [19:35:42]Write to MH i2c: D1 01 00 1A 19 01 05 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: D1 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: D1 01 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: D1 01 00 1A 19 00 04 [19:35:42]Write to MH i2c: 01 00 00 1B 19 34 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]OFD Sender: No OFD packet to send [19:35:42]*** Cut start [19:35:42]*** Partial cut [19:35:42]*** CUTSNS_PIN = 1 [19:35:42]*** CUTSNS_PIN = 0 [19:35:43]*** Brake cut motor [19:35:43]Read from MH i2c: 01 *** Stop cut motor [19:35:43]*** Cut end [19:35:43] [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: 01 07 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: 01 07 00 1B 19 00 00 00 00 00 FF 0F 49 [19:35:43]process_action close_receipt done [19:35:43]requested_data is exist [19:35:43]produce_requested_data [19:35:43]requested_item fm.sn is exist - process it [19:35:43]wFMCommunicate request_size=4 [19:35:43]MH_SAM_APDU [19:35:43]CAPDU: 80 11 00 00 [19:35:43]Write to MH i2c: E2 08 00 1C 19 80 11 00 00 00 00 00 00 AF [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:43]Read from MH i2c: E2 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 17 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 17 00 1C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FF [19:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:35:43]wFMCommunicate OK [19:35:43]requested_item fd.num is exist - process it [19:35:43]SAM_PROTO_GetFieldsCounters [19:35:43]wFMCommunicate request_size=4 [19:35:43]MH_SAM_APDU [19:35:43]CAPDU: 80 13 00 00 [19:35:43]Write to MH i2c: E2 08 00 1D 19 80 13 00 00 00 00 00 00 B2 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:43]Read from MH i2c: E2 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 62 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 62 00 1D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 00 09 00 00 0E 04 04 00 0F 00 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 BF [19:35:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 00 09 00 00 0E 04 04 00 0F 00 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 [19:35:43]wFMCommunicate OK [19:35:43]SAM_PROTO_GetFieldsCounters done [19:35:43]requested_item shift.num is exist - process it [19:35:43]requested_item shift.opened is exist - process it [19:35:43]req_shift_opened [19:35:43]FM_GetShiftState [19:35:43]SAM_PROTO_GetShiftState [19:35:43]wFMCommunicate request_size=4 [19:35:43]MH_SAM_APDU [19:35:43]CAPDU: 80 13 01 00 [19:35:43]Write to MH i2c: E2 08 00 1E 19 80 13 01 00 00 00 00 00 B4 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:43]Read from MH i2c: E2 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 0E 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 0E 00 1E 19 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AD [19:35:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:35:43]wFMCommunicate OK [19:35:43]SAM_PROTO_GetShiftState done [19:35:43]FM_GetShiftState done [19:35:43]req_shift_opened done [19:35:43]requested_item shift.open_date is exist - process it [19:35:43]req_shift_open_date [19:35:43]req_shift_open_date done [19:35:43]produce_requested_data done [19:35:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2304,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:35:43]process_action_free close_receipt [19:35:43]json_value_free [19:35:43]json_value_free done [19:35:43]process_json_proto returns [19:35:43]Send response to host [19:35:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2304,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:35:43]free response buf [19:35:43]execute_script done [19:35:43]execute_script returns [19:35:43]free content buf [19:35:43]Sock 8.Close socket [19:35:43]Sock 8.Thread stoped [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:20]accept exits with 9 [19:37:20]New connection [19:37:20]New thread 3067014500 created [19:37:20]Thread 3067157860 joined [19:37:20]Waiting for new connection... [19:37:20] Sock 9.Parse request [19:37:20]Sock 9.Check first char [19:37:20]Sock 9.First char is OK [19:37:20]request: POST /json_proto HTTP/1.0 [19:37:20]Method: POST [19:37:20]URL: /json_proto [19:37:20]Method is POST - this is cgi request [19:37:20]url: /json_proto [19:37:20]query_string will be loaded in cgi processing [19:37:20]execute_cgi json_proto POST (null) [19:37:20]execute_cgi path=json_proto method=POST [19:37:20]POST find Content-Length [19:37:20]Host: 172.17.45.132:8080 [19:37:20]Content-Length: 1203 [19:37:20]Content-Type: application/json [19:37:20] [19:37:20]POST finish read [19:37:20]Found Content-Length = 1203 [19:37:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610091\u000A29.07.2024 19:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:20]execute_script... [19:37:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610091\u000A29.07.2024 19:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-2\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3957586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:20]POST & json_proto [19:37:20]process_json_proto [19:37:20]json parsed OK: [19:37:20]protocol is kg_v1.0 [19:37:20]action value=print_text [19:37:20]process_action print_text [19:37:20]cmd_print_text [19:37:20]ExternCall_PrintAddStr [19:37:20]wPrintStart [19:37:20]Write to MH i2c: 01 00 00 1F 19 38 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: 01 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: 01 07 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: 01 07 00 1F 19 00 00 00 00 00 FF 0F 4D [19:37:20]RasterBufferAndPrint [19:37:20]line *****ТОВАРНЫЙ ЧЕК***** [19:37:20]line АЗС 127 [19:37:20]line Партнер нефть [19:37:20]line 02508201610067 [19:37:20]line Кассир : Мансуров А. [19:37:20]line Счет N : (1)610091 [19:37:20]line 29.07.2024 19:26 [19:37:20]line ПРОДАЖА [19:37:20]line ТРК (МРК, ГНК): 62 [19:37:20]line Вид ГСМ : 2710124130 [19:37:20]line Аи-92-К-2 [19:37:20]line 20.000 x 67.80 [19:37:20]line ИТОГ: 1356.00 [19:37:20]line Тип оплаты: Талоны: Топливные Талоны [19:37:20]line 3957586 [19:37:20]line ______________________ [19:37:20]line (подпись) [19:37:20]written 0, free lines is 4095 [19:37:20]Write to MH i2c: 01 00 00 33 19 4C [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: 01 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: 01 07 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: 01 07 00 33 19 00 00 00 00 00 11 0E 72 [19:37:20]RasterBufferAndPrint [19:37:20]line [19:37:20]line [19:37:20]line [19:37:20]line [19:37:20]line [19:37:20]written 0, free lines is 3602 [19:37:20]MH_Cut [19:37:20]Write to MH i2c: D1 01 00 3A 19 01 25 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: D1 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: D1 01 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: D1 01 00 3A 19 00 24 [19:37:20]Write to MH i2c: 01 00 00 3B 19 54 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]*** Cut start [19:37:20]*** Partial cut [19:37:20]*** CUTSNS_PIN = 1 [19:37:20]*** CUTSNS_PIN = 0 [19:37:21]*** Brake cut motor [19:37:21]Read from MH i2c: 01 [19:37:21]MH_I2C_Read... [19:37:21]*** Stop cut motor [19:37:21]*** Cut end [19:37:21]Read from MH i2c: 01 07 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: 01 07 00 3B 19 00 00 00 00 00 FF 0F 69 [19:37:21]process_action print_text done [19:37:21]requested_data is exist [19:37:21]produce_requested_data [19:37:21]requested_item fm.sn is exist - process it [19:37:21]wFMCommunicate request_size=4 [19:37:21]MH_SAM_APDU [19:37:21]CAPDU: 80 11 00 00 [19:37:21]Write to MH i2c: E2 08 00 3C 19 80 11 00 00 00 00 00 00 CF [19:37:21]Write i2c OK [19:37:21]MH_I2C_Read... [19:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:21]Read from MH i2c: E2 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 17 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 17 00 3C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1F [19:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:37:21]wFMCommunicate OK [19:37:21]requested_item fd.num is exist - process it [19:37:21]SAM_PROTO_GetFieldsCounters [19:37:21]wFMCommunicate request_size=4 [19:37:21]MH_SAM_APDU [19:37:21]CAPDU: 80 13 00 00 [19:37:21]Write to MH i2c: E2 08 00 3D 19 80 13 00 00 00 00 00 00 D2 [19:37:21]Write i2c OK [19:37:21]MH_I2C_Read... [19:37:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:21]Read from MH i2c: E2 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 62 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 62 00 3D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 00 09 00 00 0E 04 04 00 0F 00 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 DF [19:37:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 00 09 00 00 0E 04 04 00 0F 00 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 [19:37:21]wFMCommunicate OK [19:37:21]SAM_PROTO_GetFieldsCounters done [19:37:21]requested_item shift.num is exist - process it [19:37:21]requested_item shift.opened is exist - process it [19:37:21]req_shift_opened [19:37:21]FM_GetShiftState [19:37:21]SAM_PROTO_GetShiftState [19:37:21]wFMCommunicate request_size=4 [19:37:21]MH_SAM_APDU [19:37:21]CAPDU: 80 13 01 00 [19:37:21]Write to MH i2c: E2 08 00 3E 19 80 13 01 00 00 00 00 00 D4 [19:37:21]Write i2c OK [19:37:21]MH_I2C_Read... [19:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:21]Read from MH i2c: E2 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 0E 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 0E 00 3E 19 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CD [19:37:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:37:21]wFMCommunicate OK [19:37:21]SAM_PROTO_GetShiftState done [19:37:21]FM_GetShiftState done [19:37:21]req_shift_opened done [19:37:21]requested_item shift.open_date is exist - process it [19:37:21]req_shift_open_date [19:37:21]req_shift_open_date done [19:37:21]produce_requested_data done [19:37:21]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2304,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:37:21]process_action_free print_text [19:37:21]json_value_free [19:37:21]json_value_free done [19:37:21]process_json_proto returns [19:37:21]Send response to host [19:37:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2304,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:37:21]free response buf [19:37:21]execute_script done [19:37:21]execute_script returns [19:37:21]free content buf [19:37:21]Sock 9.Close socket [19:37:21]Sock 9.Thread stoped [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:35]accept exits with 10 [19:38:35]New connection [19:38:35]New thread 3067157860 created [19:38:35]Thread 3067014500 joined [19:38:35]Waiting for new connection... [19:38:35] Sock 10.Parse request [19:38:35]Sock 10.Check first char [19:38:35]Sock 10.First char is OK [19:38:35]request: POST /json_proto HTTP/1.0 [19:38:35]Method: POST [19:38:35]URL: /json_proto [19:38:35]Method is POST - this is cgi request [19:38:35]url: /json_proto [19:38:35]query_string will be loaded in cgi processing [19:38:35]execute_cgi json_proto POST (null) [19:38:35]execute_cgi path=json_proto method=POST [19:38:35]POST find Content-Length [19:38:35]Host: 172.17.45.132:8080 [19:38:35]Content-Length: 677 [19:38:35]Content-Type: application/json [19:38:35] [19:38:35]POST finish read [19:38:35]Found Content-Length = 677 [19:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:35]execute_script... [19:38: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)610092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:35]POST & json_proto [19:38:35]process_json_proto [19:38:35]json parsed OK: [19:38:35]protocol is kg_v1.0 [19:38:35]action value=close_receipt [19:38:35]process_action close_receipt [19:38:35]cmd_close_receipt [19:38:35]MH_GetDate [19:38:35]Write to MH i2c: F0 00 00 3F 19 47 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: F0 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: F0 09 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: F0 09 00 3F 19 00 BD EF A7 66 E3 0B 90 66 ED [19:38:35]GetLastDocTimeStamp 1722281741 [19:38:35]current date 1722281917 [19:38:35]FM_GetShiftState [19:38:35]SAM_PROTO_GetShiftState [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 13 01 00 [19:38:35]Write to MH i2c: E2 08 00 40 19 80 13 01 00 00 00 00 00 D6 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0E 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0E 00 40 19 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CF [19:38:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_GetShiftState done [19:38:35]FM_GetShiftState done [19:38:35]opened in 1722213119 [19:38:35]opened+sec_in_day 1722299519 [19:38:35]quantity*price = 60003 [19:38:35]sum+1 = 60004 [19:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 154 29.07.2024 19:38 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2305 ФПД: 264704500935065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193837&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2305&fm=264704500935065&tin=02508201610067®Number=0000000000189667&sum=60000 [19:38:36]StoreToDocumentArchive [19:38:36]shift 15 fd 2305 [19:38:36]save to /storage/0015/doc_00002305 [19:38:36]save last doc name /storage/0015/doc_00002305 to /storage/kkm_last_doc_name [19:38:36]save OK [19:38:36]Clear old archive folders... [19:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:36]tlvbuf is B6EDA320 [19:38:36]SAM_PROTO_ClearQueue [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 09 00 00 [19:38:36]Write to MH i2c: E2 08 00 4D 19 80 09 00 00 00 00 00 00 D8 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 4D 19 00 90 00 DA [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]SAM_PROTO_ClearQueue done [19:38:36]KKMCreateOFDPacket [19:38:36]OFDProtocolAddRootSTLVToBuf [19:38:36]FM_MakeSignedData [19:38:36]FM_MakeSignedData [19:38:36]SAM_PROTO_SignData [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 01 02 [19:38:36]Write to MH i2c: E2 08 00 4E 19 80 0D 01 02 00 00 00 00 E0 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 03 00 4E 19 00 90 00 DB [19:38:36]RAPDU: 90 00 [19:38:36]wFMCommunicate OK [19:38:36]wFMCommunicate request_size=255 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BD EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 09 00 00 35 04 06 00 F0 [19:38:36]Write to MH i2c: E2 02 01 4F 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BD EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 09 00 00 35 04 06 00 F0 00 00 88 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [19:38:37]RAPDU: 90 00 [19:38:37]wFMCommunicate OK [19:38:37]wFMCommunicate request_size=10 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 0D 02 02 05 BF 51 BF A9 99 [19:38:37]Write to MH i2c: E2 0D 00 50 19 80 0D 02 02 05 00 BF 51 BF A9 99 00 00 FE [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [19:38:37]RAPDU: 90 00 [19:38:37]wFMCommunicate OK [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 0D 03 02 [19:38:37]Write to MH i2c: E2 08 00 51 19 80 0D 03 02 00 00 00 00 E5 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 0B 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 0B 00 51 19 00 E4 97 95 FC 0C 03 5C 8A 90 00 E7 [19:38:37]RAPDU: E4 97 95 FC 0C 03 5C 8A 90 00 [19:38:37]wFMCommunicate OK [19:38:37]SAM_PROTO_SignData done [19:38:37]FM_MakeSignedData done [19:38:37]CreateOFDProtocolMessage [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 11 00 00 [19:38:37]Write to MH i2c: E2 08 00 52 19 80 11 00 00 00 00 00 00 E5 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 17 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 17 00 52 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 35 [19:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:38:37]wFMCommunicate OK [19:38:37]CreateOFDProtocolMessage done [19:38:37]OFDSenderStorePacket 2305 [19:38:37]StoreOFDPacket docnum=2305 [19:38:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 0C 2C 07 01 EF B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BD EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 09 00 00 35 04 06 00 F0 BF 51 BF A9 99 E4 97 95 FC 0C 03 5C 8A [19:38:37]CheckFolder [19:38:37]dirname=/storage/ofd_packets [19:38:37]CheckFolder done [19:38:37]ProducePacketName [19:38:37]name=ofd_packets/00002305 [19:38:37]NVStorageSaveData ofd_packets/00002305 [19:38:37]File name is /storage/ofd_packets/00002305 [19:38:37]Write 301 bytes [19:38:37]NVStorageSaveData done [19:38:37]OFDSenderStorePacket done [19:38:37]KKMCreateOFDPacket done [19:38:37]NVStorageSaveData kkm_last_timestamp [19:38:37]File name is /storage/kkm_last_timestamp [19:38:37]Write 4 bytes [19:38:37]NVStorageSaveData done [19:38:37]ExternCall_PrintAddStr [19:38:37]wPrintStart [19:38:37]Write to MH i2c: 01 00 00 53 19 6C [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: 01 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: 01 07 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: 01 07 00 53 19 00 00 00 00 00 FF 0F 81 [19:38:37]RasterBufferAndPrint [19:38:37]line Счет N : (1)610092 [19:38:37]line ИНН: 02508201610067 [19:38:37]line Контрольно-Кассовый Чек [19:38:37]line ПРОДАЖА [19:38:37]line ТРК (МРК, ГНК) : 32 [19:38:37]line Товар: 2710124130 [19:38:37]line Аи-92-К-2 [19:38:37]line 8.850 * 67.80 [19:38:37]line = 600.03 [19:38:37]line НДС 12% НСП 1% [19:38:37]line > о реализуемом товаре [19:38:37]line ОКРУГЛЕНИЕ: -0.03 [19:38:37]line ИТОГО: 600.00 [19:38:37]line Внесено: 600.00 [19:38:37]line СДАЧА: 0.00 [19:38:37]line НСП 1% : 5.31 [19:38:37]line НДС 12% : 63.72 [19:38:37]line Наличными: 600.00 [19:38:37]line Безнал.: 0.00 [19:38:37]line Место: АЗС № 127 "Партнер Нефть" [19:38:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:38:37]line СНО: Общий режим [19:38:37]line Чек 154 29.07.2024 19:38 [19:38:37]line Смена: 15 ФФД: 1.0 [19:38:37]line ЗНМ: 0300000161 [19:38:37]line РНМ: 0000000000189667 [19:38:37]line Версия ККМ: v1.0 [19:38:37]line ФМ: 0000000002094248 [19:38:37]line ФД: 2305 [19:38:37]line ФПД: 264704500935065 [19:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193837&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2305&fm=264704500935065&tin=02508201610067®Number=0000000000189667&sum=60000 [19:38:37]OFD Sender: Processing packet 2305 [packets to send 1, broken 0] [19:38:37]ProducePacketName [19:38:37]name=ofd_packets/00002305 [19:38:37]OFD Sender: To server: pG, [19:38:37]CommunicateWithHost lk.salyk.kg:30040 [19:38:37]ConnectInit lk.salyk.kg [19:38:37]written 0, free lines is 4095 [19:38:37]Connected sock=9 [19:38:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 0C 2C 07 01 EF B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BD EF A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 09 00 00 35 04 06 00 F0 BF 51 BF A9 99 E4 97 95 FC 0C 03 5C 8A [19:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 15 44 47 00 BD 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 01 09 00 00 F4 03 04 00 28 9B A7 66 B6 04 01 00 00 5B A1 50 96 3A BD 40 DE [19:38:38]CommunicateWithHost err = 0 [19:38:38]CheckOFDResponse [19:38:38]1017 (14) - 77093643461234 [19:38:38]1041 (16) - 0000000002094248 [19:38:38]1040 (4) - 2305 [19:38:38]1012 (4) - 29.07.2024 13:37 [19:38:38]1206 (1) - 0 [19:38:38]OFD Sender: Remove packet 2305 [19:38:38]ProducePacketName [19:38:38]name=ofd_packets/00002305 [19:38:38]NVStorageDeleteData [19:38:38]Write to MH i2c: 01 00 00 7E 19 97 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: 01 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: 01 07 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: 01 07 00 7E 19 00 00 00 00 00 E0 0C 8A [19:38:38]RasterBufferAndPrint [19:38:38]line [19:38:38]line [19:38:38]line [19:38:38]line [19:38:38]line [19:38:38]written 0, free lines is 3302 [19:38:38]MH_Cut [19:38:38]Write to MH i2c: D1 01 00 85 19 01 70 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: D1 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: D1 01 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: D1 01 00 85 19 00 6F [19:38:38]Write to MH i2c: 01 00 00 86 19 9F [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]OFD Sender: No OFD packet to send [19:38:38]*** Cut start [19:38:38]*** Partial cut [19:38:38]*** CUTSNS_PIN = 1 [19:38:38]*** CUTSNS_PIN = 0 [19:38:39]*** Brake cut motor [19:38:39]Read from MH i2c: 01 [19:38:39]MH_I2C_Read... [19:38:39]*** Stop cut motor [19:38:39]*** Cut end [19:38:39]Read from MH i2c: 01 07 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 FF 0F B4 [19:38:39]process_action close_receipt done [19:38:39]requested_data is exist [19:38:39]produce_requested_data [19:38:39]requested_item fm.sn is exist - process it [19:38:39]wFMCommunicate request_size=4 [19:38:39]MH_SAM_APDU [19:38:39]CAPDU: 80 11 00 00 [19:38:39]Write to MH i2c: E2 08 00 87 19 80 11 00 00 00 00 00 00 1A [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 [19:38:39]MH_I2C_Read... [19:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:39]Read from MH i2c: E2 17 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 17 00 87 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6A [19:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:38:39]wFMCommunicate OK [19:38:39]requested_item fd.num is exist - process it [19:38:39]SAM_PROTO_GetFieldsCounters [19:38:39]wFMCommunicate request_size=4 [19:38:39]MH_SAM_APDU [19:38:39]CAPDU: 80 13 00 00 [19:38:39]Write to MH i2c: E2 08 00 88 19 80 13 00 00 00 00 00 00 1D [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:39]Read from MH i2c: E2 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 62 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 62 00 88 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 01 09 00 00 0E 04 04 00 0F 00 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 2E [19:38:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 01 09 00 00 0E 04 04 00 0F 00 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 [19:38:39]wFMCommunicate OK [19:38:39]SAM_PROTO_GetFieldsCounters done [19:38:39]requested_item shift.num is exist - process it [19:38:39]requested_item shift.opened is exist - process it [19:38:39]req_shift_opened [19:38:39]FM_GetShiftState [19:38:39]SAM_PROTO_GetShiftState [19:38:39]wFMCommunicate request_size=4 [19:38:39]MH_SAM_APDU [19:38:39]CAPDU: 80 13 01 00 [19:38:39]Write to MH i2c: E2 08 00 89 19 80 13 01 00 00 00 00 00 1F [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:39]Read from MH i2c: E2 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 0E 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: E2 0E 00 89 19 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 18 [19:38:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:38:39]wFMCommunicate OK [19:38:39]SAM_PROTO_GetShiftState done [19:38:39]FM_GetShiftState done [19:38:39]req_shift_opened done [19:38:39]requested_item shift.open_date is exist - process it [19:38:39]req_shift_open_date [19:38:39]req_shift_open_date done [19:38:39]produce_requested_data done [19:38:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2305,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:38:39]process_action_free close_receipt [19:38:39]json_value_free [19:38:39]json_value_free done [19:38:39]process_json_proto returns [19:38:39]Send response to host [19:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2305,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:38:39]free response buf [19:38:39]execute_script done [19:38:39]execute_script returns [19:38:39]free content buf [19:38:39]Sock 10.Close socket [19:38:39]Sock 10.Thread stoped [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46: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:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]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:17]accept exits with 8 [19:53:17]New connection [19:53:17]New thread 3067014500 created [19:53:17]Thread 3067157860 joined [19:53:17]Waiting for new connection... [19:53:17] Sock 8.Parse request [19:53:17]Sock 8.Check first char [19:53:17]Sock 8.First char is OK [19:53:17]request: POST /json_proto HTTP/1.0 [19:53:17]Method: POST [19:53:17]URL: /json_proto [19:53:17]Method is POST - this is cgi request [19:53:17]url: /json_proto [19:53:17]query_string will be loaded in cgi processing [19:53:17]execute_cgi json_proto POST (null) [19:53:17]execute_cgi path=json_proto method=POST [19:53:17]POST find Content-Length [19:53:17]Host: 172.17.45.132:8080 [19:53:17]Content-Length: 1129 [19:53:17]Content-Type: application/json [19:53:17] [19:53:17]POST finish read [19:53:17]Found Content-Length = 1129 [19:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126554", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\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" : 368.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:17]execute_script... [19:53: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)126554", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\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" : 368.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:17]POST & json_proto [19:53:17]process_json_proto [19:53:17]json parsed OK: [19:53:17]protocol is kg_v1.0 [19:53:17]action value=close_receipt [19:53:17]process_action close_receipt [19:53:17]cmd_close_receipt [19:53:17]MH_GetDate [19:53:17]Write to MH i2c: F0 00 00 8A 19 92 [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: F0 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: F0 09 00 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: F0 09 00 8A 19 00 2E F3 A7 66 E3 0B 90 66 AD [19:53:17]GetLastDocTimeStamp 1722281917 [19:53:17]current date 1722282798 [19:53:17]FM_GetShiftState [19:53:17]SAM_PROTO_GetShiftState [19:53:17]wFMCommunicate request_size=4 [19:53:17]MH_SAM_APDU [19:53:17]CAPDU: 80 13 01 00 [19:53:17]Write to MH i2c: E2 08 00 8B 19 80 13 01 00 00 00 00 00 21 [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:17]Read from MH i2c: E2 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 0E 00 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 0E 00 8B 19 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1A [19:53:17]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:53:17]wFMCommunicate OK [19:53:17]SAM_PROTO_GetShiftState done [19:53:17]FM_GetShiftState done [19:53:17]opened in 1722213119 [19:53:17]opened+sec_in_day 1722299519 [19:53:17]quantity*price = 14000 [19:53:17]sum+1 = 14001 [19:53:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870227272957 Лимонад Sunbel Тархун 1л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 368.00 НСП 1% : 3.25 НДС 12% : 39.09 Наличными: 368.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 155 29.07.2024 19:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2306 ФПД: 43114735212142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2306&fm=43114735212142&tin=02508201610067®Number=0000000000189667&sum=36800 0 [19:53:18]StoreToDocumentArchive [19:53:18]shift 15 fd 2306 [19:53:18]save to /storage/0015/doc_00002306 [19:53:18]save last doc name /storage/0015/doc_00002306 to /storage/kkm_last_doc_name [19:53:18]save OK [19:53:18]Clear old archive folders... [19:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=491 [19:53:18]tlvbuf is 02024830 [19:53:18]SAM_PROTO_ClearQueue [19:53:18]wFMCommunicate request_size=4 [19:53:18]MH_SAM_APDU [19:53:18]CAPDU: 80 09 00 00 [19:53:18]Write to MH i2c: E2 08 00 98 19 80 09 00 00 00 00 00 00 23 [19:53:18]Write i2c OK [19:53:18]MH_I2C_Read... [19:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:18]Read from MH i2c: E2 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: E2 03 00 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [19:53:18]RAPDU: 90 00 [19:53:18]wFMCommunicate OK [19:53:18]SAM_PROTO_ClearQueue done [19:53:18]KKMCreateOFDPacket [19:53:18]OFDProtocolAddRootSTLVToBuf [19:53:18]FM_MakeSignedData [19:53:18]FM_MakeSignedData [19:53:18]SAM_PROTO_SignData [19:53:18]wFMCommunicate request_size=4 [19:53:18]MH_SAM_APDU [19:53:18]CAPDU: 80 0D 01 02 [19:53:18]Write to MH i2c: E2 08 00 99 19 80 0D 01 02 00 00 00 00 2B [19:53:18]Write i2c OK [19:53:18]MH_I2C_Read... [19:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:18]Read from MH i2c: E2 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: E2 03 00 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [19:53:18]RAPDU: 90 00 [19:53:18]wFMCommunicate OK [19:53:18]wFMCommunicate request_size=255 [19:53:18]MH_SAM_APDU [19:53:18]CAPDU: 80 0D 02 02 FA 03 00 EB 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 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 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 DC 37 00 00 00 00 13 04 06 00 DC 37 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 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 [19:53:18]Write to MH i2c: E2 02 01 9A 19 80 0D 02 02 FA 00 03 00 EB 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 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 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 DC 37 00 00 00 00 13 04 06 00 DC 37 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 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 00 00 82 [19:53:18]Write i2c OK [19:53:18]MH_I2C_Read... [19:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:19]Read from MH i2c: E2 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 03 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [19:53:19]RAPDU: 90 00 [19:53:19]wFMCommunicate OK [19:53:19]wFMCommunicate request_size=250 [19:53:19]MH_SAM_APDU [19:53:19]CAPDU: 80 0D 02 02 F5 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 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 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2E F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 09 00 00 35 04 06 00 27 36 6E 7A 16 6E [19:53:19]Write to MH i2c: E2 FD 00 9B 19 80 0D 02 02 F5 00 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 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 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2E F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 09 00 00 35 04 06 00 27 36 6E 7A 16 6E 00 00 D5 [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]OFD Sender: No OFD packet to send [19:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:19]Read from MH i2c: E2 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 03 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [19:53:19]RAPDU: 90 00 [19:53:19]wFMCommunicate OK [19:53:19]wFMCommunicate request_size=4 [19:53:19]MH_SAM_APDU [19:53:19]CAPDU: 80 0D 03 02 [19:53:19]Write to MH i2c: E2 08 00 9C 19 80 0D 03 02 00 00 00 00 30 [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:19]Read from MH i2c: E2 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 0B 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 0B 00 9C 19 00 AA 12 DA BC CB D4 BE 2E 90 00 0E [19:53:19]RAPDU: AA 12 DA BC CB D4 BE 2E 90 00 [19:53:19]wFMCommunicate OK [19:53:19]SAM_PROTO_SignData done [19:53:19]FM_MakeSignedData done [19:53:19]CreateOFDProtocolMessage [19:53:19]wFMCommunicate request_size=4 [19:53:19]MH_SAM_APDU [19:53:19]CAPDU: 80 11 00 00 [19:53:19]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 [19:53:19]MH_I2C_Read... [19:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:19]Read from MH i2c: E2 17 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 80 [19:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:53:19]wFMCommunicate OK [19:53:19]CreateOFDProtocolMessage done [19:53:19]OFDSenderStorePacket 2306 [19:53:19]StoreOFDPacket docnum=2306 [19:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 FF 01 00 00 1B 46 F7 01 07 1B 5A 03 01 00 03 00 EB 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 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 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 DC 37 00 00 00 00 13 04 06 00 DC 37 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 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 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 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2E F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 09 00 00 35 04 06 00 27 36 6E 7A 16 6E AA 12 DA BC CB D4 BE 2E [19:53:19]CheckFolder [19:53:19]dirname=/storage/ofd_packets [19:53:19]CheckFolder done [19:53:19]ProducePacketName [19:53:19]name=ofd_packets/00002306 [19:53:19]NVStorageSaveData ofd_packets/00002306 [19:53:19]File name is /storage/ofd_packets/00002306 [19:53:19]Write 541 bytes [19:53:19]NVStorageSaveData done [19:53:19]OFDSenderStorePacket done [19:53:19]KKMCreateOFDPacket done [19:53:19]NVStorageSaveData kkm_last_timestamp [19:53:19]File name is /storage/kkm_last_timestamp [19:53:19]Write 4 bytes [19:53:19]NVStorageSaveData done [19:53:19]ExternCall_PrintAddStr [19:53:19]wPrintStart [19:53:19]Write to MH i2c: 01 00 00 9E 19 B7 [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: 01 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: 01 07 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: 01 07 00 9E 19 00 00 00 00 00 FF 0F CC [19:53:19]RasterBufferAndPrint [19:53:19]line Счет N : (3)126554 [19:53:19]line ИНН: 02508201610067 [19:53:19]line Контрольно-Кассовый Чек [19:53:19]line ПРОДАЖА [19:53:19]line Товар: 48743587 [19:53:19]line Сигареты Winston XStyle Silver [19:53:19]line 1.000 * 140.00 [19:53:19]line = 140.00 [19:53:19]line НДС 12% НСП 1% [19:53:19]line > о реализуемом товаре [19:53:19]line Товар: 48744683 [19:53:19]line Сигареты Winston XStyle Caster+ [19:53:19]line 1.000 * 143.00 [19:53:19]line = 143.00 [19:53:19]line НДС 12% НСП 1% [19:53:19]line > о реализуемом товаре [19:53:19]line Товар: 4870227272957 [19:53:19]line Лимонад Sunbel Тархун 1л [19:53:19]line 1.000 * 85.00 [19:53:19]line = 85.00 [19:53:19]line НДС 12% НСП 1% [19:53:19]line > о реализуемом товаре [19:53:19]line ИТОГО: 368.00 [19:53:19]line НСП 1% : 3.25 [19:53:19]line НДС 12% : 39.09 [19:53:19]line Наличными: 368.00 [19:53:19]line Безнал.: 0.00 [19:53:19]line Место: АЗС № 127 "Партнер Нефть" [19:53:19]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:53:19]line СНО: Общий режим [19:53:19]line Чек 155 29.07.2024 19:53 [19:53:19]line Смена: 15 ФФД: 1.0 [19:53:19]line ЗНМ: 0300000161 [19:53:19]line РНМ: 0000000000189667 [19:53:19]line Версия ККМ: v1.0 [19:53:19]line ФМ: 0000000002094248 [19:53:19]line ФД: 2306 [19:53:19]line ФПД: 43114735212142 [19:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2306&fm=43114735212142&tin=02508201610067®Number=0000000000189667&sum=36800 [19:53:19]line 0 [19:53:19]written 0, free lines is 4095 [19:53:19]OFD Sender: Processing packet 2306 [packets to send 1, broken 0] [19:53:19]ProducePacketName [19:53:19]name=ofd_packets/00002306 [19:53:19]OFD Sender: To server: pG, [19:53:19]CommunicateWithHost lk.salyk.kg:30040 [19:53:19]ConnectInit lk.salyk.kg [19:53:19]Connected sock=10 [19:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 FF 01 00 00 1B 46 F7 01 07 1B 5A 03 01 00 03 00 EB 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 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 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 DC 37 00 00 00 00 13 04 06 00 DC 37 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 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 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 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0F 00 00 00 00 07 04 06 00 C0 8F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 2E F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 09 00 00 35 04 06 00 27 36 6E 7A 16 6E AA 12 DA BC CB D4 BE 2E [19:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3A EF 47 00 CA D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 02 09 00 00 F4 03 04 00 9A 9E A7 66 B6 04 01 00 00 74 13 CC 07 31 5A 7B 76 [19:53:19]CommunicateWithHost err = 0 [19:53:19]CheckOFDResponse [19:53:19]1017 (14) - 77093643461234 [19:53:19]1041 (16) - 0000000002094248 [19:53:19]1040 (4) - 2306 [19:53:19]1012 (4) - 29.07.2024 13:52 [19:53:19]1206 (1) - 0 [19:53:19]OFD Sender: Remove packet 2306 [19:53:19]ProducePacketName [19:53:19]name=ofd_packets/00002306 [19:53:19]NVStorageDeleteData [19:53:19]Write to MH i2c: 01 00 00 D4 19 ED [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: 01 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: 01 07 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: 01 07 00 D4 19 00 00 00 00 00 55 0C 55 [19:53:19]RasterBufferAndPrint [19:53:19]line [19:53:19]line [19:53:19]line [19:53:19]line [19:53:19]line [19:53:19]written 0, free lines is 3166 [19:53:19]MH_Cut [19:53:19]Write to MH i2c: D1 01 00 DB 19 01 C6 [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: D1 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: D1 01 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: D1 01 00 DB 19 00 C5 [19:53:19]Write to MH i2c: 01 00 00 DC 19 F5 [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:20]OFD Sender: No OFD packet to send [19:53:20]*** Cut start [19:53:20]*** Partial cut [19:53:20]*** CUTSNS_PIN = 1 [19:53:20]*** CUTSNS_PIN = 0 [19:53:21]*** Brake cut motor [19:53:21]Read from MH i2c: 01 [19:53:21]MH_I2C_Read... [19:53:21]*** Stop cut motor [19:53:21]*** Cut end [19:53:21]Read from MH i2c: 01 07 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: 01 07 00 DC 19 00 00 00 00 00 FF 0F 0A [19:53:21]process_action close_receipt done [19:53:21]requested_data is exist [19:53:21]produce_requested_data [19:53:21]requested_item fm.sn is exist - process it [19:53:21]wFMCommunicate request_size=4 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 11 00 00 [19:53:21]Write to MH i2c: E2 08 00 DD 19 80 11 00 00 00 00 00 00 70 [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:21]Read from MH i2c: E2 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 17 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 17 00 DD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C0 [19:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:53:21]wFMCommunicate OK [19:53:21]requested_item fd.num is exist - process it [19:53:21]SAM_PROTO_GetFieldsCounters [19:53:21]wFMCommunicate request_size=4 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 13 00 00 [19:53:21]Write to MH i2c: E2 08 00 DE 19 80 13 00 00 00 00 00 00 73 [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:21]Read from MH i2c: E2 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 62 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 62 00 DE 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 02 09 00 00 0E 04 04 00 0F 00 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 88 [19:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 02 09 00 00 0E 04 04 00 0F 00 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 [19:53:21]wFMCommunicate OK [19:53:21]SAM_PROTO_GetFieldsCounters done [19:53:21]requested_item shift.num is exist - process it [19:53:21]requested_item shift.opened is exist - process it [19:53:21]req_shift_opened [19:53:21]FM_GetShiftState [19:53:21]SAM_PROTO_GetShiftState [19:53:21]wFMCommunicate request_size=4 [19:53:21]MH_SAM_APDU [19:53:21]CAPDU: 80 13 01 00 [19:53:21]Write to MH i2c: E2 08 00 DF 19 80 13 01 00 00 00 00 00 75 [19:53:21]Write i2c OK [19:53:21]MH_I2C_Read... [19:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:21]Read from MH i2c: E2 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 0E 00 [19:53:21]MH_I2C_Read... [19:53:21]Read from MH i2c: E2 0E 00 DF 19 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6E [19:53:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:53:21]wFMCommunicate OK [19:53:21]SAM_PROTO_GetShiftState done [19:53:21]FM_GetShiftState done [19:53:21]req_shift_opened done [19:53:21]requested_item shift.open_date is exist - process it [19:53:21]req_shift_open_date [19:53:21]req_shift_open_date done [19:53:21]produce_requested_data done [19:53:21]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2306,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:53:21]process_action_free close_receipt [19:53:21]json_value_free [19:53:21]json_value_free done [19:53:21]process_json_proto returns [19:53:21]Send response to host [19:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2306,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:53:21]free response buf [19:53:21]execute_script done [19:53:21]execute_script returns [19:53:21]free content buf [19:53:21]Sock 8.Close socket [19:53:21]Sock 8.Thread stoped [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:23]accept exits with 9 [19:55:23]New connection [19:55:23]New thread 3067157860 created [19:55:23]Thread 3067014500 joined [19:55:23]Waiting for new connection... [19:55:23] Sock 9.Parse request [19:55:23]Sock 9.Check first char [19:55:23]Sock 9.First char is OK [19:55:23]request: POST /json_proto HTTP/1.0 [19:55:23]Method: POST [19:55:23]URL: /json_proto [19:55:23]Method is POST - this is cgi request [19:55:23]url: /json_proto [19:55:23]query_string will be loaded in cgi processing [19:55:23]execute_cgi json_proto POST (null) [19:55:23]execute_cgi path=json_proto method=POST [19:55:23]POST find Content-Length [19:55:23]Host: 172.17.45.132:8080 [19:55:23]Content-Length: 916 [19:55:23]Content-Type: application/json [19:55:23] [19:55:23]POST finish read [19:55:23]Found Content-Length = 916 [19:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126555", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:23]execute_script... [19:55: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)126555", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:23]POST & json_proto [19:55:23]process_json_proto [19:55:23]json parsed OK: [19:55:23]protocol is kg_v1.0 [19:55:23]action value=close_receipt [19:55:23]process_action close_receipt [19:55:23]cmd_close_receipt [19:55:23]MH_GetDate [19:55:23]Write to MH i2c: F0 00 00 E0 19 E8 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: F0 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: F0 09 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: F0 09 00 E0 19 00 AC F3 A7 66 E3 0B 90 66 81 [19:55:23]GetLastDocTimeStamp 1722282798 [19:55:23]current date 1722282924 [19:55:23]FM_GetShiftState [19:55:23]SAM_PROTO_GetShiftState [19:55:23]wFMCommunicate request_size=4 [19:55:23]MH_SAM_APDU [19:55:23]CAPDU: 80 13 01 00 [19:55:23]Write to MH i2c: E2 08 00 E1 19 80 13 01 00 00 00 00 00 77 [19:55:23]Write i2c OK [19:55:23]MH_I2C_Read... [19:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:23]Read from MH i2c: E2 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 0E 00 [19:55:23]MH_I2C_Read... [19:55:23]Read from MH i2c: E2 0E 00 E1 19 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 70 [19:55:23]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:55:23]wFMCommunicate OK [19:55:23]SAM_PROTO_GetShiftState done [19:55:23]FM_GetShiftState done [19:55:23]opened in 1722213119 [19:55:23]opened+sec_in_day 1722299519 [19:55:23]quantity*price = 10700 [19:55:23]sum+1 = 10701 [19:55:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230607 Сигареты Richmond Bronze Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 257.00 НСП 1% : 2.28 НДС 12% : 27.29 Наличными: 257.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 156 29.07.2024 19:55 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2307 ФПД: 102824553068834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195524&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2307&fm=102824553068834&tin=02508201610067®Number=0000000000189667&sum=25700 0 [19:55:24]StoreToDocumentArchive [19:55:24]shift 15 fd 2307 [19:55:24]save to /storage/0015/doc_00002307 [19:55:24]save last doc name /storage/0015/doc_00002307 to /storage/kkm_last_doc_name [19:55:24]save OK [19:55:24]Clear old archive folders... [19:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=394 [19:55:24]tlvbuf is 01F8F770 [19:55:24]SAM_PROTO_ClearQueue [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 09 00 00 [19:55:24]Write to MH i2c: E2 08 00 EE 19 80 09 00 00 00 00 00 00 79 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 EE 19 00 90 00 7B [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]SAM_PROTO_ClearQueue done [19:55:24]KKMCreateOFDPacket [19:55:24]OFDProtocolAddRootSTLVToBuf [19:55:24]FM_MakeSignedData [19:55:24]FM_MakeSignedData [19:55:24]SAM_PROTO_SignData [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 01 02 [19:55:24]Write to MH i2c: E2 08 00 EF 19 80 0D 01 02 00 00 00 00 81 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]wFMCommunicate request_size=255 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 02 02 FA 03 00 8A 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 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 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 64 64 00 00 00 00 EB 03 26 00 EF 03 0F [19:55:24]Write to MH i2c: E2 02 01 F0 19 80 0D 02 02 FA 00 03 00 8A 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 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 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 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 06 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 F0 19 00 90 00 7D [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]wFMCommunicate request_size=153 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AC F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 09 00 00 35 04 06 00 5D 84 B4 F5 B9 22 [19:55:24]Write to MH i2c: E2 9C 00 F1 19 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AC F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 09 00 00 35 04 06 00 5D 84 B4 F5 B9 22 00 00 04 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 03 00 F1 19 00 90 00 7E [19:55:24]RAPDU: 90 00 [19:55:24]wFMCommunicate OK [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 0D 03 02 [19:55:24]Write to MH i2c: E2 08 00 F2 19 80 0D 03 02 00 00 00 00 86 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 0B 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 0B 00 F2 19 00 FC 3D B3 FD 1F 39 34 31 90 00 2D [19:55:24]RAPDU: FC 3D B3 FD 1F 39 34 31 90 00 [19:55:24]wFMCommunicate OK [19:55:24]SAM_PROTO_SignData done [19:55:24]FM_MakeSignedData done [19:55:24]CreateOFDProtocolMessage [19:55:24]wFMCommunicate request_size=4 [19:55:24]MH_SAM_APDU [19:55:24]CAPDU: 80 11 00 00 [19:55:24]Write to MH i2c: E2 08 00 F3 19 80 11 00 00 00 00 00 00 86 [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:24]Read from MH i2c: E2 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 17 00 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: E2 17 00 F3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D6 [19:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:55:24]wFMCommunicate OK [19:55:24]CreateOFDProtocolMessage done [19:55:24]OFDSenderStorePacket 2307 [19:55:24]StoreOFDPacket docnum=2307 [19:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 C5 90 96 01 E5 3E 5A 03 01 00 03 00 8A 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 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 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 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AC F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 09 00 00 35 04 06 00 5D 84 B4 F5 B9 22 FC 3D B3 FD 1F 39 34 31 [19:55:24]CheckFolder [19:55:24]dirname=/storage/ofd_packets [19:55:24]CheckFolder done [19:55:24]ProducePacketName [19:55:24]name=ofd_packets/00002307 [19:55:24]NVStorageSaveData ofd_packets/00002307 [19:55:24]File name is /storage/ofd_packets/00002307 [19:55:24]Write 444 bytes [19:55:24]NVStorageSaveData done [19:55:24]OFDSenderStorePacket done [19:55:24]KKMCreateOFDPacket done [19:55:24]NVStorageSaveData kkm_last_timestamp [19:55:24]File name is /storage/kkm_last_timestamp [19:55:24]Write 4 bytes [19:55:24]NVStorageSaveData done [19:55:24]ExternCall_PrintAddStr [19:55:24]wPrintStart [19:55:24]Write to MH i2c: 01 00 00 F4 19 0D [19:55:24]Write i2c OK [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 [19:55:24]MH_I2C_Read... [19:55:24]Read from MH i2c: 01 07 00 [19:55:25]MH_I2C_Read... [19:55:25]OFD Sender: Processing packet 2307 [packets to send 1, broken 0] [19:55:25]ProducePacketName [19:55:25]name=ofd_packets/00002307 [19:55:25]OFD Sender: To server: pG, [19:55:25]CommunicateWithHost lk.salyk.kg:30040 [19:55:25]ConnectInit lk.salyk.kg [19:55:25]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 FF 0F 22 [19:55:25]RasterBufferAndPrint [19:55:25]line Счет N : (3)126555 [19:55:25]line ИНН: 02508201610067 [19:55:25]line Контрольно-Кассовый Чек [19:55:25]line ПРОДАЖА [19:55:25]line Товар: 5449000189332 [19:55:25]line Холодный чай Fuse персик 1л [19:55:25]line 1.000 * 107.00 [19:55:25]line = 107.00 [19:55:25]line НДС 12% НСП 1% [19:55:25]line > о реализуемом товаре [19:55:25]line Товар: 46230607 [19:55:25]line Сигареты Richmond Bronze Edition [19:55:25]line 1.000 * 150.00 [19:55:25]line = 150.00 [19:55:25]line НДС 12% НСП 1% [19:55:25]line > о реализуемом товаре [19:55:25]line ИТОГО: 257.00 [19:55:25]line НСП 1% : 2.28 [19:55:25]line НДС 12% : 27.29 [19:55:25]line Наличными: 257.00 [19:55:25]line Безнал.: 0.00 [19:55:25]line Место: АЗС № 127 "Партнер Нефть" [19:55:25]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:55:25]line СНО: Общий режим [19:55:25]line Чек 156 29.07.2024 19:55 [19:55:25]line Смена: 15 ФФД: 1.0 [19:55:25]line ЗНМ: 0300000161 [19:55:25]line РНМ: 0000000000189667 [19:55:25]line Версия ККМ: v1.0 [19:55:25]line ФМ: 0000000002094248 [19:55:25]line ФД: 2307 [19:55:25]line ФПД: 102824553068834 [19:55:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195524&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2307&fm=102824553068834&tin=02508201610067®Number=0000000000189667&sum=25700 [19:55:25]line 0 [19:55:25]written 0, free lines is 4095 [19:55:25]Connected sock=10 [19:55:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9E 01 00 00 C5 90 96 01 E5 3E 5A 03 01 00 03 00 8A 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 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 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 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 AC F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 09 00 00 35 04 06 00 5D 84 B4 F5 B9 22 FC 3D B3 FD 1F 39 34 31 [19:55:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E5 36 47 00 A6 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 03 09 00 00 F4 03 04 00 18 9F A7 66 B6 04 01 00 00 C5 A1 CD 43 31 32 5C A7 [19:55:25]CommunicateWithHost err = 0 [19:55:25]CheckOFDResponse [19:55:25]1017 (14) - 77093643461234 [19:55:25]1041 (16) - 0000000002094248 [19:55:25]1040 (4) - 2307 [19:55:25]1012 (4) - 29.07.2024 13:54 [19:55:25]1206 (1) - 0 [19:55:25]OFD Sender: Remove packet 2307 [19:55:25]ProducePacketName [19:55:25]name=ofd_packets/00002307 [19:55:25]NVStorageDeleteData [19:55:25]Write to MH i2c: 01 00 00 23 1A 3D [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: 01 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: 01 07 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: 01 07 00 23 1A 00 00 00 00 00 C1 0C 11 [19:55:25]RasterBufferAndPrint [19:55:25]line [19:55:25]line [19:55:25]line [19:55:25]line [19:55:25]line [19:55:25]written 0, free lines is 3274 [19:55:25]MH_Cut [19:55:25]Write to MH i2c: D1 01 00 2A 1A 01 16 [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: D1 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: D1 01 00 [19:55:25]MH_I2C_Read... [19:55:25]Read from MH i2c: D1 01 00 2A 1A 00 15 [19:55:25]Write to MH i2c: 01 00 00 2B 1A 45 [19:55:25]Write i2c OK [19:55:25]MH_I2C_Read... [19:55:26]OFD Sender: No OFD packet to send [19:55:26]*** Cut start [19:55:26]*** Partial cut [19:55:26]*** CUTSNS_PIN = 1 [19:55:26]*** CUTSNS_PIN = 0 [19:55:26]*** Brake cut motor [19:55:27]Read from MH i2c: 01 [19:55:27]MH_I2C_Read... [19:55:27]*** Stop cut motor [19:55:27]*** Cut end [19:55:27]Read from MH i2c: 01 07 00 [19:55:27]MH_I2C_Read... [19:55:27]Read from MH i2c: 01 07 00 2B 1A 00 00 00 00 00 FF 0F 5A [19:55:27]process_action close_receipt done [19:55:27]requested_data is exist [19:55:27]produce_requested_data [19:55:27]requested_item fm.sn is exist - process it [19:55:27]wFMCommunicate request_size=4 [19:55:27]MH_SAM_APDU [19:55:27]CAPDU: 80 11 00 00 [19:55:27]Write to MH i2c: E2 08 00 2C 1A 80 11 00 00 00 00 00 00 C0 [19:55:27]Write i2c OK [19:55:27]MH_I2C_Read... [19:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:27]Read from MH i2c: E2 [19:55:27]MH_I2C_Read... [19:55:27]Read from MH i2c: E2 17 00 [19:55:27]MH_I2C_Read... [19:55:27]Read from MH i2c: E2 17 00 2C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [19:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:55:27]wFMCommunicate OK [19:55:27]requested_item fd.num is exist - process it [19:55:27]SAM_PROTO_GetFieldsCounters [19:55:27]wFMCommunicate request_size=4 [19:55:27]MH_SAM_APDU [19:55:27]CAPDU: 80 13 00 00 [19:55:27]Write to MH i2c: E2 08 00 2D 1A 80 13 00 00 00 00 00 00 C3 [19:55:27]Write i2c OK [19:55:27]MH_I2C_Read... [19:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:27]Read from MH i2c: E2 [19:55:27]MH_I2C_Read... [19:55:27]Read from MH i2c: E2 62 00 [19:55:27]MH_I2C_Read... [19:55:27]Read from MH i2c: E2 62 00 2D 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 03 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [19:55:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 03 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:27]wFMCommunicate OK [19:55:27]SAM_PROTO_GetFieldsCounters done [19:55:27]requested_item shift.num is exist - process it [19:55:27]requested_item shift.opened is exist - process it [19:55:27]req_shift_opened [19:55:27]FM_GetShiftState [19:55:27]SAM_PROTO_GetShiftState [19:55:27]wFMCommunicate request_size=4 [19:55:27]MH_SAM_APDU [19:55:27]CAPDU: 80 13 01 00 [19:55:27]Write to MH i2c: E2 08 00 2E 1A 80 13 01 00 00 00 00 00 C5 [19:55:27]Write i2c OK [19:55:27]MH_I2C_Read... [19:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:27]Read from MH i2c: E2 [19:55:27]MH_I2C_Read... [19:55:27]Read from MH i2c: E2 0E 00 [19:55:27]MH_I2C_Read... [19:55:27]Read from MH i2c: E2 0E 00 2E 1A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BE [19:55:27]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:55:27]wFMCommunicate OK [19:55:27]SAM_PROTO_GetShiftState done [19:55:27]FM_GetShiftState done [19:55:27]req_shift_opened done [19:55:27]requested_item shift.open_date is exist - process it [19:55:27]req_shift_open_date [19:55:27]req_shift_open_date done [19:55:27]produce_requested_data done [19:55:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2307,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:55:27]process_action_free close_receipt [19:55:27]json_value_free [19:55:27]json_value_free done [19:55:27]process_json_proto returns [19:55:27]Send response to host [19:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2307,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:55:27]free response buf [19:55:27]execute_script done [19:55:27]execute_script returns [19:55:27]free content buf [19:55:27]Sock 9.Close socket [19:55:27]Sock 9.Thread stoped [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:44]accept exits with 8 [19:55:44]New connection [19:55:44]New thread 3067014500 created [19:55:44]Thread 3067157860 joined [19:55:44]Waiting for new connection... [19:55:44] Sock 8.Parse request [19:55:44]Sock 8.Check first char [19:55:44]Sock 8.First char is OK [19:55:44]request: POST /json_proto HTTP/1.0 [19:55:44]Method: POST [19:55:44]URL: /json_proto [19:55:44]Method is POST - this is cgi request [19:55:44]url: /json_proto [19:55:44]query_string will be loaded in cgi processing [19:55:44]execute_cgi json_proto POST (null) [19:55:44]execute_cgi path=json_proto method=POST [19:55:44]POST find Content-Length [19:55:44]Host: 172.17.45.132:8080 [19:55:44]Content-Length: 803 [19:55:44]Content-Type: application/json [19:55:44] [19:55:44]POST finish read [19:55:44]Found Content-Length = 803 [19:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:44]execute_script... [19:55:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:44]POST & json_proto [19:55:44]process_json_proto [19:55:44]json parsed OK: [19:55:44]protocol is kg_v1.0 [19:55:44]action value=close_receipt [19:55:44]process_action close_receipt [19:55:44]cmd_close_receipt [19:55:44]MH_GetDate [19:55:44]Write to MH i2c: F0 00 00 2F 1A 38 [19:55:44]Write i2c OK [19:55:44]MH_I2C_Read... [19:55:44]Read from MH i2c: F0 [19:55:44]MH_I2C_Read... [19:55:44]Read from MH i2c: F0 09 00 [19:55:44]MH_I2C_Read... [19:55:44]Read from MH i2c: F0 09 00 2F 1A 00 C1 F3 A7 66 E3 0B 90 66 E6 [19:55:44]GetLastDocTimeStamp 1722282924 [19:55:44]current date 1722282945 [19:55:44]FM_GetShiftState [19:55:44]SAM_PROTO_GetShiftState [19:55:44]wFMCommunicate request_size=4 [19:55:44]MH_SAM_APDU [19:55:44]CAPDU: 80 13 01 00 [19:55:44]Write to MH i2c: E2 08 00 30 1A 80 13 01 00 00 00 00 00 C7 [19:55:44]Write i2c OK [19:55:44]MH_I2C_Read... [19:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:44]Read from MH i2c: E2 [19:55:44]MH_I2C_Read... [19:55:44]Read from MH i2c: E2 0E 00 [19:55:44]MH_I2C_Read... [19:55:44]Read from MH i2c: E2 0E 00 30 1A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C0 [19:55:44]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:55:44]wFMCommunicate OK [19:55:44]SAM_PROTO_GetShiftState done [19:55:44]FM_GetShiftState done [19:55:44]opened in 1722213119 [19:55:44]opened+sec_in_day 1722299519 [19:55:44]quantity*price = 100005 [19:55:44]sum+1 = 100006 [19:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 157 29.07.2024 19:55 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2308 ФПД: 217443567146344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195545&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2308&fm=217443567146344&tin=02508201610067®Number=0000000000189667&sum=100005 [19:55:45]StoreToDocumentArchive [19:55:45]shift 15 fd 2308 [19:55:45]save to /storage/0015/doc_00002308 [19:55:45]save last doc name /storage/0015/doc_00002308 to /storage/kkm_last_doc_name [19:55:45]save OK [19:55:45]Clear old archive folders... [19:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:45]tlvbuf is B6EDA350 [19:55:45]SAM_PROTO_ClearQueue [19:55:45]wFMCommunicate request_size=4 [19:55:45]MH_SAM_APDU [19:55:45]CAPDU: 80 09 00 00 [19:55:45]Write to MH i2c: E2 08 00 3D 1A 80 09 00 00 00 00 00 00 C9 [19:55:45]Write i2c OK [19:55:45]MH_I2C_Read... [19:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:45]Read from MH i2c: E2 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 3D 1A 00 90 00 CB [19:55:45]RAPDU: 90 00 [19:55:45]wFMCommunicate OK [19:55:45]SAM_PROTO_ClearQueue done [19:55:45]KKMCreateOFDPacket [19:55:45]OFDProtocolAddRootSTLVToBuf [19:55:45]FM_MakeSignedData [19:55:45]FM_MakeSignedData [19:55:45]SAM_PROTO_SignData [19:55:45]wFMCommunicate request_size=4 [19:55:45]MH_SAM_APDU [19:55:45]CAPDU: 80 0D 01 02 [19:55:45]Write to MH i2c: E2 08 00 3E 1A 80 0D 01 02 00 00 00 00 D1 [19:55:45]Write i2c OK [19:55:45]MH_I2C_Read... [19:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:45]Read from MH i2c: E2 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 3E 1A 00 90 00 CC [19:55:45]RAPDU: 90 00 [19:55:45]wFMCommunicate OK [19:55:45]wFMCommunicate request_size=255 [19:55:45]MH_SAM_APDU [19:55:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C1 F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 09 00 00 35 04 06 00 C5 [19:55:45]Write to MH i2c: E2 02 01 3F 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C1 F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 09 00 00 35 04 06 00 C5 00 00 2E [19:55:45]Write i2c OK [19:55:45]MH_I2C_Read... [19:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:45]Read from MH i2c: E2 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 3F 1A 00 90 00 CD [19:55:45]RAPDU: 90 00 [19:55:45]wFMCommunicate OK [19:55:45]wFMCommunicate request_size=10 [19:55:45]MH_SAM_APDU [19:55:45]CAPDU: 80 0D 02 02 05 C3 86 94 15 68 [19:55:45]Write to MH i2c: E2 0D 00 40 1A 80 0D 02 02 05 00 C3 86 94 15 68 00 00 38 [19:55:45]Write i2c OK [19:55:45]MH_I2C_Read... [19:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:45]Read from MH i2c: E2 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 03 00 40 1A 00 90 00 CE [19:55:45]RAPDU: 90 00 [19:55:45]wFMCommunicate OK [19:55:45]wFMCommunicate request_size=4 [19:55:45]MH_SAM_APDU [19:55:45]CAPDU: 80 0D 03 02 [19:55:45]Write to MH i2c: E2 08 00 41 1A 80 0D 03 02 00 00 00 00 D6 [19:55:45]Write i2c OK [19:55:45]MH_I2C_Read... [19:55:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:45]Read from MH i2c: E2 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 0B 00 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 0B 00 41 1A 00 7E 7B ED 2A CC 82 B3 B0 90 00 98 [19:55:45]RAPDU: 7E 7B ED 2A CC 82 B3 B0 90 00 [19:55:45]wFMCommunicate OK [19:55:45]SAM_PROTO_SignData done [19:55:45]FM_MakeSignedData done [19:55:45]CreateOFDProtocolMessage [19:55:45]wFMCommunicate request_size=4 [19:55:45]MH_SAM_APDU [19:55:45]CAPDU: 80 11 00 00 [19:55:45]Write to MH i2c: E2 08 00 42 1A 80 11 00 00 00 00 00 00 D6 [19:55:45]Write i2c OK [19:55:45]MH_I2C_Read... [19:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:45]Read from MH i2c: E2 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 17 00 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: E2 17 00 42 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 26 [19:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:55:45]wFMCommunicate OK [19:55:45]CreateOFDProtocolMessage done [19:55:45]OFDSenderStorePacket 2308 [19:55:45]StoreOFDPacket docnum=2308 [19:55:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 93 F2 07 01 71 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C1 F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 09 00 00 35 04 06 00 C5 C3 86 94 15 68 7E 7B ED 2A CC 82 B3 B0 [19:55:45]CheckFolder [19:55:45]dirname=/storage/ofd_packets [19:55:45]CheckFolder done [19:55:45]ProducePacketName [19:55:45]name=ofd_packets/00002308 [19:55:45]NVStorageSaveData ofd_packets/00002308 [19:55:45]File name is /storage/ofd_packets/00002308 [19:55:45]Write 301 bytes [19:55:45]NVStorageSaveData done [19:55:45]OFDSenderStorePacket done [19:55:45]KKMCreateOFDPacket done [19:55:45]NVStorageSaveData kkm_last_timestamp [19:55:45]File name is /storage/kkm_last_timestamp [19:55:45]Write 4 bytes [19:55:45]NVStorageSaveData done [19:55:45]ExternCall_PrintAddStr [19:55:45]wPrintStart [19:55:45]Write to MH i2c: 01 00 00 43 1A 5D [19:55:45]Write i2c OK [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: 01 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: 01 07 00 [19:55:45]MH_I2C_Read... [19:55:45]Read from MH i2c: 01 07 00 43 1A 00 00 00 00 00 FF 0F 72 [19:55:45]RasterBufferAndPrint [19:55:45]line Счет N : (1)610105 [19:55:45]line ИНН: 02508201610067 [19:55:45]line Контрольно-Кассовый Чек [19:55:45]line ПРОДАЖА [19:55:45]line ТРК (МРК, ГНК) : 32 [19:55:45]line Товар: 2710124130 [19:55:45]line Аи-92-К-2 [19:55:45]line 14.750 * 67.80 [19:55:45]line = 1000.05 [19:55:45]line НДС 12% НСП 1% [19:55:45]line > о реализуемом товаре [19:55:45]line ИТОГО: 1000.05 [19:55:45]line НСП 1% : 8.85 [19:55:45]line НДС 12% : 106.20 [19:55:45]line Наличными: 0.00 [19:55:45]line Безнал.: 1000.05 [19:55:45]line Место: АЗС № 127 "Партнер Нефть" [19:55:45]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [19:55:45]line СНО: Общий режим [19:55:45]line Чек 157 29.07.2024 19:55 [19:55:45]line Смена: 15 ФФД: 1.0 [19:55:45]line ЗНМ: 0300000161 [19:55:45]line РНМ: 0000000000189667 [19:55:45]line Версия ККМ: v1.0 [19:55:45]line Платежная система: O! деньги [19:55:45]line ФМ: 0000000002094248 [19:55:45]line ФД: 2308 [19:55:45]line ФПД: 217443567146344 [19:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195545&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2308&fm=217443567146344&tin=02508201610067®Number=0000000000189667&sum=100005 [19:55:46]OFD Sender: Processing packet 2308 [packets to send 1, broken 0] [19:55:46]ProducePacketName [19:55:46]name=ofd_packets/00002308 [19:55:46]OFD Sender: To server: pG, [19:55:46]CommunicateWithHost lk.salyk.kg:30040 [19:55:46]ConnectInit lk.salyk.kg [19:55:46]written 0, free lines is 4095 [19:55:46]Connected sock=10 [19:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 93 F2 07 01 71 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C1 F3 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 09 00 00 35 04 06 00 C5 C3 86 94 15 68 7E 7B ED 2A CC 82 B3 B0 [19:55:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7B 75 47 00 0C CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 04 09 00 00 F4 03 04 00 2D 9F A7 66 B6 04 01 00 00 CD 62 1E EC 3F 74 5C 33 [19:55:46]CommunicateWithHost err = 0 [19:55:46]CheckOFDResponse [19:55:46]1017 (14) - 77093643461234 [19:55:46]1041 (16) - 0000000002094248 [19:55:46]1040 (4) - 2308 [19:55:46]1012 (4) - 29.07.2024 13:54 [19:55:46]1206 (1) - 0 [19:55:46]OFD Sender: Remove packet 2308 [19:55:46]ProducePacketName [19:55:46]name=ofd_packets/00002308 [19:55:46]NVStorageDeleteData [19:55:46]Write to MH i2c: 01 00 00 6D 1A 87 [19:55:46]Write i2c OK [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: 01 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: 01 07 00 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: 01 07 00 6D 1A 00 00 00 00 00 FF 0C 99 [19:55:46]RasterBufferAndPrint [19:55:46]line [19:55:46]line [19:55:46]line [19:55:46]line [19:55:46]line [19:55:46]written 0, free lines is 3333 [19:55:46]MH_Cut [19:55:46]Write to MH i2c: D1 01 00 74 1A 01 60 [19:55:46]Write i2c OK [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: D1 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: D1 01 00 [19:55:46]MH_I2C_Read... [19:55:46]Read from MH i2c: D1 01 00 74 1A 00 5F [19:55:46]Write to MH i2c: 01 00 00 75 1A 8F [19:55:46]Write i2c OK [19:55:46]MH_I2C_Read... [19:55:46]OFD Sender: No OFD packet to send [19:55:47]*** Cut start [19:55:47]*** Partial cut [19:55:47]*** CUTSNS_PIN = 1 [19:55:47]*** CUTSNS_PIN = 0 [19:55:47]*** Brake cut motor [19:55:47]Read from MH i2c: 01 [19:55:47]MH_I2C_Read... [19:55:47]*** Stop cut motor [19:55:47]*** Cut end [19:55:47]Read from MH i2c: 01 07 00 [19:55:47]MH_I2C_Read... [19:55:47]Read from MH i2c: 01 07 00 75 1A 00 00 00 00 00 FF 0F A4 [19:55:47]process_action close_receipt done [19:55:47]requested_data is exist [19:55:47]produce_requested_data [19:55:47]requested_item fm.sn is exist - process it [19:55:47]wFMCommunicate request_size=4 [19:55:47]MH_SAM_APDU [19:55:47]CAPDU: 80 11 00 00 [19:55:47]Write to MH i2c: E2 08 00 76 1A 80 11 00 00 00 00 00 00 0A [19:55:47]Write i2c OK [19:55:47]MH_I2C_Read... [19:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:47]Read from MH i2c: E2 [19:55:47]MH_I2C_Read... [19:55:47]Read from MH i2c: E2 17 00 [19:55:47]MH_I2C_Read... [19:55:47]Read from MH i2c: E2 17 00 76 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5A [19:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [19:55:47]wFMCommunicate OK [19:55:47]requested_item fd.num is exist - process it [19:55:47]SAM_PROTO_GetFieldsCounters [19:55:47]wFMCommunicate request_size=4 [19:55:47]MH_SAM_APDU [19:55:47]CAPDU: 80 13 00 00 [19:55:47]Write to MH i2c: E2 08 00 77 1A 80 13 00 00 00 00 00 00 0D [19:55:47]Write i2c OK [19:55:47]MH_I2C_Read... [19:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:48]Read from MH i2c: E2 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 62 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 62 00 77 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 04 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [19:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 04 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:48]wFMCommunicate OK [19:55:48]SAM_PROTO_GetFieldsCounters done [19:55:48]requested_item shift.num is exist - process it [19:55:48]requested_item shift.opened is exist - process it [19:55:48]req_shift_opened [19:55:48]FM_GetShiftState [19:55:48]SAM_PROTO_GetShiftState [19:55:48]wFMCommunicate request_size=4 [19:55:48]MH_SAM_APDU [19:55:48]CAPDU: 80 13 01 00 [19:55:48]Write to MH i2c: E2 08 00 78 1A 80 13 01 00 00 00 00 00 0F [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:48]Read from MH i2c: E2 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 0E 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: E2 0E 00 78 1A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 08 [19:55:48]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [19:55:48]wFMCommunicate OK [19:55:48]SAM_PROTO_GetShiftState done [19:55:48]FM_GetShiftState done [19:55:48]req_shift_opened done [19:55:48]requested_item shift.open_date is exist - process it [19:55:48]req_shift_open_date [19:55:48]req_shift_open_date done [19:55:48]produce_requested_data done [19:55:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2308,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [19:55:48]process_action_free close_receipt [19:55:48]json_value_free [19:55:48]json_value_free done [19:55:48]process_json_proto returns [19:55:48]Send response to host [19:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2308,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [19:55:48]free response buf [19:55:48]execute_script done [19:55:48]execute_script returns [19:55:48]free content buf [19:55:48]Sock 8.Close socket [19:55:48]Sock 8.Thread stoped [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]accept exits with 9 [20:01:37]New connection [20:01:37]New thread 3067157860 created [20:01:37]Thread 3067014500 joined [20:01:37]Waiting for new connection... [20:01:37] Sock 9.Parse request [20:01:37]Sock 9.Check first char [20:01:37]Sock 9.First char is OK [20:01:37]request: POST /json_proto HTTP/1.0 [20:01:37]Method: POST [20:01:37]URL: /json_proto [20:01:37]Method is POST - this is cgi request [20:01:37]url: /json_proto [20:01:37]query_string will be loaded in cgi processing [20:01:37]execute_cgi json_proto POST (null) [20:01:37]execute_cgi path=json_proto method=POST [20:01:37]POST find Content-Length [20:01:37]Host: 172.17.45.132:8080 [20:01:37]Content-Length: 678 [20:01:37]Content-Type: application/json [20:01:37] [20:01:37]POST finish read [20:01:37]Found Content-Length = 678 [20:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:37]execute_script... [20:01:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:37]POST & json_proto [20:01:37]process_json_proto [20:01:37]json parsed OK: [20:01:37]protocol is kg_v1.0 [20:01:37]action value=close_receipt [20:01:37]process_action close_receipt [20:01:37]cmd_close_receipt [20:01:37]MH_GetDate [20:01:37]Write to MH i2c: F0 00 00 79 1A 82 [20:01:37]Write i2c OK [20:01:37]MH_I2C_Read... [20:01:37]Read from MH i2c: F0 [20:01:37]MH_I2C_Read... [20:01:37]Read from MH i2c: F0 09 00 [20:01:37]MH_I2C_Read... [20:01:37]Read from MH i2c: F0 09 00 79 1A 00 22 F5 A7 66 E3 0B 90 66 93 [20:01:37]GetLastDocTimeStamp 1722282945 [20:01:37]current date 1722283298 [20:01:37]FM_GetShiftState [20:01:37]SAM_PROTO_GetShiftState [20:01:37]wFMCommunicate request_size=4 [20:01:37]MH_SAM_APDU [20:01:37]CAPDU: 80 13 01 00 [20:01:37]Write to MH i2c: E2 08 00 7A 1A 80 13 01 00 00 00 00 00 11 [20:01:37]Write i2c OK [20:01:37]MH_I2C_Read... [20:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:37]Read from MH i2c: E2 [20:01:37]MH_I2C_Read... [20:01:37]Read from MH i2c: E2 0E 00 [20:01:37]MH_I2C_Read... [20:01:37]Read from MH i2c: E2 0E 00 7A 1A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 0A [20:01:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:01:37]wFMCommunicate OK [20:01:37]SAM_PROTO_GetShiftState done [20:01:37]FM_GetShiftState done [20:01:37]opened in 1722213119 [20:01:37]opened+sec_in_day 1722299519 [20:01:37]quantity*price = 90038 [20:01:37]sum+1 = 90039 [20:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 158 29.07.2024 20:01 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2309 ФПД: 39900077801774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200138&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2309&fm=39900077801774&tin=02508201610067®Number=0000000000189667&sum=90000 [20:01:38]StoreToDocumentArchive [20:01:38]shift 15 fd 2309 [20:01:38]save to /storage/0015/doc_00002309 [20:01:38]save last doc name /storage/0015/doc_00002309 to /storage/kkm_last_doc_name [20:01:38]save OK [20:01:38]Clear old archive folders... [20:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:38]tlvbuf is 01F826E0 [20:01:38]SAM_PROTO_ClearQueue [20:01:38]wFMCommunicate request_size=4 [20:01:38]MH_SAM_APDU [20:01:38]CAPDU: 80 09 00 00 [20:01:38]Write to MH i2c: E2 08 00 87 1A 80 09 00 00 00 00 00 00 13 [20:01:38]Write i2c OK [20:01:38]MH_I2C_Read... [20:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:38]Read from MH i2c: E2 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 87 1A 00 90 00 15 [20:01:38]RAPDU: 90 00 [20:01:38]wFMCommunicate OK [20:01:38]SAM_PROTO_ClearQueue done [20:01:38]KKMCreateOFDPacket [20:01:38]OFDProtocolAddRootSTLVToBuf [20:01:38]FM_MakeSignedData [20:01:38]FM_MakeSignedData [20:01:38]SAM_PROTO_SignData [20:01:38]wFMCommunicate request_size=4 [20:01:38]MH_SAM_APDU [20:01:38]CAPDU: 80 0D 01 02 [20:01:38]Write to MH i2c: E2 08 00 88 1A 80 0D 01 02 00 00 00 00 1B [20:01:38]Write i2c OK [20:01:38]MH_I2C_Read... [20:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:38]Read from MH i2c: E2 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 88 1A 00 90 00 16 [20:01:38]RAPDU: 90 00 [20:01:38]wFMCommunicate OK [20:01:38]wFMCommunicate request_size=255 [20:01:38]MH_SAM_APDU [20:01:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 22 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 09 00 00 35 04 06 00 24 [20:01:38]Write to MH i2c: E2 02 01 89 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 22 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 09 00 00 35 04 06 00 24 00 00 6C [20:01:38]Write i2c OK [20:01:38]MH_I2C_Read... [20:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:38]Read from MH i2c: E2 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 89 1A 00 90 00 17 [20:01:38]RAPDU: 90 00 [20:01:38]wFMCommunicate OK [20:01:38]wFMCommunicate request_size=10 [20:01:38]MH_SAM_APDU [20:01:38]CAPDU: 80 0D 02 02 05 49 F5 F6 C1 2E [20:01:38]Write to MH i2c: E2 0D 00 8A 1A 80 0D 02 02 05 00 49 F5 F6 C1 2E 00 00 4B [20:01:38]Write i2c OK [20:01:38]MH_I2C_Read... [20:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:38]Read from MH i2c: E2 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 03 00 8A 1A 00 90 00 18 [20:01:38]RAPDU: 90 00 [20:01:38]wFMCommunicate OK [20:01:38]wFMCommunicate request_size=4 [20:01:38]MH_SAM_APDU [20:01:38]CAPDU: 80 0D 03 02 [20:01:38]Write to MH i2c: E2 08 00 8B 1A 80 0D 03 02 00 00 00 00 20 [20:01:38]Write i2c OK [20:01:38]MH_I2C_Read... [20:01:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:38]Read from MH i2c: E2 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 0B 00 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 0B 00 8B 1A 00 13 F3 71 CF 72 EC 7B 7C 90 00 BC [20:01:38]RAPDU: 13 F3 71 CF 72 EC 7B 7C 90 00 [20:01:38]wFMCommunicate OK [20:01:38]SAM_PROTO_SignData done [20:01:38]FM_MakeSignedData done [20:01:38]CreateOFDProtocolMessage [20:01:38]wFMCommunicate request_size=4 [20:01:38]MH_SAM_APDU [20:01:38]CAPDU: 80 11 00 00 [20:01:38]Write to MH i2c: E2 08 00 8C 1A 80 11 00 00 00 00 00 00 20 [20:01:38]Write i2c OK [20:01:38]MH_I2C_Read... [20:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:38]Read from MH i2c: E2 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 17 00 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: E2 17 00 8C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 70 [20:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:01:38]wFMCommunicate OK [20:01:38]CreateOFDProtocolMessage done [20:01:38]OFDSenderStorePacket 2309 [20:01:38]StoreOFDPacket docnum=2309 [20:01:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 8C 99 07 01 E1 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 22 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 09 00 00 35 04 06 00 24 49 F5 F6 C1 2E 13 F3 71 CF 72 EC 7B 7C [20:01:38]CheckFolder [20:01:38]dirname=/storage/ofd_packets [20:01:38]CheckFolder done [20:01:38]ProducePacketName [20:01:38]name=ofd_packets/00002309 [20:01:38]NVStorageSaveData ofd_packets/00002309 [20:01:38]File name is /storage/ofd_packets/00002309 [20:01:38]Write 301 bytes [20:01:38]NVStorageSaveData done [20:01:38]OFDSenderStorePacket done [20:01:38]KKMCreateOFDPacket done [20:01:38]NVStorageSaveData kkm_last_timestamp [20:01:38]File name is /storage/kkm_last_timestamp [20:01:38]Write 4 bytes [20:01:38]NVStorageSaveData done [20:01:38]ExternCall_PrintAddStr [20:01:38]wPrintStart [20:01:38]Write to MH i2c: 01 00 00 8D 1A A7 [20:01:38]Write i2c OK [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: 01 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: 01 07 00 [20:01:38]MH_I2C_Read... [20:01:38]Read from MH i2c: 01 07 00 8D 1A 00 00 00 00 00 FF 0F BC [20:01:38]RasterBufferAndPrint [20:01:38]line Счет N : (1)610108 [20:01:38]line ИНН: 02508201610067 [20:01:38]line Контрольно-Кассовый Чек [20:01:38]line ПРОДАЖА [20:01:38]line ТРК (МРК, ГНК) : 32 [20:01:38]line Товар: 2710124130 [20:01:38]line Аи-92-К-2 [20:01:38]line 13.280 * 67.80 [20:01:38]line = 900.38 [20:01:38]line НДС 12% НСП 1% [20:01:38]line > о реализуемом товаре [20:01:38]line ОКРУГЛЕНИЕ: -0.38 [20:01:38]line ИТОГО: 900.00 [20:01:38]line Внесено: 900.00 [20:01:38]line СДАЧА: 0.00 [20:01:38]line НСП 1% : 7.97 [20:01:38]line НДС 12% : 95.62 [20:01:38]line Наличными: 900.00 [20:01:38]line Безнал.: 0.00 [20:01:38]line Место: АЗС № 127 "Партнер Нефть" [20:01:38]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:01:38]line СНО: Общий режим [20:01:38]line Чек 158 29.07.2024 20:01 [20:01:38]line Смена: 15 ФФД: 1.0 [20:01:38]line ЗНМ: 0300000161 [20:01:38]line РНМ: 0000000000189667 [20:01:38]line Версия ККМ: v1.0 [20:01:38]line ФМ: 0000000002094248 [20:01:38]line ФД: 2309 [20:01:38]line ФПД: 39900077801774 [20:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200138&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2309&fm=39900077801774&tin=02508201610067®Number=0000000000189667&sum=90000 [20:01:39]OFD Sender: Processing packet 2309 [packets to send 1, broken 0] [20:01:39]ProducePacketName [20:01:39]name=ofd_packets/00002309 [20:01:39]OFD Sender: To server: pG, [20:01:39]CommunicateWithHost lk.salyk.kg:30040 [20:01:39]ConnectInit lk.salyk.kg [20:01:39]written 0, free lines is 4095 [20:01:39]Connected sock=10 [20:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 8C 99 07 01 E1 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 22 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 05 09 00 00 35 04 06 00 24 49 F5 F6 C1 2E 13 F3 71 CF 72 EC 7B 7C [20:01:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 06 6D 47 00 C4 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 32 30 39 34 32 34 38 10 04 04 00 05 09 00 00 F4 03 04 00 8E A0 A7 66 B6 04 01 00 00 6B BD 8E 10 D9 13 CA 7A [20:01:39]CommunicateWithHost err = 0 [20:01:39]CheckOFDResponse [20:01:39]1017 (14) - 77093643461234 [20:01:39]1041 (16) - 0000000002094248 [20:01:39]1040 (4) - 2309 [20:01:39]1012 (4) - 29.07.2024 14:00 [20:01:39]1206 (1) - 0 [20:01:39]OFD Sender: Remove packet 2309 [20:01:39]ProducePacketName [20:01:39]name=ofd_packets/00002309 [20:01:39]NVStorageDeleteData [20:01:39]Write to MH i2c: 01 00 00 B8 1A D2 [20:01:39]Write i2c OK [20:01:39]MH_I2C_Read... [20:01:39]Read from MH i2c: 01 [20:01:39]MH_I2C_Read... [20:01:39]Read from MH i2c: 01 07 00 [20:01:39]MH_I2C_Read... [20:01:39]Read from MH i2c: 01 07 00 B8 1A 00 00 00 00 00 E8 0C CD [20:01:39]RasterBufferAndPrint [20:01:39]line [20:01:39]line [20:01:39]line [20:01:39]line [20:01:39]line [20:01:39]written 0, free lines is 3310 [20:01:39]MH_Cut [20:01:39]Write to MH i2c: D1 01 00 BF 1A 01 AB [20:01:39]Write i2c OK [20:01:39]MH_I2C_Read... [20:01:39]Read from MH i2c: D1 [20:01:39]MH_I2C_Read... [20:01:39]Read from MH i2c: D1 01 00 [20:01:39]MH_I2C_Read... [20:01:39]Read from MH i2c: D1 01 00 BF 1A 00 AA [20:01:39]Write to MH i2c: 01 00 00 C0 1A DA [20:01:39]Write i2c OK [20:01:39]MH_I2C_Read... [20:01:39]OFD Sender: No OFD packet to send [20:01:40]*** Cut start [20:01:40]*** Partial cut [20:01:40]*** CUTSNS_PIN = 1 [20:01:40]*** CUTSNS_PIN = 0 [20:01:40]*** Brake cut motor [20:01:40]Read from MH i2c: 01 [20:01:40]MH_I2C_Read... [20:01:40]*** Stop cut motor [20:01:40]*** Cut end [20:01:40]Read from MH i2c: 01 07 00 [20:01:40]MH_I2C_Read... [20:01:40]Read from MH i2c: 01 07 00 C0 1A 00 00 00 00 00 FF 0F EF [20:01:40]process_action close_receipt done [20:01:40]requested_data is exist [20:01:40]produce_requested_data [20:01:40]requested_item fm.sn is exist - process it [20:01:40]wFMCommunicate request_size=4 [20:01:40]MH_SAM_APDU [20:01:40]CAPDU: 80 11 00 00 [20:01:40]Write to MH i2c: E2 08 00 C1 1A 80 11 00 00 00 00 00 00 55 [20:01:40]Write i2c OK [20:01:40]MH_I2C_Read... [20:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:40]Read from MH i2c: E2 [20:01:40]MH_I2C_Read... [20:01:40]Read from MH i2c: E2 17 00 [20:01:40]MH_I2C_Read... [20:01:40]Read from MH i2c: E2 17 00 C1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A5 [20:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:01:40]wFMCommunicate OK [20:01:40]requested_item fd.num is exist - process it [20:01:40]SAM_PROTO_GetFieldsCounters [20:01:40]wFMCommunicate request_size=4 [20:01:40]MH_SAM_APDU [20:01:40]CAPDU: 80 13 00 00 [20:01:40]Write to MH i2c: E2 08 00 C2 1A 80 13 00 00 00 00 00 00 58 [20:01:40]Write i2c OK [20:01:40]MH_I2C_Read... [20:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:41]Read from MH i2c: E2 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 62 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 62 00 C2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 05 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [20:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 05 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:41]wFMCommunicate OK [20:01:41]SAM_PROTO_GetFieldsCounters done [20:01:41]requested_item shift.num is exist - process it [20:01:41]requested_item shift.opened is exist - process it [20:01:41]req_shift_opened [20:01:41]FM_GetShiftState [20:01:41]SAM_PROTO_GetShiftState [20:01:41]wFMCommunicate request_size=4 [20:01:41]MH_SAM_APDU [20:01:41]CAPDU: 80 13 01 00 [20:01:41]Write to MH i2c: E2 08 00 C3 1A 80 13 01 00 00 00 00 00 5A [20:01:41]Write i2c OK [20:01:41]MH_I2C_Read... [20:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:41]Read from MH i2c: E2 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 0E 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 0E 00 C3 1A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 53 [20:01:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:01:41]wFMCommunicate OK [20:01:41]SAM_PROTO_GetShiftState done [20:01:41]FM_GetShiftState done [20:01:41]req_shift_opened done [20:01:41]requested_item shift.open_date is exist - process it [20:01:41]req_shift_open_date [20:01:41]req_shift_open_date done [20:01:41]produce_requested_data done [20:01:41]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2309,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:01:41]process_action_free close_receipt [20:01:41]json_value_free [20:01:41]json_value_free done [20:01:41]process_json_proto returns [20:01:41]Send response to host [20:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2309,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:01:41]free response buf [20:01:41]execute_script done [20:01:41]execute_script returns [20:01:41]free content buf [20:01:41]Sock 9.Close socket [20:01:41]Sock 9.Thread stoped [20:01:41]accept exits with 8 [20:01:41]New connection [20:01:41]New thread 3067014500 created [20:01:41]Thread 3067157860 joined [20:01:41]Waiting for new connection... [20:01:41] Sock 8.Parse request [20:01:41]Sock 8.Check first char [20:01:41]Sock 8.First char is OK [20:01:41]request: POST /json_proto HTTP/1.0 [20:01:41]Method: POST [20:01:41]URL: /json_proto [20:01:41]Method is POST - this is cgi request [20:01:41]url: /json_proto [20:01:41]query_string will be loaded in cgi processing [20:01:41]execute_cgi json_proto POST (null) [20:01:41]execute_cgi path=json_proto method=POST [20:01:41]POST find Content-Length [20:01:41]Host: 172.17.45.132:8080 [20:01:41]Content-Length: 803 [20:01:41]Content-Type: application/json [20:01:41] [20:01:41]POST finish read [20:01:41]Found Content-Length = 803 [20:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:41]execute_script... [20:01:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:41]POST & json_proto [20:01:41]process_json_proto [20:01:41]json parsed OK: [20:01:41]protocol is kg_v1.0 [20:01:41]action value=close_receipt [20:01:41]process_action close_receipt [20:01:41]cmd_close_receipt [20:01:41]MH_GetDate [20:01:41]Write to MH i2c: F0 00 00 C4 1A CD [20:01:41]Write i2c OK [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 09 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 09 00 C4 1A 00 27 F5 A7 66 E3 0B 90 66 E3 [20:01:41]GetLastDocTimeStamp 1722283298 [20:01:41]current date 1722283303 [20:01:41]FM_GetShiftState [20:01:41]SAM_PROTO_GetShiftState [20:01:41]wFMCommunicate request_size=4 [20:01:41]MH_SAM_APDU [20:01:41]CAPDU: 80 13 01 00 [20:01:41]Write to MH i2c: E2 08 00 C5 1A 80 13 01 00 00 00 00 00 5C [20:01:41]Write i2c OK [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 [20:01:41]MH_I2C_Read... [20:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:41]Read from MH i2c: E2 0E 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 0E 00 C5 1A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 55 [20:01:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:01:41]wFMCommunicate OK [20:01:41]SAM_PROTO_GetShiftState done [20:01:41]FM_GetShiftState done [20:01:41]opened in 1722213119 [20:01:41]opened+sec_in_day 1722299519 [20:01:41]quantity*price = 100005 [20:01:41]sum+1 = 100006 [20:01:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 159 29.07.2024 20:01 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2310 ФПД: 229676885877346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200143&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2310&fm=229676885877346&tin=02508201610067®Number=0000000000189667&sum=100005 [20:01:42]StoreToDocumentArchive [20:01:42]shift 15 fd 2310 [20:01:42]save to /storage/0015/doc_00002310 [20:01:42]save last doc name /storage/0015/doc_00002310 to /storage/kkm_last_doc_name [20:01:42]save OK [20:01:42]Clear old archive folders... [20:01:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:42]tlvbuf is B6EDA380 [20:01:42]SAM_PROTO_ClearQueue [20:01:42]wFMCommunicate request_size=4 [20:01:42]MH_SAM_APDU [20:01:42]CAPDU: 80 09 00 00 [20:01:42]Write to MH i2c: E2 08 00 D2 1A 80 09 00 00 00 00 00 00 5E [20:01:42]Write i2c OK [20:01:42]MH_I2C_Read... [20:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:42]Read from MH i2c: E2 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 03 00 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 03 00 D2 1A 00 90 00 60 [20:01:42]RAPDU: 90 00 [20:01:42]wFMCommunicate OK [20:01:42]SAM_PROTO_ClearQueue done [20:01:42]KKMCreateOFDPacket [20:01:42]OFDProtocolAddRootSTLVToBuf [20:01:42]FM_MakeSignedData [20:01:42]FM_MakeSignedData [20:01:42]SAM_PROTO_SignData [20:01:42]wFMCommunicate request_size=4 [20:01:42]MH_SAM_APDU [20:01:42]CAPDU: 80 0D 01 02 [20:01:42]Write to MH i2c: E2 08 00 D3 1A 80 0D 01 02 00 00 00 00 66 [20:01:42]Write i2c OK [20:01:42]MH_I2C_Read... [20:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:42]Read from MH i2c: E2 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 03 00 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [20:01:42]RAPDU: 90 00 [20:01:42]wFMCommunicate OK [20:01:42]wFMCommunicate request_size=255 [20:01:42]MH_SAM_APDU [20:01:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 27 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 09 00 00 35 04 06 00 D0 [20:01:43]Write to MH i2c: E2 02 01 D4 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 27 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 09 00 00 35 04 06 00 D0 00 00 3A [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 D4 1A 00 90 00 62 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=10 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 02 02 05 E3 D1 32 22 62 [20:01:43]Write to MH i2c: E2 0D 00 D5 1A 80 0D 02 02 05 00 E3 D1 32 22 62 00 00 DD [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 D5 1A 00 90 00 63 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 03 02 [20:01:43]Write to MH i2c: E2 08 00 D6 1A 80 0D 03 02 00 00 00 00 6B [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 0B 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 0B 00 D6 1A 00 6F 70 4A 57 04 E9 D7 D3 90 00 83 [20:01:43]RAPDU: 6F 70 4A 57 04 E9 D7 D3 90 00 [20:01:43]wFMCommunicate OK [20:01:43]SAM_PROTO_SignData done [20:01:43]FM_MakeSignedData done [20:01:43]CreateOFDProtocolMessage [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 11 00 00 [20:01:43]Write to MH i2c: E2 08 00 D7 1A 80 11 00 00 00 00 00 00 6B [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 17 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 17 00 D7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BB [20:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:01:43]wFMCommunicate OK [20:01:43]CreateOFDProtocolMessage done [20:01:43]OFDSenderStorePacket 2310 [20:01:43]StoreOFDPacket docnum=2310 [20:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B7 CD 07 01 04 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 27 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 09 00 00 35 04 06 00 D0 E3 D1 32 22 62 6F 70 4A 57 04 E9 D7 D3 [20:01:43]CheckFolder [20:01:43]dirname=/storage/ofd_packets [20:01:43]CheckFolder done [20:01:43]ProducePacketName [20:01:43]name=ofd_packets/00002310 [20:01:43]NVStorageSaveData ofd_packets/00002310 [20:01:43]File name is /storage/ofd_packets/00002310 [20:01:43]Write 301 bytes [20:01:43]NVStorageSaveData done [20:01:43]OFDSenderStorePacket done [20:01:43]KKMCreateOFDPacket done [20:01:43]NVStorageSaveData kkm_last_timestamp [20:01:43]File name is /storage/kkm_last_timestamp [20:01:43]Write 4 bytes [20:01:43]NVStorageSaveData done [20:01:43]ExternCall_PrintAddStr [20:01:43]wPrintStart [20:01:43]Write to MH i2c: 01 00 00 D8 1A F2 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 07 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 07 00 D8 1A 00 00 00 00 00 FF 0F 07 [20:01:43]RasterBufferAndPrint [20:01:43]line Счет N : (1)610106 [20:01:43]line ИНН: 02508201610067 [20:01:43]line Контрольно-Кассовый Чек [20:01:43]line ПРОДАЖА [20:01:43]line ТРК (МРК, ГНК) : 42 [20:01:43]line Товар: 2710124130 [20:01:43]line Аи-92-К-2 [20:01:43]line 14.750 * 67.80 [20:01:43]line = 1000.05 [20:01:43]line НДС 12% НСП 1% [20:01:43]line > о реализуемом товаре [20:01:43]line ИТОГО: 1000.05 [20:01:43]line НСП 1% : 8.85 [20:01:43]line НДС 12% : 106.20 [20:01:43]line Наличными: 0.00 [20:01:43]line Безнал.: 1000.05 [20:01:43]line Место: АЗС № 127 "Партнер Нефть" [20:01:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:01:43]line СНО: Общий режим [20:01:43]line Чек 159 29.07.2024 20:01 [20:01:43]line Смена: 15 ФФД: 1.0 [20:01:43]line ЗНМ: 0300000161 [20:01:43]line РНМ: 0000000000189667 [20:01:43]line Версия ККМ: v1.0 [20:01:43]line Платежная система: O! деньги [20:01:43]line ФМ: 0000000002094248 [20:01:43]line ФД: 2310 [20:01:43]line ФПД: 229676885877346 [20:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200143&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2310&fm=229676885877346&tin=02508201610067®Number=0000000000189667&sum=100005 [20:01:43]OFD Sender: Processing packet 2310 [packets to send 1, broken 0] [20:01:43]ProducePacketName [20:01:43]name=ofd_packets/00002310 [20:01:43]OFD Sender: To server: pG, [20:01:43]CommunicateWithHost lk.salyk.kg:30040 [20:01:43]ConnectInit lk.salyk.kg [20:01:43]written 0, free lines is 4095 [20:01:43]Connected sock=10 [20:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B7 CD 07 01 04 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 27 F5 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 09 00 00 35 04 06 00 D0 E3 D1 32 22 62 6F 70 4A 57 04 E9 D7 D3 [20:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 0C B3 47 00 73 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 06 09 00 00 F4 03 04 00 93 A0 A7 66 B6 04 01 00 00 62 50 E8 C5 B0 70 A5 83 [20:01:44]CommunicateWithHost err = 0 [20:01:44]CheckOFDResponse [20:01:44]1017 (14) - 77093643461234 [20:01:44]1041 (16) - 0000000002094248 [20:01:44]1040 (4) - 2310 [20:01:44]1012 (4) - 29.07.2024 14:00 [20:01:44]1206 (1) - 0 [20:01:44]OFD Sender: Remove packet 2310 [20:01:44]ProducePacketName [20:01:44]name=ofd_packets/00002310 [20:01:44]NVStorageDeleteData [20:01:44]Write to MH i2c: 01 00 00 02 1B 1D [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 02 1B 00 00 00 00 00 0E 0D 3F [20:01:44]RasterBufferAndPrint [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]written 0, free lines is 3357 [20:01:44]MH_Cut [20:01:44]Write to MH i2c: D1 01 00 09 1B 01 F6 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 09 1B 00 F5 [20:01:44]Write to MH i2c: 01 00 00 0A 1B 25 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]OFD Sender: No OFD packet to send [20:01:44]*** Cut start [20:01:44]*** Partial cut [20:01:44]*** CUTSNS_PIN = 1 [20:01:45]*** CUTSNS_PIN = 0 [20:01:45]*** Brake cut motor [20:01:45]Read from MH i2c: 01 [20:01:45]MH_I2C_Read... [20:01:45]*** Stop cut motor [20:01:45]*** Cut end [20:01:45]Read from MH i2c: 01 07 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: 01 07 00 0A 1B 00 00 00 00 00 FF 0F 3A [20:01:45]process_action close_receipt done [20:01:45]requested_data is exist [20:01:45]produce_requested_data [20:01:45]requested_item fm.sn is exist - process it [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 11 00 00 [20:01:45]Write to MH i2c: E2 08 00 0B 1B 80 11 00 00 00 00 00 00 A0 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 17 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 17 00 0B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F0 [20:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:01:45]wFMCommunicate OK [20:01:45]requested_item fd.num is exist - process it [20:01:45]SAM_PROTO_GetFieldsCounters [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 13 00 00 [20:01:45]Write to MH i2c: E2 08 00 0C 1B 80 13 00 00 00 00 00 00 A3 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 62 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 62 00 0C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [20:01:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:45]wFMCommunicate OK [20:01:45]SAM_PROTO_GetFieldsCounters done [20:01:45]requested_item shift.num is exist - process it [20:01:45]requested_item shift.opened is exist - process it [20:01:45]req_shift_opened [20:01:45]FM_GetShiftState [20:01:45]SAM_PROTO_GetShiftState [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 13 01 00 [20:01:45]Write to MH i2c: E2 08 00 0D 1B 80 13 01 00 00 00 00 00 A5 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 0E 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 0E 00 0D 1B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 9E [20:01:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:01:45]wFMCommunicate OK [20:01:45]SAM_PROTO_GetShiftState done [20:01:45]FM_GetShiftState done [20:01:45]req_shift_opened done [20:01:45]requested_item shift.open_date is exist - process it [20:01:45]req_shift_open_date [20:01:45]req_shift_open_date done [20:01:45]produce_requested_data done [20:01:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2310,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:01:45]process_action_free close_receipt [20:01:45]json_value_free [20:01:45]json_value_free done [20:01:45]process_json_proto returns [20:01:45]Send response to host [20:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2310,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:01:45]free response buf [20:01:45]execute_script done [20:01:45]execute_script returns [20:01:45]free content buf [20:01:45]Sock 8.Close socket [20:01:45]Sock 8.Thread stoped [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]accept exits with 9 [20:02:19]New connection [20:02:19]New thread 3067157860 created [20:02:19]Thread 3067014500 joined [20:02:19]Waiting for new connection... [20:02:19] Sock 9.Parse request [20:02:19]Sock 9.Check first char [20:02:19]Sock 9.First char is OK [20:02:19]request: POST /json_proto HTTP/1.0 [20:02:19]Method: POST [20:02:19]URL: /json_proto [20:02:19]Method is POST - this is cgi request [20:02:19]url: /json_proto [20:02:19]query_string will be loaded in cgi processing [20:02:19]execute_cgi json_proto POST (null) [20:02:19]execute_cgi path=json_proto method=POST [20:02:19]POST find Content-Length [20:02:19]Host: 172.17.45.132:8080 [20:02:19]Content-Length: 1191 [20:02:19]Content-Type: application/json [20:02:19] [20:02:19]POST finish read [20:02:19]Found Content-Length = 1191 [20:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610107\u000A29.07.2024 19:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 26.430 x 75.70\u000A\u0418\u0422\u041E\u0413: 2000.75\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:19]execute_script... [20:02:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610107\u000A29.07.2024 19:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 26.430 x 75.70\u000A\u0418\u0422\u041E\u0413: 2000.75\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:19]POST & json_proto [20:02:19]process_json_proto [20:02:19]json parsed OK: [20:02:19]protocol is kg_v1.0 [20:02:19]action value=print_text [20:02:19]process_action print_text [20:02:19]cmd_print_text [20:02:19]ExternCall_PrintAddStr [20:02:19]wPrintStart [20:02:19]Write to MH i2c: 01 00 00 0E 1B 29 [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 0E 1B 00 00 00 00 00 FF 0F 3E [20:02:19]RasterBufferAndPrint [20:02:19]line *****ТОВАРНЫЙ ЧЕК***** [20:02:19]line АЗС 127 [20:02:19]line Партнер нефть [20:02:19]line 02508201610067 [20:02:19]line Кассир : Мансуров А. [20:02:19]line Счет N : (1)610107 [20:02:19]line 29.07.2024 19:51 [20:02:19]line ПРОДАЖА [20:02:19]line ТРК (МРК, ГНК): 1 [20:02:19]line Вид ГСМ : 2710194210 [20:02:19]line ДТ-К-2 [20:02:19]line 26.430 x 75.70 [20:02:19]line ИТОГ: 2000.75 [20:02:19]line Тип оплаты: Талоны: Топливная Карта [20:02:19]line 99614 [20:02:19]line ______________________ [20:02:19]line (подпись) [20:02:19]written 0, free lines is 4095 [20:02:19]Write to MH i2c: 01 00 00 22 1B 3D [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 22 1B 00 00 00 00 00 0E 0E 60 [20:02:19]RasterBufferAndPrint [20:02:19]line [20:02:19]line [20:02:19]line [20:02:19]line [20:02:19]line [20:02:19]written 0, free lines is 3599 [20:02:19]MH_Cut [20:02:19]Write to MH i2c: D1 01 00 29 1B 01 16 [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: D1 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: D1 01 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: D1 01 00 29 1B 00 15 [20:02:19]Write to MH i2c: 01 00 00 2A 1B 45 [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]*** Cut start [20:02:19]*** Partial cut [20:02:19]*** CUTSNS_PIN = 1 [20:02:19]OFD Sender: No OFD packet to send [20:02:19]*** CUTSNS_PIN = 0 [20:02:20]*** Brake cut motor [20:02:20]Read from MH i2c: 01 [20:02:20]MH_I2C_Read... [20:02:20]*** Stop cut motor [20:02:20]*** Cut end [20:02:20]Read from MH i2c: 01 07 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 07 00 2A 1B 00 00 00 00 00 FF 0F 5A [20:02:20]process_action print_text done [20:02:20]requested_data is exist [20:02:20]produce_requested_data [20:02:20]requested_item fm.sn is exist - process it [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 11 00 00 [20:02:20]Write to MH i2c: E2 08 00 2B 1B 80 11 00 00 00 00 00 00 C0 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 17 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 17 00 2B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [20:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:02:20]wFMCommunicate OK [20:02:20]requested_item fd.num is exist - process it [20:02:20]SAM_PROTO_GetFieldsCounters [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 13 00 00 [20:02:20]Write to MH i2c: E2 08 00 2C 1B 80 13 00 00 00 00 00 00 C3 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 62 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 62 00 2C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [20:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 06 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:20]wFMCommunicate OK [20:02:20]SAM_PROTO_GetFieldsCounters done [20:02:20]requested_item shift.num is exist - process it [20:02:20]requested_item shift.opened is exist - process it [20:02:20]req_shift_opened [20:02:20]FM_GetShiftState [20:02:20]SAM_PROTO_GetShiftState [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 13 01 00 [20:02:20]Write to MH i2c: E2 08 00 2D 1B 80 13 01 00 00 00 00 00 C5 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 2D 1B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BE [20:02:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:02:20]wFMCommunicate OK [20:02:20]SAM_PROTO_GetShiftState done [20:02:20]FM_GetShiftState done [20:02:20]req_shift_opened done [20:02:20]requested_item shift.open_date is exist - process it [20:02:20]req_shift_open_date [20:02:20]req_shift_open_date done [20:02:20]produce_requested_data done [20:02:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2310,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:02:20]process_action_free print_text [20:02:20]json_value_free [20:02:20]json_value_free done [20:02:20]process_json_proto returns [20:02:20]Send response to host [20:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2310,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:02:20]free response buf [20:02:20]execute_script done [20:02:20]execute_script returns [20:02:20]free content buf [20:02:20]Sock 9.Close socket [20:02:20]Sock 9.Thread stoped [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:31]accept exits with 10 [20:05:31]New connection [20:05:31]New thread 3067014500 created [20:05:31]Thread 3067157860 joined [20:05:31]Waiting for new connection... [20:05:31] Sock 10.Parse request [20:05:31]Sock 10.Check first char [20:05:31]Sock 10.First char is OK [20:05:31]request: POST /json_proto HTTP/1.0 [20:05:31]Method: POST [20:05:31]URL: /json_proto [20:05:31]Method is POST - this is cgi request [20:05:31]url: /json_proto [20:05:31]query_string will be loaded in cgi processing [20:05:31]execute_cgi json_proto POST (null) [20:05:31]execute_cgi path=json_proto method=POST [20:05:31]POST find Content-Length [20:05:31]Host: 172.17.45.132:8080 [20:05:31]Content-Length: 630 [20:05:31]Content-Type: application/json [20:05:31] [20:05:31]POST finish read [20:05:31]Found Content-Length = 630 [20:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126556", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.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" ] } } [20:05:31]execute_script... [20:05: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)126556", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.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" ] } } [20:05:31]POST & json_proto [20:05:31]process_json_proto [20:05:31]json parsed OK: [20:05:31]protocol is kg_v1.0 [20:05:31]action value=close_receipt [20:05:31]process_action close_receipt [20:05:31]cmd_close_receipt [20:05:31]MH_GetDate [20:05:31]Write to MH i2c: F0 00 00 2E 1B 38 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 09 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 09 00 2E 1B 00 0D F6 A7 66 E3 0B 90 66 35 [20:05:31]GetLastDocTimeStamp 1722283303 [20:05:31]current date 1722283533 [20:05:31]FM_GetShiftState [20:05:31]SAM_PROTO_GetShiftState [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 13 01 00 [20:05:31]Write to MH i2c: E2 08 00 2F 1B 80 13 01 00 00 00 00 00 C7 [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:31]Read from MH i2c: E2 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0E 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: E2 0E 00 2F 1B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C0 [20:05:31]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:05:31]wFMCommunicate OK [20:05:31]SAM_PROTO_GetShiftState done [20:05:31]FM_GetShiftState done [20:05:31]opened in 1722213119 [20:05:31]opened+sec_in_day 1722299519 [20:05:31]quantity*price = 10000 [20:05:31]sum+1 = 10001 [20:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 160 29.07.2024 20:05 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2311 ФПД: 229870275944182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200533&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2311&fm=229870275944182&tin=02508201610067®Number=0000000000189667&sum=10000 0 [20:05:32]StoreToDocumentArchive [20:05:32]shift 15 fd 2311 [20:05:32]save to /storage/0015/doc_00002311 [20:05:32]save last doc name /storage/0015/doc_00002311 to /storage/kkm_last_doc_name [20:05:32]save OK [20:05:32]Clear old archive folders... [20:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=270 [20:05:32]tlvbuf is B6EDAEC0 [20:05:32]SAM_PROTO_ClearQueue [20:05:32]wFMCommunicate request_size=4 [20:05:32]MH_SAM_APDU [20:05:32]CAPDU: 80 09 00 00 [20:05:32]Write to MH i2c: E2 08 00 3C 1B 80 09 00 00 00 00 00 00 C9 [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:32]Read from MH i2c: E2 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 03 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [20:05:32]RAPDU: 90 00 [20:05:32]wFMCommunicate OK [20:05:32]SAM_PROTO_ClearQueue done [20:05:32]KKMCreateOFDPacket [20:05:32]OFDProtocolAddRootSTLVToBuf [20:05:32]FM_MakeSignedData [20:05:32]FM_MakeSignedData [20:05:32]SAM_PROTO_SignData [20:05:32]wFMCommunicate request_size=4 [20:05:32]MH_SAM_APDU [20:05:32]CAPDU: 80 0D 01 02 [20:05:32]Write to MH i2c: E2 08 00 3D 1B 80 0D 01 02 00 00 00 00 D1 [20:05:32]Write i2c OK [20:05:32]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=255 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 A0 00 00 00 F4 03 04 00 0D F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [20:05:33]Write to MH i2c: E2 02 01 3E 1B 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 A0 00 00 00 F4 03 04 00 0D F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 DA [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=29 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 07 09 00 00 35 04 06 00 D1 10 D8 24 5E F6 [20:05:33]Write to MH i2c: E2 20 00 3F 1B 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 07 09 00 00 35 04 06 00 D1 10 D8 24 5E F6 00 00 D7 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 03 02 [20:05:33]Write to MH i2c: E2 08 00 40 1B 80 0D 03 02 00 00 00 00 D6 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0B 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0B 00 40 1B 00 A9 9A BA 1F 54 C5 D1 2E 90 00 0B [20:05:33]RAPDU: A9 9A BA 1F 54 C5 D1 2E 90 00 [20:05:33]wFMCommunicate OK [20:05:33]SAM_PROTO_SignData done [20:05:33]FM_MakeSignedData done [20:05:33]CreateOFDProtocolMessage [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 11 00 00 [20:05:33]Write to MH i2c: E2 08 00 41 1B 80 11 00 00 00 00 00 00 D6 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 41 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 26 [20:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:05:33]wFMCommunicate OK [20:05:33]CreateOFDProtocolMessage done [20:05:33]OFDSenderStorePacket 2311 [20:05:33]StoreOFDPacket docnum=2311 [20:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 2B DA 1A 01 9F 39 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 A0 00 00 00 F4 03 04 00 0D F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 09 00 00 35 04 06 00 D1 10 D8 24 5E F6 A9 9A BA 1F 54 C5 D1 2E [20:05:33]CheckFolder [20:05:33]dirname=/storage/ofd_packets [20:05:33]CheckFolder done [20:05:33]ProducePacketName [20:05:33]name=ofd_packets/00002311 [20:05:33]NVStorageSaveData ofd_packets/00002311 [20:05:33]File name is /storage/ofd_packets/00002311 [20:05:33]Write 320 bytes [20:05:33]NVStorageSaveData done [20:05:33]OFDSenderStorePacket done [20:05:33]KKMCreateOFDPacket done [20:05:33]NVStorageSaveData kkm_last_timestamp [20:05:33]File name is /storage/kkm_last_timestamp [20:05:33]Write 4 bytes [20:05:33]NVStorageSaveData done [20:05:33]ExternCall_PrintAddStr [20:05:33]wPrintStart [20:05:33]Write to MH i2c: 01 00 00 42 1B 5D [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 07 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 07 00 42 1B 00 00 00 00 00 FF 0F 72 [20:05:33]RasterBufferAndPrint [20:05:33]line Счет N : (3)126556 [20:05:33]line ИНН: 02508201610067 [20:05:33]line Контрольно-Кассовый Чек [20:05:33]line ПРОДАЖА [20:05:33]line Товар: 4700000480814 [20:05:33]line Пиво Живое 0,5 ст [20:05:33]line 1.000 * 100.00 [20:05:33]line = 100.00 [20:05:33]line НДС 12% НСП 1% [20:05:33]line > о реализуемом товаре [20:05:33]line ИТОГО: 100.00 [20:05:33]line НСП 1% : 0.88 [20:05:33]line НДС 12% : 10.62 [20:05:33]line Наличными: 100.00 [20:05:33]line Безнал.: 0.00 [20:05:33]line Место: АЗС № 127 "Партнер Нефть" [20:05:33]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:05:33]line СНО: Общий режим [20:05:33]line Чек 160 29.07.2024 20:05 [20:05:33]line Смена: 15 ФФД: 1.0 [20:05:33]line ЗНМ: 0300000161 [20:05:33]line РНМ: 0000000000189667 [20:05:33]line Версия ККМ: v1.0 [20:05:33]line ФМ: 0000000002094248 [20:05:33]line ФД: 2311 [20:05:33]line ФПД: 229870275944182 [20:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200533&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2311&fm=229870275944182&tin=02508201610067®Number=0000000000189667&sum=10000 [20:05:33]line 0 [20:05:33]OFD Sender: Processing packet 2311 [packets to send 1, broken 0] [20:05:33]ProducePacketName [20:05:33]name=ofd_packets/00002311 [20:05:33]OFD Sender: To server: pG, [20:05:33]CommunicateWithHost lk.salyk.kg:30040 [20:05:33]ConnectInit lk.salyk.kg [20:05:33]written 0, free lines is 4095 [20:05:33]Connected sock=9 [20:05:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 2B DA 1A 01 9F 39 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 A0 00 00 00 F4 03 04 00 0D F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 09 00 00 35 04 06 00 D1 10 D8 24 5E F6 A9 9A BA 1F 54 C5 D1 2E [20:05:34]Write to MH i2c: 01 00 00 6A 1B 85 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 07 00 6A 1B 00 00 00 00 00 07 0D A0 [20:05:34]RasterBufferAndPrint [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]written 0, free lines is 3341 [20:05:34]MH_Cut [20:05:34]Write to MH i2c: D1 01 00 71 1B 01 5E [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 71 1B 00 5D [20:05:34]Write to MH i2c: 01 00 00 72 1B 8D [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EF FF 47 00 C8 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 07 09 00 00 F4 03 04 00 79 A1 A7 66 B6 04 01 00 00 F7 9D D1 7E 59 76 23 64 [20:05:34]CommunicateWithHost err = 0 [20:05:34]CheckOFDResponse [20:05:34]1017 (14) - 77093643461234 [20:05:34]1041 (16) - 0000000002094248 [20:05:34]1040 (4) - 2311 [20:05:34]1012 (4) - 29.07.2024 14:04 [20:05:34]1206 (1) - 0 [20:05:34]OFD Sender: Remove packet 2311 [20:05:34]ProducePacketName [20:05:34]name=ofd_packets/00002311 [20:05:34]NVStorageDeleteData [20:05:34]*** Cut start [20:05:34]*** Partial cut [20:05:34]*** CUTSNS_PIN = 1 [20:05:34]OFD Sender: No OFD packet to send [20:05:34]*** CUTSNS_PIN = 0 [20:05:35]*** Brake cut motor [20:05:35]Read from MH i2c: 01 [20:05:35]MH_I2C_Read... [20:05:35]*** Stop cut motor [20:05:35]*** Cut end [20:05:35]Read from MH i2c: 01 07 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 FF 0F A2 [20:05:35]process_action close_receipt done [20:05:35]requested_data is exist [20:05:35]produce_requested_data [20:05:35]requested_item fm.sn is exist - process it [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 11 00 00 [20:05:35]Write to MH i2c: E2 08 00 73 1B 80 11 00 00 00 00 00 00 08 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 17 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 17 00 73 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 58 [20:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:05:35]wFMCommunicate OK [20:05:35]requested_item fd.num is exist - process it [20:05:35]SAM_PROTO_GetFieldsCounters [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 13 00 00 [20:05:35]Write to MH i2c: E2 08 00 74 1B 80 13 00 00 00 00 00 00 0B [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 62 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 62 00 74 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 07 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [20:05:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 07 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:35]wFMCommunicate OK [20:05:35]SAM_PROTO_GetFieldsCounters done [20:05:35]requested_item shift.num is exist - process it [20:05:35]requested_item shift.opened is exist - process it [20:05:35]req_shift_opened [20:05:35]FM_GetShiftState [20:05:35]SAM_PROTO_GetShiftState [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 13 01 00 [20:05:35]Write to MH i2c: E2 08 00 75 1B 80 13 01 00 00 00 00 00 0D [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 0E 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 0E 00 75 1B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 06 [20:05:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:05:35]wFMCommunicate OK [20:05:35]SAM_PROTO_GetShiftState done [20:05:35]FM_GetShiftState done [20:05:35]req_shift_opened done [20:05:35]requested_item shift.open_date is exist - process it [20:05:35]req_shift_open_date [20:05:35]req_shift_open_date done [20:05:35]produce_requested_data done [20:05:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2311,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:05:35]process_action_free close_receipt [20:05:35]json_value_free [20:05:35]json_value_free done [20:05:35]process_json_proto returns [20:05:35]Send response to host [20:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2311,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:05:35]free response buf [20:05:35]execute_script done [20:05:35]execute_script returns [20:05:35]free content buf [20:05:35]Sock 10.Close socket [20:05:35]Sock 10.Thread stoped [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:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08: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:52]accept exits with 8 [20:08:52]New connection [20:08:52]New thread 3067157860 created [20:08:52]Thread 3067014500 joined [20:08:52]Waiting for new connection... [20:08:52] Sock 8.Parse request [20:08:52]Sock 8.Check first char [20:08:52]Sock 8.First char is OK [20:08:52]request: POST /json_proto HTTP/1.0 [20:08:52]Method: POST [20:08:52]URL: /json_proto [20:08:52]Method is POST - this is cgi request [20:08:52]url: /json_proto [20:08:52]query_string will be loaded in cgi processing [20:08:52]execute_cgi json_proto POST (null) [20:08:52]execute_cgi path=json_proto method=POST [20:08:52]POST find Content-Length [20:08:52]Host: 172.17.45.132:8080 [20:08:52]Content-Length: 677 [20:08:52]Content-Type: application/json [20:08:52] [20:08:52]POST finish read [20:08:52]Found Content-Length = 677 [20:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:52]execute_script... [20:08:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:52]POST & json_proto [20:08:52]process_json_proto [20:08:52]json parsed OK: [20:08:52]protocol is kg_v1.0 [20:08:52]action value=close_receipt [20:08:52]process_action close_receipt [20:08:52]cmd_close_receipt [20:08:52]MH_GetDate [20:08:52]Write to MH i2c: F0 00 00 76 1B 80 [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: F0 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: F0 09 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: F0 09 00 76 1B 00 D5 F6 A7 66 E3 0B 90 66 45 [20:08:52]GetLastDocTimeStamp 1722283533 [20:08:52]current date 1722283733 [20:08:52]FM_GetShiftState [20:08:52]SAM_PROTO_GetShiftState [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 13 01 00 [20:08:52]Write to MH i2c: E2 08 00 77 1B 80 13 01 00 00 00 00 00 0F [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0E 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0E 00 77 1B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 08 [20:08:52]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:08:52]wFMCommunicate OK [20:08:52]SAM_PROTO_GetShiftState done [20:08:52]FM_GetShiftState done [20:08:52]opened in 1722213119 [20:08:52]opened+sec_in_day 1722299519 [20:08:52]quantity*price = 60003 [20:08:52]sum+1 = 60004 [20:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 161 29.07.2024 20:08 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2312 ФПД: 278609710868870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200853&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2312&fm=278609710868870&tin=02508201610067®Number=0000000000189667&sum=60000 [20:08:53]StoreToDocumentArchive [20:08:53]shift 15 fd 2312 [20:08:53]save to /storage/0015/doc_00002312 [20:08:53]save last doc name /storage/0015/doc_00002312 to /storage/kkm_last_doc_name [20:08:53]save OK [20:08:53]Clear old archive folders... [20:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:53]tlvbuf is B6EDA9D0 [20:08:53]SAM_PROTO_ClearQueue [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 09 00 00 [20:08:53]Write to MH i2c: E2 08 00 84 1B 80 09 00 00 00 00 00 00 11 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 84 1B 00 90 00 13 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]SAM_PROTO_ClearQueue done [20:08:53]KKMCreateOFDPacket [20:08:53]OFDProtocolAddRootSTLVToBuf [20:08:53]FM_MakeSignedData [20:08:53]FM_MakeSignedData [20:08:53]SAM_PROTO_SignData [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 01 02 [20:08:53]Write to MH i2c: E2 08 00 85 1B 80 0D 01 02 00 00 00 00 19 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 85 1B 00 90 00 14 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]wFMCommunicate request_size=255 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 D5 F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 09 00 00 35 04 06 00 FD [20:08:53]Write to MH i2c: E2 02 01 86 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 D5 F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 09 00 00 35 04 06 00 FD 00 00 FB [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 86 1B 00 90 00 15 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]wFMCommunicate request_size=10 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 02 02 05 64 E0 D8 E9 86 [20:08:53]Write to MH i2c: E2 0D 00 87 1B 80 0D 02 02 05 00 64 E0 D8 E9 86 00 00 B1 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 03 00 87 1B 00 90 00 16 [20:08:53]RAPDU: 90 00 [20:08:53]wFMCommunicate OK [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 0D 03 02 [20:08:53]Write to MH i2c: E2 08 00 88 1B 80 0D 03 02 00 00 00 00 1E [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 0B 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 0B 00 88 1B 00 B1 05 EB 73 8B CF A7 20 90 00 54 [20:08:53]RAPDU: B1 05 EB 73 8B CF A7 20 90 00 [20:08:53]wFMCommunicate OK [20:08:53]SAM_PROTO_SignData done [20:08:53]FM_MakeSignedData done [20:08:53]CreateOFDProtocolMessage [20:08:53]wFMCommunicate request_size=4 [20:08:53]MH_SAM_APDU [20:08:53]CAPDU: 80 11 00 00 [20:08:53]Write to MH i2c: E2 08 00 89 1B 80 11 00 00 00 00 00 00 1E [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:53]Read from MH i2c: E2 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 17 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: E2 17 00 89 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6E [20:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:08:53]wFMCommunicate OK [20:08:53]CreateOFDProtocolMessage done [20:08:53]OFDSenderStorePacket 2312 [20:08:53]StoreOFDPacket docnum=2312 [20:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F2 63 07 01 6A 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 D5 F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 09 00 00 35 04 06 00 FD 64 E0 D8 E9 86 B1 05 EB 73 8B CF A7 20 [20:08:53]CheckFolder [20:08:53]dirname=/storage/ofd_packets [20:08:53]CheckFolder done [20:08:53]ProducePacketName [20:08:53]name=ofd_packets/00002312 [20:08:53]NVStorageSaveData ofd_packets/00002312 [20:08:53]File name is /storage/ofd_packets/00002312 [20:08:53]Write 301 bytes [20:08:53]NVStorageSaveData done [20:08:53]OFDSenderStorePacket done [20:08:53]KKMCreateOFDPacket done [20:08:53]NVStorageSaveData kkm_last_timestamp [20:08:53]File name is /storage/kkm_last_timestamp [20:08:53]Write 4 bytes [20:08:53]NVStorageSaveData done [20:08:53]ExternCall_PrintAddStr [20:08:53]wPrintStart [20:08:53]Write to MH i2c: 01 00 00 8A 1B A5 [20:08:53]OFD Sender: Processing packet 2312 [packets to send 1, broken 0] [20:08:53]ProducePacketName [20:08:53]name=ofd_packets/00002312 [20:08:53]OFD Sender: To server: pG, [20:08:53]CommunicateWithHost lk.salyk.kg:30040 [20:08:53]ConnectInit lk.salyk.kg [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 FF 0F BA [20:08:53]RasterBufferAndPrint [20:08:53]line Счет N : (1)610114 [20:08:53]line ИНН: 02508201610067 [20:08:53]line Контрольно-Кассовый Чек [20:08:53]line ПРОДАЖА [20:08:53]line ТРК (МРК, ГНК) : 52 [20:08:53]line Товар: 2710124130 [20:08:53]line Аи-92-К-2 [20:08:53]line 8.850 * 67.80 [20:08:53]line = 600.03 [20:08:53]line НДС 12% НСП 1% [20:08:53]line > о реализуемом товаре [20:08:53]line ОКРУГЛЕНИЕ: -0.03 [20:08:53]line ИТОГО: 600.00 [20:08:53]line Внесено: 600.00 [20:08:53]line СДАЧА: 0.00 [20:08:53]line НСП 1% : 5.31 [20:08:53]line НДС 12% : 63.72 [20:08:53]line Наличными: 600.00 [20:08:53]line Безнал.: 0.00 [20:08:53]line Место: АЗС № 127 "Партнер Нефть" [20:08:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:08:53]line СНО: Общий режим [20:08:53]line Чек 161 29.07.2024 20:08 [20:08:53]line Смена: 15 ФФД: 1.0 [20:08:53]line ЗНМ: 0300000161 [20:08:53]line РНМ: 0000000000189667 [20:08:53]line Версия ККМ: v1.0 [20:08:53]line ФМ: 0000000002094248 [20:08:53]line ФД: 2312 [20:08:53]line ФПД: 278609710868870 [20:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200853&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2312&fm=278609710868870&tin=02508201610067®Number=0000000000189667&sum=60000 [20:08:54]Connected sock=10 [20:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F2 63 07 01 6A 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 D5 F6 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 08 09 00 00 35 04 06 00 FD 64 E0 D8 E9 86 B1 05 EB 73 8B CF A7 20 [20:08:54]written 0, free lines is 4095 [20:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 82 D6 47 00 EB 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 32 30 39 34 32 34 38 10 04 04 00 08 09 00 00 F4 03 04 00 41 A2 A7 66 B6 04 01 00 00 AF 5F B1 97 4E 6F 5B 3B [20:08:54]CommunicateWithHost err = 0 [20:08:54]CheckOFDResponse [20:08:54]1017 (14) - 77093643461234 [20:08:54]1041 (16) - 0000000002094248 [20:08:54]1040 (4) - 2312 [20:08:54]1012 (4) - 29.07.2024 14:08 [20:08:54]1206 (1) - 0 [20:08:54]OFD Sender: Remove packet 2312 [20:08:54]ProducePacketName [20:08:54]name=ofd_packets/00002312 [20:08:54]NVStorageDeleteData [20:08:54]Write to MH i2c: 01 00 00 B5 1B D0 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 07 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 07 00 B5 1B 00 00 00 00 00 E8 0C CB [20:08:54]RasterBufferAndPrint [20:08:54]line [20:08:54]line [20:08:54]line [20:08:54]line [20:08:54]line [20:08:54]written 0, free lines is 3311 [20:08:54]MH_Cut [20:08:54]Write to MH i2c: D1 01 00 BC 1B 01 A9 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: D1 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: D1 01 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: D1 01 00 BC 1B 00 A8 [20:08:54]Write to MH i2c: 01 00 00 BD 1B D8 [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]OFD Sender: No OFD packet to send [20:08:55]*** Cut start [20:08:55]*** Partial cut [20:08:55]*** CUTSNS_PIN = 1 [20:08:55]*** CUTSNS_PIN = 0 [20:08:55]*** Brake cut motor [20:08:55]Read from MH i2c: 01 [20:08:55]MH_I2C_Read... [20:08:55]*** Stop cut motor [20:08:56]*** Cut end [20:08:56]Read from MH i2c: 01 07 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: 01 07 00 BD 1B 00 00 00 00 00 FF 0F ED [20:08:56]process_action close_receipt done [20:08:56]requested_data is exist [20:08:56]produce_requested_data [20:08:56]requested_item fm.sn is exist - process it [20:08:56]wFMCommunicate request_size=4 [20:08:56]MH_SAM_APDU [20:08:56]CAPDU: 80 11 00 00 [20:08:56]Write to MH i2c: E2 08 00 BE 1B 80 11 00 00 00 00 00 00 53 [20:08:56]Write i2c OK [20:08:56]MH_I2C_Read... [20:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:56]Read from MH i2c: E2 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 17 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 17 00 BE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A3 [20:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:08:56]wFMCommunicate OK [20:08:56]requested_item fd.num is exist - process it [20:08:56]SAM_PROTO_GetFieldsCounters [20:08:56]wFMCommunicate request_size=4 [20:08:56]MH_SAM_APDU [20:08:56]CAPDU: 80 13 00 00 [20:08:56]Write to MH i2c: E2 08 00 BF 1B 80 13 00 00 00 00 00 00 56 [20:08:56]Write i2c OK [20:08:56]MH_I2C_Read... [20:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:56]Read from MH i2c: E2 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 62 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 62 00 BF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 08 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 08 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:56]wFMCommunicate OK [20:08:56]SAM_PROTO_GetFieldsCounters done [20:08:56]requested_item shift.num is exist - process it [20:08:56]requested_item shift.opened is exist - process it [20:08:56]req_shift_opened [20:08:56]FM_GetShiftState [20:08:56]SAM_PROTO_GetShiftState [20:08:56]wFMCommunicate request_size=4 [20:08:56]MH_SAM_APDU [20:08:56]CAPDU: 80 13 01 00 [20:08:56]Write to MH i2c: E2 08 00 C0 1B 80 13 01 00 00 00 00 00 58 [20:08:56]Write i2c OK [20:08:56]MH_I2C_Read... [20:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:56]Read from MH i2c: E2 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 0E 00 [20:08:56]MH_I2C_Read... [20:08:56]Read from MH i2c: E2 0E 00 C0 1B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 51 [20:08:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:08:56]wFMCommunicate OK [20:08:56]SAM_PROTO_GetShiftState done [20:08:56]FM_GetShiftState done [20:08:56]req_shift_opened done [20:08:56]requested_item shift.open_date is exist - process it [20:08:56]req_shift_open_date [20:08:56]req_shift_open_date done [20:08:56]produce_requested_data done [20:08:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2312,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:08:56]process_action_free close_receipt [20:08:56]json_value_free [20:08:56]json_value_free done [20:08:56]process_json_proto returns [20:08:56]Send response to host [20:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2312,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:08:56]free response buf [20:08:56]execute_script done [20:08:56]execute_script returns [20:08:56]free content buf [20:08:56]Sock 8.Close socket [20:08:56]Sock 8.Thread stoped [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]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:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:47]accept exits with 9 [20:13:47]New connection [20:13:47]New thread 3067014500 created [20:13:47]Thread 3067157860 joined [20:13:47]Waiting for new connection... [20:13:47] Sock 9.Parse request [20:13:47]Sock 9.Check first char [20:13:47]Sock 9.First char is OK [20:13:47]request: POST /json_proto HTTP/1.0 [20:13:47]Method: POST [20:13:47]URL: /json_proto [20:13:47]Method is POST - this is cgi request [20:13:47]url: /json_proto [20:13:47]query_string will be loaded in cgi processing [20:13:47]execute_cgi json_proto POST (null) [20:13:47]execute_cgi path=json_proto method=POST [20:13:47]POST find Content-Length [20:13:47]Host: 172.17.45.132:8080 [20:13:47]Content-Length: 682 [20:13:47]Content-Type: application/json [20:13:47] [20:13:47]POST finish read [20:13:47]Found Content-Length = 682 [20:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:47]execute_script... [20:13:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:47]POST & json_proto [20:13:47]process_json_proto [20:13:47]json parsed OK: [20:13:47]protocol is kg_v1.0 [20:13:47]action value=close_receipt [20:13:47]process_action close_receipt [20:13:47]cmd_close_receipt [20:13:47]MH_GetDate [20:13:47]Write to MH i2c: F0 00 00 C1 1B CB [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: F0 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: F0 09 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: F0 09 00 C1 1B 00 FC F7 A7 66 E3 0B 90 66 B8 [20:13:47]GetLastDocTimeStamp 1722283733 [20:13:47]current date 1722284028 [20:13:47]FM_GetShiftState [20:13:47]SAM_PROTO_GetShiftState [20:13:47]wFMCommunicate request_size=4 [20:13:47]MH_SAM_APDU [20:13:47]CAPDU: 80 13 01 00 [20:13:47]Write to MH i2c: E2 08 00 C2 1B 80 13 01 00 00 00 00 00 5A [20:13:47]Write i2c OK [20:13:47]MH_I2C_Read... [20:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:47]Read from MH i2c: E2 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 0E 00 [20:13:47]MH_I2C_Read... [20:13:47]Read from MH i2c: E2 0E 00 C2 1B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 53 [20:13:47]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:13:47]wFMCommunicate OK [20:13:47]SAM_PROTO_GetShiftState done [20:13:47]FM_GetShiftState done [20:13:47]opened in 1722213119 [20:13:47]opened+sec_in_day 1722299519 [20:13:47]quantity*price = 100005 [20:13:47]sum+1 = 100006 [20:13:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 162 29.07.2024 20:13 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2313 ФПД: 22417173657262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201348&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2313&fm=22417173657262&tin=02508201610067®Number=0000000000189667&sum=100000 [20:13:48]StoreToDocumentArchive [20:13:48]shift 15 fd 2313 [20:13:48]save to /storage/0015/doc_00002313 [20:13:48]save last doc name /storage/0015/doc_00002313 to /storage/kkm_last_doc_name [20:13:48]save OK [20:13:48]Clear old archive folders... [20:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:48]tlvbuf is B6DDA010 [20:13:48]SAM_PROTO_ClearQueue [20:13:48]wFMCommunicate request_size=4 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 09 00 00 [20:13:48]Write to MH i2c: E2 08 00 CF 1B 80 09 00 00 00 00 00 00 5C [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 CF 1B 00 90 00 5E [20:13:48]RAPDU: 90 00 [20:13:48]wFMCommunicate OK [20:13:48]SAM_PROTO_ClearQueue done [20:13:48]KKMCreateOFDPacket [20:13:48]OFDProtocolAddRootSTLVToBuf [20:13:48]FM_MakeSignedData [20:13:48]FM_MakeSignedData [20:13:48]SAM_PROTO_SignData [20:13:48]wFMCommunicate request_size=4 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 0D 01 02 [20:13:48]Write to MH i2c: E2 08 00 D0 1B 80 0D 01 02 00 00 00 00 64 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [20:13:48]RAPDU: 90 00 [20:13:48]wFMCommunicate OK [20:13:48]wFMCommunicate request_size=255 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 FC F7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 09 00 00 35 04 06 00 14 [20:13:48]Write to MH i2c: E2 02 01 D1 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 FC F7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 09 00 00 35 04 06 00 14 00 00 4F [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 D1 1B 00 90 00 60 [20:13:48]RAPDU: 90 00 [20:13:48]wFMCommunicate OK [20:13:48]wFMCommunicate request_size=10 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 0D 02 02 05 63 67 AC 36 AE [20:13:48]Write to MH i2c: E2 0D 00 D2 1B 80 0D 02 02 05 00 63 67 AC 36 AE 00 00 CB [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 03 00 D2 1B 00 90 00 61 [20:13:48]RAPDU: 90 00 [20:13:48]wFMCommunicate OK [20:13:48]wFMCommunicate request_size=4 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 0D 03 02 [20:13:48]Write to MH i2c: E2 08 00 D3 1B 80 0D 03 02 00 00 00 00 69 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 0B 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 0B 00 D3 1B 00 72 AC 7F 60 AE 09 6D 77 90 00 02 [20:13:48]RAPDU: 72 AC 7F 60 AE 09 6D 77 90 00 [20:13:48]wFMCommunicate OK [20:13:48]SAM_PROTO_SignData done [20:13:48]FM_MakeSignedData done [20:13:48]CreateOFDProtocolMessage [20:13:48]wFMCommunicate request_size=4 [20:13:48]MH_SAM_APDU [20:13:48]CAPDU: 80 11 00 00 [20:13:48]Write to MH i2c: E2 08 00 D4 1B 80 11 00 00 00 00 00 00 69 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:48]Read from MH i2c: E2 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 17 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: E2 17 00 D4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B9 [20:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:13:48]wFMCommunicate OK [20:13:48]CreateOFDProtocolMessage done [20:13:48]OFDSenderStorePacket 2313 [20:13:48]StoreOFDPacket docnum=2313 [20:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C9 BA 07 01 0D 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 FC F7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 09 00 00 35 04 06 00 14 63 67 AC 36 AE 72 AC 7F 60 AE 09 6D 77 [20:13:48]CheckFolder [20:13:48]dirname=/storage/ofd_packets [20:13:48]CheckFolder done [20:13:48]ProducePacketName [20:13:48]name=ofd_packets/00002313 [20:13:48]NVStorageSaveData ofd_packets/00002313 [20:13:48]File name is /storage/ofd_packets/00002313 [20:13:48]Write 301 bytes [20:13:48]NVStorageSaveData done [20:13:48]OFDSenderStorePacket done [20:13:48]KKMCreateOFDPacket done [20:13:48]NVStorageSaveData kkm_last_timestamp [20:13:48]File name is /storage/kkm_last_timestamp [20:13:48]Write 4 bytes [20:13:48]NVStorageSaveData done [20:13:48]ExternCall_PrintAddStr [20:13:48]wPrintStart [20:13:48]Write to MH i2c: 01 00 00 D5 1B F0 [20:13:48]Write i2c OK [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: 01 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: 01 07 00 [20:13:48]MH_I2C_Read... [20:13:48]Read from MH i2c: 01 07 00 D5 1B 00 00 00 00 00 FF 0F 05 [20:13:48]RasterBufferAndPrint [20:13:48]line Счет N : (1)610118 [20:13:48]line ИНН: 02508201610067 [20:13:48]line Контрольно-Кассовый Чек [20:13:48]line ПРОДАЖА [20:13:48]line ТРК (МРК, ГНК) : 32 [20:13:48]line Товар: 2710124130 [20:13:48]line Аи-92-К-2 [20:13:48]line 14.750 * 67.80 [20:13:48]line = 1000.05 [20:13:48]line НДС 12% НСП 1% [20:13:48]line > о реализуемом товаре [20:13:48]line ОКРУГЛЕНИЕ: -0.05 [20:13:48]line ИТОГО: 1000.00 [20:13:48]line Внесено: 1000.00 [20:13:48]line СДАЧА: 0.00 [20:13:48]line НСП 1% : 8.85 [20:13:48]line НДС 12% : 106.20 [20:13:48]line Наличными: 1000.00 [20:13:48]line Безнал.: 0.00 [20:13:48]line Место: АЗС № 127 "Партнер Нефть" [20:13:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:13:48]line СНО: Общий режим [20:13:48]line Чек 162 29.07.2024 20:13 [20:13:48]line Смена: 15 ФФД: 1.0 [20:13:48]line ЗНМ: 0300000161 [20:13:48]line РНМ: 0000000000189667 [20:13:48]line Версия ККМ: v1.0 [20:13:48]line ФМ: 0000000002094248 [20:13:48]line ФД: 2313 [20:13:48]line ФПД: 22417173657262 [20:13:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201348&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2313&fm=22417173657262&tin=02508201610067®Number=0000000000189667&sum=100000 [20:13:49]OFD Sender: Processing packet 2313 [packets to send 1, broken 0] [20:13:49]ProducePacketName [20:13:49]name=ofd_packets/00002313 [20:13:49]OFD Sender: To server: pG, [20:13:49]CommunicateWithHost lk.salyk.kg:30040 [20:13:49]ConnectInit lk.salyk.kg [20:13:49]written 0, free lines is 4095 [20:13:49]Connected sock=10 [20:13:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C9 BA 07 01 0D 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 FC F7 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 09 09 00 00 35 04 06 00 14 63 67 AC 36 AE 72 AC 7F 60 AE 09 6D 77 [20:13:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 46 27 47 00 B3 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 32 30 39 34 32 34 38 10 04 04 00 09 09 00 00 F4 03 04 00 68 A3 A7 66 B6 04 01 00 00 A0 02 85 D5 6B B7 2C 4D [20:13:49]CommunicateWithHost err = 0 [20:13:49]CheckOFDResponse [20:13:49]1017 (14) - 77093643461234 [20:13:49]1041 (16) - 0000000002094248 [20:13:49]1040 (4) - 2313 [20:13:49]1012 (4) - 29.07.2024 14:12 [20:13:49]1206 (1) - 0 [20:13:49]OFD Sender: Remove packet 2313 [20:13:49]ProducePacketName [20:13:49]name=ofd_packets/00002313 [20:13:49]NVStorageDeleteData [20:13:49]Write to MH i2c: 01 00 00 00 1C 1C [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: 01 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: 01 07 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: 01 07 00 00 1C 00 00 00 00 00 E6 0C 15 [20:13:49]RasterBufferAndPrint [20:13:49]line [20:13:49]line [20:13:49]line [20:13:49]line [20:13:49]line [20:13:49]written 0, free lines is 3309 [20:13:49]MH_Cut [20:13:49]Write to MH i2c: D1 01 00 07 1C 01 F5 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: D1 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: D1 01 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: D1 01 00 07 1C 00 F4 [20:13:49]Write to MH i2c: 01 00 00 08 1C 24 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:50]OFD Sender: No OFD packet to send [20:13:50]*** Cut start [20:13:50]*** Partial cut [20:13:50]*** CUTSNS_PIN = 1 [20:13:50]*** CUTSNS_PIN = 0 [20:13:50]*** Brake cut motor [20:13:50]Read from MH i2c: 01 [20:13:50]MH_I2C_Read... [20:13:50]*** Stop cut motor [20:13:50]*** Cut end [20:13:50]Read from MH i2c: 01 07 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: 01 07 00 08 1C 00 00 00 00 00 FF 0F 39 [20:13:50]process_action close_receipt done [20:13:50]requested_data is exist [20:13:50]produce_requested_data [20:13:50]requested_item fm.sn is exist - process it [20:13:50]wFMCommunicate request_size=4 [20:13:50]MH_SAM_APDU [20:13:50]CAPDU: 80 11 00 00 [20:13:50]Write to MH i2c: E2 08 00 09 1C 80 11 00 00 00 00 00 00 9F [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:51]Read from MH i2c: E2 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 17 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 17 00 09 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EF [20:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:13:51]wFMCommunicate OK [20:13:51]requested_item fd.num is exist - process it [20:13:51]SAM_PROTO_GetFieldsCounters [20:13:51]wFMCommunicate request_size=4 [20:13:51]MH_SAM_APDU [20:13:51]CAPDU: 80 13 00 00 [20:13:51]Write to MH i2c: E2 08 00 0A 1C 80 13 00 00 00 00 00 00 A2 [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:51]Read from MH i2c: E2 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 62 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 62 00 0A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 09 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [20:13:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 09 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:51]wFMCommunicate OK [20:13:51]SAM_PROTO_GetFieldsCounters done [20:13:51]requested_item shift.num is exist - process it [20:13:51]requested_item shift.opened is exist - process it [20:13:51]req_shift_opened [20:13:51]FM_GetShiftState [20:13:51]SAM_PROTO_GetShiftState [20:13:51]wFMCommunicate request_size=4 [20:13:51]MH_SAM_APDU [20:13:51]CAPDU: 80 13 01 00 [20:13:51]Write to MH i2c: E2 08 00 0B 1C 80 13 01 00 00 00 00 00 A4 [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:51]Read from MH i2c: E2 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 0E 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 0E 00 0B 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 9D [20:13:51]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:13:51]wFMCommunicate OK [20:13:51]SAM_PROTO_GetShiftState done [20:13:51]FM_GetShiftState done [20:13:51]req_shift_opened done [20:13:51]requested_item shift.open_date is exist - process it [20:13:51]req_shift_open_date [20:13:51]req_shift_open_date done [20:13:51]produce_requested_data done [20:13:51]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2313,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:13:51]process_action_free close_receipt [20:13:51]json_value_free [20:13:51]json_value_free done [20:13:51]process_json_proto returns [20:13:51]Send response to host [20:13:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2313,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:13:51]free response buf [20:13:51]execute_script done [20:13:51]execute_script returns [20:13:51]free content buf [20:13:51]Sock 9.Close socket [20:13:51]Sock 9.Thread stoped [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:01]accept exits with 8 [20:15:01]New connection [20:15:01]New thread 3067157860 created [20:15:01]Thread 3067014500 joined [20:15:01]Waiting for new connection... [20:15:01] Sock 8.Parse request [20:15:01]Sock 8.Check first char [20:15:01]Sock 8.First char is OK [20:15:01]request: POST /json_proto HTTP/1.0 [20:15:01]Method: POST [20:15:01]URL: /json_proto [20:15:01]Method is POST - this is cgi request [20:15:01]url: /json_proto [20:15:01]query_string will be loaded in cgi processing [20:15:01]execute_cgi json_proto POST (null) [20:15:01]execute_cgi path=json_proto method=POST [20:15:01]POST find Content-Length [20:15:01]Host: 172.17.45.132:8080 [20:15:01]Content-Length: 1235 [20:15:01]Content-Type: application/json [20:15:01] [20:15:01]POST finish read [20:15:01]Found Content-Length = 1235 [20:15:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126557", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 690.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:01]execute_script... [20:15: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)126557", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 690.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:01]POST & json_proto [20:15:01]process_json_proto [20:15:01]json parsed OK: [20:15:01]protocol is kg_v1.0 [20:15:01]action value=close_receipt [20:15:01]process_action close_receipt [20:15:01]cmd_close_receipt [20:15:01]MH_GetDate [20:15:01]Write to MH i2c: F0 00 00 0C 1C 17 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: F0 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: F0 09 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: F0 09 00 0C 1C 00 46 F8 A7 66 E3 0B 90 66 4F [20:15:01]GetLastDocTimeStamp 1722284028 [20:15:01]current date 1722284102 [20:15:01]FM_GetShiftState [20:15:01]SAM_PROTO_GetShiftState [20:15:01]wFMCommunicate request_size=4 [20:15:01]MH_SAM_APDU [20:15:01]CAPDU: 80 13 01 00 [20:15:01]Write to MH i2c: E2 08 00 0D 1C 80 13 01 00 00 00 00 00 A6 [20:15:01]Write i2c OK [20:15:01]MH_I2C_Read... [20:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:01]Read from MH i2c: E2 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0E 00 [20:15:01]MH_I2C_Read... [20:15:01]Read from MH i2c: E2 0E 00 0D 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 9F [20:15:01]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:15:01]wFMCommunicate OK [20:15:01]SAM_PROTO_GetShiftState done [20:15:01]FM_GetShiftState done [20:15:01]opened in 1722213119 [20:15:01]opened+sec_in_day 1722299519 [20:15:01]quantity*price = 51000 [20:15:01]sum+1 = 51001 [20:15:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000002952 Холодный чай Fuse персик 0,33 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000134912 Холодный чай Fuse манго,ромашка 0,33 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 690.00 НСП 1% : 6.11 НДС 12% : 73.28 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 163 29.07.2024 20:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2314 ФПД: 139204157318116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201503&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2314&fm=139204157318116&tin=02508201610067®Number=0000000000189667&sum=69000 0 [20:15:02]StoreToDocumentArchive [20:15:02]shift 15 fd 2314 [20:15:02]save to /storage/0015/doc_00002314 [20:15:02]save last doc name /storage/0015/doc_00002314 to /storage/kkm_last_doc_name [20:15:02]save OK [20:15:02]Clear old archive folders... [20:15:02]ProcessDocumentItem done err = 0, tmpTLVsize=523 [20:15:02]tlvbuf is B6EDA1A0 [20:15:02]SAM_PROTO_ClearQueue [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 09 00 00 [20:15:02]Write to MH i2c: E2 08 00 1A 1C 80 09 00 00 00 00 00 00 A8 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 1A 1C 00 90 00 AA [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]SAM_PROTO_ClearQueue done [20:15:02]KKMCreateOFDPacket [20:15:02]OFDProtocolAddRootSTLVToBuf [20:15:02]FM_MakeSignedData [20:15:02]FM_MakeSignedData [20:15:02]SAM_PROTO_SignData [20:15:02]wFMCommunicate request_size=4 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 01 02 [20:15:02]Write to MH i2c: E2 08 00 1B 1C 80 0D 01 02 00 00 00 00 B0 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 1B 1C 00 90 00 AB [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=255 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 02 02 FA 03 00 0B 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 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 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 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 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 [20:15:02]Write to MH i2c: E2 02 01 1C 1C 80 0D 02 02 FA 00 03 00 0B 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 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 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 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 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 00 00 39 [20:15:02]Write i2c OK [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 [20:15:02]MH_I2C_Read... [20:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:02]Read from MH i2c: E2 03 00 [20:15:02]MH_I2C_Read... [20:15:02]Read from MH i2c: E2 03 00 1C 1C 00 90 00 AC [20:15:02]RAPDU: 90 00 [20:15:02]wFMCommunicate OK [20:15:02]wFMCommunicate request_size=255 [20:15:02]MH_SAM_APDU [20:15:02]CAPDU: 80 0D 02 02 FA 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 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 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 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 47 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 [20:15:02]Write to MH i2c: E2 02 01 1D 1C 80 0D 02 02 FA 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 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 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 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 47 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 00 00 7C [20:15:02]Write i2c OK [20:15:02]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 1D 1C 00 90 00 AD [20:15:03]RAPDU: 90 00 [20:15:03]wFMCommunicate OK [20:15:03]wFMCommunicate request_size=32 [20:15:03]MH_SAM_APDU [20:15:03]CAPDU: 80 0D 02 02 1B 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 09 00 00 35 04 06 00 7E 9A FE 59 23 E4 [20:15:03]Write to MH i2c: E2 23 00 1E 1C 80 0D 02 02 1B 00 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 09 00 00 35 04 06 00 7E 9A FE 59 23 E4 00 00 97 [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 1E 1C 00 90 00 AE [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 1F 1C 80 0D 03 02 00 00 00 00 B6 [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 1F 1C 00 94 7E 38 6E 0B 36 EF 29 90 00 C8 [20:15:03]RAPDU: 94 7E 38 6E 0B 36 EF 29 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 20 1C 80 11 00 00 00 00 00 00 B6 [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:03]Read from MH i2c: E2 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 17 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: E2 17 00 20 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 06 [20:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:15:03]wFMCommunicate OK [20:15:03]CreateOFDProtocolMessage done [20:15:03]OFDSenderStorePacket 2314 [20:15:03]StoreOFDPacket docnum=2314 [20:15:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 02 00 00 8D 3A 17 02 99 B6 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 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 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 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 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 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 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 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 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 47 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 09 00 00 35 04 06 00 7E 9A FE 59 23 E4 94 7E 38 6E 0B 36 EF 29 [20:15:03]CheckFolder [20:15:03]dirname=/storage/ofd_packets [20:15:03]CheckFolder done [20:15:03]ProducePacketName [20:15:03]name=ofd_packets/00002314 [20:15:03]NVStorageSaveData ofd_packets/00002314 [20:15:03]File name is /storage/ofd_packets/00002314 [20:15:03]Write 573 bytes [20:15:03]NVStorageSaveData done [20:15:03]OFDSenderStorePacket done [20:15:03]KKMCreateOFDPacket done [20:15:03]NVStorageSaveData kkm_last_timestamp [20:15:03]File name is /storage/kkm_last_timestamp [20:15:03]Write 4 bytes [20:15:03]NVStorageSaveData done [20:15:03]ExternCall_PrintAddStr [20:15:03]wPrintStart [20:15:03]Write to MH i2c: 01 00 00 21 1C 3D [20:15:03]Write i2c OK [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 [20:15:03]MH_I2C_Read... [20:15:03]Read from MH i2c: 01 07 00 21 1C 00 00 00 00 00 FF 0F 52 [20:15:03]RasterBufferAndPrint [20:15:03]line Счет N : (3)126557 [20:15:03]line ИНН: 02508201610067 [20:15:03]line Контрольно-Кассовый Чек [20:15:03]line ПРОДАЖА [20:15:03]line Товар: 4700002083327 [20:15:03]line Водка Level 0,5 [20:15:03]line 1.000 * 510.00 [20:15:03]line = 510.00 [20:15:03]line НДС 12% НСП 1% [20:15:03]line > о реализуемом товаре [20:15:03]line Товар: 5449000002952 [20:15:03]line Холодный чай Fuse персик 0,33 ж/б [20:15:03]line 1.000 * 90.00 [20:15:03]line = 90.00 [20:15:03]line НДС 12% НСП 1% [20:15:03]line > о реализуемом товаре [20:15:03]line Товар: 5449000134912 [20:15:03]line Холодный чай Fuse манго,ромашка 0,33 ж/б [20:15:03]line 1.000 * 90.00 [20:15:03]line = 90.00 [20:15:03]line НДС 12% НСП 1% [20:15:03]line > о реализуемом товаре [20:15:03]line ИТОГО: 690.00 [20:15:03]line НСП 1% : 6.11 [20:15:03]line НДС 12% : 73.28 [20:15:03]line Наличными: 690.00 [20:15:03]line Безнал.: 0.00 [20:15:03]line Место: АЗС № 127 "Партнер Нефть" [20:15:03]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:15:03]line СНО: Общий режим [20:15:03]line Чек 163 29.07.2024 20:15 [20:15:03]line Смена: 15 ФФД: 1.0 [20:15:03]line ЗНМ: 0300000161 [20:15:03]line РНМ: 0000000000189667 [20:15:03]line Версия ККМ: v1.0 [20:15:03]line ФМ: 0000000002094248 [20:15:03]line ФД: 2314 [20:15:03]line ФПД: 139204157318116 [20:15:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201503&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2314&fm=139204157318116&tin=02508201610067®Number=0000000000189667&sum=69000 [20:15:03]line 0 [20:15:03]OFD Sender: Processing packet 2314 [packets to send 1, broken 0] [20:15:03]ProducePacketName [20:15:03]name=ofd_packets/00002314 [20:15:03]OFD Sender: To server: pG, [20:15:03]CommunicateWithHost lk.salyk.kg:30040 [20:15:03]ConnectInit lk.salyk.kg [20:15:03]written 0, free lines is 4095 [20:15:04]Write to MH i2c: 01 00 00 57 1C 73 [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 57 1C 00 00 00 00 00 4D 0C D3 [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 3155 [20:15:04]MH_Cut [20:15:04]Write to MH i2c: D1 01 00 5E 1C 01 4C [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 5E 1C 00 4B [20:15:04]Write to MH i2c: 01 00 00 5F 1C 7B [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:05]*** Cut start [20:15:05]*** Partial cut [20:15:05]*** CUTSNS_PIN = 1 [20:15:05]*** CUTSNS_PIN = 0 [20:15:05]*** Brake cut motor [20:15:05]Read from MH i2c: 01 [20:15:05]MH_I2C_Read... [20:15:05]*** Stop cut motor [20:15:05]*** Cut end [20:15:05]Read from MH i2c: 01 07 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 07 00 5F 1C 00 00 00 00 00 FF 0F 90 [20:15:05]process_action close_receipt done [20:15:05]requested_data is exist [20:15:05]produce_requested_data [20:15:05]requested_item fm.sn is exist - process it [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 11 00 00 [20:15:05]Write to MH i2c: E2 08 00 60 1C 80 11 00 00 00 00 00 00 F6 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 17 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 17 00 60 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 46 [20:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:15:05]wFMCommunicate OK [20:15:05]requested_item fd.num is exist - process it [20:15:05]SAM_PROTO_GetFieldsCounters [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 13 00 00 [20:15:05]Write to MH i2c: E2 08 00 61 1C 80 13 00 00 00 00 00 00 F9 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 62 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 62 00 61 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [20:15:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:05]wFMCommunicate OK [20:15:05]SAM_PROTO_GetFieldsCounters done [20:15:05]requested_item shift.num is exist - process it [20:15:05]requested_item shift.opened is exist - process it [20:15:05]req_shift_opened [20:15:05]FM_GetShiftState [20:15:05]SAM_PROTO_GetShiftState [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 13 01 00 [20:15:05]Write to MH i2c: E2 08 00 62 1C 80 13 01 00 00 00 00 00 FB [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:06]Read from MH i2c: E2 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: E2 0E 00 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: E2 0E 00 62 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F4 [20:15:06]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:15:06]wFMCommunicate OK [20:15:06]SAM_PROTO_GetShiftState done [20:15:06]FM_GetShiftState done [20:15:06]req_shift_opened done [20:15:06]requested_item shift.open_date is exist - process it [20:15:06]req_shift_open_date [20:15:06]req_shift_open_date done [20:15:06]produce_requested_data done [20:15:06]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2314,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:15:06]process_action_free close_receipt [20:15:06]json_value_free [20:15:06]json_value_free done [20:15:06]process_json_proto returns [20:15:06]Send response to host [20:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2314,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:15:06]free response buf [20:15:06]execute_script done [20:15:06]execute_script returns [20:15:06]free content buf [20:15:06]Sock 8.Close socket [20:15:06]Sock 8.Thread stoped [20:15:07]accept exits with 9 [20:15:07]New connection [20:15:07]New thread 3067014500 created [20:15:07]Thread 3067157860 joined [20:15:07]Waiting for new connection... [20:15:07] Sock 9.Parse request [20:15:07]Sock 9.Check first char [20:15:07]Sock 9.First char is OK [20:15:07]request: POST /json_proto HTTP/1.0 [20:15:07]Method: POST [20:15:07]URL: /json_proto [20:15:07]Method is POST - this is cgi request [20:15:07]url: /json_proto [20:15:07]query_string will be loaded in cgi processing [20:15:07]execute_cgi json_proto POST (null) [20:15:07]execute_cgi path=json_proto method=POST [20:15:07]POST find Content-Length [20:15:07]Host: 172.17.45.132:8080 [20:15:07]Content-Length: 656 [20:15:07]Content-Type: application/json [20:15:07] [20:15:07]POST finish read [20:15:07]Found Content-Length = 656 [20:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126558", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:07]execute_script... [20:15: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)126558", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:07]POST & json_proto [20:15:07]process_json_proto [20:15:07]json parsed OK: [20:15:07]protocol is kg_v1.0 [20:15:07]action value=close_receipt [20:15:07]process_action close_receipt [20:15:07]cmd_close_receipt [20:15:07]MH_GetDate [20:15:07]Write to MH i2c: F0 00 00 63 1C 6E [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: F0 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: F0 09 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: F0 09 00 63 1C 00 4D F8 A7 66 E3 0B 90 66 AD [20:15:07]GetLastDocTimeStamp 1722284103 [20:15:07]current date 1722284109 [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 64 1C 80 13 01 00 00 00 00 00 FD [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 64 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F6 [20:15:07]RAPDU: 09 00 01 FF E2 A6 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]opened in 1722213119 [20:15:07]opened+sec_in_day 1722299519 [20:15:07]quantity*price = 400 [20:15:07]sum+1 = 401 [20:15:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 164 29.07.2024 20:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2315 ФПД: 265034528045973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201509&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2315&fm=265034528045973&tin=02508201610067®Number=0000000000189667&sum=400 0 [20:15:09]StoreToDocumentArchive [20:15:09]shift 15 fd 2315 [20:15:09]save to /storage/0015/doc_00002315 [20:15:09]save last doc name /storage/0015/doc_00002315 to /storage/kkm_last_doc_name [20:15:09]save OK [20:15:09]Clear old archive folders... [20:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:15:09]tlvbuf is 01F5AD70 [20:15:09]SAM_PROTO_ClearQueue [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 09 00 00 [20:15:09]Write to MH i2c: E2 08 00 71 1C 80 09 00 00 00 00 00 00 FF [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [20:15:09]RAPDU: 90 00 [20:15:09]wFMCommunicate OK [20:15:09]SAM_PROTO_ClearQueue done [20:15:09]KKMCreateOFDPacket [20:15:09]OFDProtocolAddRootSTLVToBuf [20:15:09]FM_MakeSignedData [20:15:09]FM_MakeSignedData [20:15:09]SAM_PROTO_SignData [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 0D 01 02 [20:15:09]Write to MH i2c: E2 08 00 72 1C 80 0D 01 02 00 00 00 00 07 [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [20:15:09]RAPDU: 90 00 [20:15:09]wFMCommunicate OK [20:15:09]wFMCommunicate request_size=255 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A4 00 00 00 F4 03 04 00 4D F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [20:15:09]Write to MH i2c: E2 02 01 73 1C 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A4 00 00 00 F4 03 04 00 4D F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 55 [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [20:15:09]RAPDU: 90 00 [20:15:09]wFMCommunicate OK [20:15:09]wFMCommunicate request_size=37 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 09 00 00 35 04 06 00 F1 0C 28 E5 BB 95 [20:15:09]Write to MH i2c: E2 28 00 74 1C 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 09 00 00 35 04 06 00 F1 0C 28 E5 BB 95 00 00 CC [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 03 00 74 1C 00 90 00 04 [20:15:09]RAPDU: 90 00 [20:15:09]wFMCommunicate OK [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 0D 03 02 [20:15:09]Write to MH i2c: E2 08 00 75 1C 80 0D 03 02 00 00 00 00 0C [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 0B 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 0B 00 75 1C 00 86 8A 0A A8 C8 D3 CE 46 90 00 7E [20:15:09]RAPDU: 86 8A 0A A8 C8 D3 CE 46 90 00 [20:15:09]wFMCommunicate OK [20:15:09]SAM_PROTO_SignData done [20:15:09]FM_MakeSignedData done [20:15:09]CreateOFDProtocolMessage [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 11 00 00 [20:15:09]Write to MH i2c: E2 08 00 76 1C 80 11 00 00 00 00 00 00 0C [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 17 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 17 00 76 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5C [20:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:15:09]wFMCommunicate OK [20:15:09]CreateOFDProtocolMessage done [20:15:09]OFDSenderStorePacket 2315 [20:15:09]StoreOFDPacket docnum=2315 [20:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 A0 D1 22 01 85 8E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A4 00 00 00 F4 03 04 00 4D F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 09 00 00 35 04 06 00 F1 0C 28 E5 BB 95 86 8A 0A A8 C8 D3 CE 46 [20:15:09]CheckFolder [20:15:09]dirname=/storage/ofd_packets [20:15:09]CheckFolder done [20:15:09]ProducePacketName [20:15:09]name=ofd_packets/00002315 [20:15:09]NVStorageSaveData ofd_packets/00002315 [20:15:09]File name is /storage/ofd_packets/00002315 [20:15:09]Write 328 bytes [20:15:09]NVStorageSaveData done [20:15:09]OFDSenderStorePacket done [20:15:09]KKMCreateOFDPacket done [20:15:09]NVStorageSaveData kkm_last_timestamp [20:15:09]File name is /storage/kkm_last_timestamp [20:15:09]Write 4 bytes [20:15:09]NVStorageSaveData done [20:15:09]ExternCall_PrintAddStr [20:15:09]wPrintStart [20:15:09]Write to MH i2c: 01 00 00 77 1C 93 [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: 01 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: 01 07 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: 01 07 00 77 1C 00 00 00 00 00 FF 0F A8 [20:15:09]RasterBufferAndPrint [20:15:09]line Счет N : (3)126558 [20:15:09]line ИНН: 02508201610067 [20:15:09]line Контрольно-Кассовый Чек [20:15:09]line ПРОДАЖА [20:15:09]line Товар: 2000031750019 [20:15:09]line Пакет Партнер Нефть [20:15:09]line 1.000 * 4.00 [20:15:09]line = 4.00 [20:15:09]line НДС 12% НСП 1% [20:15:09]line > о реализуемом товаре [20:15:09]line ИТОГО: 4.00 [20:15:09]line НСП 1% : 0.03 [20:15:09]line НДС 12% : 0.42 [20:15:09]line Наличными: 4.00 [20:15:09]line Безнал.: 0.00 [20:15:09]line Место: АЗС № 127 "Партнер Нефть" [20:15:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:15:09]line СНО: Общий режим [20:15:09]line Чек 164 29.07.2024 20:15 [20:15:09]line Смена: 15 ФФД: 1.0 [20:15:09]line ЗНМ: 0300000161 [20:15:09]line РНМ: 0000000000189667 [20:15:09]line Версия ККМ: v1.0 [20:15:09]line ФМ: 0000000002094248 [20:15:09]line ФД: 2315 [20:15:09]line ФПД: 265034528045973 [20:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201509&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2315&fm=265034528045973&tin=02508201610067®Number=0000000000189667&sum=400 [20:15:09]line 0 [20:15:09]written 0, free lines is 4095 [20:15:10]Write to MH i2c: 01 00 00 9F 1C BB [20:15:10]Write i2c OK [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: 01 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: 01 07 00 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: 01 07 00 9F 1C 00 00 00 00 00 09 0D D8 [20:15:10]RasterBufferAndPrint [20:15:10]line [20:15:10]line [20:15:10]line [20:15:10]line [20:15:10]line [20:15:10]written 0, free lines is 3349 [20:15:10]MH_Cut [20:15:10]Write to MH i2c: D1 01 00 A6 1C 01 94 [20:15:10]Write i2c OK [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: D1 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: D1 01 00 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: D1 01 00 A6 1C 00 93 [20:15:10]Write to MH i2c: 01 00 00 A7 1C C3 [20:15:10]Write i2c OK [20:15:10]MH_I2C_Read... [20:15:11]*** Cut start [20:15:11]*** Partial cut [20:15:11]*** CUTSNS_PIN = 1 [20:15:11]*** CUTSNS_PIN = 0 [20:15:11]*** Brake cut motor [20:15:11]Read from MH i2c: 01 [20:15:11]MH_I2C_Read... [20:15:11]*** Stop cut motor [20:15:11]*** Cut end [20:15:11]Read from MH i2c: 01 07 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: 01 07 00 A7 1C 00 00 00 00 00 FF 0F D8 [20:15:11]process_action close_receipt done [20:15:11]requested_data is exist [20:15:11]produce_requested_data [20:15:11]requested_item fm.sn is exist - process it [20:15:11]wFMCommunicate request_size=4 [20:15:11]MH_SAM_APDU [20:15:11]CAPDU: 80 11 00 00 [20:15:11]Write to MH i2c: E2 08 00 A8 1C 80 11 00 00 00 00 00 00 3E [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:11]Read from MH i2c: E2 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 17 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 17 00 A8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8E [20:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:15:11]wFMCommunicate OK [20:15:11]requested_item fd.num is exist - process it [20:15:11]SAM_PROTO_GetFieldsCounters [20:15:11]wFMCommunicate request_size=4 [20:15:11]MH_SAM_APDU [20:15:11]CAPDU: 80 13 00 00 [20:15:11]Write to MH i2c: E2 08 00 A9 1C 80 13 00 00 00 00 00 00 41 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:11]Read from MH i2c: E2 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 62 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 62 00 A9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [20:15:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:11]wFMCommunicate OK [20:15:11]SAM_PROTO_GetFieldsCounters done [20:15:11]requested_item shift.num is exist - process it [20:15:11]requested_item shift.opened is exist - process it [20:15:11]req_shift_opened [20:15:11]FM_GetShiftState [20:15:11]SAM_PROTO_GetShiftState [20:15:11]wFMCommunicate request_size=4 [20:15:11]MH_SAM_APDU [20:15:11]CAPDU: 80 13 01 00 [20:15:11]Write to MH i2c: E2 08 00 AA 1C 80 13 01 00 00 00 00 00 43 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:11]Read from MH i2c: E2 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 0E 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 0E 00 AA 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3C [20:15:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:15:11]wFMCommunicate OK [20:15:11]SAM_PROTO_GetShiftState done [20:15:11]FM_GetShiftState done [20:15:11]req_shift_opened done [20:15:11]requested_item shift.open_date is exist - process it [20:15:11]req_shift_open_date [20:15:11]req_shift_open_date done [20:15:11]produce_requested_data done [20:15:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2315,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:15:11]process_action_free close_receipt [20:15:11]json_value_free [20:15:11]json_value_free done [20:15:11]process_json_proto returns [20:15:11]Send response to host [20:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2315,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:15:11]free response buf [20:15:11]execute_script done [20:15:11]execute_script returns [20:15:11]free content buf [20:15:11]Sock 9.Close socket [20:15:11]Sock 9.Thread stoped [20:16:04]accept exits with 8 [20:16:04]New connection [20:16:04]New thread 3067157860 created [20:16:04]Thread 3067014500 joined [20:16:04]Waiting for new connection... [20:16:04] Sock 8.Parse request [20:16:04]Sock 8.Check first char [20:16:04]Sock 8.First char is OK [20:16:04]request: POST /json_proto HTTP/1.0 [20:16:04]Method: POST [20:16:04]URL: /json_proto [20:16:04]Method is POST - this is cgi request [20:16:04]url: /json_proto [20:16:04]query_string will be loaded in cgi processing [20:16:04]execute_cgi json_proto POST (null) [20:16:04]execute_cgi path=json_proto method=POST [20:16:04]POST find Content-Length [20:16:04]Host: 172.17.45.132:8080 [20:16:04]Content-Length: 974 [20:16:04]Content-Type: application/json [20:16:04] [20:16:04]POST finish read [20:16:04]Found Content-Length = 974 [20:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126559", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:04]execute_script... [20: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)126559", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:04]POST & json_proto [20:16:04]process_json_proto [20:16:04]json parsed OK: [20:16:04]protocol is kg_v1.0 [20:16:04]action value=close_receipt [20:16:04]process_action close_receipt [20:16:04]cmd_close_receipt [20:16:04]MH_GetDate [20:16:04]Write to MH i2c: F0 00 00 AB 1C B6 [20:16:04]Write i2c OK [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: F0 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: F0 09 00 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: F0 09 00 AB 1C 00 86 F8 A7 66 E3 0B 90 66 2E [20:16:04]GetLastDocTimeStamp 1722284109 [20:16:04]current date 1722284166 [20:16:04]FM_GetShiftState [20:16:04]SAM_PROTO_GetShiftState [20:16:04]wFMCommunicate request_size=4 [20:16:04]MH_SAM_APDU [20:16:04]CAPDU: 80 13 01 00 [20:16:04]Write to MH i2c: E2 08 00 AC 1C 80 13 01 00 00 00 00 00 45 [20:16:04]Write i2c OK [20:16:04]MH_I2C_Read... [20:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:04]Read from MH i2c: E2 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: E2 0E 00 [20:16:04]MH_I2C_Read... [20:16:04]Read from MH i2c: E2 0E 00 AC 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3E [20:16:04]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:16:04]wFMCommunicate OK [20:16:04]SAM_PROTO_GetShiftState done [20:16:04]FM_GetShiftState done [20:16:04]opened in 1722213119 [20:16:04]opened+sec_in_day 1722299519 [20:16:04]quantity*price = 11000 [20:16:04]sum+1 = 11001 [20:16:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.54 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 165 29.07.2024 20:16 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2316 ФПД: 74704230128666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201606&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2316&fm=74704230128666&tin=02508201610067®Number=0000000000189667&sum=17500 0 [20:16:06]StoreToDocumentArchive [20:16:06]shift 15 fd 2316 [20:16:06]save to /storage/0015/doc_00002316 [20:16:06]save last doc name /storage/0015/doc_00002316 to /storage/kkm_last_doc_name [20:16:06]save OK [20:16:06]Clear old archive folders... [20:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=418 [20:16:06]tlvbuf is 01FE2BA0 [20:16:06]SAM_PROTO_ClearQueue [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 09 00 00 [20:16:06]Write to MH i2c: E2 08 00 B9 1C 80 09 00 00 00 00 00 00 47 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]SAM_PROTO_ClearQueue done [20:16:06]KKMCreateOFDPacket [20:16:06]OFDProtocolAddRootSTLVToBuf [20:16:06]FM_MakeSignedData [20:16:06]FM_MakeSignedData [20:16:06]SAM_PROTO_SignData [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 01 02 [20:16:06]Write to MH i2c: E2 08 00 BA 1C 80 0D 01 02 00 00 00 00 4F [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]wFMCommunicate request_size=255 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 02 02 FA 03 00 A2 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 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 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 [20:16:06]Write to MH i2c: E2 02 01 BB 1C 80 0D 02 02 FA 00 03 00 A2 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 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 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 00 A3 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]wFMCommunicate request_size=177 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 02 02 AC 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 86 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 09 00 00 35 04 06 00 43 F1 6F 19 9C 1A [20:16:06]Write to MH i2c: E2 B4 00 BC 1C 80 0D 02 02 AC 00 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 86 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 09 00 00 35 04 06 00 43 F1 6F 19 9C 1A 00 00 A1 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [20:16:06]RAPDU: 90 00 [20:16:06]wFMCommunicate OK [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 0D 03 02 [20:16:06]Write to MH i2c: E2 08 00 BD 1C 80 0D 03 02 00 00 00 00 54 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 0B 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 0B 00 BD 1C 00 6D B7 08 FF A0 61 1C 40 90 00 DD [20:16:06]RAPDU: 6D B7 08 FF A0 61 1C 40 90 00 [20:16:06]wFMCommunicate OK [20:16:06]SAM_PROTO_SignData done [20:16:06]FM_MakeSignedData done [20:16:06]CreateOFDProtocolMessage [20:16:06]wFMCommunicate request_size=4 [20:16:06]MH_SAM_APDU [20:16:06]CAPDU: 80 11 00 00 [20:16:06]Write to MH i2c: E2 08 00 BE 1C 80 11 00 00 00 00 00 00 54 [20:16:06]Write i2c OK [20:16:06]MH_I2C_Read... [20:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:06]Read from MH i2c: E2 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 17 00 [20:16:06]MH_I2C_Read... [20:16:06]Read from MH i2c: E2 17 00 BE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A4 [20:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:16:06]wFMCommunicate OK [20:16:06]CreateOFDProtocolMessage done [20:16:06]OFDSenderStorePacket 2316 [20:16:06]StoreOFDPacket docnum=2316 [20:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B6 01 00 00 5F F6 AE 01 31 D1 5A 03 01 00 03 00 A2 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 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 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 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 86 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 09 00 00 35 04 06 00 43 F1 6F 19 9C 1A 6D B7 08 FF A0 61 1C 40 [20:16:06]CheckFolder [20:16:06]dirname=/storage/ofd_packets [20:16:06]CheckFolder done [20:16:06]ProducePacketName [20:16:06]name=ofd_packets/00002316 [20:16:06]NVStorageSaveData ofd_packets/00002316 [20:16:06]File name is /storage/ofd_packets/00002316 [20:16:06]Write 468 bytes [20:16:06]NVStorageSaveData done [20:16:06]OFDSenderStorePacket done [20:16:06]KKMCreateOFDPacket done [20:16:06]NVStorageSaveData kkm_last_timestamp [20:16:06]File name is /storage/kkm_last_timestamp [20:16:06]Write 4 bytes [20:16:07]NVStorageSaveData done [20:16:07]ExternCall_PrintAddStr [20:16:07]wPrintStart [20:16:07]Write to MH i2c: 01 00 00 BF 1C DB [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 BF 1C 00 00 00 00 00 FF 0F F0 [20:16:07]RasterBufferAndPrint [20:16:07]line Счет N : (3)126559 [20:16:07]line ИНН: 02508201610067 [20:16:07]line Контрольно-Кассовый Чек [20:16:07]line ПРОДАЖА [20:16:07]line Товар: 4870022003305 [20:16:07]line Напиток Gorilla эн нат ж/б 0,5/0,45л [20:16:07]line 1.000 * 110.00 [20:16:07]line = 110.00 [20:16:07]line НДС 12% НСП 1% [20:16:07]line > о реализуемом товаре [20:16:07]line Товар: 4870002325441 [20:16:07]line Вода ASU пит н.газ лимон ПЭТ 0,5л [20:16:07]line 1.000 * 65.00 [20:16:07]line = 65.00 [20:16:07]line НДС 12% НСП 1% [20:16:07]line > о реализуемом товаре [20:16:07]line ИТОГО: 175.00 [20:16:07]line НСП 1% : 1.54 [20:16:07]line НДС 12% : 18.58 [20:16:07]line Наличными: 175.00 [20:16:07]line Безнал.: 0.00 [20:16:07]line Место: АЗС № 127 "Партнер Нефть" [20:16:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:16:07]line СНО: Общий режим [20:16:07]line Чек 165 29.07.2024 20:16 [20:16:07]line Смена: 15 ФФД: 1.0 [20:16:07]line ЗНМ: 0300000161 [20:16:07]line РНМ: 0000000000189667 [20:16:07]line Версия ККМ: v1.0 [20:16:07]line ФМ: 0000000002094248 [20:16:07]line ФД: 2316 [20:16:07]line ФПД: 74704230128666 [20:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201606&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2316&fm=74704230128666&tin=02508201610067®Number=0000000000189667&sum=17500 [20:16:07]line 0 [20:16:07]written 0, free lines is 4095 [20:16:07]Write to MH i2c: 01 00 00 EF 1C 0B [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: 01 07 00 EF 1C 00 00 00 00 00 A4 0C C2 [20:16:07]RasterBufferAndPrint [20:16:07]line [20:16:07]line [20:16:07]line [20:16:07]line [20:16:07]line [20:16:07]written 0, free lines is 3242 [20:16:07]MH_Cut [20:16:07]Write to MH i2c: D1 01 00 F6 1C 01 E4 [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: D1 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: D1 01 00 [20:16:07]MH_I2C_Read... [20:16:07]Read from MH i2c: D1 01 00 F6 1C 00 E3 [20:16:07]Write to MH i2c: 01 00 00 F7 1C 13 [20:16:07]Write i2c OK [20:16:07]MH_I2C_Read... [20:16:08]*** Cut start [20:16:08]*** Partial cut [20:16:08]*** CUTSNS_PIN = 1 [20:16:08]*** CUTSNS_PIN = 0 [20:16:08]*** Brake cut motor [20:16:08]Read from MH i2c: 01 [20:16:08]MH_I2C_Read... [20:16:08]*** Stop cut motor [20:16:08]*** Cut end [20:16:08]Read from MH i2c: 01 07 00 [20:16:08]MH_I2C_Read... [20:16:08]Read from MH i2c: 01 07 00 F7 1C 00 00 00 00 00 FF 0F 28 [20:16:08]process_action close_receipt done [20:16:08]requested_data is exist [20:16:08]produce_requested_data [20:16:08]requested_item fm.sn is exist - process it [20:16:08]wFMCommunicate request_size=4 [20:16:08]MH_SAM_APDU [20:16:08]CAPDU: 80 11 00 00 [20:16:08]Write to MH i2c: E2 08 00 F8 1C 80 11 00 00 00 00 00 00 8E [20:16:08]Write i2c OK [20:16:08]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:09]Read from MH i2c: E2 17 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 17 00 F8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DE [20:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:16:09]wFMCommunicate OK [20:16:09]requested_item fd.num is exist - process it [20:16:09]SAM_PROTO_GetFieldsCounters [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 13 00 00 [20:16:09]Write to MH i2c: E2 08 00 F9 1C 80 13 00 00 00 00 00 00 91 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 62 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 62 00 F9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [20:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:09]wFMCommunicate OK [20:16:09]SAM_PROTO_GetFieldsCounters done [20:16:09]requested_item shift.num is exist - process it [20:16:09]requested_item shift.opened is exist - process it [20:16:09]req_shift_opened [20:16:09]FM_GetShiftState [20:16:09]SAM_PROTO_GetShiftState [20:16:09]wFMCommunicate request_size=4 [20:16:09]MH_SAM_APDU [20:16:09]CAPDU: 80 13 01 00 [20:16:09]Write to MH i2c: E2 08 00 FA 1C 80 13 01 00 00 00 00 00 93 [20:16:09]Write i2c OK [20:16:09]MH_I2C_Read... [20:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:09]Read from MH i2c: E2 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 0E 00 [20:16:09]MH_I2C_Read... [20:16:09]Read from MH i2c: E2 0E 00 FA 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8C [20:16:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:16:09]wFMCommunicate OK [20:16:09]SAM_PROTO_GetShiftState done [20:16:09]FM_GetShiftState done [20:16:09]req_shift_opened done [20:16:09]requested_item shift.open_date is exist - process it [20:16:09]req_shift_open_date [20:16:09]req_shift_open_date done [20:16:09]produce_requested_data done [20:16:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2316,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:16:09]process_action_free close_receipt [20:16:09]json_value_free [20:16:09]json_value_free done [20:16:09]process_json_proto returns [20:16:09]Send response to host [20:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2316,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:16:09]free response buf [20:16:09]execute_script done [20:16:09]execute_script returns [20:16:09]free content buf [20:16:09]Sock 8.Close socket [20:16:09]Sock 8.Thread stoped [20:16:10]accept exits with 9 [20:16:10]New connection [20:16:10]New thread 3067014500 created [20:16:10]Thread 3067157860 joined [20:16:10]Waiting for new connection... [20:16:10] Sock 9.Parse request [20:16:10]Sock 9.Check first char [20:16:10]Sock 9.First char is OK [20:16:10]request: POST /json_proto HTTP/1.0 [20:16:10]Method: POST [20:16:10]URL: /json_proto [20:16:10]Method is POST - this is cgi request [20:16:10]url: /json_proto [20:16:10]query_string will be loaded in cgi processing [20:16:10]execute_cgi json_proto POST (null) [20:16:10]execute_cgi path=json_proto method=POST [20:16:10]POST find Content-Length [20:16:10]Host: 172.17.45.132:8080 [20:16:10]Content-Length: 656 [20:16:10]Content-Type: application/json [20:16:10] [20:16:10]POST finish read [20:16:10]Found Content-Length = 656 [20:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126560", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:10]execute_script... [20:16: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)126560", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:10]POST & json_proto [20:16:10]process_json_proto [20:16:10]json parsed OK: [20:16:10]protocol is kg_v1.0 [20:16:10]action value=close_receipt [20:16:10]process_action close_receipt [20:16:10]cmd_close_receipt [20:16:10]MH_GetDate [20:16:10]Write to MH i2c: F0 00 00 FB 1C 06 [20:16:10]Write i2c OK [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: F0 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: F0 09 00 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: F0 09 00 FB 1C 00 8C F8 A7 66 E3 0B 90 66 84 [20:16:10]GetLastDocTimeStamp 1722284166 [20:16:10]current date 1722284172 [20:16:10]FM_GetShiftState [20:16:10]SAM_PROTO_GetShiftState [20:16:10]wFMCommunicate request_size=4 [20:16:10]MH_SAM_APDU [20:16:10]CAPDU: 80 13 01 00 [20:16:10]Write to MH i2c: E2 08 00 FC 1C 80 13 01 00 00 00 00 00 95 [20:16:10]Write i2c OK [20:16:10]MH_I2C_Read... [20:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:10]Read from MH i2c: E2 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: E2 0E 00 [20:16:10]MH_I2C_Read... [20:16:10]Read from MH i2c: E2 0E 00 FC 1C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8E [20:16:10]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:16:10]wFMCommunicate OK [20:16:10]SAM_PROTO_GetShiftState done [20:16:10]FM_GetShiftState done [20:16:10]opened in 1722213119 [20:16:10]opened+sec_in_day 1722299519 [20:16:10]quantity*price = 400 [20:16:10]sum+1 = 401 [20:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 166 29.07.2024 20:16 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2317 ФПД: 216325882493949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201612&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2317&fm=216325882493949&tin=02508201610067®Number=0000000000189667&sum=400 0 [20:16:12]StoreToDocumentArchive [20:16:12]shift 15 fd 2317 [20:16:12]save to /storage/0015/doc_00002317 [20:16:12]save last doc name /storage/0015/doc_00002317 to /storage/kkm_last_doc_name [20:16:12]save OK [20:16:12]Clear old archive folders... [20:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:16:12]tlvbuf is 01FD7A60 [20:16:12]SAM_PROTO_ClearQueue [20:16:12]wFMCommunicate request_size=4 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 09 00 00 [20:16:12]Write to MH i2c: E2 08 00 09 1D 80 09 00 00 00 00 00 00 98 [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 09 1D 00 90 00 9A [20:16:12]RAPDU: 90 00 [20:16:12]wFMCommunicate OK [20:16:12]SAM_PROTO_ClearQueue done [20:16:12]KKMCreateOFDPacket [20:16:12]OFDProtocolAddRootSTLVToBuf [20:16:12]FM_MakeSignedData [20:16:12]FM_MakeSignedData [20:16:12]SAM_PROTO_SignData [20:16:12]wFMCommunicate request_size=4 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 0D 01 02 [20:16:12]Write to MH i2c: E2 08 00 0A 1D 80 0D 01 02 00 00 00 00 A0 [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 0A 1D 00 90 00 9B [20:16:12]RAPDU: 90 00 [20:16:12]wFMCommunicate OK [20:16:12]wFMCommunicate request_size=255 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A6 00 00 00 F4 03 04 00 8C F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [20:16:12]Write to MH i2c: E2 02 01 0B 1D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A6 00 00 00 F4 03 04 00 8C F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 2F [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [20:16:12]RAPDU: 90 00 [20:16:12]wFMCommunicate OK [20:16:12]wFMCommunicate request_size=37 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 09 00 00 35 04 06 00 C4 BF 4B 61 BB FD [20:16:12]Write to MH i2c: E2 28 00 0C 1D 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 09 00 00 35 04 06 00 C4 BF 4B 61 BB FD 00 00 F4 [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [20:16:12]RAPDU: 90 00 [20:16:12]wFMCommunicate OK [20:16:12]wFMCommunicate request_size=4 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 0D 03 02 [20:16:12]Write to MH i2c: E2 08 00 0D 1D 80 0D 03 02 00 00 00 00 A5 [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 0B 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 0B 00 0D 1D 00 3D 9D EF 1E 98 8C CA 6E 90 00 E9 [20:16:12]RAPDU: 3D 9D EF 1E 98 8C CA 6E 90 00 [20:16:12]wFMCommunicate OK [20:16:12]SAM_PROTO_SignData done [20:16:12]FM_MakeSignedData done [20:16:12]CreateOFDProtocolMessage [20:16:12]wFMCommunicate request_size=4 [20:16:12]MH_SAM_APDU [20:16:12]CAPDU: 80 11 00 00 [20:16:12]Write to MH i2c: E2 08 00 0E 1D 80 11 00 00 00 00 00 00 A5 [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:12]Read from MH i2c: E2 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 17 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: E2 17 00 0E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F5 [20:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:16:12]wFMCommunicate OK [20:16:12]CreateOFDProtocolMessage done [20:16:12]OFDSenderStorePacket 2317 [20:16:12]StoreOFDPacket docnum=2317 [20:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 AC F5 22 01 3D 26 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A6 00 00 00 F4 03 04 00 8C F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 09 00 00 35 04 06 00 C4 BF 4B 61 BB FD 3D 9D EF 1E 98 8C CA 6E [20:16:12]CheckFolder [20:16:12]dirname=/storage/ofd_packets [20:16:12]CheckFolder done [20:16:12]ProducePacketName [20:16:12]name=ofd_packets/00002317 [20:16:12]NVStorageSaveData ofd_packets/00002317 [20:16:12]File name is /storage/ofd_packets/00002317 [20:16:12]Write 328 bytes [20:16:12]NVStorageSaveData done [20:16:12]OFDSenderStorePacket done [20:16:12]KKMCreateOFDPacket done [20:16:12]NVStorageSaveData kkm_last_timestamp [20:16:12]File name is /storage/kkm_last_timestamp [20:16:12]Write 4 bytes [20:16:12]NVStorageSaveData done [20:16:12]ExternCall_PrintAddStr [20:16:12]wPrintStart [20:16:12]Write to MH i2c: 01 00 00 0F 1D 2C [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: 01 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: 01 07 00 [20:16:12]MH_I2C_Read... [20:16:12]Read from MH i2c: 01 07 00 0F 1D 00 00 00 00 00 FF 0F 41 [20:16:12]RasterBufferAndPrint [20:16:12]line Счет N : (3)126560 [20:16:12]line ИНН: 02508201610067 [20:16:12]line Контрольно-Кассовый Чек [20:16:12]line ПРОДАЖА [20:16:12]line Товар: 2000031750019 [20:16:12]line Пакет Партнер Нефть [20:16:12]line 1.000 * 4.00 [20:16:12]line = 4.00 [20:16:12]line НДС 12% НСП 1% [20:16:12]line > о реализуемом товаре [20:16:12]line ИТОГО: 4.00 [20:16:12]line НСП 1% : 0.03 [20:16:12]line НДС 12% : 0.42 [20:16:12]line Наличными: 4.00 [20:16:12]line Безнал.: 0.00 [20:16:12]line Место: АЗС № 127 "Партнер Нефть" [20:16:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:16:12]line СНО: Общий режим [20:16:12]line Чек 166 29.07.2024 20:16 [20:16:12]line Смена: 15 ФФД: 1.0 [20:16:12]line ЗНМ: 0300000161 [20:16:12]line РНМ: 0000000000189667 [20:16:12]line Версия ККМ: v1.0 [20:16:12]line ФМ: 0000000002094248 [20:16:12]line ФД: 2317 [20:16:12]line ФПД: 216325882493949 [20:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201612&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2317&fm=216325882493949&tin=02508201610067®Number=0000000000189667&sum=400 [20:16:12]line 0 [20:16:12]written 0, free lines is 4095 [20:16:12]Write to MH i2c: 01 00 00 37 1D 54 [20:16:12]Write i2c OK [20:16:12]MH_I2C_Read... [20:16:13]Read from MH i2c: 01 [20:16:13]MH_I2C_Read... [20:16:13]Read from MH i2c: 01 07 00 [20:16:13]MH_I2C_Read... [20:16:13]Read from MH i2c: 01 07 00 37 1D 00 00 00 00 00 0F 0D 77 [20:16:13]RasterBufferAndPrint [20:16:13]line [20:16:13]line [20:16:13]line [20:16:13]line [20:16:13]line [20:16:13]written 0, free lines is 3352 [20:16:13]MH_Cut [20:16:13]Write to MH i2c: D1 01 00 3E 1D 01 2D [20:16:13]Write i2c OK [20:16:13]MH_I2C_Read... [20:16:13]Read from MH i2c: D1 [20:16:13]MH_I2C_Read... [20:16:13]Read from MH i2c: D1 01 00 [20:16:13]MH_I2C_Read... [20:16:13]Read from MH i2c: D1 01 00 3E 1D 00 2C [20:16:13]Write to MH i2c: 01 00 00 3F 1D 5C [20:16:13]Write i2c OK [20:16:13]MH_I2C_Read... [20:16:13]*** Cut start [20:16:13]*** Partial cut [20:16:13]*** CUTSNS_PIN = 1 [20:16:13]*** CUTSNS_PIN = 0 [20:16:13]*** Brake cut motor [20:16:14]Read from MH i2c: 01 [20:16:14]MH_I2C_Read... [20:16:14]*** Stop cut motor [20:16:14]*** Cut end [20:16:14]Read from MH i2c: 01 07 00 [20:16:14]MH_I2C_Read... [20:16:14]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 FF 0F 71 [20:16:14]process_action close_receipt done [20:16:14]requested_data is exist [20:16:14]produce_requested_data [20:16:14]requested_item fm.sn is exist - process it [20:16:14]wFMCommunicate request_size=4 [20:16:14]MH_SAM_APDU [20:16:14]CAPDU: 80 11 00 00 [20:16:14]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [20:16:14]Write i2c OK [20:16:14]MH_I2C_Read... [20:16:14]Read from MH i2c: E2 [20:16:14]MH_I2C_Read... [20:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:14]Read from MH i2c: E2 17 00 [20:16:14]MH_I2C_Read... [20:16:14]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 27 [20:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:16:14]wFMCommunicate OK [20:16:14]requested_item fd.num is exist - process it [20:16:14]SAM_PROTO_GetFieldsCounters [20:16:14]wFMCommunicate request_size=4 [20:16:14]MH_SAM_APDU [20:16:14]CAPDU: 80 13 00 00 [20:16:14]Write to MH i2c: E2 08 00 41 1D 80 13 00 00 00 00 00 00 DA [20:16:14]Write i2c OK [20:16:14]MH_I2C_Read... [20:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:14]Read from MH i2c: E2 [20:16:14]MH_I2C_Read... [20:16:14]Read from MH i2c: E2 62 00 [20:16:14]MH_I2C_Read... [20:16:14]Read from MH i2c: E2 62 00 41 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [20:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:14]wFMCommunicate OK [20:16:14]SAM_PROTO_GetFieldsCounters done [20:16:14]requested_item shift.num is exist - process it [20:16:14]requested_item shift.opened is exist - process it [20:16:14]req_shift_opened [20:16:14]FM_GetShiftState [20:16:14]SAM_PROTO_GetShiftState [20:16:14]wFMCommunicate request_size=4 [20:16:14]MH_SAM_APDU [20:16:14]CAPDU: 80 13 01 00 [20:16:14]Write to MH i2c: E2 08 00 42 1D 80 13 01 00 00 00 00 00 DC [20:16:14]Write i2c OK [20:16:14]MH_I2C_Read... [20:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:14]Read from MH i2c: E2 [20:16:14]MH_I2C_Read... [20:16:14]Read from MH i2c: E2 0E 00 [20:16:14]MH_I2C_Read... [20:16:14]Read from MH i2c: E2 0E 00 42 1D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D5 [20:16:14]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:16:14]wFMCommunicate OK [20:16:14]SAM_PROTO_GetShiftState done [20:16:14]FM_GetShiftState done [20:16:14]req_shift_opened done [20:16:14]requested_item shift.open_date is exist - process it [20:16:14]req_shift_open_date [20:16:14]req_shift_open_date done [20:16:14]produce_requested_data done [20:16:14]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2317,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:16:14]process_action_free close_receipt [20:16:14]json_value_free [20:16:14]json_value_free done [20:16:14]process_json_proto returns [20:16:14]Send response to host [20:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2317,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:16:14]free response buf [20:16:14]execute_script done [20:16:14]execute_script returns [20:16:14]free content buf [20:16:14]Sock 9.Close socket [20:16:14]Sock 9.Thread stoped [20:17:14]ConnectInit Can't connect to host [20:17:14]CommunicateWithHost connect error [20:17:14]CommunicateWithHost err = -1 [20:17:14]OFD Sender: Server communicate error [20:17:14]OFD Sender: Processing packet 2314 [packets to send 4, broken 0] [20:17:14]ProducePacketName [20:17:14]name=ofd_packets/00002314 [20:17:14]OFD Sender: To server: pG, [20:17:14]CommunicateWithHost lk.salyk.kg:30040 [20:17:14]ConnectInit lk.salyk.kg [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 ED FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 92 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725ED (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 1568117+1720716259=1722284376 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570625 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 ED FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 93 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 59 F9 A7 66 E3 0B 90 66 42 [20:19:37]Current date/time: 29.07.2024 20:19 [20:19:37]FM_Init [20:19:37]wFMConnect [20:19:37]MH_SAM_On [20:19:37]Write to MH i2c: E0 00 00 08 00 E7 [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]*** iso7816_init finished! [20:19:37]*** atr: [20:19:37]*** 0F 3B D5 18 FF 81 91 FE [20:19:37]*** 1F C3 80 73 C8 21 10 0A [20:19:37]*** 00 00 00 00 00 00 00 00 [20:19:37]*** 00 00 00 00 00 00 00 00 [20:19:37]*** 00 00 00 00 00 00 00 00 [20:19:37]*** 00 00 00 00 00 00 00 00 [20:19:37]*** 00 00 00 00 00 00 00 00 [20:19:37]*** 00 00 00 00 00 00 00 00 [20:19:37]Read from MH i2c: E0 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E0 10 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [20:19:37]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:19:37]wFMCommunicate request_size=10 [20:19:37]MH_SAM_APDU [20:19:37]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:19:37]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:19:37]Read from MH i2c: E2 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:19:37]RAPDU: 90 00 [20:19:37]wFMCommunicate OK [20:19:37]wFMCommunicate request_size=4 [20:19:37]MH_SAM_APDU [20:19:37]CAPDU: 80 11 00 00 [20:19:37]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:37]Read from MH i2c: E2 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 17 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D4 [20:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:19:37]wFMCommunicate OK [20:19:37]Detected FM SN is 0000000002094248 [20:19:37]Stored FM SN is 0000000002094248 [20:19:37]wFMCommunicate request_size=9 [20:19:37]MH_SAM_APDU [20:19:37]CAPDU: 80 16 00 00 04 96 B7 00 00 [20:19:37]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 96 B7 00 00 00 00 DF [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:19:37]Read from MH i2c: E2 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:19:37]RAPDU: 90 00 [20:19:37]wFMCommunicate OK [20:19:37]FM PIN OK [20:19:37]wFMCommunicate request_size=8 [20:19:37]MH_SAM_APDU [20:19:37]CAPDU: 80 14 04 00 03 02 00 01 [20:19:37]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:19:37]Read from MH i2c: E2 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:19:37]RAPDU: 90 00 [20:19:37]wFMCommunicate OK [20:19:37]wFMCommunicate request_size=13 [20:19:37]MH_SAM_APDU [20:19:37]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:19:37]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:19:37]Read from MH i2c: E2 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:19:37]RAPDU: 90 00 [20:19:37]wFMCommunicate OK [20:19:37]wFMCommunicate request_size=4 [20:19:37]MH_SAM_APDU [20:19:37]CAPDU: 80 11 00 00 [20:19:37]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:37]Read from MH i2c: E2 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 17 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [20:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:19:37]wFMCommunicate OK [20:19:37]DocumentArchiveInit [20:19:37]Start Httpd... [20:19:37]Httpd thread 3067706724 created [20:19:37]Write to MH i2c: 01 00 00 0F 00 0F [20:19:37]Write i2c OK [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: 01 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: 01 07 00 [20:19:37]MH_I2C_Read... [20:19:37]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:19:37]MH Int Process started [20:19:37]Allocated Socket 8 [20:19:37]Bind OK [20:19:37]Listen OK [20:19:37]httpd running on port 8080 [20:19:37]Waiting for new connection... [20:19:37]OFD Sender: Processing packet 2314 [packets to send 4, broken 0] [20:19:37]ProducePacketName [20:19:37]name=ofd_packets/00002314 [20:19:37]OFD Sender: To server: pG, [20:19:37]CommunicateWithHost lk.salyk.kg:30040 [20:19:37]ConnectInit lk.salyk.kg [20:19:37]Connected sock=7 [20:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 02 00 00 8D 3A 17 02 99 B6 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 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 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 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 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 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 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 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 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 47 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 09 00 00 35 04 06 00 7E 9A FE 59 23 E4 94 7E 38 6E 0B 36 EF 29 [20:19:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 2E CE 47 00 EF 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0A 09 00 00 F4 03 04 00 C3 A4 A7 66 B6 04 01 00 00 43 E8 47 A6 C3 92 8F 01 [20:19:37]CommunicateWithHost err = 0 [20:19:37]CheckOFDResponse [20:19:37]1017 (14) - 77093643461234 [20:19:37]1041 (16) - 0000000002094248 [20:19:37]1040 (4) - 2314 [20:19:37]1012 (4) - 29.07.2024 14:18 [20:19:37]1206 (1) - 0 [20:19:37]OFD Sender: Remove packet 2314 [20:19:37]ProducePacketName [20:19:37]name=ofd_packets/00002314 [20:19:37]NVStorageDeleteData [20:19:38]OFD Sender: Processing packet 2315 [packets to send 3, broken 0] [20:19:38]ProducePacketName [20:19:38]name=ofd_packets/00002315 [20:19:38]OFD Sender: To server: pG, [20:19:38]CommunicateWithHost lk.salyk.kg:30040 [20:19:38]ConnectInit lk.salyk.kg [20:19:38]Connected sock=7 [20:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 A0 D1 22 01 85 8E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A4 00 00 00 F4 03 04 00 4D F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0B 09 00 00 35 04 06 00 F1 0C 28 E5 BB 95 86 8A 0A A8 C8 D3 CE 46 [20:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 12 D6 47 00 16 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 32 30 39 34 32 34 38 10 04 04 00 0B 09 00 00 F4 03 04 00 C4 A4 A7 66 B6 04 01 00 00 B2 43 A6 72 D1 4A 87 FC [20:19:38]CommunicateWithHost err = 0 [20:19:38]CheckOFDResponse [20:19:38]1017 (14) - 77093643461234 [20:19:38]1041 (16) - 0000000002094248 [20:19:38]1040 (4) - 2315 [20:19:38]1012 (4) - 29.07.2024 14:18 [20:19:38]1206 (1) - 0 [20:19:38]OFD Sender: Remove packet 2315 [20:19:38]ProducePacketName [20:19:38]name=ofd_packets/00002315 [20:19:38]NVStorageDeleteData [20:19:39]accept exits with 9 [20:19:39]New connection [20:19:39]New thread 3067420004 created [20:19:39]Waiting for new connection... [20:19:39] Sock 9.Parse request [20:19:39]Sock 9.Check first char [20:19:39]Sock 9.First char is OK [20:19:39]request: POST /json_proto HTTP/1.0 [20:19:39]Method: POST [20:19:39]URL: /json_proto [20:19:39]Method is POST - this is cgi request [20:19:39]url: /json_proto [20:19:39]query_string will be loaded in cgi processing [20:19:39]execute_cgi json_proto POST (null) [20:19:39]execute_cgi path=json_proto method=POST [20:19:39]POST find Content-Length [20:19:39]Host: 172.17.45.132:8080 [20:19:39]Content-Length: 215 [20:19:39]Content-Type: application/json [20:19:39] [20:19:39]POST finish read [20:19:39]Found Content-Length = 215 [20:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:39]execute_script... [20:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:39]POST & json_proto [20:19:39]process_json_proto [20:19:39]OFD Sender: Processing packet 2316 [packets to send 2, broken 0] [20:19:39]ProducePacketName [20:19:39]name=ofd_packets/00002316 [20:19:39]json parsed OK: [20:19:39]protocol is kg_v1.0 [20:19:39]action value=get_value [20:19:39]process_action get_value [20:19:39]cmd_get_value [20:19:39]process_action get_value done [20:19:39]requested_data is exist [20:19:39]produce_requested_data [20:19:39]requested_item kkm.sn is exist - process it [20:19:39]OFD Sender: To server: pG, [20:19:39]CommunicateWithHost lk.salyk.kg:30040 [20:19:39]ConnectInit lk.salyk.kg [20:19:39]requested_item kkm.ver is exist - process it [20:19:39]requested_item fm.sn is exist - process it [20:19:39]wFMCommunicate request_size=4 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 11 00 00 [20:19:39]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:39]Read from MH i2c: E2 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 17 00 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DA [20:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:19:39]wFMCommunicate OK [20:19:39]requested_item fd.num is exist - process it [20:19:39]SAM_PROTO_GetFieldsCounters [20:19:39]wFMCommunicate request_size=4 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 13 00 00 [20:19:39]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:39]Connected sock=10 [20:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B6 01 00 00 5F F6 AE 01 31 D1 5A 03 01 00 03 00 A2 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 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 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 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 86 F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 09 00 00 35 04 06 00 43 F1 6F 19 9C 1A 6D B7 08 FF A0 61 1C 40 [20:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:39]Read from MH i2c: E2 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 62 00 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [20:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:39]wFMCommunicate OK [20:19:39]SAM_PROTO_GetFieldsCounters done [20:19:39]requested_item shift.num is exist - process it [20:19:39]requested_item shift.opened is exist - process it [20:19:39]req_shift_opened [20:19:39]FM_GetShiftState [20:19:39]SAM_PROTO_GetShiftState [20:19:39]wFMCommunicate request_size=4 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 13 01 00 [20:19:39]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:39]Read from MH i2c: E2 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 0E 00 [20:19:39]MH_I2C_Read... [20:19:39]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 88 [20:19:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:19:39]wFMCommunicate OK [20:19:39]SAM_PROTO_GetShiftState done [20:19:39]FM_GetShiftState done [20:19:39]req_shift_opened done [20:19:39]requested_item shift.open_date is exist - process it [20:19:39]req_shift_open_date [20:19:39]req_shift_open_date done [20:19:39]produce_requested_data done [20:19:39]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2317,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:19:39]process_action_free get_value [20:19:39]json_value_free [20:19:39]json_value_free done [20:19:39]process_json_proto returns [20:19:39]Send response to host [20:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2317,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:19:39]free response buf [20:19:39]execute_script done [20:19:39]execute_script returns [20:19:39]free content buf [20:19:39]Sock 9.Close socket [20:19:39]Sock 9.Thread stoped [20:19:39]accept exits with 7 [20:19:39]New connection [20:19:39]New thread 3067276644 created [20:19:39]Thread 3067420004 joined [20:19:39]Waiting for new connection... [20:19:39] Sock 7.Parse request [20:19:39]Sock 7.Check first char [20:19:39]Sock 7.First char is OK [20:19:39]request: POST /json_proto HTTP/1.0 [20:19:39]Method: POST [20:19:39]URL: /json_proto [20:19:39]Method is POST - this is cgi request [20:19:39]url: /json_proto [20:19:39]query_string will be loaded in cgi processing [20:19:39]execute_cgi json_proto POST (null) [20:19:39]execute_cgi path=json_proto method=POST [20:19:39]POST find Content-Length [20:19:39]Host: 172.17.45.132:8080 [20:19:39]Content-Length: 331 [20:19:39]Content-Type: application/json [20:19:39] [20:19:39]POST finish read [20:19:39]Found Content-Length = 331 [20:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:19:39]execute_script... [20:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:19:39]POST & json_proto [20:19:39]process_json_proto [20:19:39]json parsed OK: [20:19:39]protocol is kg_v1.0 [20:19:39]action value=get_value [20:19:39]process_action get_value [20:19:39]cmd_get_value [20:19:39]process_action get_value done [20:19:39]requested_data is exist [20:19:39]produce_requested_data [20:19:39]requested_item fm.sale.total is exist - process it [20:19:39]SAM_PROTO_GetFMData [20:19:39]wFMCommunicate request_size=4 [20:19:39]MH_SAM_APDU [20:19:39]CAPDU: 80 13 03 00 [20:19:39]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [20:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 EF 88 47 00 C9 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0C 09 00 00 F4 03 04 00 C5 A4 A7 66 B6 04 01 00 00 17 DD 37 81 D2 1E 79 02 [20:19:39]CommunicateWithHost err = 0 [20:19:39]CheckOFDResponse [20:19:39]1017 (14) - 77093643461234 [20:19:39]1041 (16) - 0000000002094248 [20:19:39]1040 (4) - 2316 [20:19:39]1012 (4) - 29.07.2024 14:18 [20:19:39]1206 (1) - 0 [20:19:39]OFD Sender: Remove packet 2316 [20:19:39]ProducePacketName [20:19:39]name=ofd_packets/00002316 [20:19:39]NVStorageDeleteData [20:19:39]Write i2c OK [20:19:39]MH_I2C_Read... [20:19:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:19:40]Read from MH i2c: E2 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 FD 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 FD 00 13 00 00 C0 04 85 04 BC 04 6E 04 04 00 EF 08 00 00 69 04 9F 00 6F 04 04 00 DE 08 00 00 B1 04 04 00 D3 6C C4 05 70 04 04 00 AC A3 B6 03 72 04 04 00 27 C9 0D 02 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 11 CE 9C 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 3D 10 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 18 [20:19:40]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 EF 08 00 00 69 04 9F 00 6F 04 04 00 DE 08 00 00 B1 04 04 00 D3 6C C4 05 70 04 04 00 AC A3 B6 03 72 04 04 00 27 C9 0D 02 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 11 CE 9C 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 3D 10 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [20:19:40]wFMCommunicate OK [20:19:40]wFMCommunicate request_size=4 [20:19:40]MH_SAM_APDU [20:19:40]CAPDU: 80 17 00 00 [20:19:40]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:40]OFD Sender: Processing packet 2317 [packets to send 1, broken 0] [20:19:40]ProducePacketName [20:19:40]name=ofd_packets/00002317 [20:19:40]OFD Sender: To server: pG, [20:19:40]CommunicateWithHost lk.salyk.kg:30040 [20:19:40]ConnectInit lk.salyk.kg [20:19:40]Connected sock=10 [20:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 AC F5 22 01 3D 26 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 2A 00 00 00 00 00 07 04 06 00 90 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 A6 00 00 00 F4 03 04 00 8C F8 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 09 00 00 35 04 06 00 C4 BF 4B 61 BB FD 3D 9D EF 1E 98 8C CA 6E [20:19:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:19:40]Read from MH i2c: E2 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 FD 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [20:19:40]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:19:40]wFMCommunicate OK [20:19:40]wFMCommunicate request_size=4 [20:19:40]MH_SAM_APDU [20:19:40]CAPDU: 80 17 00 00 [20:19:40]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E2 9B 47 00 8E BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0D 09 00 00 F4 03 04 00 C6 A4 A7 66 B6 04 01 00 00 A1 76 AC 72 1A 95 C5 E1 [20:19:40]CommunicateWithHost err = 0 [20:19:40]CheckOFDResponse [20:19:40]1017 (14) - 77093643461234 [20:19:40]1041 (16) - 0000000002094248 [20:19:40]1040 (4) - 2317 [20:19:40]1012 (4) - 29.07.2024 14:18 [20:19:40]1206 (1) - 0 [20:19:40]OFD Sender: Remove packet 2317 [20:19:40]ProducePacketName [20:19:40]name=ofd_packets/00002317 [20:19:40]NVStorageDeleteData [20:19:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:19:40]Read from MH i2c: E2 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 FD 00 [20:19:40]MH_I2C_Read... [20:19:40]Read from MH i2c: E2 FD 00 15 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 38 [20:19:40]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:19:40]wFMCommunicate OK [20:19:40]wFMCommunicate request_size=4 [20:19:40]MH_SAM_APDU [20:19:40]CAPDU: 80 17 00 00 [20:19:40]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [20:19:40]Write i2c OK [20:19:40]MH_I2C_Read... [20:19:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:19:41]Read from MH i2c: E2 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: E2 FD 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: E2 FD 00 16 00 00 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [20:19:41]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:19:41]wFMCommunicate OK [20:19:41]wFMCommunicate request_size=4 [20:19:41]MH_SAM_APDU [20:19:41]CAPDU: 80 17 00 00 [20:19:41]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:41]OFD Sender: No OFD packet to send [20:19:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [20:19:41]Read from MH i2c: E2 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: E2 DD 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: E2 DD 00 17 00 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [20:19:41]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:41]wFMCommunicate OK [20:19:41]SAM_PROTO_GetFMData done [20:19:41]requested_item fm.sale_refund.total is exist - process it [20:19:41]requested_item fm.buy.total is exist - process it [20:19:41]requested_item shift.sale.total is exist - process it [20:19:41]SAM_PROTO_GetShiftData [20:19:41]wFMCommunicate request_size=4 [20:19:41]MH_SAM_APDU [20:19:41]CAPDU: 80 13 02 00 [20:19:41]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:19:41]Read from MH i2c: E2 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: E2 FD 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 C1 71 69 70 04 03 00 E8 FA 3F 72 04 03 00 D9 76 29 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 ED 32 0B 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 D8 EE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C7 [20:19:41]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A6 00 00 00 69 04 9B 00 6F 04 04 00 A6 00 00 00 B1 04 03 00 C1 71 69 70 04 03 00 E8 FA 3F 72 04 03 00 D9 76 29 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 ED 32 0B 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 D8 EE EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:19:41]wFMCommunicate OK [20:19:41]wFMCommunicate request_size=4 [20:19:41]MH_SAM_APDU [20:19:41]CAPDU: 80 17 00 00 [20:19:41]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:19:42]Read from MH i2c: E2 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 FD 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [20:19:42]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 [20:19:42]wFMCommunicate OK [20:19:42]wFMCommunicate request_size=4 [20:19:42]MH_SAM_APDU [20:19:42]CAPDU: 80 17 00 00 [20:19:42]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:19:42]Read from MH i2c: E2 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 FD 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [20:19:42]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 [20:19:42]wFMCommunicate OK [20:19:42]wFMCommunicate request_size=4 [20:19:42]MH_SAM_APDU [20:19:42]CAPDU: 80 17 00 00 [20:19:42]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 FD 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [20:19:43]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 [20:19:43]wFMCommunicate OK [20:19:43]wFMCommunicate request_size=4 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 17 00 00 [20:19:43]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 CB 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [20:19:43]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 [20:19:43]wFMCommunicate OK [20:19:43]SAM_PROTO_GetShiftData done [20:19:43]requested_item shift.sale.total_cash is exist - process it [20:19:43]requested_item shift.sale_refund.total is exist - process it [20:19:43]requested_item shift.sale_refund.total_cash is exist - process it [20:19:43]requested_item shift.buy.total is exist - process it [20:19:43]requested_item shift.buy.total_cash is exist - process it [20:19:43]produce_requested_data done [20:19:43]produce_requested_data return {"fm.sale.total":967589.95,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":69104.01,"shift.sale.total_cash":41930.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:19:43]process_action_free get_value [20:19:43]json_value_free [20:19:43]json_value_free done [20:19:43]process_json_proto returns [20:19:43]Send response to host [20:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":967589.95,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":69104.01,"shift.sale.total_cash":41930.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:19:43]free response buf [20:19:43]execute_script done [20:19:43]execute_script returns [20:19:43]free content buf [20:19:43]Sock 7.Close socket [20:19:43]Sock 7.Thread stoped [20:19:43]accept exits with 9 [20:19:43]New connection [20:19:43]New thread 3067420004 created [20:19:43]Thread 3067276644 joined [20:19:43]Waiting for new connection... [20:19:43] Sock 9.Parse request [20:19:43]Sock 9.Check first char [20:19:43]Sock 9.First char is OK [20:19:43]request: POST /json_proto HTTP/1.0 [20:19:43]Method: POST [20:19:43]URL: /json_proto [20:19:43]Method is POST - this is cgi request [20:19:43]url: /json_proto [20:19:43]query_string will be loaded in cgi processing [20:19:43]execute_cgi json_proto POST (null) [20:19:43]execute_cgi path=json_proto method=POST [20:19:43]POST find Content-Length [20:19:43]Host: 172.17.45.132:8080 [20:19:43]Content-Length: 677 [20:19:43]Content-Type: application/json [20:19:43] [20:19:43]POST finish read [20:19:43]Found Content-Length = 677 [20:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:43]execute_script... [20:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:43]POST & json_proto [20:19:43]process_json_proto [20:19:43]json parsed OK: [20:19:43]protocol is kg_v1.0 [20:19:43]action value=close_receipt [20:19:43]process_action close_receipt [20:19:43]cmd_close_receipt [20:19:43]MH_GetDate [20:19:43]Write to MH i2c: F0 00 00 1D 00 0C [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: F0 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: F0 09 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: F0 09 00 1D 00 00 60 F9 A7 66 E3 0B 90 66 5F [20:19:43]GetLastDocTimeStamp 1722284172 [20:19:43]current date 1722284384 [20:19:43]FM_GetShiftState [20:19:43]SAM_PROTO_GetShiftState [20:19:43]wFMCommunicate request_size=4 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 13 01 00 [20:19:43]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:44]Read from MH i2c: E2 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 0E 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 94 [20:19:44]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:19:44]wFMCommunicate OK [20:19:44]SAM_PROTO_GetShiftState done [20:19:44]FM_GetShiftState done [20:19:44]opened in 1722213119 [20:19:44]opened+sec_in_day 1722299519 [20:19:44]quantity*price = 50049 [20:19:44]sum+1 = 50050 [20:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 167 29.07.2024 20:19 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2318 ФПД: 243308832054764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201944&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2318&fm=243308832054764&tin=02508201610067®Number=0000000000189667&sum=50000 [20:19:45]StoreToDocumentArchive [20:19:45]shift 15 fd 2318 [20:19:45]save to /storage/0015/doc_00002318 [20:19:45]save last doc name /storage/0015/doc_00002318 to /storage/kkm_last_doc_name [20:19:45]save OK [20:19:45]Clear old archive folders... [20:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:45]tlvbuf is 0115FB50 [20:19:45]SAM_PROTO_ClearQueue [20:19:45]wFMCommunicate request_size=4 [20:19:45]MH_SAM_APDU [20:19:45]CAPDU: 80 09 00 00 [20:19:45]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:45]Read from MH i2c: E2 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: E2 03 00 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:19:45]RAPDU: 90 00 [20:19:45]wFMCommunicate OK [20:19:45]SAM_PROTO_ClearQueue done [20:19:45]KKMCreateOFDPacket [20:19:45]OFDProtocolAddRootSTLVToBuf [20:19:45]FM_MakeSignedData [20:19:45]FM_MakeSignedData [20:19:45]SAM_PROTO_SignData [20:19:45]wFMCommunicate request_size=4 [20:19:45]MH_SAM_APDU [20:19:45]CAPDU: 80 0D 01 02 [20:19:45]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: E2 [20:19:45]MH_I2C_Read... [20:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:45]Read from MH i2c: E2 03 00 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:19:45]RAPDU: 90 00 [20:19:45]wFMCommunicate OK [20:19:45]wFMCommunicate request_size=255 [20:19:45]MH_SAM_APDU [20:19:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 60 F9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 09 00 00 35 04 06 00 DD [20:19:45]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 60 F9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 09 00 00 35 04 06 00 DD 00 00 58 [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:19:46]RAPDU: 90 00 [20:19:46]wFMCommunicate OK [20:19:46]wFMCommunicate request_size=10 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 0D 02 02 05 49 C0 81 5D EC [20:19:46]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 49 C0 81 5D EC 00 00 85 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 03 00 [20:19:46]MH_I2C_Read... [20:19:46]OFD Sender: No OFD packet to send [20:19:46]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:19:46]RAPDU: 90 00 [20:19:46]wFMCommunicate OK [20:19:46]wFMCommunicate request_size=4 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 0D 03 02 [20:19:46]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0B 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0B 00 2F 00 00 65 82 AB AF 05 2A 57 76 90 00 E8 [20:19:46]RAPDU: 65 82 AB AF 05 2A 57 76 90 00 [20:19:46]wFMCommunicate OK [20:19:46]SAM_PROTO_SignData done [20:19:46]FM_MakeSignedData done [20:19:46]CreateOFDProtocolMessage [20:19:46]wFMCommunicate request_size=4 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 11 00 00 [20:19:46]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 17 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FA [20:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:19:46]wFMCommunicate OK [20:19:46]CreateOFDProtocolMessage done [20:19:46]OFDSenderStorePacket 2318 [20:19:46]StoreOFDPacket docnum=2318 [20:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A3 1F 07 01 7A E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 60 F9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 09 00 00 35 04 06 00 DD 49 C0 81 5D EC 65 82 AB AF 05 2A 57 76 [20:19:46]CheckFolder [20:19:46]dirname=/storage/ofd_packets [20:19:46]CheckFolder done [20:19:46]ProducePacketName [20:19:46]name=ofd_packets/00002318 [20:19:46]NVStorageSaveData ofd_packets/00002318 [20:19:46]File name is /storage/ofd_packets/00002318 [20:19:46]Write 301 bytes [20:19:46]NVStorageSaveData done [20:19:46]OFDSenderStorePacket done [20:19:46]KKMCreateOFDPacket done [20:19:46]NVStorageSaveData kkm_last_timestamp [20:19:46]File name is /storage/kkm_last_timestamp [20:19:46]Write 4 bytes [20:19:46]NVStorageSaveData done [20:19:46]ExternCall_PrintAddStr [20:19:46]wPrintStart [20:19:46]Write to MH i2c: 01 00 00 31 00 31 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]OFD Sender: Processing packet 2318 [packets to send 1, broken 0] [20:19:46]ProducePacketName [20:19:46]name=ofd_packets/00002318 [20:19:46]OFD Sender: To server: pG, [20:19:46]CommunicateWithHost lk.salyk.kg:30040 [20:19:46]ConnectInit lk.salyk.kg [20:19:46]Read from MH i2c: 01 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:19:46]RasterBufferAndPrint [20:19:46]line Счет N : (1)610122 [20:19:46]line ИНН: 02508201610067 [20:19:46]line Контрольно-Кассовый Чек [20:19:46]line ПРОДАЖА [20:19:46]line ТРК (МРК, ГНК) : 53 [20:19:46]line Товар: 2710124500 [20:19:46]line Аи-95-К-3 [20:19:46]line 6.700 * 74.70 [20:19:46]line = 500.49 [20:19:46]line НДС 12% НСП 1% [20:19:46]line > о реализуемом товаре [20:19:46]line ОКРУГЛЕНИЕ: -0.49 [20:19:46]line ИТОГО: 500.00 [20:19:46]line Внесено: 500.00 [20:19:46]line СДАЧА: 0.00 [20:19:46]line НСП 1% : 4.43 [20:19:46]line НДС 12% : 53.15 [20:19:46]line Наличными: 500.00 [20:19:46]line Безнал.: 0.00 [20:19:46]line Место: АЗС № 127 "Партнер Нефть" [20:19:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:19:46]line СНО: Общий режим [20:19:46]line Чек 167 29.07.2024 20:19 [20:19:46]line Смена: 15 ФФД: 1.0 [20:19:46]line ЗНМ: 0300000161 [20:19:46]line РНМ: 0000000000189667 [20:19:46]line Версия ККМ: v1.0 [20:19:46]line ФМ: 0000000002094248 [20:19:46]line ФД: 2318 [20:19:46]line ФПД: 243308832054764 [20:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T201944&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2318&fm=243308832054764&tin=02508201610067®Number=0000000000189667&sum=50000 [20:19:46]written 0, free lines is 4095 [20:19:46]Connected sock=11 [20:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A3 1F 07 01 7A E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 60 F9 A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 09 00 00 35 04 06 00 DD 49 C0 81 5D EC 65 82 AB AF 05 2A 57 76 [20:19:46]Write to MH i2c: 01 00 00 5C 00 5C [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 00 0D 70 [20:19:46]RasterBufferAndPrint [20:19:46]line [20:19:46]line [20:19:46]line [20:19:46]line [20:19:46]line [20:19:46]written 0, free lines is 3356 [20:19:47]MH_Cut [20:19:47]Write to MH i2c: D1 01 00 63 00 01 35 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: D1 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: D1 01 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: D1 01 00 63 00 00 34 [20:19:47]Write to MH i2c: 01 00 00 64 00 64 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 40 5A 47 00 2A 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0E 09 00 00 F4 03 04 00 CC A4 A7 66 B6 04 01 00 00 64 C0 5B 95 A6 17 60 28 [20:19:47]CommunicateWithHost err = 0 [20:19:47]CheckOFDResponse [20:19:47]1017 (14) - 77093643461234 [20:19:47]1041 (16) - 0000000002094248 [20:19:47]1040 (4) - 2318 [20:19:47]1012 (4) - 29.07.2024 14:18 [20:19:47]1206 (1) - 0 [20:19:47]OFD Sender: Remove packet 2318 [20:19:47]ProducePacketName [20:19:47]name=ofd_packets/00002318 [20:19:47]NVStorageDeleteData [20:19:47]*** Cut start [20:19:47]*** Partial cut [20:19:47]*** CUTSNS_PIN = 1 [20:19:47]*** CUTSNS_PIN = 0 [20:19:47]OFD Sender: No OFD packet to send [20:19:47]*** Brake cut motor [20:19:48]Read from MH i2c: 01 [20:19:48]MH_I2C_Read... [20:19:48]*** Stop cut motor [20:19:48]*** Cut end [20:19:48]Read from MH i2c: 01 07 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [20:19:48]process_action close_receipt done [20:19:48]requested_data is exist [20:19:48]produce_requested_data [20:19:48]requested_item fm.sn is exist - process it [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 11 00 00 [20:19:48]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 17 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2F [20:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:19:48]wFMCommunicate OK [20:19:48]requested_item fd.num is exist - process it [20:19:48]SAM_PROTO_GetFieldsCounters [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 13 00 00 [20:19:48]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 62 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [20:19:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:48]wFMCommunicate OK [20:19:48]SAM_PROTO_GetFieldsCounters done [20:19:48]requested_item shift.num is exist - process it [20:19:48]requested_item shift.opened is exist - process it [20:19:48]req_shift_opened [20:19:48]FM_GetShiftState [20:19:48]SAM_PROTO_GetShiftState [20:19:48]wFMCommunicate request_size=4 [20:19:48]MH_SAM_APDU [20:19:48]CAPDU: 80 13 01 00 [20:19:48]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:48]Read from MH i2c: E2 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 0E 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DD [20:19:48]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:19:48]wFMCommunicate OK [20:19:48]SAM_PROTO_GetShiftState done [20:19:48]FM_GetShiftState done [20:19:48]req_shift_opened done [20:19:48]requested_item shift.open_date is exist - process it [20:19:48]req_shift_open_date [20:19:48]req_shift_open_date done [20:19:48]produce_requested_data done [20:19:48]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2318,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:19:48]process_action_free close_receipt [20:19:48]json_value_free [20:19:48]json_value_free done [20:19:48]process_json_proto returns [20:19:48]Send response to host [20:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2318,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:19:48]free response buf [20:19:48]execute_script done [20:19:48]execute_script returns [20:19:48]free content buf [20:19:48]Sock 9.Close socket [20:19:48]Sock 9.Thread stoped [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:11]accept exits with 7 [20:21:11]New connection [20:21:11]New thread 3067276644 created [20:21:11]Thread 3067420004 joined [20:21:11]Waiting for new connection... [20:21:11] Sock 7.Parse request [20:21:11]Sock 7.Check first char [20:21:11]Sock 7.First char is OK [20:21:11]request: POST /json_proto HTTP/1.0 [20:21:11]Method: POST [20:21:11]URL: /json_proto [20:21:11]Method is POST - this is cgi request [20:21:11]url: /json_proto [20:21:11]query_string will be loaded in cgi processing [20:21:11]execute_cgi json_proto POST (null) [20:21:11]execute_cgi path=json_proto method=POST [20:21:11]POST find Content-Length [20:21:11]Host: 172.17.45.132:8080 [20:21:11]Content-Length: 1191 [20:21:11]Content-Type: application/json [20:21:11] [20:21:11]POST finish read [20:21:11]Found Content-Length = 1191 [20:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610123\u000A29.07.2024 20:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 31.710 x 75.70\u000A\u0418\u0422\u041E\u0413: 2400.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:11]execute_script... [20:21:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610123\u000A29.07.2024 20:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 31.710 x 75.70\u000A\u0418\u0422\u041E\u0413: 2400.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:11]POST & json_proto [20:21:11]process_json_proto [20:21:11]json parsed OK: [20:21:11]protocol is kg_v1.0 [20:21:11]action value=print_text [20:21:11]process_action print_text [20:21:11]cmd_print_text [20:21:11]ExternCall_PrintAddStr [20:21:11]wPrintStart [20:21:11]Write to MH i2c: 01 00 00 68 00 68 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 07 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [20:21:11]RasterBufferAndPrint [20:21:11]line *****ТОВАРНЫЙ ЧЕК***** [20:21:11]line АЗС 127 [20:21:11]line Партнер нефть [20:21:11]line 02508201610067 [20:21:11]line Кассир : Мансуров А. [20:21:11]line Счет N : (1)610123 [20:21:11]line 29.07.2024 20:10 [20:21:11]line ПРОДАЖА [20:21:11]line ТРК (МРК, ГНК): 2 [20:21:11]line Вид ГСМ : 2710194210 [20:21:11]line ДТ-К-2 [20:21:11]line 31.710 x 75.70 [20:21:11]line ИТОГ: 2400.45 [20:21:11]line Тип оплаты: Талоны: Топливная Карта [20:21:11]line 99614 [20:21:11]line ______________________ [20:21:11]line (подпись) [20:21:11]written 0, free lines is 4095 [20:21:11]Write to MH i2c: 01 00 00 7C 00 7C [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 07 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 0E 0E 9F [20:21:11]RasterBufferAndPrint [20:21:11]line [20:21:11]line [20:21:11]line [20:21:11]line [20:21:11]line [20:21:11]written 0, free lines is 3600 [20:21:11]MH_Cut [20:21:11]Write to MH i2c: D1 01 00 83 00 01 55 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: D1 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: D1 01 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: D1 01 00 83 00 00 54 [20:21:11]Write to MH i2c: 01 00 00 84 00 84 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:12]*** Cut start [20:21:12]*** Partial cut [20:21:12]*** CUTSNS_PIN = 1 [20:21:12]*** CUTSNS_PIN = 0 [20:21:12]*** Brake cut motor [20:21:12]Read from MH i2c: 01 [20:21:12]MH_I2C_Read... [20:21:12]*** Stop cut motor [20:21:12]*** Cut end [20:21:12]Read from MH i2c: 01 07 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: 01 07 00 84 00 00 00 00 00 00 FF 0F 99 [20:21:12]process_action print_text done [20:21:12]requested_data is exist [20:21:12]produce_requested_data [20:21:12]requested_item fm.sn is exist - process it [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 11 00 00 [20:21:12]Write to MH i2c: E2 08 00 85 00 80 11 00 00 00 00 00 00 FF [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 17 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 17 00 85 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4F [20:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:21:12]wFMCommunicate OK [20:21:12]requested_item fd.num is exist - process it [20:21:12]SAM_PROTO_GetFieldsCounters [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 13 00 00 [20:21:12]Write to MH i2c: E2 08 00 86 00 80 13 00 00 00 00 00 00 02 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]OFD Sender: No OFD packet to send [20:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 62 00 [20:21:12]MH_I2C_Read... [20:21:12]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 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [20:21:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:12]wFMCommunicate OK [20:21:12]SAM_PROTO_GetFieldsCounters done [20:21:12]requested_item shift.num is exist - process it [20:21:12]requested_item shift.opened is exist - process it [20:21:12]req_shift_opened [20:21:12]FM_GetShiftState [20:21:12]SAM_PROTO_GetShiftState [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 13 01 00 [20:21:12]Write to MH i2c: E2 08 00 87 00 80 13 01 00 00 00 00 00 04 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 0E 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 0E 00 87 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FD [20:21:12]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:21:12]wFMCommunicate OK [20:21:12]SAM_PROTO_GetShiftState done [20:21:12]FM_GetShiftState done [20:21:12]req_shift_opened done [20:21:12]requested_item shift.open_date is exist - process it [20:21:12]req_shift_open_date [20:21:12]req_shift_open_date done [20:21:12]produce_requested_data done [20:21:12]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2318,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:21:12]process_action_free print_text [20:21:12]json_value_free [20:21:12]json_value_free done [20:21:12]process_json_proto returns [20:21:12]Send response to host [20:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2318,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:21:12]free response buf [20:21:12]execute_script done [20:21:12]execute_script returns [20:21:12]free content buf [20:21:12]Sock 7.Close socket [20:21:12]Sock 7.Thread stoped [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]accept exits with 9 [20:24:57]New connection [20:24:57]New thread 3067420004 created [20:24:57]Thread 3067276644 joined [20:24:57]Waiting for new connection... [20:24:57] Sock 9.Parse request [20:24:57]Sock 9.Check first char [20:24:57]Sock 9.First char is OK [20:24:57]request: POST /json_proto HTTP/1.0 [20:24:57]Method: POST [20:24:57]URL: /json_proto [20:24:57]Method is POST - this is cgi request [20:24:57]url: /json_proto [20:24:57]query_string will be loaded in cgi processing [20:24:57]execute_cgi json_proto POST (null) [20:24:57]execute_cgi path=json_proto method=POST [20:24:57]POST find Content-Length [20:24:57]Host: 172.17.45.132:8080 [20:24:57]Content-Length: 803 [20:24:57]Content-Type: application/json [20:24:57] [20:24:57]POST finish read [20:24:57]Found Content-Length = 803 [20:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:57]execute_script... [20:24:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:57]POST & json_proto [20:24:57]process_json_proto [20:24:57]json parsed OK: [20:24:57]protocol is kg_v1.0 [20:24:57]action value=close_receipt [20:24:57]process_action close_receipt [20:24:57]cmd_close_receipt [20:24:57]MH_GetDate [20:24:57]Write to MH i2c: F0 00 00 88 00 77 [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: F0 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: F0 09 00 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: F0 09 00 88 00 00 99 FA A7 66 E3 0B 90 66 04 [20:24:57]GetLastDocTimeStamp 1722284384 [20:24:57]current date 1722284697 [20:24:57]FM_GetShiftState [20:24:57]SAM_PROTO_GetShiftState [20:24:57]wFMCommunicate request_size=4 [20:24:57]MH_SAM_APDU [20:24:57]CAPDU: 80 13 01 00 [20:24:57]Write to MH i2c: E2 08 00 89 00 80 13 01 00 00 00 00 00 06 [20:24:57]Write i2c OK [20:24:57]MH_I2C_Read... [20:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:57]Read from MH i2c: E2 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: E2 0E 00 [20:24:57]MH_I2C_Read... [20:24:57]Read from MH i2c: E2 0E 00 89 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FF [20:24:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:24:57]wFMCommunicate OK [20:24:57]SAM_PROTO_GetShiftState done [20:24:57]FM_GetShiftState done [20:24:57]opened in 1722213119 [20:24:57]opened+sec_in_day 1722299519 [20:24:57]quantity*price = 150041 [20:24:57]sum+1 = 150042 [20:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 168 29.07.2024 20:24 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2319 ФПД: 257401635142179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202458&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2319&fm=257401635142179&tin=02508201610067®Number=0000000000189667&sum=150041 [20:24:58]StoreToDocumentArchive [20:24:58]shift 15 fd 2319 [20:24:58]save to /storage/0015/doc_00002319 [20:24:58]save last doc name /storage/0015/doc_00002319 to /storage/kkm_last_doc_name [20:24:58]save OK [20:24:58]Clear old archive folders... [20:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:24:58]tlvbuf is 010EAD80 [20:24:58]SAM_PROTO_ClearQueue [20:24:58]wFMCommunicate request_size=4 [20:24:58]MH_SAM_APDU [20:24:58]CAPDU: 80 09 00 00 [20:24:58]Write to MH i2c: E2 08 00 96 00 80 09 00 00 00 00 00 00 08 [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:58]Read from MH i2c: E2 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 03 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 03 00 96 00 00 90 00 0A [20:24:58]RAPDU: 90 00 [20:24:58]wFMCommunicate OK [20:24:58]SAM_PROTO_ClearQueue done [20:24:58]KKMCreateOFDPacket [20:24:58]OFDProtocolAddRootSTLVToBuf [20:24:58]FM_MakeSignedData [20:24:58]FM_MakeSignedData [20:24:58]SAM_PROTO_SignData [20:24:58]wFMCommunicate request_size=4 [20:24:58]MH_SAM_APDU [20:24:58]CAPDU: 80 0D 01 02 [20:24:58]Write to MH i2c: E2 08 00 97 00 80 0D 01 02 00 00 00 00 10 [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:58]Read from MH i2c: E2 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 03 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: E2 03 00 97 00 00 90 00 0B [20:24:58]RAPDU: 90 00 [20:24:58]wFMCommunicate OK [20:24:58]wFMCommunicate request_size=255 [20:24:58]MH_SAM_APDU [20:24:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 9A FA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 09 00 00 35 04 06 00 EA [20:24:58]Write to MH i2c: E2 02 01 98 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 9A FA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 09 00 00 35 04 06 00 EA 00 00 B8 [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:59]Read from MH i2c: E2 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 03 00 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 03 00 98 00 00 90 00 0C [20:24:59]RAPDU: 90 00 [20:24:59]wFMCommunicate OK [20:24:59]wFMCommunicate request_size=10 [20:24:59]MH_SAM_APDU [20:24:59]CAPDU: 80 0D 02 02 05 1A FD 06 FA 23 [20:24:59]Write to MH i2c: E2 0D 00 99 00 80 0D 02 02 05 00 1A FD 06 FA 23 00 00 57 [20:24:59]Write i2c OK [20:24:59]MH_I2C_Read... [20:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:59]Read from MH i2c: E2 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 03 00 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 03 00 99 00 00 90 00 0D [20:24:59]RAPDU: 90 00 [20:24:59]wFMCommunicate OK [20:24:59]wFMCommunicate request_size=4 [20:24:59]MH_SAM_APDU [20:24:59]CAPDU: 80 0D 03 02 [20:24:59]Write to MH i2c: E2 08 00 9A 00 80 0D 03 02 00 00 00 00 15 [20:24:59]Write i2c OK [20:24:59]MH_I2C_Read... [20:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:59]Read from MH i2c: E2 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 0B 00 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 0B 00 9A 00 00 5D 67 0E FA FD 87 E7 1E 90 00 6B [20:24:59]RAPDU: 5D 67 0E FA FD 87 E7 1E 90 00 [20:24:59]wFMCommunicate OK [20:24:59]SAM_PROTO_SignData done [20:24:59]FM_MakeSignedData done [20:24:59]CreateOFDProtocolMessage [20:24:59]wFMCommunicate request_size=4 [20:24:59]MH_SAM_APDU [20:24:59]CAPDU: 80 11 00 00 [20:24:59]Write to MH i2c: E2 08 00 9B 00 80 11 00 00 00 00 00 00 15 [20:24:59]Write i2c OK [20:24:59]MH_I2C_Read... [20:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:59]Read from MH i2c: E2 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 17 00 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: E2 17 00 9B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [20:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:24:59]wFMCommunicate OK [20:24:59]CreateOFDProtocolMessage done [20:24:59]OFDSenderStorePacket 2319 [20:24:59]StoreOFDPacket docnum=2319 [20:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1E D5 07 01 2A CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 9A FA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 09 00 00 35 04 06 00 EA 1A FD 06 FA 23 5D 67 0E FA FD 87 E7 1E [20:24:59]CheckFolder [20:24:59]dirname=/storage/ofd_packets [20:24:59]CheckFolder done [20:24:59]ProducePacketName [20:24:59]name=ofd_packets/00002319 [20:24:59]NVStorageSaveData ofd_packets/00002319 [20:24:59]File name is /storage/ofd_packets/00002319 [20:24:59]Write 301 bytes [20:24:59]NVStorageSaveData done [20:24:59]OFDSenderStorePacket done [20:24:59]KKMCreateOFDPacket done [20:24:59]NVStorageSaveData kkm_last_timestamp [20:24:59]File name is /storage/kkm_last_timestamp [20:24:59]Write 4 bytes [20:24:59]NVStorageSaveData done [20:24:59]ExternCall_PrintAddStr [20:24:59]wPrintStart [20:24:59]Write to MH i2c: 01 00 00 9C 00 9C [20:24:59]Write i2c OK [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: 01 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: 01 07 00 [20:24:59]MH_I2C_Read... [20:24:59]Read from MH i2c: 01 07 00 9C 00 00 00 00 00 00 FF 0F B1 [20:24:59]RasterBufferAndPrint [20:24:59]line Счет N : (1)610127 [20:24:59]line ИНН: 02508201610067 [20:24:59]line Контрольно-Кассовый Чек [20:24:59]line ПРОДАЖА [20:24:59]line ТРК (МРК, ГНК) : 32 [20:24:59]line Товар: 2710124130 [20:24:59]line Аи-92-К-2 [20:24:59]line 22.130 * 67.80 [20:24:59]line = 1500.41 [20:24:59]line НДС 12% НСП 1% [20:24:59]line > о реализуемом товаре [20:24:59]line ИТОГО: 1500.41 [20:24:59]line НСП 1% : 13.28 [20:24:59]line НДС 12% : 159.34 [20:24:59]line Наличными: 0.00 [20:24:59]line Безнал.: 1500.41 [20:24:59]line Место: АЗС № 127 "Партнер Нефть" [20:24:59]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:24:59]line СНО: Общий режим [20:24:59]line Чек 168 29.07.2024 20:24 [20:24:59]line Смена: 15 ФФД: 1.0 [20:24:59]line ЗНМ: 0300000161 [20:24:59]line РНМ: 0000000000189667 [20:24:59]line Версия ККМ: v1.0 [20:24:59]line Платежная система: O! деньги [20:24:59]line ФМ: 0000000002094248 [20:24:59]line ФД: 2319 [20:24:59]line ФПД: 257401635142179 [20:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202458&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2319&fm=257401635142179&tin=02508201610067®Number=0000000000189667&sum=150041 [20:24:59]OFD Sender: Processing packet 2319 [packets to send 1, broken 0] [20:24:59]ProducePacketName [20:24:59]name=ofd_packets/00002319 [20:24:59]OFD Sender: To server: pG, [20:24:59]CommunicateWithHost lk.salyk.kg:30040 [20:24:59]ConnectInit lk.salyk.kg [20:24:59]written 0, free lines is 4095 [20:24:59]Connected sock=10 [20:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1E D5 07 01 2A CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 9A FA A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 0F 09 00 00 35 04 06 00 EA 1A FD 06 FA 23 5D 67 0E FA FD 87 E7 1E [20:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E2 FB 47 00 33 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 32 30 39 34 32 34 38 10 04 04 00 0F 09 00 00 F4 03 04 00 05 A6 A7 66 B6 04 01 00 00 07 A0 3B 38 55 26 64 67 [20:25:00]CommunicateWithHost err = 0 [20:25:00]CheckOFDResponse [20:25:00]1017 (14) - 77093643461234 [20:25:00]1041 (16) - 0000000002094248 [20:25:00]1040 (4) - 2319 [20:25:00]1012 (4) - 29.07.2024 14:24 [20:25:00]1206 (1) - 0 [20:25:00]OFD Sender: Remove packet 2319 [20:25:00]ProducePacketName [20:25:00]name=ofd_packets/00002319 [20:25:00]NVStorageDeleteData [20:25:00]Write to MH i2c: 01 00 00 C6 00 C6 [20:25:00]Write i2c OK [20:25:00]MH_I2C_Read... [20:25:00]Read from MH i2c: 01 [20:25:00]MH_I2C_Read... [20:25:00]Read from MH i2c: 01 07 00 [20:25:00]MH_I2C_Read... [20:25:00]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 0D 0D E7 [20:25:00]RasterBufferAndPrint [20:25:00]line [20:25:00]line [20:25:00]line [20:25:00]line [20:25:00]line [20:25:00]written 0, free lines is 3348 [20:25:00]MH_Cut [20:25:00]Write to MH i2c: D1 01 00 CD 00 01 9F [20:25:00]Write i2c OK [20:25:00]MH_I2C_Read... [20:25:00]Read from MH i2c: D1 [20:25:00]MH_I2C_Read... [20:25:00]Read from MH i2c: D1 01 00 [20:25:00]MH_I2C_Read... [20:25:00]Read from MH i2c: D1 01 00 CD 00 00 9E [20:25:00]Write to MH i2c: 01 00 00 CE 00 CE [20:25:00]Write i2c OK [20:25:00]MH_I2C_Read... [20:25:00]OFD Sender: No OFD packet to send [20:25:00]*** Cut start [20:25:00]*** Partial cut [20:25:00]*** CUTSNS_PIN = 1 [20:25:00]*** CUTSNS_PIN = 0 [20:25:01]*** Brake cut motor [20:25:01]Read from MH i2c: 01 [20:25:01]MH_I2C_Read... [20:25:01]*** Stop cut motor [20:25:01]*** Cut end [20:25:01]Read from MH i2c: 01 07 00 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [20:25:01]process_action close_receipt done [20:25:01]requested_data is exist [20:25:01]produce_requested_data [20:25:01]requested_item fm.sn is exist - process it [20:25:01]wFMCommunicate request_size=4 [20:25:01]MH_SAM_APDU [20:25:01]CAPDU: 80 11 00 00 [20:25:01]Write to MH i2c: E2 08 00 CF 00 80 11 00 00 00 00 00 00 49 [20:25:01]Write i2c OK [20:25:01]MH_I2C_Read... [20:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:01]Read from MH i2c: E2 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: E2 17 00 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: E2 17 00 CF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 99 [20:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:25:01]wFMCommunicate OK [20:25:01]requested_item fd.num is exist - process it [20:25:01]SAM_PROTO_GetFieldsCounters [20:25:01]wFMCommunicate request_size=4 [20:25:01]MH_SAM_APDU [20:25:01]CAPDU: 80 13 00 00 [20:25:01]Write to MH i2c: E2 08 00 D0 00 80 13 00 00 00 00 00 00 4C [20:25:01]Write i2c OK [20:25:01]MH_I2C_Read... [20:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:01]Read from MH i2c: E2 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: E2 62 00 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: E2 62 00 D0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [20:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 0F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:01]wFMCommunicate OK [20:25:01]SAM_PROTO_GetFieldsCounters done [20:25:01]requested_item shift.num is exist - process it [20:25:01]requested_item shift.opened is exist - process it [20:25:01]req_shift_opened [20:25:01]FM_GetShiftState [20:25:01]SAM_PROTO_GetShiftState [20:25:01]wFMCommunicate request_size=4 [20:25:01]MH_SAM_APDU [20:25:01]CAPDU: 80 13 01 00 [20:25:01]Write to MH i2c: E2 08 00 D1 00 80 13 01 00 00 00 00 00 4E [20:25:01]Write i2c OK [20:25:01]MH_I2C_Read... [20:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:01]Read from MH i2c: E2 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: E2 0E 00 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: E2 0E 00 D1 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 47 [20:25:01]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:25:01]wFMCommunicate OK [20:25:01]SAM_PROTO_GetShiftState done [20:25:01]FM_GetShiftState done [20:25:01]req_shift_opened done [20:25:01]requested_item shift.open_date is exist - process it [20:25:01]req_shift_open_date [20:25:01]req_shift_open_date done [20:25:01]produce_requested_data done [20:25:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2319,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:25:01]process_action_free close_receipt [20:25:01]json_value_free [20:25:01]json_value_free done [20:25:01]process_json_proto returns [20:25:01]Send response to host [20:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2319,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:25:01]free response buf [20:25:01]execute_script done [20:25:01]execute_script returns [20:25:01]free content buf [20:25:01]Sock 9.Close socket [20:25:01]Sock 9.Thread stoped [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:30]accept exits with 7 [20:28:30]New connection [20:28:30]New thread 3067276644 created [20:28:30]Thread 3067420004 joined [20:28:30]Waiting for new connection... [20:28:30] Sock 7.Parse request [20:28:30]Sock 7.Check first char [20:28:30]Sock 7.First char is OK [20:28:30]request: POST /json_proto HTTP/1.0 [20:28:30]Method: POST [20:28:30]URL: /json_proto [20:28:30]Method is POST - this is cgi request [20:28:30]url: /json_proto [20:28:30]query_string will be loaded in cgi processing [20:28:30]execute_cgi json_proto POST (null) [20:28:30]execute_cgi path=json_proto method=POST [20:28:30]POST find Content-Length [20:28:30]Host: 172.17.45.132:8080 [20:28:30]Content-Length: 800 [20:28:30]Content-Type: application/json [20:28:30] [20:28:30]POST finish read [20:28:30]Found Content-Length = 800 [20:28:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:30]execute_script... [20:28: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)610129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:30]POST & json_proto [20:28:30]process_json_proto [20:28:30]json parsed OK: [20:28:30]protocol is kg_v1.0 [20:28:30]action value=close_receipt [20:28:30]process_action close_receipt [20:28:30]cmd_close_receipt [20:28:30]MH_GetDate [20:28:30]Write to MH i2c: F0 00 00 D2 00 C1 [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: F0 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: F0 09 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: F0 09 00 D2 00 00 6F FB A7 66 E3 0B 90 66 25 [20:28:30]GetLastDocTimeStamp 1722284698 [20:28:30]current date 1722284911 [20:28:30]FM_GetShiftState [20:28:30]SAM_PROTO_GetShiftState [20:28:30]wFMCommunicate request_size=4 [20:28:30]MH_SAM_APDU [20:28:30]CAPDU: 80 13 01 00 [20:28:30]Write to MH i2c: E2 08 00 D3 00 80 13 01 00 00 00 00 00 50 [20:28:30]Write i2c OK [20:28:30]MH_I2C_Read... [20:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:30]Read from MH i2c: E2 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 0E 00 [20:28:30]MH_I2C_Read... [20:28:30]Read from MH i2c: E2 0E 00 D3 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 49 [20:28:30]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:28:30]wFMCommunicate OK [20:28:30]SAM_PROTO_GetShiftState done [20:28:30]FM_GetShiftState done [20:28:30]opened in 1722213119 [20:28:30]opened+sec_in_day 1722299519 [20:28:30]quantity*price = 50036 [20:28:30]sum+1 = 50037 [20:28:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 169 29.07.2024 20:28 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2320 ФПД: 175309770319291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202831&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2320&fm=175309770319291&tin=02508201610067®Number=0000000000189667&sum=50036 [20:28:31]StoreToDocumentArchive [20:28:31]shift 15 fd 2320 [20:28:31]save to /storage/0015/doc_00002320 [20:28:31]save last doc name /storage/0015/doc_00002320 to /storage/kkm_last_doc_name [20:28:31]save OK [20:28:31]Clear old archive folders... [20:28:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:31]tlvbuf is 010F34C0 [20:28:31]SAM_PROTO_ClearQueue [20:28:31]wFMCommunicate request_size=4 [20:28:31]MH_SAM_APDU [20:28:31]CAPDU: 80 09 00 00 [20:28:31]Write to MH i2c: E2 08 00 E0 00 80 09 00 00 00 00 00 00 52 [20:28:31]Write i2c OK [20:28:31]MH_I2C_Read... [20:28:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:32]Read from MH i2c: E2 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 E0 00 00 90 00 54 [20:28:32]RAPDU: 90 00 [20:28:32]wFMCommunicate OK [20:28:32]SAM_PROTO_ClearQueue done [20:28:32]KKMCreateOFDPacket [20:28:32]OFDProtocolAddRootSTLVToBuf [20:28:32]FM_MakeSignedData [20:28:32]FM_MakeSignedData [20:28:32]SAM_PROTO_SignData [20:28:32]wFMCommunicate request_size=4 [20:28:32]MH_SAM_APDU [20:28:32]CAPDU: 80 0D 01 02 [20:28:32]Write to MH i2c: E2 08 00 E1 00 80 0D 01 02 00 00 00 00 5A [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:32]Read from MH i2c: E2 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 E1 00 00 90 00 55 [20:28:32]RAPDU: 90 00 [20:28:32]wFMCommunicate OK [20:28:32]wFMCommunicate request_size=255 [20:28:32]MH_SAM_APDU [20:28:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6F FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 09 00 00 35 04 06 00 9F [20:28:32]Write to MH i2c: E2 02 01 E2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6F FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 09 00 00 35 04 06 00 9F 00 00 0E [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:32]Read from MH i2c: E2 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 E2 00 00 90 00 56 [20:28:32]RAPDU: 90 00 [20:28:32]wFMCommunicate OK [20:28:32]wFMCommunicate request_size=10 [20:28:32]MH_SAM_APDU [20:28:32]CAPDU: 80 0D 02 02 05 71 7C 95 E5 BB [20:28:32]Write to MH i2c: E2 0D 00 E3 00 80 0D 02 02 05 00 71 7C 95 E5 BB 00 00 89 [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:32]Read from MH i2c: E2 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 03 00 E3 00 00 90 00 57 [20:28:32]RAPDU: 90 00 [20:28:32]wFMCommunicate OK [20:28:32]wFMCommunicate request_size=4 [20:28:32]MH_SAM_APDU [20:28:32]CAPDU: 80 0D 03 02 [20:28:32]Write to MH i2c: E2 08 00 E4 00 80 0D 03 02 00 00 00 00 5F [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:32]Read from MH i2c: E2 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 0B 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 0B 00 E4 00 00 41 E9 B6 71 52 BF 0D 41 90 00 10 [20:28:32]RAPDU: 41 E9 B6 71 52 BF 0D 41 90 00 [20:28:32]wFMCommunicate OK [20:28:32]SAM_PROTO_SignData done [20:28:32]FM_MakeSignedData done [20:28:32]CreateOFDProtocolMessage [20:28:32]wFMCommunicate request_size=4 [20:28:32]MH_SAM_APDU [20:28:32]CAPDU: 80 11 00 00 [20:28:32]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:32]Read from MH i2c: E2 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 17 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AF [20:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:32]wFMCommunicate OK [20:28:32]CreateOFDProtocolMessage done [20:28:32]OFDSenderStorePacket 2320 [20:28:32]StoreOFDPacket docnum=2320 [20:28:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 56 86 07 01 93 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6F FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 09 00 00 35 04 06 00 9F 71 7C 95 E5 BB 41 E9 B6 71 52 BF 0D 41 [20:28:32]CheckFolder [20:28:32]dirname=/storage/ofd_packets [20:28:32]CheckFolder done [20:28:32]ProducePacketName [20:28:32]name=ofd_packets/00002320 [20:28:32]NVStorageSaveData ofd_packets/00002320 [20:28:32]File name is /storage/ofd_packets/00002320 [20:28:32]Write 301 bytes [20:28:32]NVStorageSaveData done [20:28:32]OFDSenderStorePacket done [20:28:32]KKMCreateOFDPacket done [20:28:32]NVStorageSaveData kkm_last_timestamp [20:28:32]File name is /storage/kkm_last_timestamp [20:28:32]Write 4 bytes [20:28:32]NVStorageSaveData done [20:28:32]ExternCall_PrintAddStr [20:28:32]wPrintStart [20:28:32]Write to MH i2c: 01 00 00 E6 00 E6 [20:28:32]OFD Sender: Processing packet 2320 [packets to send 1, broken 0] [20:28:32]ProducePacketName [20:28:32]name=ofd_packets/00002320 [20:28:32]OFD Sender: To server: pG, [20:28:32]CommunicateWithHost lk.salyk.kg:30040 [20:28:32]ConnectInit lk.salyk.kg [20:28:32]Write i2c OK [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: 01 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: 01 07 00 [20:28:32]MH_I2C_Read... [20:28:32]Read from MH i2c: 01 07 00 E6 00 00 00 00 00 00 FF 0F FB [20:28:32]RasterBufferAndPrint [20:28:32]line Счет N : (1)610129 [20:28:32]line ИНН: 02508201610067 [20:28:32]line Контрольно-Кассовый Чек [20:28:32]line ПРОДАЖА [20:28:32]line ТРК (МРК, ГНК) : 62 [20:28:32]line Товар: 2710124130 [20:28:32]line Аи-92-К-2 [20:28:32]line 7.380 * 67.80 [20:28:32]line = 500.36 [20:28:32]line НДС 12% НСП 1% [20:28:32]line > о реализуемом товаре [20:28:32]line ИТОГО: 500.36 [20:28:32]line НСП 1% : 4.43 [20:28:32]line НДС 12% : 53.14 [20:28:32]line Наличными: 0.00 [20:28:32]line Безнал.: 500.36 [20:28:32]line Место: АЗС № 127 "Партнер Нефть" [20:28:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:28:32]line СНО: Общий режим [20:28:32]line Чек 169 29.07.2024 20:28 [20:28:32]line Смена: 15 ФФД: 1.0 [20:28:32]line ЗНМ: 0300000161 [20:28:32]line РНМ: 0000000000189667 [20:28:32]line Версия ККМ: v1.0 [20:28:32]line Платежная система: O! деньги [20:28:32]line ФМ: 0000000002094248 [20:28:32]line ФД: 2320 [20:28:32]line ФПД: 175309770319291 [20:28:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202831&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2320&fm=175309770319291&tin=02508201610067®Number=0000000000189667&sum=50036 [20:28:32]written 0, free lines is 4095 [20:28:32]Connected sock=9 [20:28:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 56 86 07 01 93 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6F FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 09 00 00 35 04 06 00 9F 71 7C 95 E5 BB 41 E9 B6 71 52 BF 0D 41 [20:28:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CB E8 47 00 37 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 10 09 00 00 F4 03 04 00 DA A6 A7 66 B6 04 01 00 00 91 7C 98 63 B6 FB A1 76 [20:28:32]CommunicateWithHost err = 0 [20:28:32]CheckOFDResponse [20:28:32]1017 (14) - 77093643461234 [20:28:32]1041 (16) - 0000000002094248 [20:28:32]1040 (4) - 2320 [20:28:32]1012 (4) - 29.07.2024 14:27 [20:28:32]1206 (1) - 0 [20:28:32]OFD Sender: Remove packet 2320 [20:28:32]ProducePacketName [20:28:32]name=ofd_packets/00002320 [20:28:32]NVStorageDeleteData [20:28:33]Write to MH i2c: 01 00 00 10 01 11 [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: 01 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: 01 07 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 15 0D 3A [20:28:33]RasterBufferAndPrint [20:28:33]line [20:28:33]line [20:28:33]line [20:28:33]line [20:28:33]line [20:28:33]written 0, free lines is 3355 [20:28:33]MH_Cut [20:28:33]Write to MH i2c: D1 01 00 17 01 01 EA [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: D1 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: D1 01 00 [20:28:33]MH_I2C_Read... [20:28:33]Read from MH i2c: D1 01 00 17 01 00 E9 [20:28:33]Write to MH i2c: 01 00 00 18 01 19 [20:28:33]Write i2c OK [20:28:33]MH_I2C_Read... [20:28:33]OFD Sender: No OFD packet to send [20:28:33]*** Cut start [20:28:33]*** Partial cut [20:28:33]*** CUTSNS_PIN = 1 [20:28:33]*** CUTSNS_PIN = 0 [20:28:33]*** Brake cut motor [20:28:34]Read from MH i2c: 01 [20:28:34]MH_I2C_Read... [20:28:34]*** Stop cut motor [20:28:34]*** Cut end [20:28:34]Read from MH i2c: 01 07 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 FF 0F 2E [20:28:34]process_action close_receipt done [20:28:34]requested_data is exist [20:28:34]produce_requested_data [20:28:34]requested_item fm.sn is exist - process it [20:28:34]wFMCommunicate request_size=4 [20:28:34]MH_SAM_APDU [20:28:34]CAPDU: 80 11 00 00 [20:28:34]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:34]Read from MH i2c: E2 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 17 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E4 [20:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:34]wFMCommunicate OK [20:28:34]requested_item fd.num is exist - process it [20:28:34]SAM_PROTO_GetFieldsCounters [20:28:34]wFMCommunicate request_size=4 [20:28:34]MH_SAM_APDU [20:28:34]CAPDU: 80 13 00 00 [20:28:34]Write to MH i2c: E2 08 00 1A 01 80 13 00 00 00 00 00 00 97 [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:34]Read from MH i2c: E2 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 62 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 62 00 1A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 10 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [20:28:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 10 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:34]wFMCommunicate OK [20:28:34]SAM_PROTO_GetFieldsCounters done [20:28:34]requested_item shift.num is exist - process it [20:28:34]requested_item shift.opened is exist - process it [20:28:34]req_shift_opened [20:28:34]FM_GetShiftState [20:28:34]SAM_PROTO_GetShiftState [20:28:34]wFMCommunicate request_size=4 [20:28:34]MH_SAM_APDU [20:28:34]CAPDU: 80 13 01 00 [20:28:34]Write to MH i2c: E2 08 00 1B 01 80 13 01 00 00 00 00 00 99 [20:28:34]Write i2c OK [20:28:34]MH_I2C_Read... [20:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:34]Read from MH i2c: E2 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 0E 00 [20:28:34]MH_I2C_Read... [20:28:34]Read from MH i2c: E2 0E 00 1B 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 92 [20:28:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:28:34]wFMCommunicate OK [20:28:34]SAM_PROTO_GetShiftState done [20:28:34]FM_GetShiftState done [20:28:34]req_shift_opened done [20:28:34]requested_item shift.open_date is exist - process it [20:28:34]req_shift_open_date [20:28:34]req_shift_open_date done [20:28:34]produce_requested_data done [20:28:34]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2320,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:28:34]process_action_free close_receipt [20:28:34]json_value_free [20:28:34]json_value_free done [20:28:34]process_json_proto returns [20:28:34]Send response to host [20:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2320,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:28:34]free response buf [20:28:34]execute_script done [20:28:34]execute_script returns [20:28:34]free content buf [20:28:34]Sock 7.Close socket [20:28:34]Sock 7.Thread stoped [20:28:35]accept exits with 10 [20:28:35]New connection [20:28:35]New thread 3067420004 created [20:28:35]Thread 3067276644 joined [20:28:35]Waiting for new connection... [20:28:35] Sock 10.Parse request [20:28:35]Sock 10.Check first char [20:28:35]Sock 10.First char is OK [20:28:35]request: POST /json_proto HTTP/1.0 [20:28:35]Method: POST [20:28:35]URL: /json_proto [20:28:35]Method is POST - this is cgi request [20:28:35]url: /json_proto [20:28:35]query_string will be loaded in cgi processing [20:28:35]execute_cgi json_proto POST (null) [20:28:35]execute_cgi path=json_proto method=POST [20:28:35]POST find Content-Length [20:28:35]Host: 172.17.45.132:8080 [20:28:35]Content-Length: 669 [20:28:35]Content-Type: application/json [20:28:35] [20:28:35]POST finish read [20:28:35]Found Content-Length = 669 [20:28:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126561", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:35]execute_script... [20:28: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)126561", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:35]POST & json_proto [20:28:35]process_json_proto [20:28:35]json parsed OK: [20:28:35]protocol is kg_v1.0 [20:28:35]action value=close_receipt [20:28:35]process_action close_receipt [20:28:35]cmd_close_receipt [20:28:35]MH_GetDate [20:28:35]Write to MH i2c: F0 00 00 1C 01 0C [20:28:35]Write i2c OK [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: F0 [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: F0 09 00 [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: F0 09 00 1C 01 00 73 FB A7 66 E3 0B 90 66 74 [20:28:35]GetLastDocTimeStamp 1722284911 [20:28:35]current date 1722284915 [20:28:35]FM_GetShiftState [20:28:35]SAM_PROTO_GetShiftState [20:28:35]wFMCommunicate request_size=4 [20:28:35]MH_SAM_APDU [20:28:35]CAPDU: 80 13 01 00 [20:28:35]Write to MH i2c: E2 08 00 1D 01 80 13 01 00 00 00 00 00 9B [20:28:35]Write i2c OK [20:28:35]MH_I2C_Read... [20:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:35]Read from MH i2c: E2 [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: E2 0E 00 [20:28:35]MH_I2C_Read... [20:28:35]Read from MH i2c: E2 0E 00 1D 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 94 [20:28:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:28:35]wFMCommunicate OK [20:28:35]SAM_PROTO_GetShiftState done [20:28:35]FM_GetShiftState done [20:28:35]opened in 1722213119 [20:28:35]opened+sec_in_day 1722299519 [20:28:35]quantity*price = 6500 [20:28:35]sum+1 = 6501 [20:28:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 170 29.07.2024 20:28 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2321 ФПД: 153325304418205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202835&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2321&fm=153325304418205&tin=02508201610067®Number=0000000000189667&sum=6500 0 [20:28:36]StoreToDocumentArchive [20:28:36]shift 15 fd 2321 [20:28:36]save to /storage/0015/doc_00002321 [20:28:36]save last doc name /storage/0015/doc_00002321 to /storage/kkm_last_doc_name [20:28:36]save OK [20:28:36]Clear old archive folders... [20:28:36]ProcessDocumentItem done err = 0, tmpTLVsize=284 [20:28:36]tlvbuf is 01113860 [20:28:36]SAM_PROTO_ClearQueue [20:28:36]wFMCommunicate request_size=4 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 09 00 00 [20:28:36]Write to MH i2c: E2 08 00 2A 01 80 09 00 00 00 00 00 00 9D [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:36]Read from MH i2c: E2 03 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 03 00 2A 01 00 90 00 9F [20:28:36]RAPDU: 90 00 [20:28:36]wFMCommunicate OK [20:28:36]SAM_PROTO_ClearQueue done [20:28:36]KKMCreateOFDPacket [20:28:36]OFDProtocolAddRootSTLVToBuf [20:28:36]FM_MakeSignedData [20:28:36]FM_MakeSignedData [20:28:36]SAM_PROTO_SignData [20:28:36]wFMCommunicate request_size=4 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 0D 01 02 [20:28:36]Write to MH i2c: E2 08 00 2B 01 80 0D 01 02 00 00 00 00 A5 [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 03 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 03 00 2B 01 00 90 00 A0 [20:28:36]RAPDU: 90 00 [20:28:36]wFMCommunicate OK [20:28:36]wFMCommunicate request_size=255 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 73 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [20:28:36]Write to MH i2c: E2 02 01 2C 01 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 73 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 71 [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 03 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 03 00 2C 01 00 90 00 A1 [20:28:36]RAPDU: 90 00 [20:28:36]wFMCommunicate OK [20:28:36]wFMCommunicate request_size=43 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 09 00 00 35 04 06 00 8B 72 D4 4E 0F 9D [20:28:36]Write to MH i2c: E2 2E 00 2D 01 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 09 00 00 35 04 06 00 8B 72 D4 4E 0F 9D 00 00 72 [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 03 00 2D 01 00 90 00 A2 [20:28:37]RAPDU: 90 00 [20:28:37]wFMCommunicate OK [20:28:37]wFMCommunicate request_size=4 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 0D 03 02 [20:28:37]Write to MH i2c: E2 08 00 2E 01 80 0D 03 02 00 00 00 00 AA [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 0B 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 0B 00 2E 01 00 B6 94 CD 23 47 B4 B0 A4 90 00 34 [20:28:37]RAPDU: B6 94 CD 23 47 B4 B0 A4 90 00 [20:28:37]wFMCommunicate OK [20:28:37]SAM_PROTO_SignData done [20:28:37]FM_MakeSignedData done [20:28:37]CreateOFDProtocolMessage [20:28:37]wFMCommunicate request_size=4 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 11 00 00 [20:28:37]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:37]Read from MH i2c: E2 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 17 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FA [20:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:37]wFMCommunicate OK [20:28:37]CreateOFDProtocolMessage done [20:28:37]OFDSenderStorePacket 2321 [20:28:37]StoreOFDPacket docnum=2321 [20:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 14 E5 28 01 25 0B 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 73 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 09 00 00 35 04 06 00 8B 72 D4 4E 0F 9D B6 94 CD 23 47 B4 B0 A4 [20:28:37]CheckFolder [20:28:37]dirname=/storage/ofd_packets [20:28:37]CheckFolder done [20:28:37]ProducePacketName [20:28:37]name=ofd_packets/00002321 [20:28:37]NVStorageSaveData ofd_packets/00002321 [20:28:37]File name is /storage/ofd_packets/00002321 [20:28:37]Write 334 bytes [20:28:37]NVStorageSaveData done [20:28:37]OFDSenderStorePacket done [20:28:37]KKMCreateOFDPacket done [20:28:37]NVStorageSaveData kkm_last_timestamp [20:28:37]File name is /storage/kkm_last_timestamp [20:28:37]Write 4 bytes [20:28:37]NVStorageSaveData done [20:28:37]ExternCall_PrintAddStr [20:28:37]wPrintStart [20:28:37]Write to MH i2c: 01 00 00 30 01 31 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: 01 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: 01 07 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 FF 0F 46 [20:28:37]RasterBufferAndPrint [20:28:37]line Счет N : (3)126561 [20:28:37]line ИНН: 02508201610067 [20:28:37]line Контрольно-Кассовый Чек [20:28:37]line ПРОДАЖА [20:28:37]line Товар: 4700040114137 [20:28:37]line Султан чай 1л. зел лимон [20:28:37]line 1.000 * 65.00 [20:28:37]line = 65.00 [20:28:37]line НДС 12% НСП 1% [20:28:37]line > о реализуемом товаре [20:28:37]line ИТОГО: 65.00 [20:28:37]line НСП 1% : 0.57 [20:28:37]line НДС 12% : 6.90 [20:28:37]line Наличными: 65.00 [20:28:37]line Безнал.: 0.00 [20:28:37]line Место: АЗС № 127 "Партнер Нефть" [20:28:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:28:37]line СНО: Общий режим [20:28:37]line Чек 170 29.07.2024 20:28 [20:28:37]line Смена: 15 ФФД: 1.0 [20:28:37]line ЗНМ: 0300000161 [20:28:37]line РНМ: 0000000000189667 [20:28:37]line Версия ККМ: v1.0 [20:28:37]line ФМ: 0000000002094248 [20:28:37]line ФД: 2321 [20:28:37]line ФПД: 153325304418205 [20:28:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202835&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2321&fm=153325304418205&tin=02508201610067®Number=0000000000189667&sum=6500 [20:28:37]line 0 [20:28:37]written 0, free lines is 4095 [20:28:37]OFD Sender: Processing packet 2321 [packets to send 1, broken 0] [20:28:37]ProducePacketName [20:28:37]name=ofd_packets/00002321 [20:28:37]OFD Sender: To server: pG, [20:28:37]CommunicateWithHost lk.salyk.kg:30040 [20:28:37]ConnectInit lk.salyk.kg [20:28:37]Connected sock=9 [20:28:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 14 E5 28 01 25 0B 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 73 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 09 00 00 35 04 06 00 8B 72 D4 4E 0F 9D B6 94 CD 23 47 B4 B0 A4 [20:28:37]Write to MH i2c: 01 00 00 58 01 59 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: 01 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: 01 07 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 26 0D 93 [20:28:37]RasterBufferAndPrint [20:28:37]line [20:28:37]line [20:28:37]line [20:28:37]line [20:28:37]line [20:28:37]written 0, free lines is 3378 [20:28:37]MH_Cut [20:28:37]Write to MH i2c: D1 01 00 5F 01 01 32 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: D1 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: D1 01 00 [20:28:37]MH_I2C_Read... [20:28:37]Read from MH i2c: D1 01 00 5F 01 00 31 [20:28:37]Write to MH i2c: 01 00 00 60 01 61 [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A1 6F 47 00 EB 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 11 09 00 00 F4 03 04 00 DF A6 A7 66 B6 04 01 00 00 74 90 59 A2 D6 B0 D6 C9 [20:28:37]CommunicateWithHost err = 0 [20:28:37]CheckOFDResponse [20:28:37]1017 (14) - 77093643461234 [20:28:37]1041 (16) - 0000000002094248 [20:28:37]1040 (4) - 2321 [20:28:37]1012 (4) - 29.07.2024 14:27 [20:28:37]1206 (1) - 0 [20:28:37]OFD Sender: Remove packet 2321 [20:28:37]ProducePacketName [20:28:37]name=ofd_packets/00002321 [20:28:37]NVStorageDeleteData [20:28:38]OFD Sender: No OFD packet to send [20:28:38]*** Cut start [20:28:38]*** Partial cut [20:28:38]*** CUTSNS_PIN = 1 [20:28:38]*** CUTSNS_PIN = 0 [20:28:38]*** Brake cut motor [20:28:38]Read from MH i2c: 01 [20:28:38]MH_I2C_Read... [20:28:38]*** Stop cut motor [20:28:38]*** Cut end [20:28:38]Read from MH i2c: 01 07 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 60 01 00 00 00 00 00 FF 0F 76 [20:28:38]process_action close_receipt done [20:28:38]requested_data is exist [20:28:38]produce_requested_data [20:28:38]requested_item fm.sn is exist - process it [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 11 00 00 [20:28:38]Write to MH i2c: E2 08 00 61 01 80 11 00 00 00 00 00 00 DC [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 61 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2C [20:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:38]wFMCommunicate OK [20:28:38]requested_item fd.num is exist - process it [20:28:38]SAM_PROTO_GetFieldsCounters [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 13 00 00 [20:28:38]Write to MH i2c: E2 08 00 62 01 80 13 00 00 00 00 00 00 DF [20:28:38]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 62 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 62 00 62 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 11 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [20:28:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 11 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:39]wFMCommunicate OK [20:28:39]SAM_PROTO_GetFieldsCounters done [20:28:39]requested_item shift.num is exist - process it [20:28:39]requested_item shift.opened is exist - process it [20:28:39]req_shift_opened [20:28:39]FM_GetShiftState [20:28:39]SAM_PROTO_GetShiftState [20:28:39]wFMCommunicate request_size=4 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 13 01 00 [20:28:39]Write to MH i2c: E2 08 00 63 01 80 13 01 00 00 00 00 00 E1 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 0E 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 0E 00 63 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DA [20:28:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:28:39]wFMCommunicate OK [20:28:39]SAM_PROTO_GetShiftState done [20:28:39]FM_GetShiftState done [20:28:39]req_shift_opened done [20:28:39]requested_item shift.open_date is exist - process it [20:28:39]req_shift_open_date [20:28:39]req_shift_open_date done [20:28:39]produce_requested_data done [20:28:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2321,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:28:39]process_action_free close_receipt [20:28:39]json_value_free [20:28:39]json_value_free done [20:28:39]process_json_proto returns [20:28:39]Send response to host [20:28:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2321,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:28:39]free response buf [20:28:39]execute_script done [20:28:39]execute_script returns [20:28:39]free content buf [20:28:39]Sock 10.Close socket [20:28:39]Sock 10.Thread stoped [20:28:39]accept exits with 7 [20:28:39]New connection [20:28:39]New thread 3067276644 created [20:28:39]Thread 3067420004 joined [20:28:39]Waiting for new connection... [20:28:39] Sock 7.Parse request [20:28:39]Sock 7.Check first char [20:28:39]Sock 7.First char is OK [20:28:39]request: POST /json_proto HTTP/1.0 [20:28:39]Method: POST [20:28:39]URL: /json_proto [20:28:39]Method is POST - this is cgi request [20:28:39]url: /json_proto [20:28:39]query_string will be loaded in cgi processing [20:28:39]execute_cgi json_proto POST (null) [20:28:39]execute_cgi path=json_proto method=POST [20:28:39]POST find Content-Length [20:28:39]Host: 172.17.45.132:8080 [20:28:39]Content-Length: 677 [20:28:39]Content-Type: application/json [20:28:39] [20:28:39]POST finish read [20:28:39]Found Content-Length = 677 [20:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:39]execute_script... [20:28:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:39]POST & json_proto [20:28:39]process_json_proto [20:28:39]json parsed OK: [20:28:39]protocol is kg_v1.0 [20:28:39]action value=close_receipt [20:28:39]process_action close_receipt [20:28:39]cmd_close_receipt [20:28:39]MH_GetDate [20:28:39]Write to MH i2c: F0 00 00 64 01 54 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: F0 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: F0 09 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: F0 09 00 64 01 00 77 FB A7 66 E3 0B 90 66 C0 [20:28:39]GetLastDocTimeStamp 1722284915 [20:28:39]current date 1722284919 [20:28:39]FM_GetShiftState [20:28:39]SAM_PROTO_GetShiftState [20:28:39]wFMCommunicate request_size=4 [20:28:39]MH_SAM_APDU [20:28:39]CAPDU: 80 13 01 00 [20:28:39]Write to MH i2c: E2 08 00 65 01 80 13 01 00 00 00 00 00 E3 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:39]Read from MH i2c: E2 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 0E 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: E2 0E 00 65 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DC [20:28:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:28:39]wFMCommunicate OK [20:28:39]SAM_PROTO_GetShiftState done [20:28:39]FM_GetShiftState done [20:28:39]opened in 1722213119 [20:28:39]opened+sec_in_day 1722299519 [20:28:39]quantity*price = 20001 [20:28:39]sum+1 = 20002 [20:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 171 29.07.2024 20:28 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2322 ФПД: 206060184783894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202840&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2322&fm=206060184783894&tin=02508201610067®Number=0000000000189667&sum=20000 [20:28:40]StoreToDocumentArchive [20:28:40]shift 15 fd 2322 [20:28:40]save to /storage/0015/doc_00002322 [20:28:40]save last doc name /storage/0015/doc_00002322 to /storage/kkm_last_doc_name [20:28:40]save OK [20:28:40]Clear old archive folders... [20:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:40]tlvbuf is 010F7C40 [20:28:40]SAM_PROTO_ClearQueue [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 09 00 00 [20:28:40]Write to MH i2c: E2 08 00 72 01 80 09 00 00 00 00 00 00 E5 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 03 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 03 00 72 01 00 90 00 E7 [20:28:40]RAPDU: 90 00 [20:28:40]wFMCommunicate OK [20:28:40]SAM_PROTO_ClearQueue done [20:28:40]KKMCreateOFDPacket [20:28:40]OFDProtocolAddRootSTLVToBuf [20:28:40]FM_MakeSignedData [20:28:40]FM_MakeSignedData [20:28:40]SAM_PROTO_SignData [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 0D 01 02 [20:28:40]Write to MH i2c: E2 08 00 73 01 80 0D 01 02 00 00 00 00 ED [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 03 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 03 00 73 01 00 90 00 E8 [20:28:40]RAPDU: 90 00 [20:28:40]wFMCommunicate OK [20:28:40]wFMCommunicate request_size=255 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 78 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 09 00 00 35 04 06 00 BB [20:28:40]Write to MH i2c: E2 02 01 74 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 78 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 09 00 00 35 04 06 00 BB 00 00 84 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:41]Read from MH i2c: E2 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 03 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [20:28:41]RAPDU: 90 00 [20:28:41]wFMCommunicate OK [20:28:41]wFMCommunicate request_size=10 [20:28:41]MH_SAM_APDU [20:28:41]CAPDU: 80 0D 02 02 05 69 20 1D CC 16 [20:28:41]Write to MH i2c: E2 0D 00 75 01 80 0D 02 02 05 00 69 20 1D CC 16 00 00 82 [20:28:41]Write i2c OK [20:28:41]MH_I2C_Read... [20:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:41]Read from MH i2c: E2 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 03 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 03 00 75 01 00 90 00 EA [20:28:41]RAPDU: 90 00 [20:28:41]wFMCommunicate OK [20:28:41]wFMCommunicate request_size=4 [20:28:41]MH_SAM_APDU [20:28:41]CAPDU: 80 0D 03 02 [20:28:41]Write to MH i2c: E2 08 00 76 01 80 0D 03 02 00 00 00 00 F2 [20:28:41]Write i2c OK [20:28:41]MH_I2C_Read... [20:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:41]Read from MH i2c: E2 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 0B 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 0B 00 76 01 00 40 78 6B 0D 90 51 5D 84 90 00 E5 [20:28:41]RAPDU: 40 78 6B 0D 90 51 5D 84 90 00 [20:28:41]wFMCommunicate OK [20:28:41]SAM_PROTO_SignData done [20:28:41]FM_MakeSignedData done [20:28:41]CreateOFDProtocolMessage [20:28:41]wFMCommunicate request_size=4 [20:28:41]MH_SAM_APDU [20:28:41]CAPDU: 80 11 00 00 [20:28:41]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [20:28:41]Write i2c OK [20:28:41]MH_I2C_Read... [20:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:41]Read from MH i2c: E2 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 17 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 42 [20:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:41]wFMCommunicate OK [20:28:41]CreateOFDProtocolMessage done [20:28:41]OFDSenderStorePacket 2322 [20:28:41]StoreOFDPacket docnum=2322 [20:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 CB 5A 07 01 55 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 78 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 09 00 00 35 04 06 00 BB 69 20 1D CC 16 40 78 6B 0D 90 51 5D 84 [20:28:41]CheckFolder [20:28:41]dirname=/storage/ofd_packets [20:28:41]CheckFolder done [20:28:41]ProducePacketName [20:28:41]name=ofd_packets/00002322 [20:28:41]NVStorageSaveData ofd_packets/00002322 [20:28:41]File name is /storage/ofd_packets/00002322 [20:28:41]Write 301 bytes [20:28:41]NVStorageSaveData done [20:28:41]OFDSenderStorePacket done [20:28:41]KKMCreateOFDPacket done [20:28:41]NVStorageSaveData kkm_last_timestamp [20:28:41]File name is /storage/kkm_last_timestamp [20:28:41]Write 4 bytes [20:28:41]NVStorageSaveData done [20:28:41]ExternCall_PrintAddStr [20:28:41]wPrintStart [20:28:41]Write to MH i2c: 01 00 00 78 01 79 [20:28:41]Write i2c OK [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: 01 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: 01 07 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [20:28:41]RasterBufferAndPrint [20:28:41]line Счет N : (1)610130 [20:28:41]line ИНН: 02508201610067 [20:28:41]line Контрольно-Кассовый Чек [20:28:41]line ПРОДАЖА [20:28:41]line ТРК (МРК, ГНК) : 32 [20:28:41]line Товар: 2710124130 [20:28:41]line Аи-92-К-2 [20:28:41]line 2.950 * 67.80 [20:28:41]line = 200.01 [20:28:41]line НДС 12% НСП 1% [20:28:41]line > о реализуемом товаре [20:28:41]line ОКРУГЛЕНИЕ: -0.01 [20:28:41]line ИТОГО: 200.00 [20:28:41]line Внесено: 200.00 [20:28:41]line СДАЧА: 0.00 [20:28:41]line НСП 1% : 1.77 [20:28:41]line НДС 12% : 21.24 [20:28:41]line Наличными: 200.00 [20:28:41]line Безнал.: 0.00 [20:28:41]line Место: АЗС № 127 "Партнер Нефть" [20:28:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:28:41]line СНО: Общий режим [20:28:41]line Чек 171 29.07.2024 20:28 [20:28:41]line Смена: 15 ФФД: 1.0 [20:28:41]line ЗНМ: 0300000161 [20:28:41]line РНМ: 0000000000189667 [20:28:41]line Версия ККМ: v1.0 [20:28:41]line ФМ: 0000000002094248 [20:28:41]line ФД: 2322 [20:28:41]line ФПД: 206060184783894 [20:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202840&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2322&fm=206060184783894&tin=02508201610067®Number=0000000000189667&sum=20000 [20:28:41]written 0, free lines is 4095 [20:28:41]OFD Sender: Processing packet 2322 [packets to send 1, broken 0] [20:28:41]ProducePacketName [20:28:41]name=ofd_packets/00002322 [20:28:41]OFD Sender: To server: pG, [20:28:41]CommunicateWithHost lk.salyk.kg:30040 [20:28:41]ConnectInit lk.salyk.kg [20:28:42]Write to MH i2c: 01 00 00 A3 01 A4 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: 01 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: 01 07 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 EB 0C A2 [20:28:42]RasterBufferAndPrint [20:28:42]line [20:28:42]line [20:28:42]line [20:28:42]line [20:28:42]line [20:28:42]written 0, free lines is 3328 [20:28:42]MH_Cut [20:28:42]Write to MH i2c: D1 01 00 AA 01 01 7D [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: D1 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: D1 01 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: D1 01 00 AA 01 00 7C [20:28:42]Write to MH i2c: 01 00 00 AB 01 AC [20:28:42]Connected sock=11 [20:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 CB 5A 07 01 55 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 78 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 09 00 00 35 04 06 00 BB 69 20 1D CC 16 40 78 6B 0D 90 51 5D 84 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 5F 29 47 00 A6 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 12 09 00 00 F4 03 04 00 E4 A6 A7 66 B6 04 01 00 00 AB 75 03 5F 56 9F 99 8D [20:28:42]CommunicateWithHost err = 0 [20:28:42]CheckOFDResponse [20:28:42]1017 (14) - 77093643461234 [20:28:42]1041 (16) - 0000000002094248 [20:28:42]1040 (4) - 2322 [20:28:42]1012 (4) - 29.07.2024 14:27 [20:28:42]1206 (1) - 0 [20:28:42]OFD Sender: Remove packet 2322 [20:28:42]ProducePacketName [20:28:42]name=ofd_packets/00002322 [20:28:42]NVStorageDeleteData [20:28:42]*** Cut start [20:28:42]*** Partial cut [20:28:42]*** CUTSNS_PIN = 1 [20:28:42]*** CUTSNS_PIN = 0 [20:28:43]*** Brake cut motor [20:28:43]OFD Sender: No OFD packet to send [20:28:43]Read from MH i2c: 01 [20:28:43]MH_I2C_Read... [20:28:43]*** Stop cut motor [20:28:43]*** Cut end [20:28:43]Read from MH i2c: 01 07 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [20:28:43]process_action close_receipt done [20:28:43]requested_data is exist [20:28:43]produce_requested_data [20:28:43]requested_item fm.sn is exist - process it [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 11 00 00 [20:28:43]Write to MH i2c: E2 08 00 AC 01 80 11 00 00 00 00 00 00 27 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 AC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 77 [20:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:28:43]wFMCommunicate OK [20:28:43]requested_item fd.num is exist - process it [20:28:43]SAM_PROTO_GetFieldsCounters [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 13 00 00 [20:28:43]Write to MH i2c: E2 08 00 AD 01 80 13 00 00 00 00 00 00 2A [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 62 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 62 00 AD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 12 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 12 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_GetFieldsCounters done [20:28:43]requested_item shift.num is exist - process it [20:28:43]requested_item shift.opened is exist - process it [20:28:43]req_shift_opened [20:28:43]FM_GetShiftState [20:28:43]SAM_PROTO_GetShiftState [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 13 01 00 [20:28:43]Write to MH i2c: E2 08 00 AE 01 80 13 01 00 00 00 00 00 2C [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0E 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0E 00 AE 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 25 [20:28:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_GetShiftState done [20:28:43]FM_GetShiftState done [20:28:43]req_shift_opened done [20:28:43]requested_item shift.open_date is exist - process it [20:28:43]req_shift_open_date [20:28:43]req_shift_open_date done [20:28:43]produce_requested_data done [20:28:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2322,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:28:43]process_action_free close_receipt [20:28:43]json_value_free [20:28:43]json_value_free done [20:28:43]process_json_proto returns [20:28:43]Send response to host [20:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2322,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:28:43]free response buf [20:28:43]execute_script done [20:28:43]execute_script returns [20:28:43]free content buf [20:28:43]Sock 7.Close socket [20:28:43]Sock 7.Thread stoped [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:53]accept exits with 9 [20:29:53]New connection [20:29:53]New thread 3067420004 created [20:29:53]Thread 3067276644 joined [20:29:53]Waiting for new connection... [20:29:53] Sock 9.Parse request [20:29:53]Sock 9.Check first char [20:29:53]Sock 9.First char is OK [20:29:53]request: POST /json_proto HTTP/1.0 [20:29:53]Method: POST [20:29:53]URL: /json_proto [20:29:53]Method is POST - this is cgi request [20:29:53]url: /json_proto [20:29:53]query_string will be loaded in cgi processing [20:29:53]execute_cgi json_proto POST (null) [20:29:53]execute_cgi path=json_proto method=POST [20:29:53]POST find Content-Length [20:29:53]Host: 172.17.45.132:8080 [20:29:53]Content-Length: 803 [20:29:53]Content-Type: application/json [20:29:53] [20:29:53]POST finish read [20:29:53]Found Content-Length = 803 [20:29:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 32.800, "sum" : 2450.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2450.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:53]execute_script... [20:29:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 32.800, "sum" : 2450.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2450.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:53]POST & json_proto [20:29:53]process_json_proto [20:29:53]json parsed OK: [20:29:53]protocol is kg_v1.0 [20:29:53]action value=close_receipt [20:29:53]process_action close_receipt [20:29:53]cmd_close_receipt [20:29:53]MH_GetDate [20:29:53]Write to MH i2c: F0 00 00 AF 01 9F [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: F0 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: F0 09 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: F0 09 00 AF 01 00 C1 FB A7 66 E3 0B 90 66 55 [20:29:53]GetLastDocTimeStamp 1722284920 [20:29:53]current date 1722284993 [20:29:53]FM_GetShiftState [20:29:53]SAM_PROTO_GetShiftState [20:29:53]wFMCommunicate request_size=4 [20:29:53]MH_SAM_APDU [20:29:53]CAPDU: 80 13 01 00 [20:29:53]Write to MH i2c: E2 08 00 B0 01 80 13 01 00 00 00 00 00 2E [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:53]Read from MH i2c: E2 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 0E 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 0E 00 B0 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 27 [20:29:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:29:53]wFMCommunicate OK [20:29:53]SAM_PROTO_GetShiftState done [20:29:53]FM_GetShiftState done [20:29:53]opened in 1722213119 [20:29:53]opened+sec_in_day 1722299519 [20:29:53]quantity*price = 245016 [20:29:53]sum+1 = 245017 [20:29:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2450.16 НСП 1% : 21.68 НДС 12% : 260.19 Наличными: 0.00 Безнал.: 2450.16 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 172 29.07.2024 20:29 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2323 ФПД: 24350959502253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202953&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2323&fm=24350959502253&tin=02508201610067®Number=0000000000189667&sum=245016 [20:29:54]StoreToDocumentArchive [20:29:54]shift 15 fd 2323 [20:29:54]save to /storage/0015/doc_00002323 [20:29:54]save last doc name /storage/0015/doc_00002323 to /storage/kkm_last_doc_name [20:29:54]save OK [20:29:54]Clear old archive folders... [20:29:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:54]tlvbuf is 010ED200 [20:29:54]SAM_PROTO_ClearQueue [20:29:54]wFMCommunicate request_size=4 [20:29:54]MH_SAM_APDU [20:29:54]CAPDU: 80 09 00 00 [20:29:54]Write to MH i2c: E2 08 00 BD 01 80 09 00 00 00 00 00 00 30 [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:54]Read from MH i2c: E2 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 BD 01 00 90 00 32 [20:29:54]RAPDU: 90 00 [20:29:54]wFMCommunicate OK [20:29:54]SAM_PROTO_ClearQueue done [20:29:54]KKMCreateOFDPacket [20:29:54]OFDProtocolAddRootSTLVToBuf [20:29:54]FM_MakeSignedData [20:29:54]FM_MakeSignedData [20:29:54]SAM_PROTO_SignData [20:29:54]wFMCommunicate request_size=4 [20:29:54]MH_SAM_APDU [20:29:54]CAPDU: 80 0D 01 02 [20:29:54]Write to MH i2c: E2 08 00 BE 01 80 0D 01 02 00 00 00 00 38 [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:54]Read from MH i2c: E2 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 BE 01 00 90 00 33 [20:29:54]RAPDU: 90 00 [20:29:54]wFMCommunicate OK [20:29:54]wFMCommunicate request_size=255 [20:29:54]MH_SAM_APDU [20:29:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 80 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 BD 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C1 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 09 00 00 35 04 06 00 16 [20:29:54]Write to MH i2c: E2 02 01 BF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 80 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 BD 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C1 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 09 00 00 35 04 06 00 16 00 00 FE [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:54]Read from MH i2c: E2 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 BF 01 00 90 00 34 [20:29:54]RAPDU: 90 00 [20:29:54]wFMCommunicate OK [20:29:54]wFMCommunicate request_size=10 [20:29:54]MH_SAM_APDU [20:29:54]CAPDU: 80 0D 02 02 05 25 A6 4A 83 AD [20:29:54]Write to MH i2c: E2 0D 00 C0 01 80 0D 02 02 05 00 25 A6 4A 83 AD 00 00 8A [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:54]Read from MH i2c: E2 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 03 00 C0 01 00 90 00 35 [20:29:54]RAPDU: 90 00 [20:29:54]wFMCommunicate OK [20:29:54]wFMCommunicate request_size=4 [20:29:54]MH_SAM_APDU [20:29:54]CAPDU: 80 0D 03 02 [20:29:54]Write to MH i2c: E2 08 00 C1 01 80 0D 03 02 00 00 00 00 3D [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:54]Read from MH i2c: E2 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 0B 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 0B 00 C1 01 00 E7 CC 9E 0F B2 03 4C 2D 90 00 CC [20:29:54]RAPDU: E7 CC 9E 0F B2 03 4C 2D 90 00 [20:29:54]wFMCommunicate OK [20:29:54]SAM_PROTO_SignData done [20:29:54]FM_MakeSignedData done [20:29:54]CreateOFDProtocolMessage [20:29:54]wFMCommunicate request_size=4 [20:29:54]MH_SAM_APDU [20:29:54]CAPDU: 80 11 00 00 [20:29:54]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:54]Read from MH i2c: E2 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 17 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8D [20:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:29:54]wFMCommunicate OK [20:29:54]CreateOFDProtocolMessage done [20:29:54]OFDSenderStorePacket 2323 [20:29:54]StoreOFDPacket docnum=2323 [20:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A4 8E 07 01 37 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 80 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 BD 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C1 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 09 00 00 35 04 06 00 16 25 A6 4A 83 AD E7 CC 9E 0F B2 03 4C 2D [20:29:54]CheckFolder [20:29:54]dirname=/storage/ofd_packets [20:29:54]CheckFolder done [20:29:54]ProducePacketName [20:29:54]name=ofd_packets/00002323 [20:29:54]NVStorageSaveData ofd_packets/00002323 [20:29:54]File name is /storage/ofd_packets/00002323 [20:29:54]Write 301 bytes [20:29:54]NVStorageSaveData done [20:29:54]OFDSenderStorePacket done [20:29:54]KKMCreateOFDPacket done [20:29:54]NVStorageSaveData kkm_last_timestamp [20:29:54]File name is /storage/kkm_last_timestamp [20:29:54]Write 4 bytes [20:29:54]NVStorageSaveData done [20:29:54]ExternCall_PrintAddStr [20:29:54]wPrintStart [20:29:54]Write to MH i2c: 01 00 00 C3 01 C4 [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: 01 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: 01 07 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [20:29:54]RasterBufferAndPrint [20:29:54]line Счет N : (1)610131 [20:29:54]line ИНН: 02508201610067 [20:29:54]line Контрольно-Кассовый Чек [20:29:54]line ПРОДАЖА [20:29:54]line ТРК (МРК, ГНК) : 43 [20:29:54]line Товар: 2710124500 [20:29:54]line Аи-95-К-3 [20:29:54]line 32.800 * 74.70 [20:29:54]line = 2450.16 [20:29:54]line НДС 12% НСП 1% [20:29:54]line > о реализуемом товаре [20:29:54]line ИТОГО: 2450.16 [20:29:54]line НСП 1% : 21.68 [20:29:54]line НДС 12% : 260.19 [20:29:54]line Наличными: 0.00 [20:29:54]line Безнал.: 2450.16 [20:29:54]line Место: АЗС № 127 "Партнер Нефть" [20:29:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:29:54]line СНО: Общий режим [20:29:54]line Чек 172 29.07.2024 20:29 [20:29:54]line Смена: 15 ФФД: 1.0 [20:29:54]line ЗНМ: 0300000161 [20:29:54]line РНМ: 0000000000189667 [20:29:54]line Версия ККМ: v1.0 [20:29:54]line Платежная система: O! деньги [20:29:54]line ФМ: 0000000002094248 [20:29:54]line ФД: 2323 [20:29:54]line ФПД: 24350959502253 [20:29:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202953&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2323&fm=24350959502253&tin=02508201610067®Number=0000000000189667&sum=245016 [20:29:55]OFD Sender: Processing packet 2323 [packets to send 1, broken 0] [20:29:55]ProducePacketName [20:29:55]name=ofd_packets/00002323 [20:29:55]OFD Sender: To server: pG, [20:29:55]CommunicateWithHost lk.salyk.kg:30040 [20:29:55]ConnectInit lk.salyk.kg [20:29:55]written 0, free lines is 4095 [20:29:55]Connected sock=10 [20:29:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A4 8E 07 01 37 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 80 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 BD 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C1 FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 13 09 00 00 35 04 06 00 16 25 A6 4A 83 AD E7 CC 9E 0F B2 03 4C 2D [20:29:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BC B8 47 00 87 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 32 30 39 34 32 34 38 10 04 04 00 13 09 00 00 F4 03 04 00 2D A7 A7 66 B6 04 01 00 00 2A 19 B4 16 CB 40 8B B6 [20:29:55]CommunicateWithHost err = 0 [20:29:55]CheckOFDResponse [20:29:55]1017 (14) - 77093643461234 [20:29:55]1041 (16) - 0000000002094248 [20:29:55]1040 (4) - 2323 [20:29:55]1012 (4) - 29.07.2024 14:29 [20:29:55]1206 (1) - 0 [20:29:55]OFD Sender: Remove packet 2323 [20:29:55]ProducePacketName [20:29:55]name=ofd_packets/00002323 [20:29:55]NVStorageDeleteData [20:29:55]Write to MH i2c: 01 00 00 ED 01 EE [20:29:55]Write i2c OK [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: 01 [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: 01 07 00 [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 0F 0D 11 [20:29:55]RasterBufferAndPrint [20:29:55]line [20:29:55]line [20:29:55]line [20:29:55]line [20:29:55]line [20:29:55]written 0, free lines is 3350 [20:29:55]MH_Cut [20:29:55]Write to MH i2c: D1 01 00 F4 01 01 C7 [20:29:55]Write i2c OK [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: D1 [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: D1 01 00 [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: D1 01 00 F4 01 00 C6 [20:29:55]Write to MH i2c: 01 00 00 F5 01 F6 [20:29:55]Write i2c OK [20:29:55]MH_I2C_Read... [20:29:56]OFD Sender: No OFD packet to send [20:29:56]*** Cut start [20:29:56]*** Partial cut [20:29:56]*** CUTSNS_PIN = 1 [20:29:56]*** CUTSNS_PIN = 0 [20:29:56]*** Brake cut motor [20:29:57]Read from MH i2c: 01 [20:29:57]MH_I2C_Read... [20:29:57]*** Stop cut motor [20:29:57]*** Cut end [20:29:57]Read from MH i2c: 01 07 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [20:29:57]process_action close_receipt done [20:29:57]requested_data is exist [20:29:57]produce_requested_data [20:29:57]requested_item fm.sn is exist - process it [20:29:57]wFMCommunicate request_size=4 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 11 00 00 [20:29:57]Write to MH i2c: E2 08 00 F6 01 80 11 00 00 00 00 00 00 71 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 17 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 17 00 F6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C1 [20:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:29:57]wFMCommunicate OK [20:29:57]requested_item fd.num is exist - process it [20:29:57]SAM_PROTO_GetFieldsCounters [20:29:57]wFMCommunicate request_size=4 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 13 00 00 [20:29:57]Write to MH i2c: E2 08 00 F7 01 80 13 00 00 00 00 00 00 74 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 62 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 62 00 F7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 13 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [20:29:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 13 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:57]wFMCommunicate OK [20:29:57]SAM_PROTO_GetFieldsCounters done [20:29:57]requested_item shift.num is exist - process it [20:29:57]requested_item shift.opened is exist - process it [20:29:57]req_shift_opened [20:29:57]FM_GetShiftState [20:29:57]SAM_PROTO_GetShiftState [20:29:57]wFMCommunicate request_size=4 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 13 01 00 [20:29:57]Write to MH i2c: E2 08 00 F8 01 80 13 01 00 00 00 00 00 76 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 0E 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 0E 00 F8 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6F [20:29:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:29:57]wFMCommunicate OK [20:29:57]SAM_PROTO_GetShiftState done [20:29:57]FM_GetShiftState done [20:29:57]req_shift_opened done [20:29:57]requested_item shift.open_date is exist - process it [20:29:57]req_shift_open_date [20:29:57]req_shift_open_date done [20:29:57]produce_requested_data done [20:29:57]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2323,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:29:57]process_action_free close_receipt [20:29:57]json_value_free [20:29:57]json_value_free done [20:29:57]process_json_proto returns [20:29:57]Send response to host [20:29:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2323,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:29:57]free response buf [20:29:57]execute_script done [20:29:57]execute_script returns [20:29:57]free content buf [20:29:57]Sock 9.Close socket [20:29:57]Sock 9.Thread stoped [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:55]accept exits with 7 [20:30:55]New connection [20:30:55]New thread 3067276644 created [20:30:55]Thread 3067420004 joined [20:30:55]Waiting for new connection... [20:30:55] Sock 7.Parse request [20:30:55]Sock 7.Check first char [20:30:55]Sock 7.First char is OK [20:30:55]request: POST /json_proto HTTP/1.0 [20:30:55]Method: POST [20:30:55]URL: /json_proto [20:30:55]Method is POST - this is cgi request [20:30:55]url: /json_proto [20:30:55]query_string will be loaded in cgi processing [20:30:55]execute_cgi json_proto POST (null) [20:30:55]execute_cgi path=json_proto method=POST [20:30:55]POST find Content-Length [20:30:55]Host: 172.17.45.132:8080 [20:30:55]Content-Length: 678 [20:30:55]Content-Type: application/json [20:30:55] [20:30:55]POST finish read [20:30:55]Found Content-Length = 678 [20:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 25.570, "sum" : 1935.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1935.00, "total" : 1935.00, "payments": [ { "type": 0, "sum" : 1935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:55]execute_script... [20:30: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)610132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 25.570, "sum" : 1935.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1935.00, "total" : 1935.00, "payments": [ { "type": 0, "sum" : 1935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:55]POST & json_proto [20:30:55]process_json_proto [20:30:55]json parsed OK: [20:30:55]protocol is kg_v1.0 [20:30:55]action value=close_receipt [20:30:55]process_action close_receipt [20:30:55]cmd_close_receipt [20:30:55]MH_GetDate [20:30:55]Write to MH i2c: F0 00 00 F9 01 E9 [20:30:55]Write i2c OK [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: F0 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: F0 09 00 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: F0 09 00 F9 01 00 FF FB A7 66 E3 0B 90 66 DD [20:30:55]GetLastDocTimeStamp 1722284993 [20:30:55]current date 1722285055 [20:30:55]FM_GetShiftState [20:30:55]SAM_PROTO_GetShiftState [20:30:55]wFMCommunicate request_size=4 [20:30:55]MH_SAM_APDU [20:30:55]CAPDU: 80 13 01 00 [20:30:55]Write to MH i2c: E2 08 00 FA 01 80 13 01 00 00 00 00 00 78 [20:30:55]Write i2c OK [20:30:55]MH_I2C_Read... [20:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:55]Read from MH i2c: E2 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: E2 0E 00 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: E2 0E 00 FA 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 71 [20:30:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:30:55]wFMCommunicate OK [20:30:55]SAM_PROTO_GetShiftState done [20:30:55]FM_GetShiftState done [20:30:55]opened in 1722213119 [20:30:55]opened+sec_in_day 1722299519 [20:30:55]quantity*price = 193564 [20:30:55]sum+1 = 193566 [20:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1935.00 Внесено: 1935.00 СДАЧА: 0.00 НСП 1% : 17.13 НДС 12% : 205.56 Наличными: 1935.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 173 29.07.2024 20:30 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2324 ФПД: 167631414329435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203055&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2324&fm=167631414329435&tin=02508201610067®Number=0000000000189667&sum=193500 [20:30:56]StoreToDocumentArchive [20:30:56]shift 15 fd 2324 [20:30:56]save to /storage/0015/doc_00002324 [20:30:56]save last doc name /storage/0015/doc_00002324 to /storage/kkm_last_doc_name [20:30:56]save OK [20:30:56]Clear old archive folders... [20:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:30:56]tlvbuf is 010FF640 [20:30:56]SAM_PROTO_ClearQueue [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 09 00 00 [20:30:56]Write to MH i2c: E2 08 00 07 02 80 09 00 00 00 00 00 00 7B [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 07 02 00 90 00 7D [20:30:56]RAPDU: 90 00 [20:30:56]wFMCommunicate OK [20:30:56]SAM_PROTO_ClearQueue done [20:30:56]KKMCreateOFDPacket [20:30:56]OFDProtocolAddRootSTLVToBuf [20:30:56]FM_MakeSignedData [20:30:56]FM_MakeSignedData [20:30:56]SAM_PROTO_SignData [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 0D 01 02 [20:30:56]Write to MH i2c: E2 08 00 08 02 80 0D 01 02 00 00 00 00 83 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 08 02 00 90 00 7E [20:30:56]RAPDU: 90 00 [20:30:56]wFMCommunicate OK [20:30:56]wFMCommunicate request_size=255 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 63 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 1D F4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC F3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 50 00 00 00 00 07 04 06 00 DC F3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FF FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 09 00 00 35 04 06 00 98 75 BA E7 [20:30:56]Write to MH i2c: E2 02 01 09 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 63 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 1D F4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC F3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 50 00 00 00 00 07 04 06 00 DC F3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FF FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 09 00 00 35 04 06 00 98 75 BA E7 00 00 70 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 09 02 00 90 00 7F [20:30:56]RAPDU: 90 00 [20:30:56]wFMCommunicate OK [20:30:56]wFMCommunicate request_size=7 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 0D 02 02 02 80 5B [20:30:56]Write to MH i2c: E2 0A 00 0A 02 80 0D 02 02 02 00 80 5B 00 00 65 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [20:30:56]RAPDU: 90 00 [20:30:56]wFMCommunicate OK [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 0D 03 02 [20:30:56]Write to MH i2c: E2 08 00 0B 02 80 0D 03 02 00 00 00 00 88 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 0B 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 0B 00 0B 02 00 BB F9 FE 96 17 59 8F 6F 90 00 3F [20:30:56]RAPDU: BB F9 FE 96 17 59 8F 6F 90 00 [20:30:56]wFMCommunicate OK [20:30:56]SAM_PROTO_SignData done [20:30:56]FM_MakeSignedData done [20:30:56]CreateOFDProtocolMessage [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 11 00 00 [20:30:56]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 17 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [20:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:30:56]wFMCommunicate OK [20:30:56]CreateOFDProtocolMessage done [20:30:56]OFDSenderStorePacket 2324 [20:30:56]StoreOFDPacket docnum=2324 [20:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 E0 55 04 01 A8 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 63 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 1D F4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC F3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 50 00 00 00 00 07 04 06 00 DC F3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FF FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 09 00 00 35 04 06 00 98 75 BA E7 80 5B BB F9 FE 96 17 59 8F 6F [20:30:56]CheckFolder [20:30:56]dirname=/storage/ofd_packets [20:30:56]CheckFolder done [20:30:56]ProducePacketName [20:30:56]name=ofd_packets/00002324 [20:30:56]NVStorageSaveData ofd_packets/00002324 [20:30:56]File name is /storage/ofd_packets/00002324 [20:30:56]Write 298 bytes [20:30:56]NVStorageSaveData done [20:30:56]OFDSenderStorePacket done [20:30:56]KKMCreateOFDPacket done [20:30:56]NVStorageSaveData kkm_last_timestamp [20:30:56]File name is /storage/kkm_last_timestamp [20:30:56]Write 4 bytes [20:30:56]NVStorageSaveData done [20:30:56]ExternCall_PrintAddStr [20:30:56]wPrintStart [20:30:56]Write to MH i2c: 01 00 00 0D 02 0F [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: 01 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: 01 07 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [20:30:56]RasterBufferAndPrint [20:30:56]line Счет N : (1)610132 [20:30:56]line ИНН: 02508201610067 [20:30:56]line Контрольно-Кассовый Чек [20:30:56]line ПРОДАЖА [20:30:56]line ТРК (МРК, ГНК) : 1 [20:30:56]line Товар: 2710194210 [20:30:56]line ДТ-К-2 [20:30:56]line 25.570 * 75.70 [20:30:56]line = 1935.65 [20:30:56]line НДС 12% НСП 1% [20:30:56]line > о реализуемом товаре [20:30:56]line ОКРУГЛЕНИЕ: -0.65 [20:30:56]line ИТОГО: 1935.00 [20:30:56]line Внесено: 1935.00 [20:30:56]line СДАЧА: 0.00 [20:30:56]line НСП 1% : 17.13 [20:30:56]line НДС 12% : 205.56 [20:30:56]line Наличными: 1935.00 [20:30:56]line Безнал.: 0.00 [20:30:56]line Место: АЗС № 127 "Партнер Нефть" [20:30:56]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:30:56]line СНО: Общий режим [20:30:56]line Чек 173 29.07.2024 20:30 [20:30:56]line Смена: 15 ФФД: 1.0 [20:30:56]line ЗНМ: 0300000161 [20:30:56]line РНМ: 0000000000189667 [20:30:56]line Версия ККМ: v1.0 [20:30:56]line ФМ: 0000000002094248 [20:30:56]line ФД: 2324 [20:30:56]line ФПД: 167631414329435 [20:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203055&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2324&fm=167631414329435&tin=02508201610067®Number=0000000000189667&sum=193500 [20:30:57]OFD Sender: Processing packet 2324 [packets to send 1, broken 0] [20:30:57]ProducePacketName [20:30:57]name=ofd_packets/00002324 [20:30:57]OFD Sender: To server: pG, [20:30:57]CommunicateWithHost lk.salyk.kg:30040 [20:30:57]ConnectInit lk.salyk.kg [20:30:57]written 0, free lines is 4095 [20:30:57]Connected sock=10 [20:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 E0 55 04 01 A8 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E2 63 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 1D F4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC F3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 50 00 00 00 00 07 04 06 00 DC F3 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FF FB A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 14 09 00 00 35 04 06 00 98 75 BA E7 80 5B BB F9 FE 96 17 59 8F 6F [20:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FE 9F 47 00 84 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 32 30 39 34 32 34 38 10 04 04 00 14 09 00 00 F4 03 04 00 6B A7 A7 66 B6 04 01 00 00 41 C2 99 FB 0A B5 E4 71 [20:30:57]CommunicateWithHost err = 0 [20:30:57]CheckOFDResponse [20:30:57]1017 (14) - 77093643461234 [20:30:57]1041 (16) - 0000000002094248 [20:30:57]1040 (4) - 2324 [20:30:57]1012 (4) - 29.07.2024 14:30 [20:30:57]1206 (1) - 0 [20:30:57]OFD Sender: Remove packet 2324 [20:30:57]ProducePacketName [20:30:57]name=ofd_packets/00002324 [20:30:57]NVStorageDeleteData [20:30:57]Write to MH i2c: 01 00 00 38 02 3A [20:30:57]Write i2c OK [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: 01 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: 01 07 00 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 F8 0C 45 [20:30:57]RasterBufferAndPrint [20:30:57]line [20:30:57]line [20:30:57]line [20:30:57]line [20:30:57]line [20:30:57]written 0, free lines is 3327 [20:30:57]MH_Cut [20:30:57]Write to MH i2c: D1 01 00 3F 02 01 13 [20:30:57]Write i2c OK [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: D1 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: D1 01 00 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: D1 01 00 3F 02 00 12 [20:30:57]Write to MH i2c: 01 00 00 40 02 42 [20:30:57]Write i2c OK [20:30:57]MH_I2C_Read... [20:30:58]OFD Sender: No OFD packet to send [20:30:58]*** Cut start [20:30:58]*** Partial cut [20:30:58]*** CUTSNS_PIN = 1 [20:30:58]*** CUTSNS_PIN = 0 [20:30:58]*** Brake cut motor [20:30:58]Read from MH i2c: 01 [20:30:58]MH_I2C_Read... [20:30:58]*** Stop cut motor [20:30:58]*** Cut end [20:30:58]Read from MH i2c: 01 07 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: 01 07 00 40 02 00 00 00 00 00 FF 0F 57 [20:30:58]process_action close_receipt done [20:30:58]requested_data is exist [20:30:58]produce_requested_data [20:30:58]requested_item fm.sn is exist - process it [20:30:58]wFMCommunicate request_size=4 [20:30:58]MH_SAM_APDU [20:30:58]CAPDU: 80 11 00 00 [20:30:58]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 17 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 17 00 41 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0D [20:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:30:59]wFMCommunicate OK [20:30:59]requested_item fd.num is exist - process it [20:30:59]SAM_PROTO_GetFieldsCounters [20:30:59]wFMCommunicate request_size=4 [20:30:59]MH_SAM_APDU [20:30:59]CAPDU: 80 13 00 00 [20:30:59]Write to MH i2c: E2 08 00 42 02 80 13 00 00 00 00 00 00 C0 [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 62 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 62 00 42 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 14 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [20:30:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 14 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:59]wFMCommunicate OK [20:30:59]SAM_PROTO_GetFieldsCounters done [20:30:59]requested_item shift.num is exist - process it [20:30:59]requested_item shift.opened is exist - process it [20:30:59]req_shift_opened [20:30:59]FM_GetShiftState [20:30:59]SAM_PROTO_GetShiftState [20:30:59]wFMCommunicate request_size=4 [20:30:59]MH_SAM_APDU [20:30:59]CAPDU: 80 13 01 00 [20:30:59]Write to MH i2c: E2 08 00 43 02 80 13 01 00 00 00 00 00 C2 [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 43 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BB [20:30:59]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:30:59]wFMCommunicate OK [20:30:59]SAM_PROTO_GetShiftState done [20:30:59]FM_GetShiftState done [20:30:59]req_shift_opened done [20:30:59]requested_item shift.open_date is exist - process it [20:30:59]req_shift_open_date [20:30:59]req_shift_open_date done [20:30:59]produce_requested_data done [20:30:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2324,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:30:59]process_action_free close_receipt [20:30:59]json_value_free [20:30:59]json_value_free done [20:30:59]process_json_proto returns [20:30:59]Send response to host [20:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2324,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:30:59]free response buf [20:30:59]execute_script done [20:30:59]execute_script returns [20:30:59]free content buf [20:30:59]Sock 7.Close socket [20:30:59]Sock 7.Thread stoped [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:49]accept exits with 9 [20:33:49]New connection [20:33:49]New thread 3067420004 created [20:33:49]Thread 3067276644 joined [20:33:49]Waiting for new connection... [20:33:49] Sock 9.Parse request [20:33:49]Sock 9.Check first char [20:33:49]Sock 9.First char is OK [20:33:49]request: POST /json_proto HTTP/1.0 [20:33:49]Method: POST [20:33:49]URL: /json_proto [20:33:49]Method is POST - this is cgi request [20:33:49]url: /json_proto [20:33:49]query_string will be loaded in cgi processing [20:33:49]execute_cgi json_proto POST (null) [20:33:49]execute_cgi path=json_proto method=POST [20:33:49]POST find Content-Length [20:33:49]Host: 172.17.45.132:8080 [20:33:49]Content-Length: 803 [20:33:49]Content-Type: application/json [20:33:49] [20:33:49]POST finish read [20:33:49]Found Content-Length = 803 [20:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 13.520, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:49]execute_script... [20:33:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 13.520, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:49]POST & json_proto [20:33:49]process_json_proto [20:33:49]json parsed OK: [20:33:49]protocol is kg_v1.0 [20:33:49]action value=close_receipt [20:33:49]process_action close_receipt [20:33:49]cmd_close_receipt [20:33:49]MH_GetDate [20:33:49]Write to MH i2c: F0 00 00 44 02 35 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: F0 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: F0 09 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: F0 09 00 44 02 00 AE FC A7 66 E3 0B 90 66 D9 [20:33:49]GetLastDocTimeStamp 1722285055 [20:33:49]current date 1722285230 [20:33:49]FM_GetShiftState [20:33:49]SAM_PROTO_GetShiftState [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 13 01 00 [20:33:49]Write to MH i2c: E2 08 00 45 02 80 13 01 00 00 00 00 00 C4 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0E 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0E 00 45 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BD [20:33:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:33:49]wFMCommunicate OK [20:33:49]SAM_PROTO_GetShiftState done [20:33:49]FM_GetShiftState done [20:33:49]opened in 1722213119 [20:33:49]opened+sec_in_day 1722299519 [20:33:49]quantity*price = 50024 [20:33:49]sum+1 = 50025 [20:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 174 29.07.2024 20:33 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2325 ФПД: 68955663649670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203350&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2325&fm=68955663649670&tin=02508201610067®Number=0000000000189667&sum=50024 [20:33:51]StoreToDocumentArchive [20:33:51]shift 15 fd 2325 [20:33:51]save to /storage/0015/doc_00002325 [20:33:51]save last doc name /storage/0015/doc_00002325 to /storage/kkm_last_doc_name [20:33:51]save OK [20:33:51]Clear old archive folders... [20:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:33:51]tlvbuf is 010F8FD0 [20:33:51]SAM_PROTO_ClearQueue [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 09 00 00 [20:33:51]Write to MH i2c: E2 08 00 52 02 80 09 00 00 00 00 00 00 C6 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 52 02 00 90 00 C8 [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]SAM_PROTO_ClearQueue done [20:33:51]KKMCreateOFDPacket [20:33:51]OFDProtocolAddRootSTLVToBuf [20:33:51]FM_MakeSignedData [20:33:51]FM_MakeSignedData [20:33:51]SAM_PROTO_SignData [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 0D 01 02 [20:33:51]Write to MH i2c: E2 08 00 53 02 80 0D 01 02 00 00 00 00 CE [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]wFMCommunicate request_size=255 [20:33:51]MH_SAM_APDU [20:33:51]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 33 FF 03 08 00 03 D0 34 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AE FC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 09 00 00 35 04 06 00 3E B6 [20:33:51]Write to MH i2c: E2 02 01 54 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 33 FF 03 08 00 03 D0 34 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AE FC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 09 00 00 35 04 06 00 3E B6 00 00 A3 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]wFMCommunicate request_size=9 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 0D 02 02 04 FD D6 4B 86 [20:33:51]Write to MH i2c: E2 0C 00 55 02 80 0D 02 02 04 00 FD D6 4B 86 00 00 7D [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 0D 03 02 [20:33:51]Write to MH i2c: E2 08 00 56 02 80 0D 03 02 00 00 00 00 D3 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0B 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0B 00 56 02 00 2A 88 1C A9 12 17 9F BF 90 00 D2 [20:33:51]RAPDU: 2A 88 1C A9 12 17 9F BF 90 00 [20:33:51]wFMCommunicate OK [20:33:51]SAM_PROTO_SignData done [20:33:51]FM_MakeSignedData done [20:33:51]CreateOFDProtocolMessage [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 11 00 00 [20:33:51]Write to MH i2c: E2 08 00 57 02 80 11 00 00 00 00 00 00 D3 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 57 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 23 [20:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:33:51]wFMCommunicate OK [20:33:51]CreateOFDProtocolMessage done [20:33:51]OFDSenderStorePacket 2325 [20:33:51]StoreOFDPacket docnum=2325 [20:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 F0 0A 06 01 C4 3E 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 33 FF 03 08 00 03 D0 34 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AE FC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 09 00 00 35 04 06 00 3E B6 FD D6 4B 86 2A 88 1C A9 12 17 9F BF [20:33:51]CheckFolder [20:33:51]dirname=/storage/ofd_packets [20:33:51]CheckFolder done [20:33:51]ProducePacketName [20:33:51]name=ofd_packets/00002325 [20:33:51]NVStorageSaveData ofd_packets/00002325 [20:33:51]File name is /storage/ofd_packets/00002325 [20:33:51]Write 300 bytes [20:33:51]NVStorageSaveData done [20:33:51]OFDSenderStorePacket done [20:33:51]KKMCreateOFDPacket done [20:33:51]NVStorageSaveData kkm_last_timestamp [20:33:51]File name is /storage/kkm_last_timestamp [20:33:51]Write 4 bytes [20:33:51]NVStorageSaveData done [20:33:51]ExternCall_PrintAddStr [20:33:51]wPrintStart [20:33:51]Write to MH i2c: 01 00 00 58 02 5A [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [20:33:51]RasterBufferAndPrint [20:33:51]line Счет N : (1)610133 [20:33:51]line ИНН: 02508201610067 [20:33:51]line Контрольно-Кассовый Чек [20:33:51]line ПРОДАЖА [20:33:51]line ТРК (МРК, ГНК) : 7 [20:33:51]line Товар: 2711190000 [20:33:51]line ГАЗ-К-3 [20:33:51]line 13.520 * 37.00 [20:33:51]line = 500.24 [20:33:51]line НДС 12% НСП 1% [20:33:51]line > о реализуемом товаре [20:33:51]line ИТОГО: 500.24 [20:33:51]line НСП 1% : 4.43 [20:33:51]line НДС 12% : 53.12 [20:33:51]line Наличными: 0.00 [20:33:51]line Безнал.: 500.24 [20:33:51]line Место: АЗС № 127 "Партнер Нефть" [20:33:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:33:51]line СНО: Общий режим [20:33:51]line Чек 174 29.07.2024 20:33 [20:33:51]line Смена: 15 ФФД: 1.0 [20:33:51]line ЗНМ: 0300000161 [20:33:51]line РНМ: 0000000000189667 [20:33:51]line Версия ККМ: v1.0 [20:33:51]line Платежная система: O! деньги [20:33:51]line ФМ: 0000000002094248 [20:33:51]line ФД: 2325 [20:33:51]line ФПД: 68955663649670 [20:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203350&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2325&fm=68955663649670&tin=02508201610067®Number=0000000000189667&sum=50024 [20:33:51]OFD Sender: Processing packet 2325 [packets to send 1, broken 0] [20:33:51]ProducePacketName [20:33:51]name=ofd_packets/00002325 [20:33:51]OFD Sender: To server: pG, [20:33:51]CommunicateWithHost lk.salyk.kg:30040 [20:33:51]ConnectInit lk.salyk.kg [20:33:51]written 0, free lines is 4095 [20:33:52]Connected sock=10 [20:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 F0 0A 06 01 C4 3E 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 33 FF 03 08 00 03 D0 34 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 AE FC A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 15 09 00 00 35 04 06 00 3E B6 FD D6 4B 86 2A 88 1C A9 12 17 9F BF [20:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 97 3C 47 00 9E 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 32 30 39 34 32 34 38 10 04 04 00 15 09 00 00 F4 03 04 00 19 A8 A7 66 B6 04 01 00 00 06 AE 86 9A CC F4 77 28 [20:33:52]CommunicateWithHost err = 0 [20:33:52]CheckOFDResponse [20:33:52]1017 (14) - 77093643461234 [20:33:52]1041 (16) - 0000000002094248 [20:33:52]1040 (4) - 2325 [20:33:52]1012 (4) - 29.07.2024 14:32 [20:33:52]1206 (1) - 0 [20:33:52]OFD Sender: Remove packet 2325 [20:33:52]ProducePacketName [20:33:52]name=ofd_packets/00002325 [20:33:52]NVStorageDeleteData [20:33:52]Write to MH i2c: 01 00 00 82 02 84 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: 01 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: 01 07 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 0A 0D A2 [20:33:52]RasterBufferAndPrint [20:33:52]line [20:33:52]line [20:33:52]line [20:33:52]line [20:33:52]line [20:33:52]written 0, free lines is 3344 [20:33:52]MH_Cut [20:33:52]Write to MH i2c: D1 01 00 89 02 01 5D [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: D1 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: D1 01 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: D1 01 00 89 02 00 5C [20:33:52]Write to MH i2c: 01 00 00 8A 02 8C [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]OFD Sender: No OFD packet to send [20:33:53]*** Cut start [20:33:53]*** Partial cut [20:33:53]*** CUTSNS_PIN = 1 [20:33:53]*** CUTSNS_PIN = 0 [20:33:53]*** Brake cut motor [20:33:53]Read from MH i2c: 01 [20:33:53]MH_I2C_Read... [20:33:53]*** Stop cut motor [20:33:53]*** Cut end [20:33:53]Read from MH i2c: 01 07 00 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [20:33:53]process_action close_receipt done [20:33:53]requested_data is exist [20:33:53]produce_requested_data [20:33:53]requested_item fm.sn is exist - process it [20:33:53]wFMCommunicate request_size=4 [20:33:53]MH_SAM_APDU [20:33:53]CAPDU: 80 11 00 00 [20:33:53]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [20:33:53]Write i2c OK [20:33:53]MH_I2C_Read... [20:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:53]Read from MH i2c: E2 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: E2 17 00 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 57 [20:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:33:53]wFMCommunicate OK [20:33:53]requested_item fd.num is exist - process it [20:33:53]SAM_PROTO_GetFieldsCounters [20:33:53]wFMCommunicate request_size=4 [20:33:53]MH_SAM_APDU [20:33:53]CAPDU: 80 13 00 00 [20:33:53]Write to MH i2c: E2 08 00 8C 02 80 13 00 00 00 00 00 00 0A [20:33:53]Write i2c OK [20:33:53]MH_I2C_Read... [20:33:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:53]Read from MH i2c: E2 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: E2 62 00 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: E2 62 00 8C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 15 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [20:33:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 15 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:53]wFMCommunicate OK [20:33:53]SAM_PROTO_GetFieldsCounters done [20:33:53]requested_item shift.num is exist - process it [20:33:53]requested_item shift.opened is exist - process it [20:33:53]req_shift_opened [20:33:53]FM_GetShiftState [20:33:53]SAM_PROTO_GetShiftState [20:33:53]wFMCommunicate request_size=4 [20:33:53]MH_SAM_APDU [20:33:53]CAPDU: 80 13 01 00 [20:33:53]Write to MH i2c: E2 08 00 8D 02 80 13 01 00 00 00 00 00 0C [20:33:53]Write i2c OK [20:33:53]MH_I2C_Read... [20:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:53]Read from MH i2c: E2 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: E2 0E 00 [20:33:53]MH_I2C_Read... [20:33:53]Read from MH i2c: E2 0E 00 8D 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 05 [20:33:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:33:53]wFMCommunicate OK [20:33:53]SAM_PROTO_GetShiftState done [20:33:53]FM_GetShiftState done [20:33:53]req_shift_opened done [20:33:53]requested_item shift.open_date is exist - process it [20:33:53]req_shift_open_date [20:33:53]req_shift_open_date done [20:33:53]produce_requested_data done [20:33:53]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2325,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:33:53]process_action_free close_receipt [20:33:53]json_value_free [20:33:53]json_value_free done [20:33:53]process_json_proto returns [20:33:53]Send response to host [20:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2325,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:33:53]free response buf [20:33:53]execute_script done [20:33:53]execute_script returns [20:33:53]free content buf [20:33:53]Sock 9.Close socket [20:33:53]Sock 9.Thread stoped [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]accept exits with 7 [20:35:37]New connection [20:35:37]New thread 3067276644 created [20:35:37]Thread 3067420004 joined [20:35:37]Waiting for new connection... [20:35:37] Sock 7.Parse request [20:35:37]Sock 7.Check first char [20:35:37]Sock 7.First char is OK [20:35:37]request: POST /json_proto HTTP/1.0 [20:35:37]Method: POST [20:35:37]URL: /json_proto [20:35:37]Method is POST - this is cgi request [20:35:37]url: /json_proto [20:35:37]query_string will be loaded in cgi processing [20:35:37]execute_cgi json_proto POST (null) [20:35:37]execute_cgi path=json_proto method=POST [20:35:37]POST find Content-Length [20:35:37]Host: 172.17.45.132:8080 [20:35:37]Content-Length: 876 [20:35:37]Content-Type: application/json [20:35:37] [20:35:37]POST finish read [20:35:37]Found Content-Length = 876 [20:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126562", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:37]execute_script... [20:35: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)126562", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:37]POST & json_proto [20:35:37]process_json_proto [20:35:37]json parsed OK: [20:35:37]protocol is kg_v1.0 [20:35:37]action value=close_receipt [20:35:37]process_action close_receipt [20:35:37]cmd_close_receipt [20:35:37]MH_GetDate [20:35:37]Write to MH i2c: F0 00 00 8E 02 7F [20:35:37]Write i2c OK [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: F0 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: F0 09 00 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: F0 09 00 8E 02 00 19 FD A7 66 E3 0B 90 66 8F [20:35:37]GetLastDocTimeStamp 1722285230 [20:35:37]current date 1722285337 [20:35:37]FM_GetShiftState [20:35:37]SAM_PROTO_GetShiftState [20:35:37]wFMCommunicate request_size=4 [20:35:37]MH_SAM_APDU [20:35:37]CAPDU: 80 13 01 00 [20:35:37]Write to MH i2c: E2 08 00 8F 02 80 13 01 00 00 00 00 00 0E [20:35:37]Write i2c OK [20:35:37]MH_I2C_Read... [20:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:37]Read from MH i2c: E2 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: E2 0E 00 [20:35:37]MH_I2C_Read... [20:35:37]Read from MH i2c: E2 0E 00 8F 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 07 [20:35:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:35:37]wFMCommunicate OK [20:35:37]SAM_PROTO_GetShiftState done [20:35:37]FM_GetShiftState done [20:35:37]opened in 1722213119 [20:35:37]opened+sec_in_day 1722299519 [20:35:37]quantity*price = 5000 [20:35:37]sum+1 = 5001 [20:35:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 175 29.07.2024 20:35 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2326 ФПД: 248390381458132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203537&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2326&fm=248390381458132&tin=02508201610067®Number=0000000000189667&sum=20000 0 [20:35:38]StoreToDocumentArchive [20:35:38]shift 15 fd 2326 [20:35:38]save to /storage/0015/doc_00002326 [20:35:38]save last doc name /storage/0015/doc_00002326 to /storage/kkm_last_doc_name [20:35:38]save OK [20:35:38]Clear old archive folders... [20:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=376 [20:35:38]tlvbuf is 010FA920 [20:35:38]SAM_PROTO_ClearQueue [20:35:38]wFMCommunicate request_size=4 [20:35:38]MH_SAM_APDU [20:35:38]CAPDU: 80 09 00 00 [20:35:38]Write to MH i2c: E2 08 00 9C 02 80 09 00 00 00 00 00 00 10 [20:35:38]Write i2c OK [20:35:38]MH_I2C_Read... [20:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:38]Read from MH i2c: E2 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [20:35:38]RAPDU: 90 00 [20:35:38]wFMCommunicate OK [20:35:38]SAM_PROTO_ClearQueue done [20:35:38]KKMCreateOFDPacket [20:35:38]OFDProtocolAddRootSTLVToBuf [20:35:38]FM_MakeSignedData [20:35:38]FM_MakeSignedData [20:35:38]SAM_PROTO_SignData [20:35:38]wFMCommunicate request_size=4 [20:35:38]MH_SAM_APDU [20:35:38]CAPDU: 80 0D 01 02 [20:35:38]Write to MH i2c: E2 08 00 9D 02 80 0D 01 02 00 00 00 00 18 [20:35:38]Write i2c OK [20:35:38]MH_I2C_Read... [20:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:38]Read from MH i2c: E2 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [20:35:38]RAPDU: 90 00 [20:35:38]wFMCommunicate OK [20:35:38]wFMCommunicate request_size=255 [20:35:38]MH_SAM_APDU [20:35:38]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 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 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 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 [20:35:38]Write to MH i2c: E2 02 01 9E 02 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 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 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 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 00 00 49 [20:35:38]Write i2c OK [20:35:38]MH_I2C_Read... [20:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:38]Read from MH i2c: E2 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 [20:35:38]MH_I2C_Read... [20:35:38]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [20:35:38]RAPDU: 90 00 [20:35:38]wFMCommunicate OK [20:35:38]wFMCommunicate request_size=135 [20:35:38]MH_SAM_APDU [20:35:38]CAPDU: 80 0D 02 02 82 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 AF 00 00 00 F4 03 04 00 19 FD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 09 00 00 35 04 06 00 E1 E8 E4 73 D2 D4 [20:35:38]Write to MH i2c: E2 8A 00 9F 02 80 0D 02 02 82 00 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 AF 00 00 00 F4 03 04 00 19 FD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 09 00 00 35 04 06 00 E1 E8 E4 73 D2 D4 00 00 EC [20:35:38]Write i2c OK [20:35:38]MH_I2C_Read... [20:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:39]Read from MH i2c: E2 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 03 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [20:35:39]RAPDU: 90 00 [20:35:39]wFMCommunicate OK [20:35:39]wFMCommunicate request_size=4 [20:35:39]MH_SAM_APDU [20:35:39]CAPDU: 80 0D 03 02 [20:35:39]Write to MH i2c: E2 08 00 A0 02 80 0D 03 02 00 00 00 00 1D [20:35:39]Write i2c OK [20:35:39]MH_I2C_Read... [20:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:39]Read from MH i2c: E2 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 0B 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 0B 00 A0 02 00 27 E8 5E 8A 29 5A 2B 5A 90 00 1D [20:35:39]RAPDU: 27 E8 5E 8A 29 5A 2B 5A 90 00 [20:35:39]wFMCommunicate OK [20:35:39]SAM_PROTO_SignData done [20:35:39]FM_MakeSignedData done [20:35:39]CreateOFDProtocolMessage [20:35:39]wFMCommunicate request_size=4 [20:35:39]MH_SAM_APDU [20:35:39]CAPDU: 80 11 00 00 [20:35:39]Write to MH i2c: E2 08 00 A1 02 80 11 00 00 00 00 00 00 1D [20:35:39]Write i2c OK [20:35:39]MH_I2C_Read... [20:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:39]Read from MH i2c: E2 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 17 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: E2 17 00 A1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [20:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:35:39]wFMCommunicate OK [20:35:39]CreateOFDProtocolMessage done [20:35:39]OFDSenderStorePacket 2326 [20:35:39]StoreOFDPacket docnum=2326 [20:35:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8C 01 00 00 57 79 84 01 E2 F3 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 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 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 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 AF 00 00 00 F4 03 04 00 19 FD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 09 00 00 35 04 06 00 E1 E8 E4 73 D2 D4 27 E8 5E 8A 29 5A 2B 5A [20:35:39]CheckFolder [20:35:39]dirname=/storage/ofd_packets [20:35:39]CheckFolder done [20:35:39]ProducePacketName [20:35:39]name=ofd_packets/00002326 [20:35:39]NVStorageSaveData ofd_packets/00002326 [20:35:39]File name is /storage/ofd_packets/00002326 [20:35:39]Write 426 bytes [20:35:39]NVStorageSaveData done [20:35:39]OFDSenderStorePacket done [20:35:39]KKMCreateOFDPacket done [20:35:39]NVStorageSaveData kkm_last_timestamp [20:35:39]File name is /storage/kkm_last_timestamp [20:35:39]Write 4 bytes [20:35:39]NVStorageSaveData done [20:35:39]ExternCall_PrintAddStr [20:35:39]wPrintStart [20:35:39]Write to MH i2c: 01 00 00 A2 02 A4 [20:35:39]Write i2c OK [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: 01 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: 01 07 00 [20:35:39]MH_I2C_Read... [20:35:39]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [20:35:39]RasterBufferAndPrint [20:35:39]line Счет N : (3)126562 [20:35:39]line ИНН: 02508201610067 [20:35:39]line Контрольно-Кассовый Чек [20:35:39]line ПРОДАЖА [20:35:39]line Товар: 4700000160051 [20:35:39]line Вода Ыссык Ата 1л [20:35:39]line 1.000 * 50.00 [20:35:39]line = 50.00 [20:35:39]line НДС 12% НСП 1% [20:35:39]line > о реализуемом товаре [20:35:39]line Товар: 4640030091645 [20:35:39]line Сигареты ESSE Exchange M [20:35:39]line 1.000 * 150.00 [20:35:39]line = 150.00 [20:35:39]line НДС 12% НСП 1% [20:35:39]line > о реализуемом товаре [20:35:39]line ИТОГО: 200.00 [20:35:39]line НСП 1% : 1.77 [20:35:39]line НДС 12% : 21.24 [20:35:39]line Наличными: 200.00 [20:35:39]line Безнал.: 0.00 [20:35:39]line Место: АЗС № 127 "Партнер Нефть" [20:35:39]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:35:39]line СНО: Общий режим [20:35:39]line Чек 175 29.07.2024 20:35 [20:35:39]line Смена: 15 ФФД: 1.0 [20:35:39]line ЗНМ: 0300000161 [20:35:39]line РНМ: 0000000000189667 [20:35:39]line Версия ККМ: v1.0 [20:35:39]line ФМ: 0000000002094248 [20:35:39]line ФД: 2326 [20:35:39]line ФПД: 248390381458132 [20:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203537&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2326&fm=248390381458132&tin=02508201610067®Number=0000000000189667&sum=20000 [20:35:39]OFD Sender: Processing packet 2326 [packets to send 1, broken 0] [20:35:39]ProducePacketName [20:35:39]name=ofd_packets/00002326 [20:35:39]OFD Sender: To server: pG, [20:35:39]CommunicateWithHost lk.salyk.kg:30040 [20:35:39]ConnectInit lk.salyk.kg [20:35:39]line 0 [20:35:39]written 0, free lines is 4095 [20:35:39]Connected sock=10 [20:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 8C 01 00 00 57 79 84 01 E2 F3 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 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 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 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 AF 00 00 00 F4 03 04 00 19 FD A7 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 09 00 00 35 04 06 00 E1 E8 E4 73 D2 D4 27 E8 5E 8A 29 5A 2B 5A [20:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AB 82 47 00 A1 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 16 09 00 00 F4 03 04 00 85 A8 A7 66 B6 04 01 00 00 C6 94 FB A0 7C CC 22 C6 [20:35:39]CommunicateWithHost err = 0 [20:35:39]CheckOFDResponse [20:35:39]1017 (14) - 77093643461234 [20:35:39]1041 (16) - 0000000002094248 [20:35:39]1040 (4) - 2326 [20:35:39]1012 (4) - 29.07.2024 14:34 [20:35:39]1206 (1) - 0 [20:35:39]OFD Sender: Remove packet 2326 [20:35:39]ProducePacketName [20:35:39]name=ofd_packets/00002326 [20:35:39]NVStorageDeleteData [20:35:40]Write to MH i2c: 01 00 00 D0 02 D2 [20:35:40]Write i2c OK [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: 01 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: 01 07 00 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 D3 0C B8 [20:35:40]RasterBufferAndPrint [20:35:40]line [20:35:40]line [20:35:40]line [20:35:40]line [20:35:40]line [20:35:40]written 0, free lines is 3289 [20:35:40]MH_Cut [20:35:40]Write to MH i2c: D1 01 00 D7 02 01 AB [20:35:40]Write i2c OK [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: D1 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: D1 01 00 [20:35:40]MH_I2C_Read... [20:35:40]Read from MH i2c: D1 01 00 D7 02 00 AA [20:35:40]Write to MH i2c: 01 00 00 D8 02 DA [20:35:40]Write i2c OK [20:35:40]MH_I2C_Read... [20:35:40]OFD Sender: No OFD packet to send [20:35:40]*** Cut start [20:35:40]*** Partial cut [20:35:40]*** CUTSNS_PIN = 1 [20:35:40]*** CUTSNS_PIN = 0 [20:35:41]*** Brake cut motor [20:35:41]Read from MH i2c: 01 [20:35:41]MH_I2C_Read... [20:35:41]*** Stop cut motor [20:35:41]*** Cut end [20:35:41]Read from MH i2c: 01 07 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [20:35:41]process_action close_receipt done [20:35:41]requested_data is exist [20:35:41]produce_requested_data [20:35:41]requested_item fm.sn is exist - process it [20:35:41]wFMCommunicate request_size=4 [20:35:41]MH_SAM_APDU [20:35:41]CAPDU: 80 11 00 00 [20:35:41]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [20:35:41]Write i2c OK [20:35:41]MH_I2C_Read... [20:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:41]Read from MH i2c: E2 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 17 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A5 [20:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:35:41]wFMCommunicate OK [20:35:41]requested_item fd.num is exist - process it [20:35:41]SAM_PROTO_GetFieldsCounters [20:35:41]wFMCommunicate request_size=4 [20:35:41]MH_SAM_APDU [20:35:41]CAPDU: 80 13 00 00 [20:35:41]Write to MH i2c: E2 08 00 DA 02 80 13 00 00 00 00 00 00 58 [20:35:41]Write i2c OK [20:35:41]MH_I2C_Read... [20:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:41]Read from MH i2c: E2 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 62 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 62 00 DA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 16 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [20:35:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 16 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:41]wFMCommunicate OK [20:35:41]SAM_PROTO_GetFieldsCounters done [20:35:41]requested_item shift.num is exist - process it [20:35:41]requested_item shift.opened is exist - process it [20:35:41]req_shift_opened [20:35:41]FM_GetShiftState [20:35:41]SAM_PROTO_GetShiftState [20:35:41]wFMCommunicate request_size=4 [20:35:41]MH_SAM_APDU [20:35:41]CAPDU: 80 13 01 00 [20:35:41]Write to MH i2c: E2 08 00 DB 02 80 13 01 00 00 00 00 00 5A [20:35:41]Write i2c OK [20:35:41]MH_I2C_Read... [20:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:41]Read from MH i2c: E2 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 0E 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: E2 0E 00 DB 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 53 [20:35:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:35:41]wFMCommunicate OK [20:35:41]SAM_PROTO_GetShiftState done [20:35:41]FM_GetShiftState done [20:35:41]req_shift_opened done [20:35:41]requested_item shift.open_date is exist - process it [20:35:41]req_shift_open_date [20:35:41]req_shift_open_date done [20:35:41]produce_requested_data done [20:35:41]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2326,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:35:41]process_action_free close_receipt [20:35:41]json_value_free [20:35:41]json_value_free done [20:35:41]process_json_proto returns [20:35:41]Send response to host [20:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2326,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:35:41]free response buf [20:35:41]execute_script done [20:35:41]execute_script returns [20:35:41]free content buf [20:35:41]Sock 7.Close socket [20:35:41]Sock 7.Thread stoped [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:48:57]accept exits with 9 [20:48:57]New connection [20:48:57]New thread 3067420004 created [20:48:57]Thread 3067276644 joined [20:48:57]Waiting for new connection... [20:48:57] Sock 9.Parse request [20:48:57]Sock 9.Check first char [20:48:57]Sock 9.First char is OK [20:48:57]request: POST /json_proto HTTP/1.0 [20:48:57]Method: POST [20:48:57]URL: /json_proto [20:48:57]Method is POST - this is cgi request [20:48:57]url: /json_proto [20:48:57]query_string will be loaded in cgi processing [20:48:57]execute_cgi json_proto POST (null) [20:48:57]execute_cgi path=json_proto method=POST [20:48:57]POST find Content-Length [20:48:57]Host: 172.17.45.132:8080 [20:48:57]Content-Length: 803 [20:48:57]Content-Type: application/json [20:48:57] [20:48:57]POST finish read [20:48:57]Found Content-Length = 803 [20:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:57]execute_script... [20:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:57]POST & json_proto [20:48:57]process_json_proto [20:48:57]json parsed OK: [20:48:57]protocol is kg_v1.0 [20:48:57]action value=close_receipt [20:48:57]process_action close_receipt [20:48:57]cmd_close_receipt [20:48:57]MH_GetDate [20:48:57]Write to MH i2c: F0 00 00 DC 02 CD [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: F0 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: F0 09 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: F0 09 00 DC 02 00 3A 00 A8 66 E3 0B 90 66 02 [20:48:57]GetLastDocTimeStamp 1722285337 [20:48:57]current date 1722286138 [20:48:57]FM_GetShiftState [20:48:57]SAM_PROTO_GetShiftState [20:48:57]wFMCommunicate request_size=4 [20:48:57]MH_SAM_APDU [20:48:57]CAPDU: 80 13 01 00 [20:48:57]Write to MH i2c: E2 08 00 DD 02 80 13 01 00 00 00 00 00 5C [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:57]Read from MH i2c: E2 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 0E 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: E2 0E 00 DD 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 55 [20:48:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:48:57]wFMCommunicate OK [20:48:57]SAM_PROTO_GetShiftState done [20:48:57]FM_GetShiftState done [20:48:57]opened in 1722213119 [20:48:57]opened+sec_in_day 1722299519 [20:48:57]quantity*price = 200046 [20:48:57]sum+1 = 200048 [20:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 176 29.07.2024 20:48 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2327 ФПД: 107959391237141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204858&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2327&fm=107959391237141&tin=02508201610067®Number=0000000000189667&sum=200047 [20:48:59]StoreToDocumentArchive [20:48:59]shift 15 fd 2327 [20:48:59]save to /storage/0015/doc_00002327 [20:48:59]save last doc name /storage/0015/doc_00002327 to /storage/kkm_last_doc_name [20:48:59]save OK [20:48:59]Clear old archive folders... [20:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:59]tlvbuf is 010DB8F0 [20:48:59]SAM_PROTO_ClearQueue [20:48:59]wFMCommunicate request_size=4 [20:48:59]MH_SAM_APDU [20:48:59]CAPDU: 80 09 00 00 [20:48:59]Write to MH i2c: E2 08 00 EA 02 80 09 00 00 00 00 00 00 5E [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:59]Read from MH i2c: E2 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [20:48:59]RAPDU: 90 00 [20:48:59]wFMCommunicate OK [20:48:59]SAM_PROTO_ClearQueue done [20:48:59]KKMCreateOFDPacket [20:48:59]OFDProtocolAddRootSTLVToBuf [20:48:59]FM_MakeSignedData [20:48:59]FM_MakeSignedData [20:48:59]SAM_PROTO_SignData [20:48:59]wFMCommunicate request_size=4 [20:48:59]MH_SAM_APDU [20:48:59]CAPDU: 80 0D 01 02 [20:48:59]Write to MH i2c: E2 08 00 EB 02 80 0D 01 02 00 00 00 00 66 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:59]Read from MH i2c: E2 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [20:48:59]RAPDU: 90 00 [20:48:59]wFMCommunicate OK [20:48:59]wFMCommunicate request_size=255 [20:48:59]MH_SAM_APDU [20:48:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3A 00 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 09 00 00 35 04 06 00 62 [20:48:59]Write to MH i2c: E2 02 01 EC 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3A 00 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 09 00 00 35 04 06 00 62 00 00 0E [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:59]Read from MH i2c: E2 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [20:48:59]RAPDU: 90 00 [20:48:59]wFMCommunicate OK [20:48:59]wFMCommunicate request_size=10 [20:48:59]MH_SAM_APDU [20:48:59]CAPDU: 80 0D 02 02 05 30 41 2A 34 15 [20:48:59]Write to MH i2c: E2 0D 00 ED 02 80 0D 02 02 05 00 30 41 2A 34 15 00 00 57 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:59]Read from MH i2c: E2 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [20:48:59]RAPDU: 90 00 [20:48:59]wFMCommunicate OK [20:48:59]wFMCommunicate request_size=4 [20:48:59]MH_SAM_APDU [20:48:59]CAPDU: 80 0D 03 02 [20:48:59]Write to MH i2c: E2 08 00 EE 02 80 0D 03 02 00 00 00 00 6B [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:59]Read from MH i2c: E2 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 0B 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 0B 00 EE 02 00 9A 88 31 07 45 F2 B7 FE 90 00 B2 [20:48:59]RAPDU: 9A 88 31 07 45 F2 B7 FE 90 00 [20:48:59]wFMCommunicate OK [20:48:59]SAM_PROTO_SignData done [20:48:59]FM_MakeSignedData done [20:48:59]CreateOFDProtocolMessage [20:48:59]wFMCommunicate request_size=4 [20:48:59]MH_SAM_APDU [20:48:59]CAPDU: 80 11 00 00 [20:48:59]Write to MH i2c: E2 08 00 EF 02 80 11 00 00 00 00 00 00 6B [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:59]Read from MH i2c: E2 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 17 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 17 00 EF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BB [20:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:48:59]wFMCommunicate OK [20:48:59]CreateOFDProtocolMessage done [20:48:59]OFDSenderStorePacket 2327 [20:48:59]StoreOFDPacket docnum=2327 [20:48:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2F E4 07 01 23 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3A 00 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 09 00 00 35 04 06 00 62 30 41 2A 34 15 9A 88 31 07 45 F2 B7 FE [20:48:59]CheckFolder [20:48:59]dirname=/storage/ofd_packets [20:48:59]CheckFolder done [20:48:59]ProducePacketName [20:48:59]name=ofd_packets/00002327 [20:48:59]NVStorageSaveData ofd_packets/00002327 [20:48:59]File name is /storage/ofd_packets/00002327 [20:48:59]Write 301 bytes [20:48:59]NVStorageSaveData done [20:48:59]OFDSenderStorePacket done [20:48:59]KKMCreateOFDPacket done [20:48:59]NVStorageSaveData kkm_last_timestamp [20:48:59]File name is /storage/kkm_last_timestamp [20:48:59]Write 4 bytes [20:48:59]NVStorageSaveData done [20:48:59]ExternCall_PrintAddStr [20:48:59]wPrintStart [20:48:59]Write to MH i2c: 01 00 00 F0 02 F2 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [20:48:59]RasterBufferAndPrint [20:48:59]line Счет N : (1)610140 [20:48:59]line ИНН: 02508201610067 [20:48:59]line Контрольно-Кассовый Чек [20:48:59]line ПРОДАЖА [20:48:59]line ТРК (МРК, ГНК) : 63 [20:48:59]line Товар: 2710124500 [20:48:59]line Аи-95-К-3 [20:48:59]line 26.780 * 74.70 [20:48:59]line = 2000.47 [20:48:59]line НДС 12% НСП 1% [20:48:59]line > о реализуемом товаре [20:48:59]line ИТОГО: 2000.47 [20:48:59]line НСП 1% : 17.70 [20:48:59]line НДС 12% : 212.44 [20:48:59]line Наличными: 0.00 [20:48:59]line Безнал.: 2000.47 [20:48:59]line Место: АЗС № 127 "Партнер Нефть" [20:48:59]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:48:59]line СНО: Общий режим [20:48:59]line Чек 176 29.07.2024 20:48 [20:48:59]line Смена: 15 ФФД: 1.0 [20:48:59]line ЗНМ: 0300000161 [20:48:59]line РНМ: 0000000000189667 [20:48:59]line Версия ККМ: v1.0 [20:48:59]line Платежная система: O! деньги [20:48:59]line ФМ: 0000000002094248 [20:48:59]line ФД: 2327 [20:48:59]line ФПД: 107959391237141 [20:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204858&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2327&fm=107959391237141&tin=02508201610067®Number=0000000000189667&sum=200047 [20:48:59]OFD Sender: Processing packet 2327 [packets to send 1, broken 0] [20:48:59]ProducePacketName [20:48:59]name=ofd_packets/00002327 [20:48:59]OFD Sender: To server: pG, [20:48:59]CommunicateWithHost lk.salyk.kg:30040 [20:48:59]ConnectInit lk.salyk.kg [20:48:59]written 0, free lines is 4095 [20:49:00]Connected sock=7 [20:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2F E4 07 01 23 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3A 00 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 09 00 00 35 04 06 00 62 30 41 2A 34 15 9A 88 31 07 45 F2 B7 FE [20:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 67 C3 47 00 88 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 17 09 00 00 F4 03 04 00 A6 AB A7 66 B6 04 01 00 00 30 31 E5 D4 EB 35 53 E0 [20:49:00]CommunicateWithHost err = 0 [20:49:00]CheckOFDResponse [20:49:00]1017 (14) - 77093643461234 [20:49:00]1041 (16) - 0000000002094248 [20:49:00]1040 (4) - 2327 [20:49:00]1012 (4) - 29.07.2024 14:48 [20:49:00]1206 (1) - 0 [20:49:00]OFD Sender: Remove packet 2327 [20:49:00]ProducePacketName [20:49:00]name=ofd_packets/00002327 [20:49:00]NVStorageDeleteData [20:49:00]Write to MH i2c: 01 00 00 1A 03 1D [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: 01 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: 01 07 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 02 0D 33 [20:49:00]RasterBufferAndPrint [20:49:00]line [20:49:00]line [20:49:00]line [20:49:00]line [20:49:00]line [20:49:00]written 0, free lines is 3336 [20:49:00]MH_Cut [20:49:00]Write to MH i2c: D1 01 00 21 03 01 F6 [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: D1 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: D1 01 00 [20:49:00]MH_I2C_Read... [20:49:00]Read from MH i2c: D1 01 00 21 03 00 F5 [20:49:00]Write to MH i2c: 01 00 00 22 03 25 [20:49:00]Write i2c OK [20:49:00]MH_I2C_Read... [20:49:00]OFD Sender: No OFD packet to send [20:49:01]*** Cut start [20:49:01]*** Partial cut [20:49:01]*** CUTSNS_PIN = 1 [20:49:01]*** CUTSNS_PIN = 0 [20:49:01]*** Brake cut motor [20:49:01]Read from MH i2c: 01 [20:49:01]MH_I2C_Read... [20:49:01]*** Stop cut motor [20:49:01]*** Cut end [20:49:01]Read from MH i2c: 01 07 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 FF 0F 3A [20:49:01]process_action close_receipt done [20:49:01]requested_data is exist [20:49:01]produce_requested_data [20:49:01]requested_item fm.sn is exist - process it [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 11 00 00 [20:49:01]Write to MH i2c: E2 08 00 23 03 80 11 00 00 00 00 00 00 A0 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 17 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 17 00 23 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F0 [20:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:49:01]wFMCommunicate OK [20:49:01]requested_item fd.num is exist - process it [20:49:01]SAM_PROTO_GetFieldsCounters [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 13 00 00 [20:49:01]Write to MH i2c: E2 08 00 24 03 80 13 00 00 00 00 00 00 A3 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 62 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 62 00 24 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 17 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [20:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 17 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:01]wFMCommunicate OK [20:49:01]SAM_PROTO_GetFieldsCounters done [20:49:01]requested_item shift.num is exist - process it [20:49:01]requested_item shift.opened is exist - process it [20:49:01]req_shift_opened [20:49:01]FM_GetShiftState [20:49:01]SAM_PROTO_GetShiftState [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 13 01 00 [20:49:01]Write to MH i2c: E2 08 00 25 03 80 13 01 00 00 00 00 00 A5 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 0E 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 0E 00 25 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 9E [20:49:01]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:49:01]wFMCommunicate OK [20:49:01]SAM_PROTO_GetShiftState done [20:49:01]FM_GetShiftState done [20:49:01]req_shift_opened done [20:49:01]requested_item shift.open_date is exist - process it [20:49:01]req_shift_open_date [20:49:01]req_shift_open_date done [20:49:01]produce_requested_data done [20:49:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2327,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:49:01]process_action_free close_receipt [20:49:01]json_value_free [20:49:01]json_value_free done [20:49:01]process_json_proto returns [20:49:01]Send response to host [20:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2327,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:49:01]free response buf [20:49:01]execute_script done [20:49:01]execute_script returns [20:49:01]free content buf [20:49:01]Sock 9.Close socket [20:49:01]Sock 9.Thread stoped [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:16]accept exits with 10 [20:52:16]New connection [20:52:16]New thread 3067276644 created [20:52:16]Thread 3067420004 joined [20:52:16]Waiting for new connection... [20:52:16] Sock 10.Parse request [20:52:16]Sock 10.Check first char [20:52:16]Sock 10.First char is OK [20:52:16]request: POST /json_proto HTTP/1.0 [20:52:16]Method: POST [20:52:16]URL: /json_proto [20:52:16]Method is POST - this is cgi request [20:52:16]url: /json_proto [20:52:16]query_string will be loaded in cgi processing [20:52:16]execute_cgi json_proto POST (null) [20:52:16]execute_cgi path=json_proto method=POST [20:52:16]POST find Content-Length [20:52:16]Host: 172.17.45.132:8080 [20:52:16]Content-Length: 935 [20:52:16]Content-Type: application/json [20:52:16] [20:52:16]POST finish read [20:52:16]Found Content-Length = 935 [20:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126563", "tax_sys" : 0, "items" : [ { "code": "4600721026714", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043D\u0430\u043D\u0430\u0441,\u0433\u0440\u0435\u0439\u043F 6,2% \u0441\u0442 0,5/0,45\u043B", "price" : 137.00, "quantity" : 1.000, "sum" : 137.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" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:16]execute_script... [20:52: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)126563", "tax_sys" : 0, "items" : [ { "code": "4600721026714", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043D\u0430\u043D\u0430\u0441,\u0433\u0440\u0435\u0439\u043F 6,2% \u0441\u0442 0,5/0,45\u043B", "price" : 137.00, "quantity" : 1.000, "sum" : 137.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" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:16]POST & json_proto [20:52:16]process_json_proto [20:52:16]json parsed OK: [20:52:16]protocol is kg_v1.0 [20:52:16]action value=close_receipt [20:52:16]process_action close_receipt [20:52:16]cmd_close_receipt [20:52:16]MH_GetDate [20:52:16]Write to MH i2c: F0 00 00 26 03 18 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: F0 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: F0 09 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: F0 09 00 26 03 00 00 01 A8 66 E3 0B 90 66 14 [20:52:16]GetLastDocTimeStamp 1722286138 [20:52:16]current date 1722286336 [20:52:16]FM_GetShiftState [20:52:16]SAM_PROTO_GetShiftState [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 13 01 00 [20:52:16]Write to MH i2c: E2 08 00 27 03 80 13 01 00 00 00 00 00 A7 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 0E 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 0E 00 27 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A0 [20:52:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:52:16]wFMCommunicate OK [20:52:16]SAM_PROTO_GetShiftState done [20:52:16]FM_GetShiftState done [20:52:16]opened in 1722213119 [20:52:16]opened+sec_in_day 1722299519 [20:52:16]quantity*price = 13700 [20:52:16]sum+1 = 13701 [20:52:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 187.00 НСП 1% : 1.65 НДС 12% : 19.86 Наличными: 187.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 177 29.07.2024 20:52 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2328 ФПД: 44617299856138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205216&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2328&fm=44617299856138&tin=02508201610067®Number=0000000000189667&sum=18700 0 [20:52:17]StoreToDocumentArchive [20:52:17]shift 15 fd 2328 [20:52:17]save to /storage/0015/doc_00002328 [20:52:17]save last doc name /storage/0015/doc_00002328 to /storage/kkm_last_doc_name [20:52:17]save OK [20:52:17]Clear old archive folders... [20:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=399 [20:52:17]tlvbuf is 010FB920 [20:52:17]SAM_PROTO_ClearQueue [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 09 00 00 [20:52:17]Write to MH i2c: E2 08 00 34 03 80 09 00 00 00 00 00 00 A9 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [20:52:17]RAPDU: 90 00 [20:52:17]wFMCommunicate OK [20:52:17]SAM_PROTO_ClearQueue done [20:52:17]KKMCreateOFDPacket [20:52:17]OFDProtocolAddRootSTLVToBuf [20:52:17]FM_MakeSignedData [20:52:17]FM_MakeSignedData [20:52:17]SAM_PROTO_SignData [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 0D 01 02 [20:52:17]Write to MH i2c: E2 08 00 35 03 80 0D 01 02 00 00 00 00 B1 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [20:52:17]RAPDU: 90 00 [20:52:17]wFMCommunicate OK [20:52:17]wFMCommunicate request_size=255 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 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 0C 49 00 00 00 00 EB 03 [20:52:17]Write to MH i2c: E2 02 01 36 03 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 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 0C 49 00 00 00 00 EB 03 00 00 9A [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [20:52:17]RAPDU: 90 00 [20:52:17]wFMCommunicate OK [20:52:17]wFMCommunicate request_size=158 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 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 B1 00 00 00 F4 03 04 00 00 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 09 00 00 35 04 06 00 28 94 46 4F 0B 0A [20:52:17]Write to MH i2c: E2 A1 00 37 03 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 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 B1 00 00 00 F4 03 04 00 00 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 09 00 00 35 04 06 00 28 94 46 4F 0B 0A 00 00 57 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 03 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 03 00 37 03 00 90 00 AE [20:52:18]RAPDU: 90 00 [20:52:18]wFMCommunicate OK [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 0D 03 02 [20:52:18]Write to MH i2c: E2 08 00 38 03 80 0D 03 02 00 00 00 00 B6 [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 0B 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 0B 00 38 03 00 2A A2 65 EE 53 DF 12 2F 90 00 49 [20:52:18]RAPDU: 2A A2 65 EE 53 DF 12 2F 90 00 [20:52:18]wFMCommunicate OK [20:52:18]SAM_PROTO_SignData done [20:52:18]FM_MakeSignedData done [20:52:18]CreateOFDProtocolMessage [20:52:18]wFMCommunicate request_size=4 [20:52:18]MH_SAM_APDU [20:52:18]CAPDU: 80 11 00 00 [20:52:18]Write to MH i2c: E2 08 00 39 03 80 11 00 00 00 00 00 00 B6 [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:18]Read from MH i2c: E2 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 17 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: E2 17 00 39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 06 [20:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:52:18]wFMCommunicate OK [20:52:18]CreateOFDProtocolMessage done [20:52:18]OFDSenderStorePacket 2328 [20:52:18]StoreOFDPacket docnum=2328 [20:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A3 01 00 00 2C 63 9B 01 97 1D 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 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 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 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 B1 00 00 00 F4 03 04 00 00 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 09 00 00 35 04 06 00 28 94 46 4F 0B 0A 2A A2 65 EE 53 DF 12 2F [20:52:18]CheckFolder [20:52:18]dirname=/storage/ofd_packets [20:52:18]CheckFolder done [20:52:18]ProducePacketName [20:52:18]name=ofd_packets/00002328 [20:52:18]NVStorageSaveData ofd_packets/00002328 [20:52:18]File name is /storage/ofd_packets/00002328 [20:52:18]Write 449 bytes [20:52:18]NVStorageSaveData done [20:52:18]OFDSenderStorePacket done [20:52:18]KKMCreateOFDPacket done [20:52:18]NVStorageSaveData kkm_last_timestamp [20:52:18]File name is /storage/kkm_last_timestamp [20:52:18]Write 4 bytes [20:52:18]NVStorageSaveData done [20:52:18]ExternCall_PrintAddStr [20:52:18]wPrintStart [20:52:18]Write to MH i2c: 01 00 00 3A 03 3D [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: 01 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: 01 07 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [20:52:18]RasterBufferAndPrint [20:52:18]line Счет N : (3)126563 [20:52:18]line ИНН: 02508201610067 [20:52:18]line Контрольно-Кассовый Чек [20:52:18]line ПРОДАЖА [20:52:18]line Товар: 4600721026714 [20:52:18]line Пиво ESSA ананас,грейп 6,2% ст 0,5/0,45л [20:52:18]line 1.000 * 137.00 [20:52:18]line = 137.00 [20:52:18]line НДС 12% НСП 1% [20:52:18]line > о реализуемом товаре [20:52:18]line Товар: 4700000160358 [20:52:18]line Вода Легенда 1л [20:52:18]line 1.000 * 50.00 [20:52:18]line = 50.00 [20:52:18]line НДС 12% НСП 1% [20:52:18]line > о реализуемом товаре [20:52:18]line ИТОГО: 187.00 [20:52:18]line НСП 1% : 1.65 [20:52:18]line НДС 12% : 19.86 [20:52:18]line Наличными: 187.00 [20:52:18]line Безнал.: 0.00 [20:52:18]line Место: АЗС № 127 "Партнер Нефть" [20:52:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:52:18]line СНО: Общий режим [20:52:18]line Чек 177 29.07.2024 20:52 [20:52:18]line Смена: 15 ФФД: 1.0 [20:52:18]line ЗНМ: 0300000161 [20:52:18]line РНМ: 0000000000189667 [20:52:18]line Версия ККМ: v1.0 [20:52:18]line ФМ: 0000000002094248 [20:52:18]line ФД: 2328 [20:52:18]line ФПД: 44617299856138 [20:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205216&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2328&fm=44617299856138&tin=02508201610067®Number=0000000000189667&sum=18700 [20:52:18]line 0 [20:52:18]written 0, free lines is 4095 [20:52:18]OFD Sender: Processing packet 2328 [packets to send 1, broken 0] [20:52:18]ProducePacketName [20:52:18]name=ofd_packets/00002328 [20:52:18]OFD Sender: To server: pG, [20:52:18]CommunicateWithHost lk.salyk.kg:30040 [20:52:18]ConnectInit lk.salyk.kg [20:52:18]Connected sock=9 [20:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A3 01 00 00 2C 63 9B 01 97 1D 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 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 84 35 00 00 00 00 13 04 06 00 84 35 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 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 07 00 00 00 00 07 04 06 00 0C 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 B1 00 00 00 F4 03 04 00 00 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 09 00 00 35 04 06 00 28 94 46 4F 0B 0A 2A A2 65 EE 53 DF 12 2F [20:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A6 40 47 00 02 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 18 09 00 00 F4 03 04 00 6C AC A7 66 B6 04 01 00 00 93 B7 93 CC EC C8 77 28 [20:52:18]CommunicateWithHost err = 0 [20:52:18]CheckOFDResponse [20:52:18]1017 (14) - 77093643461234 [20:52:18]1041 (16) - 0000000002094248 [20:52:18]1040 (4) - 2328 [20:52:18]1012 (4) - 29.07.2024 14:51 [20:52:18]1206 (1) - 0 [20:52:18]OFD Sender: Remove packet 2328 [20:52:18]ProducePacketName [20:52:18]name=ofd_packets/00002328 [20:52:18]NVStorageDeleteData [20:52:18]Write to MH i2c: 01 00 00 69 03 6C [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: 01 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: 01 07 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 B6 0C 35 [20:52:18]RasterBufferAndPrint [20:52:18]line [20:52:18]line [20:52:18]line [20:52:18]line [20:52:18]line [20:52:18]written 0, free lines is 3262 [20:52:18]MH_Cut [20:52:18]Write to MH i2c: D1 01 00 70 03 01 45 [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: D1 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: D1 01 00 [20:52:18]MH_I2C_Read... [20:52:18]Read from MH i2c: D1 01 00 70 03 00 44 [20:52:18]Write to MH i2c: 01 00 00 71 03 74 [20:52:18]Write i2c OK [20:52:18]MH_I2C_Read... [20:52:19]OFD Sender: No OFD packet to send [20:52:19]*** Cut start [20:52:19]*** Partial cut [20:52:19]*** CUTSNS_PIN = 1 [20:52:19]*** CUTSNS_PIN = 0 [20:52:19]*** Brake cut motor [20:52:20]Read from MH i2c: 01 [20:52:20]MH_I2C_Read... [20:52:20]*** Stop cut motor [20:52:20]*** Cut end [20:52:20]Read from MH i2c: 01 07 00 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: 01 07 00 71 03 00 00 00 00 00 FF 0F 89 [20:52:20]process_action close_receipt done [20:52:20]requested_data is exist [20:52:20]produce_requested_data [20:52:20]requested_item fm.sn is exist - process it [20:52:20]wFMCommunicate request_size=4 [20:52:20]MH_SAM_APDU [20:52:20]CAPDU: 80 11 00 00 [20:52:20]Write to MH i2c: E2 08 00 72 03 80 11 00 00 00 00 00 00 EF [20:52:20]Write i2c OK [20:52:20]MH_I2C_Read... [20:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:20]Read from MH i2c: E2 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: E2 17 00 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: E2 17 00 72 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3F [20:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:52:20]wFMCommunicate OK [20:52:20]requested_item fd.num is exist - process it [20:52:20]SAM_PROTO_GetFieldsCounters [20:52:20]wFMCommunicate request_size=4 [20:52:20]MH_SAM_APDU [20:52:20]CAPDU: 80 13 00 00 [20:52:20]Write to MH i2c: E2 08 00 73 03 80 13 00 00 00 00 00 00 F2 [20:52:20]Write i2c OK [20:52:20]MH_I2C_Read... [20:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:20]Read from MH i2c: E2 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: E2 62 00 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: E2 62 00 73 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 18 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [20:52:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 18 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:20]wFMCommunicate OK [20:52:20]SAM_PROTO_GetFieldsCounters done [20:52:20]requested_item shift.num is exist - process it [20:52:20]requested_item shift.opened is exist - process it [20:52:20]req_shift_opened [20:52:20]FM_GetShiftState [20:52:20]SAM_PROTO_GetShiftState [20:52:20]wFMCommunicate request_size=4 [20:52:20]MH_SAM_APDU [20:52:20]CAPDU: 80 13 01 00 [20:52:20]Write to MH i2c: E2 08 00 74 03 80 13 01 00 00 00 00 00 F4 [20:52:20]Write i2c OK [20:52:20]MH_I2C_Read... [20:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:20]Read from MH i2c: E2 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: E2 0E 00 [20:52:20]MH_I2C_Read... [20:52:20]Read from MH i2c: E2 0E 00 74 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 ED [20:52:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:52:20]wFMCommunicate OK [20:52:20]SAM_PROTO_GetShiftState done [20:52:20]FM_GetShiftState done [20:52:20]req_shift_opened done [20:52:20]requested_item shift.open_date is exist - process it [20:52:20]req_shift_open_date [20:52:20]req_shift_open_date done [20:52:20]produce_requested_data done [20:52:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2328,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:52:20]process_action_free close_receipt [20:52:20]json_value_free [20:52:20]json_value_free done [20:52:20]process_json_proto returns [20:52:20]Send response to host [20:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2328,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:52:20]free response buf [20:52:20]execute_script done [20:52:20]execute_script returns [20:52:20]free content buf [20:52:20]Sock 10.Close socket [20:52:20]Sock 10.Thread stoped [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:52]accept exits with 7 [20:52:52]New connection [20:52:52]New thread 3067420004 created [20:52:52]Thread 3067276644 joined [20:52:52]Waiting for new connection... [20:52:52] Sock 7.Parse request [20:52:52]Sock 7.Check first char [20:52:52]Sock 7.First char is OK [20:52:52]request: POST /json_proto HTTP/1.0 [20:52:52]Method: POST [20:52:52]URL: /json_proto [20:52:52]Method is POST - this is cgi request [20:52:52]url: /json_proto [20:52:52]query_string will be loaded in cgi processing [20:52:52]execute_cgi json_proto POST (null) [20:52:52]execute_cgi path=json_proto method=POST [20:52:52]POST find Content-Length [20:52:52]Host: 172.17.45.132:8080 [20:52:52]Content-Length: 990 [20:52:52]Content-Type: application/json [20:52:52] [20:52:52]POST finish read [20:52:52]Found Content-Length = 990 [20:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126564", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 465.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:52]execute_script... [20:52: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)126564", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 465.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:52]POST & json_proto [20:52:52]process_json_proto [20:52:52]json parsed OK: [20:52:52]protocol is kg_v1.0 [20:52:52]action value=close_receipt [20:52:52]process_action close_receipt [20:52:52]cmd_close_receipt [20:52:52]MH_GetDate [20:52:52]Write to MH i2c: F0 00 00 75 03 67 [20:52:52]Write i2c OK [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: F0 [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: F0 09 00 [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: F0 09 00 75 03 00 24 01 A8 66 E3 0B 90 66 87 [20:52:52]GetLastDocTimeStamp 1722286336 [20:52:52]current date 1722286372 [20:52:52]FM_GetShiftState [20:52:52]SAM_PROTO_GetShiftState [20:52:52]wFMCommunicate request_size=4 [20:52:52]MH_SAM_APDU [20:52:52]CAPDU: 80 13 01 00 [20:52:52]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [20:52:52]Write i2c OK [20:52:52]MH_I2C_Read... [20:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:52]Read from MH i2c: E2 [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: E2 0E 00 [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EF [20:52:52]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:52:52]wFMCommunicate OK [20:52:52]SAM_PROTO_GetShiftState done [20:52:52]FM_GetShiftState done [20:52:52]opened in 1722213119 [20:52:52]opened+sec_in_day 1722299519 [20:52:52]quantity*price = 34500 [20:52:52]sum+1 = 34501 [20:52:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 465.00 НСП 1% : 4.11 НДС 12% : 49.38 Наличными: 465.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 178 29.07.2024 20:52 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2329 ФПД: 213026782491096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205252&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2329&fm=213026782491096&tin=02508201610067®Number=0000000000189667&sum=46500 0 [20:52:53]StoreToDocumentArchive [20:52:53]shift 15 fd 2329 [20:52:53]save to /storage/0015/doc_00002329 [20:52:53]save last doc name /storage/0015/doc_00002329 to /storage/kkm_last_doc_name [20:52:53]save OK [20:52:53]Clear old archive folders... [20:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=413 [20:52:53]tlvbuf is 010EE770 [20:52:53]SAM_PROTO_ClearQueue [20:52:53]wFMCommunicate request_size=4 [20:52:53]MH_SAM_APDU [20:52:53]CAPDU: 80 09 00 00 [20:52:53]Write to MH i2c: E2 08 00 83 03 80 09 00 00 00 00 00 00 F8 [20:52:53]Write i2c OK [20:52:53]MH_I2C_Read... [20:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:53]Read from MH i2c: E2 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 03 00 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 03 00 83 03 00 90 00 FA [20:52:53]RAPDU: 90 00 [20:52:53]wFMCommunicate OK [20:52:53]SAM_PROTO_ClearQueue done [20:52:53]KKMCreateOFDPacket [20:52:53]OFDProtocolAddRootSTLVToBuf [20:52:53]FM_MakeSignedData [20:52:53]FM_MakeSignedData [20:52:53]SAM_PROTO_SignData [20:52:53]wFMCommunicate request_size=4 [20:52:53]MH_SAM_APDU [20:52:53]CAPDU: 80 0D 01 02 [20:52:53]Write to MH i2c: E2 08 00 84 03 80 0D 01 02 00 00 00 00 00 [20:52:53]Write i2c OK [20:52:53]MH_I2C_Read... [20:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:53]Read from MH i2c: E2 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 03 00 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [20:52:53]RAPDU: 90 00 [20:52:53]wFMCommunicate OK [20:52:53]wFMCommunicate request_size=255 [20:52:53]MH_SAM_APDU [20:52:53]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 [20:52:53]Write to MH i2c: E2 02 01 85 03 80 0D 02 02 FA 00 03 00 9D 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 00 6E [20:52:53]Write i2c OK [20:52:53]MH_I2C_Read... [20:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:53]Read from MH i2c: E2 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 03 00 [20:52:53]MH_I2C_Read... [20:52:53]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [20:52:53]RAPDU: 90 00 [20:52:53]wFMCommunicate OK [20:52:53]wFMCommunicate request_size=172 [20:52:53]MH_SAM_APDU [20:52:53]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 24 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 09 00 00 35 04 06 00 C1 BF 29 B2 B1 D8 [20:52:53]Write to MH i2c: E2 AF 00 86 03 80 0D 02 02 A7 00 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 24 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 09 00 00 35 04 06 00 C1 BF 29 B2 B1 D8 00 00 42 [20:52:53]Write i2c OK [20:52:53]MH_I2C_Read... [20:52:54]OFD Sender: No OFD packet to send [20:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:54]Read from MH i2c: E2 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 03 00 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [20:52:54]RAPDU: 90 00 [20:52:54]wFMCommunicate OK [20:52:54]wFMCommunicate request_size=4 [20:52:54]MH_SAM_APDU [20:52:54]CAPDU: 80 0D 03 02 [20:52:54]Write to MH i2c: E2 08 00 87 03 80 0D 03 02 00 00 00 00 05 [20:52:54]Write i2c OK [20:52:54]MH_I2C_Read... [20:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:54]Read from MH i2c: E2 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 0B 00 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 0B 00 87 03 00 D0 E5 00 98 EC ED FF 99 90 00 C4 [20:52:54]RAPDU: D0 E5 00 98 EC ED FF 99 90 00 [20:52:54]wFMCommunicate OK [20:52:54]SAM_PROTO_SignData done [20:52:54]FM_MakeSignedData done [20:52:54]CreateOFDProtocolMessage [20:52:54]wFMCommunicate request_size=4 [20:52:54]MH_SAM_APDU [20:52:54]CAPDU: 80 11 00 00 [20:52:54]Write to MH i2c: E2 08 00 88 03 80 11 00 00 00 00 00 00 05 [20:52:54]Write i2c OK [20:52:54]MH_I2C_Read... [20:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:54]Read from MH i2c: E2 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 17 00 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: E2 17 00 88 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 55 [20:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:52:54]wFMCommunicate OK [20:52:54]CreateOFDProtocolMessage done [20:52:54]OFDSenderStorePacket 2329 [20:52:54]StoreOFDPacket docnum=2329 [20:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B1 01 00 00 95 F4 A9 01 96 A8 5A 03 01 00 03 00 9D 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 24 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 09 00 00 35 04 06 00 C1 BF 29 B2 B1 D8 D0 E5 00 98 EC ED FF 99 [20:52:54]CheckFolder [20:52:54]dirname=/storage/ofd_packets [20:52:54]CheckFolder done [20:52:54]ProducePacketName [20:52:54]name=ofd_packets/00002329 [20:52:54]NVStorageSaveData ofd_packets/00002329 [20:52:54]File name is /storage/ofd_packets/00002329 [20:52:54]Write 463 bytes [20:52:54]NVStorageSaveData done [20:52:54]OFDSenderStorePacket done [20:52:54]KKMCreateOFDPacket done [20:52:54]NVStorageSaveData kkm_last_timestamp [20:52:54]File name is /storage/kkm_last_timestamp [20:52:54]Write 4 bytes [20:52:54]NVStorageSaveData done [20:52:54]ExternCall_PrintAddStr [20:52:54]wPrintStart [20:52:54]Write to MH i2c: 01 00 00 89 03 8C [20:52:54]OFD Sender: Processing packet 2329 [packets to send 1, broken 0] [20:52:54]ProducePacketName [20:52:54]name=ofd_packets/00002329 [20:52:54]Write i2c OK [20:52:54]MH_I2C_Read... [20:52:54]OFD Sender: To server: pG, [20:52:54]CommunicateWithHost lk.salyk.kg:30040 [20:52:54]ConnectInit lk.salyk.kg [20:52:54]Read from MH i2c: 01 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: 01 07 00 [20:52:54]MH_I2C_Read... [20:52:54]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 FF 0F A1 [20:52:54]RasterBufferAndPrint [20:52:54]line Счет N : (3)126564 [20:52:54]line ИНН: 02508201610067 [20:52:54]line Контрольно-Кассовый Чек [20:52:54]line ПРОДАЖА [20:52:54]line Товар: 2000036210013 [20:52:54]line Кофе Капучино (GABB TRADE) [20:52:54]line 3.000 * 115.00 [20:52:54]line = 345.00 [20:52:54]line НДС 12% НСП 1% [20:52:54]line > о реализуемом товаре [20:52:54]line Товар: 4700000160792 [20:52:54]line Снек Курут классический (круглый) [20:52:54]line 2.000 * 60.00 [20:52:54]line = 120.00 [20:52:54]line НДС 12% НСП 1% [20:52:54]line > о реализуемом товаре [20:52:54]line ИТОГО: 465.00 [20:52:54]line НСП 1% : 4.11 [20:52:54]line НДС 12% : 49.38 [20:52:54]line Наличными: 465.00 [20:52:54]line Безнал.: 0.00 [20:52:54]line Место: АЗС № 127 "Партнер Нефть" [20:52:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:52:54]line СНО: Общий режим [20:52:54]line Чек 178 29.07.2024 20:52 [20:52:54]line Смена: 15 ФФД: 1.0 [20:52:54]line ЗНМ: 0300000161 [20:52:54]line РНМ: 0000000000189667 [20:52:54]line Версия ККМ: v1.0 [20:52:54]line ФМ: 0000000002094248 [20:52:54]line ФД: 2329 [20:52:54]line ФПД: 213026782491096 [20:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205252&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2329&fm=213026782491096&tin=02508201610067®Number=0000000000189667&sum=46500 [20:52:54]line 0 [20:52:54]written 0, free lines is 4095 [20:52:55]Write to MH i2c: 01 00 00 B8 03 BB [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: 01 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: 01 07 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 D2 0C A0 [20:52:55]RasterBufferAndPrint [20:52:55]line [20:52:55]line [20:52:55]line [20:52:55]line [20:52:55]line [20:52:55]written 0, free lines is 3289 [20:52:55]MH_Cut [20:52:55]Write to MH i2c: D1 01 00 BF 03 01 94 [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: D1 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: D1 01 00 [20:52:55]MH_I2C_Read... [20:52:55]Read from MH i2c: D1 01 00 BF 03 00 93 [20:52:55]Write to MH i2c: 01 00 00 C0 03 C3 [20:52:55]Write i2c OK [20:52:55]MH_I2C_Read... [20:52:55]*** Cut start [20:52:55]*** Partial cut [20:52:55]*** CUTSNS_PIN = 1 [20:52:55]*** CUTSNS_PIN = 0 [20:52:56]*** Brake cut motor [20:52:56]Read from MH i2c: 01 [20:52:56]MH_I2C_Read... [20:52:56]*** Stop cut motor [20:52:56]*** Cut end [20:52:56]Read from MH i2c: 01 07 00 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: 01 07 00 C0 03 00 00 00 00 00 FF 0F D8 [20:52:56]process_action close_receipt done [20:52:56]requested_data is exist [20:52:56]produce_requested_data [20:52:56]requested_item fm.sn is exist - process it [20:52:56]wFMCommunicate request_size=4 [20:52:56]MH_SAM_APDU [20:52:56]CAPDU: 80 11 00 00 [20:52:56]Write to MH i2c: E2 08 00 C1 03 80 11 00 00 00 00 00 00 3E [20:52:56]Write i2c OK [20:52:56]MH_I2C_Read... [20:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:56]Read from MH i2c: E2 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: E2 17 00 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: E2 17 00 C1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8E [20:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:52:56]wFMCommunicate OK [20:52:56]requested_item fd.num is exist - process it [20:52:56]SAM_PROTO_GetFieldsCounters [20:52:56]wFMCommunicate request_size=4 [20:52:56]MH_SAM_APDU [20:52:56]CAPDU: 80 13 00 00 [20:52:56]Write to MH i2c: E2 08 00 C2 03 80 13 00 00 00 00 00 00 41 [20:52:56]Write i2c OK [20:52:56]MH_I2C_Read... [20:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:56]Read from MH i2c: E2 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: E2 62 00 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: E2 62 00 C2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 19 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [20:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 19 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:56]wFMCommunicate OK [20:52:56]SAM_PROTO_GetFieldsCounters done [20:52:56]requested_item shift.num is exist - process it [20:52:56]requested_item shift.opened is exist - process it [20:52:56]req_shift_opened [20:52:56]FM_GetShiftState [20:52:56]SAM_PROTO_GetShiftState [20:52:56]wFMCommunicate request_size=4 [20:52:56]MH_SAM_APDU [20:52:56]CAPDU: 80 13 01 00 [20:52:56]Write to MH i2c: E2 08 00 C3 03 80 13 01 00 00 00 00 00 43 [20:52:56]Write i2c OK [20:52:56]MH_I2C_Read... [20:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:56]Read from MH i2c: E2 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: E2 0E 00 [20:52:56]MH_I2C_Read... [20:52:56]Read from MH i2c: E2 0E 00 C3 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3C [20:52:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:52:56]wFMCommunicate OK [20:52:56]SAM_PROTO_GetShiftState done [20:52:56]FM_GetShiftState done [20:52:56]req_shift_opened done [20:52:56]requested_item shift.open_date is exist - process it [20:52:56]req_shift_open_date [20:52:56]req_shift_open_date done [20:52:56]produce_requested_data done [20:52:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2329,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:52:56]process_action_free close_receipt [20:52:56]json_value_free [20:52:56]json_value_free done [20:52:56]process_json_proto returns [20:52:56]Send response to host [20:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2329,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:52:56]free response buf [20:52:56]execute_script done [20:52:56]execute_script returns [20:52:56]free content buf [20:52:56]Sock 7.Close socket [20:52:56]Sock 7.Thread stoped [20:53:39]accept exits with 9 [20:53:39]New connection [20:53:39]New thread 3067276644 created [20:53:39]Thread 3067420004 joined [20:53:39]Waiting for new connection... [20:53:39] Sock 9.Parse request [20:53:39]Sock 9.Check first char [20:53:39]Sock 9.First char is OK [20:53:39]request: POST /json_proto HTTP/1.0 [20:53:39]Method: POST [20:53:39]URL: /json_proto [20:53:39]Method is POST - this is cgi request [20:53:39]url: /json_proto [20:53:39]query_string will be loaded in cgi processing [20:53:39]execute_cgi json_proto POST (null) [20:53:39]execute_cgi path=json_proto method=POST [20:53:39]POST find Content-Length [20:53:39]Host: 172.17.45.132:8080 [20:53:39]Content-Length: 684 [20:53:39]Content-Type: application/json [20:53:39] [20:53:39]POST finish read [20:53:39]Found Content-Length = 684 [20:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 52.870, "sum" : 1956.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 1956.00, "payments": [ { "type": 0, "sum" : 1956.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:39]execute_script... [20:53:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 52.870, "sum" : 1956.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 1956.00, "payments": [ { "type": 0, "sum" : 1956.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:39]POST & json_proto [20:53:39]process_json_proto [20:53:39]json parsed OK: [20:53:39]protocol is kg_v1.0 [20:53:39]action value=close_receipt [20:53:39]process_action close_receipt [20:53:39]cmd_close_receipt [20:53:39]MH_GetDate [20:53:39]Write to MH i2c: F0 00 00 C4 03 B6 [20:53:39]Write i2c OK [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: F0 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: F0 09 00 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: F0 09 00 C4 03 00 53 01 A8 66 E3 0B 90 66 05 [20:53:39]GetLastDocTimeStamp 1722286372 [20:53:39]current date 1722286419 [20:53:39]FM_GetShiftState [20:53:39]SAM_PROTO_GetShiftState [20:53:39]wFMCommunicate request_size=4 [20:53:39]MH_SAM_APDU [20:53:39]CAPDU: 80 13 01 00 [20:53:39]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [20:53:39]Write i2c OK [20:53:39]MH_I2C_Read... [20:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:39]Read from MH i2c: E2 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: E2 0E 00 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 3E [20:53:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:53:39]wFMCommunicate OK [20:53:39]SAM_PROTO_GetShiftState done [20:53:39]FM_GetShiftState done [20:53:39]opened in 1722213119 [20:53:39]opened+sec_in_day 1722299519 [20:53:39]quantity*price = 195619 [20:53:39]sum+1 = 195620 [20:53:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1956.00 Внесено: 2300.00 СДАЧА: 344.00 НСП 1% : 17.31 НДС 12% : 207.74 Наличными: 1956.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 179 29.07.2024 20:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2330 ФПД: 160582190935011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205339&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2330&fm=160582190935011&tin=02508201610067®Number=0000000000189667&sum=195600 [20:53:40]StoreToDocumentArchive [20:53:40]shift 15 fd 2330 [20:53:40]save to /storage/0015/doc_00002330 [20:53:40]save last doc name /storage/0015/doc_00002330 to /storage/kkm_last_doc_name [20:53:40]save OK [20:53:40]Clear old archive folders... [20:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:53:40]tlvbuf is 010E40B0 [20:53:40]SAM_PROTO_ClearQueue [20:53:40]wFMCommunicate request_size=4 [20:53:40]MH_SAM_APDU [20:53:40]CAPDU: 80 09 00 00 [20:53:40]Write to MH i2c: E2 08 00 D2 03 80 09 00 00 00 00 00 00 47 [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [20:53:40]RAPDU: 90 00 [20:53:40]wFMCommunicate OK [20:53:40]SAM_PROTO_ClearQueue done [20:53:40]KKMCreateOFDPacket [20:53:40]OFDProtocolAddRootSTLVToBuf [20:53:40]FM_MakeSignedData [20:53:40]FM_MakeSignedData [20:53:40]SAM_PROTO_SignData [20:53:40]wFMCommunicate request_size=4 [20:53:40]MH_SAM_APDU [20:53:40]CAPDU: 80 0D 01 02 [20:53:40]Write to MH i2c: E2 08 00 D3 03 80 0D 01 02 00 00 00 00 4F [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [20:53:40]RAPDU: 90 00 [20:53:40]wFMCommunicate OK [20:53:40]wFMCommunicate request_size=255 [20:53:40]MH_SAM_APDU [20:53:40]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 33 FF 03 08 00 03 86 CE 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 23 FC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 FC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 51 00 00 00 00 07 04 06 00 10 FC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 09 00 00 35 04 06 00 92 0C [20:53:40]Write to MH i2c: E2 02 01 D4 03 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 33 FF 03 08 00 03 86 CE 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 23 FC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 FC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 51 00 00 00 00 07 04 06 00 10 FC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 09 00 00 35 04 06 00 92 0C 00 00 3F [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [20:53:40]RAPDU: 90 00 [20:53:40]wFMCommunicate OK [20:53:40]wFMCommunicate request_size=9 [20:53:40]MH_SAM_APDU [20:53:40]CAPDU: 80 0D 02 02 04 74 72 AB E3 [20:53:40]Write to MH i2c: E2 0C 00 D5 03 80 0D 02 02 04 00 74 72 AB E3 00 00 CE [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [20:53:40]RAPDU: 90 00 [20:53:40]wFMCommunicate OK [20:53:40]wFMCommunicate request_size=4 [20:53:40]MH_SAM_APDU [20:53:40]CAPDU: 80 0D 03 02 [20:53:40]Write to MH i2c: E2 08 00 D6 03 80 0D 03 02 00 00 00 00 54 [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 0B 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 0B 00 D6 03 00 41 B1 21 5A 41 48 3B 95 90 00 1B [20:53:40]RAPDU: 41 B1 21 5A 41 48 3B 95 90 00 [20:53:40]wFMCommunicate OK [20:53:40]SAM_PROTO_SignData done [20:53:40]FM_MakeSignedData done [20:53:40]CreateOFDProtocolMessage [20:53:40]wFMCommunicate request_size=4 [20:53:40]MH_SAM_APDU [20:53:40]CAPDU: 80 11 00 00 [20:53:40]Write to MH i2c: E2 08 00 D7 03 80 11 00 00 00 00 00 00 54 [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 17 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 17 00 D7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A4 [20:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:53:40]wFMCommunicate OK [20:53:40]CreateOFDProtocolMessage done [20:53:40]OFDSenderStorePacket 2330 [20:53:40]StoreOFDPacket docnum=2330 [20:53:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 8D 06 06 01 77 A9 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 33 FF 03 08 00 03 86 CE 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 23 FC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 FC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 51 00 00 00 00 07 04 06 00 10 FC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 09 00 00 35 04 06 00 92 0C 74 72 AB E3 41 B1 21 5A 41 48 3B 95 [20:53:40]CheckFolder [20:53:40]dirname=/storage/ofd_packets [20:53:40]CheckFolder done [20:53:40]ProducePacketName [20:53:40]name=ofd_packets/00002330 [20:53:40]NVStorageSaveData ofd_packets/00002330 [20:53:40]File name is /storage/ofd_packets/00002330 [20:53:40]Write 300 bytes [20:53:40]NVStorageSaveData done [20:53:40]OFDSenderStorePacket done [20:53:40]KKMCreateOFDPacket done [20:53:40]NVStorageSaveData kkm_last_timestamp [20:53:40]File name is /storage/kkm_last_timestamp [20:53:40]Write 4 bytes [20:53:40]NVStorageSaveData done [20:53:40]ExternCall_PrintAddStr [20:53:40]wPrintStart [20:53:40]Write to MH i2c: 01 00 00 D8 03 DB [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: 01 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: 01 07 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [20:53:40]RasterBufferAndPrint [20:53:40]line Счет N : (1)610139 [20:53:40]line ИНН: 02508201610067 [20:53:40]line Контрольно-Кассовый Чек [20:53:40]line ПРОДАЖА [20:53:40]line ТРК (МРК, ГНК) : 7 [20:53:40]line Товар: 2711190000 [20:53:40]line ГАЗ-К-3 [20:53:40]line 52.870 * 37.00 [20:53:40]line = 1956.19 [20:53:40]line НДС 12% НСП 1% [20:53:40]line > о реализуемом товаре [20:53:40]line ОКРУГЛЕНИЕ: -0.19 [20:53:40]line ИТОГО: 1956.00 [20:53:40]line Внесено: 2300.00 [20:53:40]line СДАЧА: 344.00 [20:53:40]line НСП 1% : 17.31 [20:53:40]line НДС 12% : 207.74 [20:53:40]line Наличными: 1956.00 [20:53:40]line Безнал.: 0.00 [20:53:40]line Место: АЗС № 127 "Партнер Нефть" [20:53:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:53:40]line СНО: Общий режим [20:53:40]line Чек 179 29.07.2024 20:53 [20:53:40]line Смена: 15 ФФД: 1.0 [20:53:40]line ЗНМ: 0300000161 [20:53:40]line РНМ: 0000000000189667 [20:53:40]line Версия ККМ: v1.0 [20:53:40]line ФМ: 0000000002094248 [20:53:40]line ФД: 2330 [20:53:40]line ФПД: 160582190935011 [20:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205339&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2330&fm=160582190935011&tin=02508201610067®Number=0000000000189667&sum=195600 [20:53:41]written 0, free lines is 4095 [20:53:41]Write to MH i2c: 01 00 00 03 04 07 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: 01 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: 01 07 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: 01 07 00 03 04 00 00 00 00 00 EC 0C 06 [20:53:41]RasterBufferAndPrint [20:53:41]line [20:53:41]line [20:53:41]line [20:53:41]line [20:53:41]line [20:53:41]written 0, free lines is 3311 [20:53:41]MH_Cut [20:53:41]Write to MH i2c: D1 01 00 0A 04 01 E0 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: D1 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: D1 01 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: D1 01 00 0A 04 00 DF [20:53:41]Write to MH i2c: 01 00 00 0B 04 0F [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:42]*** Cut start [20:53:42]*** Partial cut [20:53:42]*** CUTSNS_PIN = 1 [20:53:42]*** CUTSNS_PIN = 0 [20:53:42]*** Brake cut motor [20:53:43]Read from MH i2c: 01 [20:53:43]MH_I2C_Read... [20:53:43]*** Stop cut motor [20:53:43]*** Cut end [20:53:43]Read from MH i2c: 01 07 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 FF 0F 24 [20:53:43]process_action close_receipt done [20:53:43]requested_data is exist [20:53:43]produce_requested_data [20:53:43]requested_item fm.sn is exist - process it [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 11 00 00 [20:53:43]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 17 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 DA [20:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:53:43]wFMCommunicate OK [20:53:43]requested_item fd.num is exist - process it [20:53:43]SAM_PROTO_GetFieldsCounters [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 13 00 00 [20:53:43]Write to MH i2c: E2 08 00 0D 04 80 13 00 00 00 00 00 00 8D [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 62 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 62 00 0D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [20:53:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:43]wFMCommunicate OK [20:53:43]SAM_PROTO_GetFieldsCounters done [20:53:43]requested_item shift.num is exist - process it [20:53:43]requested_item shift.opened is exist - process it [20:53:43]req_shift_opened [20:53:43]FM_GetShiftState [20:53:43]SAM_PROTO_GetShiftState [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 13 01 00 [20:53:43]Write to MH i2c: E2 08 00 0E 04 80 13 01 00 00 00 00 00 8F [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 0E 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 0E 00 0E 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 88 [20:53:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:53:43]wFMCommunicate OK [20:53:43]SAM_PROTO_GetShiftState done [20:53:43]FM_GetShiftState done [20:53:43]req_shift_opened done [20:53:43]requested_item shift.open_date is exist - process it [20:53:43]req_shift_open_date [20:53:43]req_shift_open_date done [20:53:43]produce_requested_data done [20:53:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2330,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:53:43]process_action_free close_receipt [20:53:43]json_value_free [20:53:43]json_value_free done [20:53:43]process_json_proto returns [20:53:43]Send response to host [20:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2330,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:53:43]free response buf [20:53:43]execute_script done [20:53:43]execute_script returns [20:53:43]free content buf [20:53:43]Sock 9.Close socket [20:53:43]Sock 9.Thread stoped [20:54:34]accept exits with 7 [20:54:34]New connection [20:54:34]New thread 3067420004 created [20:54:34]Thread 3067276644 joined [20:54:34]Waiting for new connection... [20:54:34] Sock 7.Parse request [20:54:34]Sock 7.Check first char [20:54:34]Sock 7.First char is OK [20:54:34]request: POST /json_proto HTTP/1.0 [20:54:34]Method: POST [20:54:34]URL: /json_proto [20:54:34]Method is POST - this is cgi request [20:54:34]url: /json_proto [20:54:34]query_string will be loaded in cgi processing [20:54:34]execute_cgi json_proto POST (null) [20:54:34]execute_cgi path=json_proto method=POST [20:54:34]POST find Content-Length [20:54:34]Host: 172.17.45.132:8080 [20:54:34]Content-Length: 673 [20:54:34]Content-Type: application/json [20:54:34] [20:54:34]POST finish read [20:54:34]Found Content-Length = 673 [20:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 7.930, "sum" : 600.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:34]execute_script... [20:54:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 7.930, "sum" : 600.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:34]POST & json_proto [20:54:34]process_json_proto [20:54:34]json parsed OK: [20:54:34]protocol is kg_v1.0 [20:54:34]action value=close_receipt [20:54:34]process_action close_receipt [20:54:34]cmd_close_receipt [20:54:34]MH_GetDate [20:54:34]Write to MH i2c: F0 00 00 0F 04 02 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: F0 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: F0 09 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: F0 09 00 0F 04 00 8A 01 A8 66 E3 0B 90 66 88 [20:54:34]GetLastDocTimeStamp 1722286419 [20:54:34]current date 1722286474 [20:54:34]FM_GetShiftState [20:54:34]SAM_PROTO_GetShiftState [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 13 01 00 [20:54:34]Write to MH i2c: E2 08 00 10 04 80 13 01 00 00 00 00 00 91 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0E 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0E 00 10 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8A [20:54:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:54:34]wFMCommunicate OK [20:54:34]SAM_PROTO_GetShiftState done [20:54:34]FM_GetShiftState done [20:54:34]opened in 1722213119 [20:54:34]opened+sec_in_day 1722299519 [20:54:34]quantity*price = 60030 [20:54:34]sum+1 = 60031 [20:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 180 29.07.2024 20:54 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2331 ФПД: 90233863081799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205435&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2331&fm=90233863081799&tin=02508201610067®Number=0000000000189667&sum=60000 [20:54:35]StoreToDocumentArchive [20:54:35]shift 15 fd 2331 [20:54:35]save to /storage/0015/doc_00002331 [20:54:35]save last doc name /storage/0015/doc_00002331 to /storage/kkm_last_doc_name [20:54:35]save OK [20:54:35]Clear old archive folders... [20:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:54:35]tlvbuf is 010ECC30 [20:54:35]SAM_PROTO_ClearQueue [20:54:35]wFMCommunicate request_size=4 [20:54:35]MH_SAM_APDU [20:54:35]CAPDU: 80 09 00 00 [20:54:35]Write to MH i2c: E2 08 00 1D 04 80 09 00 00 00 00 00 00 93 [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:35]Read from MH i2c: E2 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: E2 03 00 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [20:54:35]RAPDU: 90 00 [20:54:35]wFMCommunicate OK [20:54:35]SAM_PROTO_ClearQueue done [20:54:35]KKMCreateOFDPacket [20:54:35]OFDProtocolAddRootSTLVToBuf [20:54:35]FM_MakeSignedData [20:54:35]FM_MakeSignedData [20:54:35]SAM_PROTO_SignData [20:54:35]wFMCommunicate request_size=4 [20:54:35]MH_SAM_APDU [20:54:35]CAPDU: 80 0D 01 02 [20:54:35]Write to MH i2c: E2 08 00 1E 04 80 0D 01 02 00 00 00 00 9B [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: E2 [20:54:35]MH_I2C_Read... [20:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:35]Read from MH i2c: E2 03 00 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [20:54:35]RAPDU: 90 00 [20:54:35]wFMCommunicate OK [20:54:35]wFMCommunicate request_size=255 [20:54:35]MH_SAM_APDU [20:54:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8B 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 09 00 00 35 04 06 00 52 11 35 5B [20:54:35]Write to MH i2c: E2 02 01 1F 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8B 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 09 00 00 35 04 06 00 52 11 35 5B 00 00 49 [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 03 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [20:54:36]RAPDU: 90 00 [20:54:36]wFMCommunicate OK [20:54:36]wFMCommunicate request_size=7 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 0D 02 02 02 0F 47 [20:54:36]Write to MH i2c: E2 0A 00 20 04 80 0D 02 02 02 00 0F 47 00 00 F8 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 03 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [20:54:36]RAPDU: 90 00 [20:54:36]wFMCommunicate OK [20:54:36]wFMCommunicate request_size=4 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 0D 03 02 [20:54:36]Write to MH i2c: E2 08 00 21 04 80 0D 03 02 00 00 00 00 A0 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0B 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0B 00 21 04 00 5A 10 DA 1F A1 79 B8 49 90 00 1F [20:54:36]RAPDU: 5A 10 DA 1F A1 79 B8 49 90 00 [20:54:36]wFMCommunicate OK [20:54:36]SAM_PROTO_SignData done [20:54:36]FM_MakeSignedData done [20:54:36]CreateOFDProtocolMessage [20:54:36]wFMCommunicate request_size=4 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 11 00 00 [20:54:36]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 17 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F0 [20:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:54:36]wFMCommunicate OK [20:54:36]CreateOFDProtocolMessage done [20:54:36]OFDSenderStorePacket 2331 [20:54:36]StoreOFDPacket docnum=2331 [20:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 C4 6A 04 01 3D 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8B 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 09 00 00 35 04 06 00 52 11 35 5B 0F 47 5A 10 DA 1F A1 79 B8 49 [20:54:36]CheckFolder [20:54:36]dirname=/storage/ofd_packets [20:54:36]CheckFolder done [20:54:36]ProducePacketName [20:54:36]name=ofd_packets/00002331 [20:54:36]NVStorageSaveData ofd_packets/00002331 [20:54:36]File name is /storage/ofd_packets/00002331 [20:54:36]Write 298 bytes [20:54:36]NVStorageSaveData done [20:54:36]OFDSenderStorePacket done [20:54:36]KKMCreateOFDPacket done [20:54:36]NVStorageSaveData kkm_last_timestamp [20:54:36]File name is /storage/kkm_last_timestamp [20:54:36]Write 4 bytes [20:54:36]NVStorageSaveData done [20:54:36]ExternCall_PrintAddStr [20:54:36]wPrintStart [20:54:36]Write to MH i2c: 01 00 00 23 04 27 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: 01 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: 01 07 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [20:54:36]RasterBufferAndPrint [20:54:36]line Счет N : (1)610146 [20:54:36]line ИНН: 02508201610067 [20:54:36]line Контрольно-Кассовый Чек [20:54:36]line ПРОДАЖА [20:54:36]line ТРК (МРК, ГНК) : 1 [20:54:36]line Товар: 2710194210 [20:54:36]line ДТ-К-2 [20:54:36]line 7.930 * 75.70 [20:54:36]line = 600.30 [20:54:36]line НДС 12% НСП 1% [20:54:36]line > о реализуемом товаре [20:54:36]line ОКРУГЛЕНИЕ: -0.30 [20:54:36]line ИТОГО: 600.00 [20:54:36]line Внесено: 600.00 [20:54:36]line СДАЧА: 0.00 [20:54:36]line НСП 1% : 5.31 [20:54:36]line НДС 12% : 63.75 [20:54:36]line Наличными: 600.00 [20:54:36]line Безнал.: 0.00 [20:54:36]line Место: АЗС № 127 "Партнер Нефть" [20:54:36]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:54:36]line СНО: Общий режим [20:54:36]line Чек 180 29.07.2024 20:54 [20:54:36]line Смена: 15 ФФД: 1.0 [20:54:36]line ЗНМ: 0300000161 [20:54:36]line РНМ: 0000000000189667 [20:54:36]line Версия ККМ: v1.0 [20:54:36]line ФМ: 0000000002094248 [20:54:36]line ФД: 2331 [20:54:36]line ФПД: 90233863081799 [20:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205435&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2331&fm=90233863081799&tin=02508201610067®Number=0000000000189667&sum=60000 [20:54:36]written 0, free lines is 4095 [20:54:36]Write to MH i2c: 01 00 00 4E 04 52 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: 01 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: 01 07 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 E0 0C 45 [20:54:36]RasterBufferAndPrint [20:54:36]line [20:54:36]line [20:54:36]line [20:54:36]line [20:54:36]line [20:54:36]written 0, free lines is 3302 [20:54:36]MH_Cut [20:54:36]Write to MH i2c: D1 01 00 55 04 01 2B [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: D1 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: D1 01 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: D1 01 00 55 04 00 2A [20:54:36]Write to MH i2c: 01 00 00 56 04 5A [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:37]*** Cut start [20:54:37]*** Partial cut [20:54:37]*** CUTSNS_PIN = 1 [20:54:37]*** CUTSNS_PIN = 0 [20:54:37]*** Brake cut motor [20:54:37]Read from MH i2c: 01 [20:54:37]MH_I2C_Read... [20:54:37]*** Stop cut motor [20:54:37]*** Cut end [20:54:37]Read from MH i2c: 01 07 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FF 0F 6F [20:54:37]process_action close_receipt done [20:54:37]requested_data is exist [20:54:37]produce_requested_data [20:54:37]requested_item fm.sn is exist - process it [20:54:37]wFMCommunicate request_size=4 [20:54:37]MH_SAM_APDU [20:54:37]CAPDU: 80 11 00 00 [20:54:37]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [20:54:37]Write i2c OK [20:54:37]MH_I2C_Read... [20:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:37]Read from MH i2c: E2 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 17 00 [20:54:37]MH_I2C_Read... [20:54:37]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 25 [20:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:54:38]wFMCommunicate OK [20:54:38]requested_item fd.num is exist - process it [20:54:38]SAM_PROTO_GetFieldsCounters [20:54:38]wFMCommunicate request_size=4 [20:54:38]MH_SAM_APDU [20:54:38]CAPDU: 80 13 00 00 [20:54:38]Write to MH i2c: E2 08 00 58 04 80 13 00 00 00 00 00 00 D8 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 62 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 62 00 58 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [20:54:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:38]wFMCommunicate OK [20:54:38]SAM_PROTO_GetFieldsCounters done [20:54:38]requested_item shift.num is exist - process it [20:54:38]requested_item shift.opened is exist - process it [20:54:38]req_shift_opened [20:54:38]FM_GetShiftState [20:54:38]SAM_PROTO_GetShiftState [20:54:38]wFMCommunicate request_size=4 [20:54:38]MH_SAM_APDU [20:54:38]CAPDU: 80 13 01 00 [20:54:38]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:38]Read from MH i2c: E2 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 0E 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D3 [20:54:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:54:38]wFMCommunicate OK [20:54:38]SAM_PROTO_GetShiftState done [20:54:38]FM_GetShiftState done [20:54:38]req_shift_opened done [20:54:38]requested_item shift.open_date is exist - process it [20:54:38]req_shift_open_date [20:54:38]req_shift_open_date done [20:54:38]produce_requested_data done [20:54:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2331,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:54:38]process_action_free close_receipt [20:54:38]json_value_free [20:54:38]json_value_free done [20:54:38]process_json_proto returns [20:54:38]Send response to host [20:54:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2331,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:54:38]free response buf [20:54:38]execute_script done [20:54:38]execute_script returns [20:54:38]free content buf [20:54:38]Sock 7.Close socket [20:54:38]Sock 7.Thread stoped [20:55:05]accept exits with 9 [20:55:05]New connection [20:55:05]New thread 3067276644 created [20:55:05]Thread 3067420004 joined [20:55:05]Waiting for new connection... [20:55:05] Sock 9.Parse request [20:55:05]Sock 9.Check first char [20:55:05]Sock 9.First char is OK [20:55:05]request: POST /json_proto HTTP/1.0 [20:55:05]Method: POST [20:55:05]URL: /json_proto [20:55:05]Method is POST - this is cgi request [20:55:05]url: /json_proto [20:55:05]query_string will be loaded in cgi processing [20:55:05]execute_cgi json_proto POST (null) [20:55:05]execute_cgi path=json_proto method=POST [20:55:05]POST find Content-Length [20:55:05]Host: 172.17.45.132:8080 [20:55:05]Content-Length: 682 [20:55:05]Content-Type: application/json [20:55:05] [20:55:05]POST finish read [20:55:05]Found Content-Length = 682 [20:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 15.400, "sum" : 1044.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1044.00, "total" : 1044.00, "payments": [ { "type": 0, "sum" : 1044.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:05]execute_script... [20:55: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)610147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 15.400, "sum" : 1044.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1044.00, "total" : 1044.00, "payments": [ { "type": 0, "sum" : 1044.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:05]POST & json_proto [20:55:05]process_json_proto [20:55:05]json parsed OK: [20:55:05]protocol is kg_v1.0 [20:55:05]action value=close_receipt [20:55:05]process_action close_receipt [20:55:05]cmd_close_receipt [20:55:05]MH_GetDate [20:55:05]Write to MH i2c: F0 00 00 5A 04 4D [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: F0 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: F0 09 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: F0 09 00 5A 04 00 A9 01 A8 66 E3 0B 90 66 F2 [20:55:05]GetLastDocTimeStamp 1722286475 [20:55:05]current date 1722286505 [20:55:05]FM_GetShiftState [20:55:05]SAM_PROTO_GetShiftState [20:55:05]wFMCommunicate request_size=4 [20:55:05]MH_SAM_APDU [20:55:05]CAPDU: 80 13 01 00 [20:55:05]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [20:55:05]Write i2c OK [20:55:05]MH_I2C_Read... [20:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:05]Read from MH i2c: E2 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 0E 00 [20:55:05]MH_I2C_Read... [20:55:05]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D5 [20:55:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:55:05]wFMCommunicate OK [20:55:05]SAM_PROTO_GetShiftState done [20:55:05]FM_GetShiftState done [20:55:05]opened in 1722213119 [20:55:05]opened+sec_in_day 1722299519 [20:55:05]quantity*price = 104412 [20:55:05]sum+1 = 104413 [20:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1044.00 Внесено: 1044.00 СДАЧА: 0.00 НСП 1% : 9.24 НДС 12% : 110.88 Наличными: 1044.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 181 29.07.2024 20:55 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2332 ФПД: 153903098681416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205505&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2332&fm=153903098681416&tin=02508201610067®Number=0000000000189667&sum=104400 [20:55:06]StoreToDocumentArchive [20:55:06]shift 15 fd 2332 [20:55:06]save to /storage/0015/doc_00002332 [20:55:06]save last doc name /storage/0015/doc_00002332 to /storage/kkm_last_doc_name [20:55:06]save OK [20:55:06]Clear old archive folders... [20:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:06]tlvbuf is 010E3D90 [20:55:06]SAM_PROTO_ClearQueue [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 09 00 00 [20:55:06]Write to MH i2c: E2 08 00 68 04 80 09 00 00 00 00 00 00 DE [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [20:55:06]RAPDU: 90 00 [20:55:06]wFMCommunicate OK [20:55:06]SAM_PROTO_ClearQueue done [20:55:06]KKMCreateOFDPacket [20:55:06]OFDProtocolAddRootSTLVToBuf [20:55:06]FM_MakeSignedData [20:55:06]FM_MakeSignedData [20:55:06]SAM_PROTO_SignData [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 0D 01 02 [20:55:06]Write to MH i2c: E2 08 00 69 04 80 0D 01 02 00 00 00 00 E6 [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [20:55:06]RAPDU: 90 00 [20:55:06]wFMCommunicate OK [20:55:06]wFMCommunicate request_size=255 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 28 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DC 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 2B 00 00 00 00 07 04 06 00 D0 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A9 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 09 00 00 35 04 06 00 8B [20:55:06]Write to MH i2c: E2 02 01 6A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 28 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DC 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 2B 00 00 00 00 07 04 06 00 D0 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A9 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 09 00 00 35 04 06 00 8B 00 00 7A [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]ConnectInit Can't connect to host [20:55:06]CommunicateWithHost connect error [20:55:06]CommunicateWithHost err = -1 [20:55:06]OFD Sender: Server communicate error [20:55:06]OFD Sender: Processing packet 2329 [packets to send 3, broken 0] [20:55:06]ProducePacketName [20:55:06]name=ofd_packets/00002329 [20:55:06]OFD Sender: To server: pG, [20:55:06]CommunicateWithHost lk.salyk.kg:30040 [20:55:06]ConnectInit lk.salyk.kg [20:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [20:55:06]RAPDU: 90 00 [20:55:06]wFMCommunicate OK [20:55:06]wFMCommunicate request_size=10 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 0D 02 02 05 F9 5B 86 D8 48 [20:55:06]Write to MH i2c: E2 0D 00 6B 04 80 0D 02 02 05 00 F9 5B 86 D8 48 00 00 ED [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [20:55:06]RAPDU: 90 00 [20:55:06]wFMCommunicate OK [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 0D 03 02 [20:55:06]Write to MH i2c: E2 08 00 6C 04 80 0D 03 02 00 00 00 00 EB [20:55:06]Connected sock=10 [20:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 B1 01 00 00 95 F4 A9 01 96 A8 5A 03 01 00 03 00 9D 01 1E 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 24 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 19 09 00 00 35 04 06 00 C1 BF 29 B2 B1 D8 D0 E5 00 98 EC ED FF 99 [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 0B 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 0B 00 6C 04 00 E8 13 5D 54 E3 2F E3 CE 90 00 5B [20:55:06]RAPDU: E8 13 5D 54 E3 2F E3 CE 90 00 [20:55:06]wFMCommunicate OK [20:55:06]SAM_PROTO_SignData done [20:55:06]FM_MakeSignedData done [20:55:06]CreateOFDProtocolMessage [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 11 00 00 [20:55:06]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 17 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3B [20:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:55:06]wFMCommunicate OK [20:55:06]CreateOFDProtocolMessage done [20:55:06]OFDSenderStorePacket 2332 [20:55:06]StoreOFDPacket docnum=2332 [20:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2E CB 07 01 FF 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 28 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DC 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 2B 00 00 00 00 07 04 06 00 D0 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A9 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 09 00 00 35 04 06 00 8B F9 5B 86 D8 48 E8 13 5D 54 E3 2F E3 CE [20:55:07]CheckFolder [20:55:07]dirname=/storage/ofd_packets [20:55:07]CheckFolder done [20:55:07]ProducePacketName [20:55:07]name=ofd_packets/00002332 [20:55:07]NVStorageSaveData ofd_packets/00002332 [20:55:07]File name is /storage/ofd_packets/00002332 [20:55:07]Write 301 bytes [20:55:07]NVStorageSaveData done [20:55:07]OFDSenderStorePacket done [20:55:07]KKMCreateOFDPacket done [20:55:07]NVStorageSaveData kkm_last_timestamp [20:55:07]File name is /storage/kkm_last_timestamp [20:55:07]Write 4 bytes [20:55:07]NVStorageSaveData done [20:55:07]ExternCall_PrintAddStr [20:55:07]wPrintStart [20:55:07]Write to MH i2c: 01 00 00 6E 04 72 [20:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8D 8C 47 00 DF 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 32 30 39 34 32 34 38 10 04 04 00 19 09 00 00 F4 03 04 00 14 AD A7 66 B6 04 01 00 00 84 32 C1 7A 24 34 F5 65 [20:55:07]CommunicateWithHost err = 0 [20:55:07]CheckOFDResponse [20:55:07]1017 (14) - 77093643461234 [20:55:07]1041 (16) - 0000000002094248 [20:55:07]1040 (4) - 2329 [20:55:07]1012 (4) - 29.07.2024 14:54 [20:55:07]1206 (1) - 0 [20:55:07]OFD Sender: Remove packet 2329 [20:55:07]ProducePacketName [20:55:07]name=ofd_packets/00002329 [20:55:07]NVStorageDeleteData [20:55:07]Write i2c OK [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: 01 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: 01 07 00 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [20:55:07]RasterBufferAndPrint [20:55:07]line Счет N : (1)610147 [20:55:07]line ИНН: 02508201610067 [20:55:07]line Контрольно-Кассовый Чек [20:55:07]line ПРОДАЖА [20:55:07]line ТРК (МРК, ГНК) : 52 [20:55:07]line Товар: 2710124130 [20:55:07]line Аи-92-К-2 [20:55:07]line 15.400 * 67.80 [20:55:07]line = 1044.12 [20:55:07]line НДС 12% НСП 1% [20:55:07]line > о реализуемом товаре [20:55:07]line ОКРУГЛЕНИЕ: -0.12 [20:55:07]line ИТОГО: 1044.00 [20:55:07]line Внесено: 1044.00 [20:55:07]line СДАЧА: 0.00 [20:55:07]line НСП 1% : 9.24 [20:55:07]line НДС 12% : 110.88 [20:55:07]line Наличными: 1044.00 [20:55:07]line Безнал.: 0.00 [20:55:07]line Место: АЗС № 127 "Партнер Нефть" [20:55:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:55:07]line СНО: Общий режим [20:55:07]line Чек 181 29.07.2024 20:55 [20:55:07]line Смена: 15 ФФД: 1.0 [20:55:07]line ЗНМ: 0300000161 [20:55:07]line РНМ: 0000000000189667 [20:55:07]line Версия ККМ: v1.0 [20:55:07]line ФМ: 0000000002094248 [20:55:07]line ФД: 2332 [20:55:07]line ФПД: 153903098681416 [20:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205505&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2332&fm=153903098681416&tin=02508201610067®Number=0000000000189667&sum=104400 [20:55:07]written 0, free lines is 4095 [20:55:07]Write to MH i2c: 01 00 00 99 04 9D [20:55:07]Write i2c OK [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: 01 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: 01 07 00 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: 01 07 00 99 04 00 00 00 00 00 EC 0C 9C [20:55:07]RasterBufferAndPrint [20:55:07]line [20:55:07]line [20:55:07]line [20:55:07]line [20:55:07]line [20:55:07]written 0, free lines is 3314 [20:55:07]MH_Cut [20:55:07]Write to MH i2c: D1 01 00 A0 04 01 76 [20:55:07]Write i2c OK [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: D1 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: D1 01 00 [20:55:07]MH_I2C_Read... [20:55:07]Read from MH i2c: D1 01 00 A0 04 00 75 [20:55:07]Write to MH i2c: 01 00 00 A1 04 A5 [20:55:07]Write i2c OK [20:55:07]MH_I2C_Read... [20:55:07]OFD Sender: Processing packet 2330 [packets to send 3, broken 0] [20:55:07]ProducePacketName [20:55:07]name=ofd_packets/00002330 [20:55:07]OFD Sender: To server: pG, [20:55:07]CommunicateWithHost lk.salyk.kg:30040 [20:55:07]ConnectInit lk.salyk.kg [20:55:07]Connected sock=10 [20:55:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 8D 06 06 01 77 A9 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 33 FF 03 08 00 03 86 CE 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 23 FC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 FC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 51 00 00 00 00 07 04 06 00 10 FC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 53 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 09 00 00 35 04 06 00 92 0C 74 72 AB E3 41 B1 21 5A 41 48 3B 95 [20:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 94 0C 47 00 10 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1A 09 00 00 F4 03 04 00 15 AD A7 66 B6 04 01 00 00 96 76 DA 3A 18 58 49 9C [20:55:08]CommunicateWithHost err = 0 [20:55:08]CheckOFDResponse [20:55:08]1017 (14) - 77093643461234 [20:55:08]1041 (16) - 0000000002094248 [20:55:08]1040 (4) - 2330 [20:55:08]1012 (4) - 29.07.2024 14:54 [20:55:08]1206 (1) - 0 [20:55:08]OFD Sender: Remove packet 2330 [20:55:08]ProducePacketName [20:55:08]name=ofd_packets/00002330 [20:55:08]NVStorageDeleteData [20:55:08]*** Cut start [20:55:08]*** Partial cut [20:55:08]*** CUTSNS_PIN = 1 [20:55:08]*** CUTSNS_PIN = 0 [20:55:08]OFD Sender: Processing packet 2331 [packets to send 2, broken 0] [20:55:08]ProducePacketName [20:55:08]name=ofd_packets/00002331 [20:55:08]OFD Sender: To server: pG, [20:55:08]CommunicateWithHost lk.salyk.kg:30040 [20:55:08]ConnectInit lk.salyk.kg [20:55:08]*** Brake cut motor [20:55:08]Connected sock=10 [20:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 C4 6A 04 01 3D 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8B 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1B 09 00 00 35 04 06 00 52 11 35 5B 0F 47 5A 10 DA 1F A1 79 B8 49 [20:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6E 1E 47 00 0A 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 32 30 39 34 32 34 38 10 04 04 00 1B 09 00 00 F4 03 04 00 16 AD A7 66 B6 04 01 00 00 3C DA 74 73 CE 8D 04 1C [20:55:09]CommunicateWithHost err = 0 [20:55:09]CheckOFDResponse [20:55:09]1017 (14) - 77093643461234 [20:55:09]1041 (16) - 0000000002094248 [20:55:09]1040 (4) - 2331 [20:55:09]1012 (4) - 29.07.2024 14:54 [20:55:09]1206 (1) - 0 [20:55:09]OFD Sender: Remove packet 2331 [20:55:09]ProducePacketName [20:55:09]name=ofd_packets/00002331 [20:55:09]NVStorageDeleteData [20:55:09]Read from MH i2c: 01 [20:55:09]MH_I2C_Read... [20:55:09]*** Stop cut motor [20:55:09]*** Cut end [20:55:09]Read from MH i2c: 01 07 00 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: 01 07 00 A1 04 00 00 00 00 00 FF 0F BA [20:55:09]process_action close_receipt done [20:55:09]requested_data is exist [20:55:09]produce_requested_data [20:55:09]requested_item fm.sn is exist - process it [20:55:09]wFMCommunicate request_size=4 [20:55:09]MH_SAM_APDU [20:55:09]CAPDU: 80 11 00 00 [20:55:09]Write to MH i2c: E2 08 00 A2 04 80 11 00 00 00 00 00 00 20 [20:55:09]Write i2c OK [20:55:09]MH_I2C_Read... [20:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:09]Read from MH i2c: E2 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: E2 17 00 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: E2 17 00 A2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 70 [20:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:55:09]wFMCommunicate OK [20:55:09]requested_item fd.num is exist - process it [20:55:09]SAM_PROTO_GetFieldsCounters [20:55:09]wFMCommunicate request_size=4 [20:55:09]MH_SAM_APDU [20:55:09]CAPDU: 80 13 00 00 [20:55:09]Write to MH i2c: E2 08 00 A3 04 80 13 00 00 00 00 00 00 23 [20:55:09]Write i2c OK [20:55:09]MH_I2C_Read... [20:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:09]Read from MH i2c: E2 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: E2 62 00 [20:55:09]MH_I2C_Read... [20:55:09]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 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [20:55:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:09]wFMCommunicate OK [20:55:09]SAM_PROTO_GetFieldsCounters done [20:55:09]requested_item shift.num is exist - process it [20:55:09]requested_item shift.opened is exist - process it [20:55:09]req_shift_opened [20:55:09]FM_GetShiftState [20:55:09]SAM_PROTO_GetShiftState [20:55:09]wFMCommunicate request_size=4 [20:55:09]MH_SAM_APDU [20:55:09]CAPDU: 80 13 01 00 [20:55:09]Write to MH i2c: E2 08 00 A4 04 80 13 01 00 00 00 00 00 25 [20:55:09]Write i2c OK [20:55:09]MH_I2C_Read... [20:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:09]Read from MH i2c: E2 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: E2 0E 00 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: E2 0E 00 A4 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1E [20:55:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:55:09]wFMCommunicate OK [20:55:09]SAM_PROTO_GetShiftState done [20:55:09]FM_GetShiftState done [20:55:09]req_shift_opened done [20:55:09]requested_item shift.open_date is exist - process it [20:55:09]req_shift_open_date [20:55:09]req_shift_open_date done [20:55:09]produce_requested_data done [20:55:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2332,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:55:09]process_action_free close_receipt [20:55:09]json_value_free [20:55:09]json_value_free done [20:55:09]process_json_proto returns [20:55:09]Send response to host [20:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2332,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:55:09]free response buf [20:55:09]execute_script done [20:55:09]execute_script returns [20:55:09]free content buf [20:55:09]Sock 9.Close socket [20:55:09]Sock 9.Thread stoped [20:55:09]OFD Sender: Processing packet 2332 [packets to send 1, broken 0] [20:55:09]ProducePacketName [20:55:09]name=ofd_packets/00002332 [20:55:09]OFD Sender: To server: pG, [20:55:09]CommunicateWithHost lk.salyk.kg:30040 [20:55:09]ConnectInit lk.salyk.kg [20:55:09]Connected sock=10 [20:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2E CB 07 01 FF 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 28 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DC 97 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 97 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 2B 00 00 00 00 07 04 06 00 D0 97 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A9 01 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1C 09 00 00 35 04 06 00 8B F9 5B 86 D8 48 E8 13 5D 54 E3 2F E3 CE [20:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 77 B6 47 00 D9 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 32 30 39 34 32 34 38 10 04 04 00 1C 09 00 00 F4 03 04 00 17 AD A7 66 B6 04 01 00 00 D4 52 FD F9 73 7D 5C 90 [20:55:10]CommunicateWithHost err = 0 [20:55:10]CheckOFDResponse [20:55:10]1017 (14) - 77093643461234 [20:55:10]1041 (16) - 0000000002094248 [20:55:10]1040 (4) - 2332 [20:55:10]1012 (4) - 29.07.2024 14:54 [20:55:10]1206 (1) - 0 [20:55:10]OFD Sender: Remove packet 2332 [20:55:10]ProducePacketName [20:55:10]name=ofd_packets/00002332 [20:55:10]NVStorageDeleteData [20:55:10]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:33]accept exits with 7 [20:56:33]New connection [20:56:33]New thread 3067420004 created [20:56:33]Thread 3067276644 joined [20:56:33]Waiting for new connection... [20:56:33] Sock 7.Parse request [20:56:33]Sock 7.Check first char [20:56:33]Sock 7.First char is OK [20:56:33]request: POST /json_proto HTTP/1.0 [20:56:33]Method: POST [20:56:33]URL: /json_proto [20:56:33]Method is POST - this is cgi request [20:56:33]url: /json_proto [20:56:33]query_string will be loaded in cgi processing [20:56:33]execute_cgi json_proto POST (null) [20:56:33]execute_cgi path=json_proto method=POST [20:56:33]POST find Content-Length [20:56:33]Host: 172.17.45.132:8080 [20:56:33]Content-Length: 819 [20:56:33]Content-Type: application/json [20:56:33] [20:56:33]POST finish read [20:56:33]Found Content-Length = 819 [20:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:33]execute_script... [20:56:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:33]POST & json_proto [20:56:33]process_json_proto [20:56:33]json parsed OK: [20:56:33]protocol is kg_v1.0 [20:56:33]action value=close_receipt [20:56:33]process_action close_receipt [20:56:33]cmd_close_receipt [20:56:33]MH_GetDate [20:56:33]Write to MH i2c: F0 00 00 A5 04 98 [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: F0 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: F0 09 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: F0 09 00 A5 04 00 02 02 A8 66 E3 0B 90 66 97 [20:56:33]GetLastDocTimeStamp 1722286505 [20:56:33]current date 1722286594 [20:56:33]FM_GetShiftState [20:56:33]SAM_PROTO_GetShiftState [20:56:33]wFMCommunicate request_size=4 [20:56:33]MH_SAM_APDU [20:56:33]CAPDU: 80 13 01 00 [20:56:33]Write to MH i2c: E2 08 00 A6 04 80 13 01 00 00 00 00 00 27 [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:34]Read from MH i2c: E2 [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: E2 0E 00 [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: E2 0E 00 A6 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 20 [20:56:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:56:34]wFMCommunicate OK [20:56:34]SAM_PROTO_GetShiftState done [20:56:34]FM_GetShiftState done [20:56:34]opened in 1722213119 [20:56:34]opened+sec_in_day 1722299519 [20:56:34]quantity*price = 100005 [20:56:34]sum+1 = 100006 [20:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 182 29.07.2024 20:56 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: Бакай Банк ФМ: 0000000002094248 ФД: 2333 ФПД: 28489074048748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205634&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2333&fm=28489074048748&tin=02508201610067®Number=0000000000189667&sum=100005 [20:56:35]StoreToDocumentArchive [20:56:35]shift 15 fd 2333 [20:56:35]save to /storage/0015/doc_00002333 [20:56:35]save last doc name /storage/0015/doc_00002333 to /storage/kkm_last_doc_name [20:56:35]save OK [20:56:35]Clear old archive folders... [20:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:35]tlvbuf is 010DBE70 [20:56:35]SAM_PROTO_ClearQueue [20:56:35]wFMCommunicate request_size=4 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 09 00 00 [20:56:35]Write to MH i2c: E2 08 00 B3 04 80 09 00 00 00 00 00 00 29 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [20:56:35]RAPDU: 90 00 [20:56:35]wFMCommunicate OK [20:56:35]SAM_PROTO_ClearQueue done [20:56:35]KKMCreateOFDPacket [20:56:35]OFDProtocolAddRootSTLVToBuf [20:56:35]FM_MakeSignedData [20:56:35]FM_MakeSignedData [20:56:35]SAM_PROTO_SignData [20:56:35]wFMCommunicate request_size=4 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 0D 01 02 [20:56:35]Write to MH i2c: E2 08 00 B4 04 80 0D 01 02 00 00 00 00 31 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [20:56:35]RAPDU: 90 00 [20:56:35]wFMCommunicate OK [20:56:35]wFMCommunicate request_size=255 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 02 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 09 00 00 35 04 06 00 19 [20:56:35]Write to MH i2c: E2 02 01 B5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 02 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 09 00 00 35 04 06 00 19 00 00 65 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [20:56:35]RAPDU: 90 00 [20:56:35]wFMCommunicate OK [20:56:35]wFMCommunicate request_size=10 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 0D 02 02 05 E9 21 23 7E EC [20:56:35]Write to MH i2c: E2 0D 00 B6 04 80 0D 02 02 05 00 E9 21 23 7E EC 00 00 D5 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [20:56:35]RAPDU: 90 00 [20:56:35]wFMCommunicate OK [20:56:35]wFMCommunicate request_size=4 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 0D 03 02 [20:56:35]Write to MH i2c: E2 08 00 B7 04 80 0D 03 02 00 00 00 00 36 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 0B 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 0B 00 B7 04 00 9A 28 9C B4 A4 73 DF 6E 90 00 AD [20:56:35]RAPDU: 9A 28 9C B4 A4 73 DF 6E 90 00 [20:56:35]wFMCommunicate OK [20:56:35]SAM_PROTO_SignData done [20:56:35]FM_MakeSignedData done [20:56:35]CreateOFDProtocolMessage [20:56:35]wFMCommunicate request_size=4 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 11 00 00 [20:56:35]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:35]Read from MH i2c: E2 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 17 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 86 [20:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:56:35]wFMCommunicate OK [20:56:35]CreateOFDProtocolMessage done [20:56:35]OFDSenderStorePacket 2333 [20:56:35]StoreOFDPacket docnum=2333 [20:56:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F2 6A 07 01 9B E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 02 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 09 00 00 35 04 06 00 19 E9 21 23 7E EC 9A 28 9C B4 A4 73 DF 6E [20:56:35]CheckFolder [20:56:35]dirname=/storage/ofd_packets [20:56:35]CheckFolder done [20:56:35]ProducePacketName [20:56:35]name=ofd_packets/00002333 [20:56:35]NVStorageSaveData ofd_packets/00002333 [20:56:35]File name is /storage/ofd_packets/00002333 [20:56:35]Write 301 bytes [20:56:35]NVStorageSaveData done [20:56:35]OFDSenderStorePacket done [20:56:35]KKMCreateOFDPacket done [20:56:35]NVStorageSaveData kkm_last_timestamp [20:56:35]File name is /storage/kkm_last_timestamp [20:56:35]Write 4 bytes [20:56:35]NVStorageSaveData done [20:56:35]ExternCall_PrintAddStr [20:56:35]wPrintStart [20:56:35]Write to MH i2c: 01 00 00 B9 04 BD [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: 01 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: 01 07 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [20:56:35]RasterBufferAndPrint [20:56:35]line Счет N : (1)610149 [20:56:35]line ИНН: 02508201610067 [20:56:35]line Контрольно-Кассовый Чек [20:56:35]line ПРОДАЖА [20:56:35]line ТРК (МРК, ГНК) : 42 [20:56:35]line Товар: 2710124130 [20:56:35]line Аи-92-К-2 [20:56:35]line 14.750 * 67.80 [20:56:35]line = 1000.05 [20:56:35]line НДС 12% НСП 1% [20:56:35]line > о реализуемом товаре [20:56:35]line ИТОГО: 1000.05 [20:56:35]line НСП 1% : 8.85 [20:56:35]line НДС 12% : 106.20 [20:56:35]line Наличными: 0.00 [20:56:35]line Безнал.: 1000.05 [20:56:35]line Место: АЗС № 127 "Партнер Нефть" [20:56:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:56:35]line СНО: Общий режим [20:56:35]line Чек 182 29.07.2024 20:56 [20:56:35]line Смена: 15 ФФД: 1.0 [20:56:35]line ЗНМ: 0300000161 [20:56:35]line РНМ: 0000000000189667 [20:56:35]line Версия ККМ: v1.0 [20:56:35]line Платежная система: Бакай Банк [20:56:35]line ФМ: 0000000002094248 [20:56:35]line ФД: 2333 [20:56:35]line ФПД: 28489074048748 [20:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205634&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2333&fm=28489074048748&tin=02508201610067®Number=0000000000189667&sum=100005 [20:56:35]written 0, free lines is 4095 [20:56:35]OFD Sender: Processing packet 2333 [packets to send 1, broken 0] [20:56:35]ProducePacketName [20:56:35]name=ofd_packets/00002333 [20:56:35]OFD Sender: To server: pG, [20:56:35]CommunicateWithHost lk.salyk.kg:30040 [20:56:35]ConnectInit lk.salyk.kg [20:56:35]Connected sock=10 [20:56:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 F2 6A 07 01 9B E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 02 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 09 00 00 35 04 06 00 19 E9 21 23 7E EC 9A 28 9C B4 A4 73 DF 6E [20:56:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 59 D6 47 00 9B 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1D 09 00 00 F4 03 04 00 6D AD A7 66 B6 04 01 00 00 5E 78 6A C8 BF 0C F6 91 [20:56:36]CommunicateWithHost err = 0 [20:56:36]CheckOFDResponse [20:56:36]1017 (14) - 77093643461234 [20:56:36]1041 (16) - 0000000002094248 [20:56:36]1040 (4) - 2333 [20:56:36]1012 (4) - 29.07.2024 14:55 [20:56:36]1206 (1) - 0 [20:56:36]OFD Sender: Remove packet 2333 [20:56:36]ProducePacketName [20:56:36]name=ofd_packets/00002333 [20:56:36]NVStorageDeleteData [20:56:36]Write to MH i2c: 01 00 00 E3 04 E7 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: 01 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: 01 07 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: 01 07 00 E3 04 00 00 00 00 00 14 0D 0F [20:56:36]RasterBufferAndPrint [20:56:36]line [20:56:36]line [20:56:36]line [20:56:36]line [20:56:36]line [20:56:36]written 0, free lines is 3354 [20:56:36]MH_Cut [20:56:36]Write to MH i2c: D1 01 00 EA 04 01 C0 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: D1 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: D1 01 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: D1 01 00 EA 04 00 BF [20:56:36]Write to MH i2c: 01 00 00 EB 04 EF [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]OFD Sender: No OFD packet to send [20:56:36]*** Cut start [20:56:36]*** Partial cut [20:56:36]*** CUTSNS_PIN = 1 [20:56:36]*** CUTSNS_PIN = 0 [20:56:37]*** Brake cut motor [20:56:37]Read from MH i2c: 01 [20:56:37]MH_I2C_Read... [20:56:37]*** Stop cut motor [20:56:37]*** Cut end [20:56:37]Read from MH i2c: 01 07 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 FF 0F 04 [20:56:37]process_action close_receipt done [20:56:37]requested_data is exist [20:56:37]produce_requested_data [20:56:37]requested_item fm.sn is exist - process it [20:56:37]wFMCommunicate request_size=4 [20:56:37]MH_SAM_APDU [20:56:37]CAPDU: 80 11 00 00 [20:56:37]Write to MH i2c: E2 08 00 EC 04 80 11 00 00 00 00 00 00 6A [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:37]Read from MH i2c: E2 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 17 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 17 00 EC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BA [20:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:56:37]wFMCommunicate OK [20:56:37]requested_item fd.num is exist - process it [20:56:37]SAM_PROTO_GetFieldsCounters [20:56:37]wFMCommunicate request_size=4 [20:56:37]MH_SAM_APDU [20:56:37]CAPDU: 80 13 00 00 [20:56:37]Write to MH i2c: E2 08 00 ED 04 80 13 00 00 00 00 00 00 6D [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:37]Read from MH i2c: E2 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 62 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 62 00 ED 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [20:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:37]wFMCommunicate OK [20:56:37]SAM_PROTO_GetFieldsCounters done [20:56:37]requested_item shift.num is exist - process it [20:56:37]requested_item shift.opened is exist - process it [20:56:37]req_shift_opened [20:56:37]FM_GetShiftState [20:56:37]SAM_PROTO_GetShiftState [20:56:37]wFMCommunicate request_size=4 [20:56:37]MH_SAM_APDU [20:56:37]CAPDU: 80 13 01 00 [20:56:37]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [20:56:37]Write i2c OK [20:56:37]MH_I2C_Read... [20:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:37]Read from MH i2c: E2 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 0E 00 [20:56:37]MH_I2C_Read... [20:56:37]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 68 [20:56:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:56:37]wFMCommunicate OK [20:56:37]SAM_PROTO_GetShiftState done [20:56:37]FM_GetShiftState done [20:56:37]req_shift_opened done [20:56:37]requested_item shift.open_date is exist - process it [20:56:37]req_shift_open_date [20:56:37]req_shift_open_date done [20:56:37]produce_requested_data done [20:56:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2333,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:56:37]process_action_free close_receipt [20:56:37]json_value_free [20:56:37]json_value_free done [20:56:37]process_json_proto returns [20:56:37]Send response to host [20:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2333,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:56:37]free response buf [20:56:37]execute_script done [20:56:37]execute_script returns [20:56:37]free content buf [20:56:37]Sock 7.Close socket [20:56:37]Sock 7.Thread stoped [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:35]accept exits with 9 [20:57:35]New connection [20:57:35]New thread 3067276644 created [20:57:35]Thread 3067420004 joined [20:57:35]Waiting for new connection... [20:57:35] Sock 9.Parse request [20:57:35]Sock 9.Check first char [20:57:35]Sock 9.First char is OK [20:57:35]request: POST /json_proto HTTP/1.0 [20:57:35]Method: POST [20:57:35]URL: /json_proto [20:57:35]Method is POST - this is cgi request [20:57:35]url: /json_proto [20:57:35]query_string will be loaded in cgi processing [20:57:35]execute_cgi json_proto POST (null) [20:57:35]execute_cgi path=json_proto method=POST [20:57:35]POST find Content-Length [20:57:35]Host: 172.17.45.132:8080 [20:57:35]Content-Length: 678 [20:57:35]Content-Type: application/json [20:57:35] [20:57:35]POST finish read [20:57:35]Found Content-Length = 678 [20:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:35]execute_script... [20:57: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)610150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:35]POST & json_proto [20:57:35]process_json_proto [20:57:35]json parsed OK: [20:57:35]protocol is kg_v1.0 [20:57:35]action value=close_receipt [20:57:35]process_action close_receipt [20:57:35]cmd_close_receipt [20:57:35]MH_GetDate [20:57:35]Write to MH i2c: F0 00 00 EF 04 E2 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 09 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: F0 09 00 EF 04 00 40 02 A8 66 E3 0B 90 66 1F [20:57:35]GetLastDocTimeStamp 1722286594 [20:57:35]current date 1722286656 [20:57:35]FM_GetShiftState [20:57:35]SAM_PROTO_GetShiftState [20:57:35]wFMCommunicate request_size=4 [20:57:35]MH_SAM_APDU [20:57:35]CAPDU: 80 13 01 00 [20:57:35]Write to MH i2c: E2 08 00 F0 04 80 13 01 00 00 00 00 00 71 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:35]Read from MH i2c: E2 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 0E 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 0E 00 F0 04 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6A [20:57:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:57:35]wFMCommunicate OK [20:57:35]SAM_PROTO_GetShiftState done [20:57:35]FM_GetShiftState done [20:57:35]opened in 1722213119 [20:57:35]opened+sec_in_day 1722299519 [20:57:35]quantity*price = 70037 [20:57:35]sum+1 = 70038 [20:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 183 29.07.2024 20:57 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2334 ФПД: 81680156987628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205736&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2334&fm=81680156987628&tin=02508201610067®Number=0000000000189667&sum=70000 [20:57:37]StoreToDocumentArchive [20:57:37]shift 15 fd 2334 [20:57:37]save to /storage/0015/doc_00002334 [20:57:37]save last doc name /storage/0015/doc_00002334 to /storage/kkm_last_doc_name [20:57:37]save OK [20:57:37]Clear old archive folders... [20:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:37]tlvbuf is 01129890 [20:57:37]SAM_PROTO_ClearQueue [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 09 00 00 [20:57:37]Write to MH i2c: E2 08 00 FD 04 80 09 00 00 00 00 00 00 73 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [20:57:37]RAPDU: 90 00 [20:57:37]wFMCommunicate OK [20:57:37]SAM_PROTO_ClearQueue done [20:57:37]KKMCreateOFDPacket [20:57:37]OFDProtocolAddRootSTLVToBuf [20:57:37]FM_MakeSignedData [20:57:37]FM_MakeSignedData [20:57:37]SAM_PROTO_SignData [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 0D 01 02 [20:57:37]Write to MH i2c: E2 08 00 FE 04 80 0D 01 02 00 00 00 00 7B [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [20:57:37]RAPDU: 90 00 [20:57:37]wFMCommunicate OK [20:57:37]wFMCommunicate request_size=255 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 40 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 09 00 00 35 04 06 00 4A [20:57:37]Write to MH i2c: E2 02 01 FF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 40 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 09 00 00 35 04 06 00 4A 00 00 6E [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [20:57:37]RAPDU: 90 00 [20:57:37]wFMCommunicate OK [20:57:37]wFMCommunicate request_size=10 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 0D 02 02 05 49 A4 BE 10 EC [20:57:37]Write to MH i2c: E2 0D 00 00 05 80 0D 02 02 05 00 49 A4 BE 10 EC 00 00 30 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [20:57:37]RAPDU: 90 00 [20:57:37]wFMCommunicate OK [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 0D 03 02 [20:57:37]Write to MH i2c: E2 08 00 01 05 80 0D 03 02 00 00 00 00 81 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 0B 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 0B 00 01 05 00 F1 DE DA 00 8E 5B BF 76 90 00 49 [20:57:37]RAPDU: F1 DE DA 00 8E 5B BF 76 90 00 [20:57:37]wFMCommunicate OK [20:57:37]SAM_PROTO_SignData done [20:57:37]FM_MakeSignedData done [20:57:37]CreateOFDProtocolMessage [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 11 00 00 [20:57:37]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D1 [20:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:57:37]wFMCommunicate OK [20:57:37]CreateOFDProtocolMessage done [20:57:37]OFDSenderStorePacket 2334 [20:57:37]StoreOFDPacket docnum=2334 [20:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 0D D8 07 01 B0 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 40 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 09 00 00 35 04 06 00 4A 49 A4 BE 10 EC F1 DE DA 00 8E 5B BF 76 [20:57:37]CheckFolder [20:57:37]dirname=/storage/ofd_packets [20:57:37]CheckFolder done [20:57:37]ProducePacketName [20:57:37]name=ofd_packets/00002334 [20:57:37]NVStorageSaveData ofd_packets/00002334 [20:57:37]File name is /storage/ofd_packets/00002334 [20:57:37]Write 301 bytes [20:57:37]NVStorageSaveData done [20:57:37]OFDSenderStorePacket done [20:57:37]KKMCreateOFDPacket done [20:57:37]NVStorageSaveData kkm_last_timestamp [20:57:37]File name is /storage/kkm_last_timestamp [20:57:37]Write 4 bytes [20:57:37]NVStorageSaveData done [20:57:37]ExternCall_PrintAddStr [20:57:37]wPrintStart [20:57:37]Write to MH i2c: 01 00 00 03 05 08 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [20:57:37]RasterBufferAndPrint [20:57:37]line Счет N : (1)610150 [20:57:37]line ИНН: 02508201610067 [20:57:37]line Контрольно-Кассовый Чек [20:57:37]line ПРОДАЖА [20:57:37]line ТРК (МРК, ГНК) : 32 [20:57:37]line Товар: 2710124130 [20:57:37]line Аи-92-К-2 [20:57:37]line 10.330 * 67.80 [20:57:37]line = 700.37 [20:57:37]line НДС 12% НСП 1% [20:57:37]line > о реализуемом товаре [20:57:37]line ОКРУГЛЕНИЕ: -0.37 [20:57:37]line ИТОГО: 700.00 [20:57:37]line Внесено: 700.00 [20:57:37]line СДАЧА: 0.00 [20:57:37]line НСП 1% : 6.20 [20:57:37]line НДС 12% : 74.38 [20:57:37]line Наличными: 700.00 [20:57:37]line Безнал.: 0.00 [20:57:37]line Место: АЗС № 127 "Партнер Нефть" [20:57:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [20:57:37]line СНО: Общий режим [20:57:37]line Чек 183 29.07.2024 20:57 [20:57:37]line Смена: 15 ФФД: 1.0 [20:57:37]line ЗНМ: 0300000161 [20:57:37]line РНМ: 0000000000189667 [20:57:37]line Версия ККМ: v1.0 [20:57:37]line ФМ: 0000000002094248 [20:57:37]line ФД: 2334 [20:57:37]line ФПД: 81680156987628 [20:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205736&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2334&fm=81680156987628&tin=02508201610067®Number=0000000000189667&sum=70000 [20:57:37]OFD Sender: Processing packet 2334 [packets to send 1, broken 0] [20:57:37]ProducePacketName [20:57:37]name=ofd_packets/00002334 [20:57:37]OFD Sender: To server: pG, [20:57:37]CommunicateWithHost lk.salyk.kg:30040 [20:57:37]ConnectInit lk.salyk.kg [20:57:37]written 0, free lines is 4095 [20:57:38]Connected sock=10 [20:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 0D D8 07 01 B0 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 40 02 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 09 00 00 35 04 06 00 4A 49 A4 BE 10 EC F1 DE DA 00 8E 5B BF 76 [20:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 25 36 47 00 B8 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1E 09 00 00 F4 03 04 00 AB AD A7 66 B6 04 01 00 00 E7 32 F8 F9 E2 8D FD 43 [20:57:38]CommunicateWithHost err = 0 [20:57:38]CheckOFDResponse [20:57:38]1017 (14) - 77093643461234 [20:57:38]1041 (16) - 0000000002094248 [20:57:38]1040 (4) - 2334 [20:57:38]1012 (4) - 29.07.2024 14:56 [20:57:38]1206 (1) - 0 [20:57:38]OFD Sender: Remove packet 2334 [20:57:38]ProducePacketName [20:57:38]name=ofd_packets/00002334 [20:57:38]NVStorageDeleteData [20:57:38]Write to MH i2c: 01 00 00 2E 05 33 [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: 01 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: 01 07 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 FF 0C 45 [20:57:38]RasterBufferAndPrint [20:57:38]line [20:57:38]line [20:57:38]line [20:57:38]line [20:57:38]line [20:57:38]written 0, free lines is 3333 [20:57:38]MH_Cut [20:57:38]Write to MH i2c: D1 01 00 35 05 01 0C [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: D1 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: D1 01 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: D1 01 00 35 05 00 0B [20:57:38]Write to MH i2c: 01 00 00 36 05 3B [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]OFD Sender: No OFD packet to send [20:57:39]*** Cut start [20:57:39]*** Partial cut [20:57:39]*** CUTSNS_PIN = 1 [20:57:39]*** CUTSNS_PIN = 0 [20:57:39]*** Brake cut motor [20:57:39]Read from MH i2c: 01 [20:57:39]MH_I2C_Read... [20:57:39]*** Stop cut motor [20:57:39]*** Cut end [20:57:39]Read from MH i2c: 01 07 00 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [20:57:39]process_action close_receipt done [20:57:39]requested_data is exist [20:57:39]produce_requested_data [20:57:39]requested_item fm.sn is exist - process it [20:57:39]wFMCommunicate request_size=4 [20:57:39]MH_SAM_APDU [20:57:39]CAPDU: 80 11 00 00 [20:57:39]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [20:57:39]Write i2c OK [20:57:39]MH_I2C_Read... [20:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:39]Read from MH i2c: E2 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 17 00 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 06 [20:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [20:57:39]wFMCommunicate OK [20:57:39]requested_item fd.num is exist - process it [20:57:39]SAM_PROTO_GetFieldsCounters [20:57:39]wFMCommunicate request_size=4 [20:57:39]MH_SAM_APDU [20:57:39]CAPDU: 80 13 00 00 [20:57:39]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [20:57:39]Write i2c OK [20:57:39]MH_I2C_Read... [20:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:39]Read from MH i2c: E2 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 62 00 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 62 00 38 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [20:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:39]wFMCommunicate OK [20:57:39]SAM_PROTO_GetFieldsCounters done [20:57:39]requested_item shift.num is exist - process it [20:57:39]requested_item shift.opened is exist - process it [20:57:39]req_shift_opened [20:57:39]FM_GetShiftState [20:57:39]SAM_PROTO_GetShiftState [20:57:39]wFMCommunicate request_size=4 [20:57:39]MH_SAM_APDU [20:57:39]CAPDU: 80 13 01 00 [20:57:39]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [20:57:39]Write i2c OK [20:57:39]MH_I2C_Read... [20:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:39]Read from MH i2c: E2 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 0E 00 [20:57:39]MH_I2C_Read... [20:57:39]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B4 [20:57:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [20:57:39]wFMCommunicate OK [20:57:39]SAM_PROTO_GetShiftState done [20:57:39]FM_GetShiftState done [20:57:39]req_shift_opened done [20:57:39]requested_item shift.open_date is exist - process it [20:57:39]req_shift_open_date [20:57:39]req_shift_open_date done [20:57:39]produce_requested_data done [20:57:39]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2334,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [20:57:39]process_action_free close_receipt [20:57:39]json_value_free [20:57:39]json_value_free done [20:57:39]process_json_proto returns [20:57:39]Send response to host [20:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2334,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [20:57:39]free response buf [20:57:39]execute_script done [20:57:39]execute_script returns [20:57:39]free content buf [20:57:39]Sock 9.Close socket [20:57:39]Sock 9.Thread stoped [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02: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:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:07]accept exits with 7 [21:06:07]New connection [21:06:07]New thread 3067420004 created [21:06:07]Thread 3067276644 joined [21:06:07]Waiting for new connection... [21:06:07] Sock 7.Parse request [21:06:07]Sock 7.Check first char [21:06:07]Sock 7.First char is OK [21:06:07]request: POST /json_proto HTTP/1.0 [21:06:07]Method: POST [21:06:07]URL: /json_proto [21:06:07]Method is POST - this is cgi request [21:06:07]url: /json_proto [21:06:07]query_string will be loaded in cgi processing [21:06:07]execute_cgi json_proto POST (null) [21:06:07]execute_cgi path=json_proto method=POST [21:06:07]POST find Content-Length [21:06:07]Host: 172.17.45.132:8080 [21:06:07]Content-Length: 1890 [21:06:07]Content-Type: application/json [21:06:07] [21:06:07]POST finish read [21:06:07]Found Content-Length = 1890 [21:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126565", "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 }]} ,{ "code": "4860103356611", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,5\u043B \u0441\u0442", "price" : 260.00, "quantity" : 2.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 794.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:07]execute_script... [21:06: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)126565", "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 }]} ,{ "code": "4860103356611", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,5\u043B \u0441\u0442", "price" : 260.00, "quantity" : 2.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 794.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:07]POST & json_proto [21:06:07]process_json_proto [21:06:07]json parsed OK: [21:06:07]protocol is kg_v1.0 [21:06:07]action value=close_receipt [21:06:07]process_action close_receipt [21:06:07]cmd_close_receipt [21:06:07]MH_GetDate [21:06:07]Write to MH i2c: F0 00 00 3A 05 2E [21:06:07]Write i2c OK [21:06:07]MH_I2C_Read... [21:06:07]Read from MH i2c: F0 [21:06:07]MH_I2C_Read... [21:06:07]Read from MH i2c: F0 09 00 [21:06:07]MH_I2C_Read... [21:06:07]Read from MH i2c: F0 09 00 3A 05 00 40 04 A8 66 E3 0B 90 66 6D [21:06:07]GetLastDocTimeStamp 1722286656 [21:06:07]current date 1722287168 [21:06:07]FM_GetShiftState [21:06:07]SAM_PROTO_GetShiftState [21:06:07]wFMCommunicate request_size=4 [21:06:07]MH_SAM_APDU [21:06:07]CAPDU: 80 13 01 00 [21:06:07]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [21:06:07]Write i2c OK [21:06:07]MH_I2C_Read... [21:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:07]Read from MH i2c: E2 [21:06:07]MH_I2C_Read... [21:06:07]Read from MH i2c: E2 0E 00 [21:06:07]MH_I2C_Read... [21:06:07]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B6 [21:06:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:06:07]wFMCommunicate OK [21:06:07]SAM_PROTO_GetShiftState done [21:06:07]FM_GetShiftState done [21:06:07]opened in 1722213119 [21:06:07]opened+sec_in_day 1722299519 [21:06:07]quantity*price = 15000 [21:06:07]sum+1 = 15001 [21:06:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860103356611 Пиво Миллер Дженьюн Драфт 0,5л ст 2.000 * 260.00 = 520.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681079 Grizzly волнистые Сладкий чили 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 2.000 * 15.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 794.00 НСП 1% : 7.02 НДС 12% : 84.32 Наличными: 794.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 184 29.07.2024 21:06 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2335 ФПД: 270176335626629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210608&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2335&fm=270176335626629&tin=02508201610067®Number=0000000000189667&sum=79400 0 [21:06:08]StoreToDocumentArchive [21:06:08]shift 15 fd 2335 [21:06:08]save to /storage/0015/doc_00002335 [21:06:08]save last doc name /storage/0015/doc_00002335 to /storage/kkm_last_doc_name [21:06:08]save OK [21:06:08]Clear old archive folders... [21:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=763 [21:06:08]tlvbuf is 010F3950 [21:06:08]SAM_PROTO_ClearQueue [21:06:08]wFMCommunicate request_size=4 [21:06:08]MH_SAM_APDU [21:06:08]CAPDU: 80 09 00 00 [21:06:08]Write to MH i2c: E2 08 00 48 05 80 09 00 00 00 00 00 00 BF [21:06:08]Write i2c OK [21:06:08]MH_I2C_Read... [21:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:08]Read from MH i2c: E2 [21:06:08]MH_I2C_Read... [21:06:08]Read from MH i2c: E2 03 00 [21:06:08]MH_I2C_Read... [21:06:08]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [21:06:08]RAPDU: 90 00 [21:06:08]wFMCommunicate OK [21:06:08]SAM_PROTO_ClearQueue done [21:06:08]KKMCreateOFDPacket [21:06:08]OFDProtocolAddRootSTLVToBuf [21:06:08]FM_MakeSignedData [21:06:08]FM_MakeSignedData [21:06:08]SAM_PROTO_SignData [21:06:08]wFMCommunicate request_size=4 [21:06:08]MH_SAM_APDU [21:06:08]CAPDU: 80 0D 01 02 [21:06:08]Write to MH i2c: E2 08 00 49 05 80 0D 01 02 00 00 00 00 C7 [21:06:08]Write i2c OK [21:06:08]MH_I2C_Read... [21:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:08]Read from MH i2c: E2 [21:06:08]MH_I2C_Read... [21:06:08]Read from MH i2c: E2 03 00 [21:06:08]MH_I2C_Read... [21:06:08]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [21:06:08]RAPDU: 90 00 [21:06:08]wFMCommunicate OK [21:06:08]wFMCommunicate request_size=255 [21:06:08]MH_SAM_APDU [21:06:08]CAPDU: 80 0D 02 02 FA 03 00 FB 02 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 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 20 CB 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 [21:06:08]Write to MH i2c: E2 02 01 4A 05 80 0D 02 02 FA 00 03 00 FB 02 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 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 20 CB 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 00 00 83 [21:06:08]Write i2c OK [21:06:08]MH_I2C_Read... [21:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [21:06:09]RAPDU: 90 00 [21:06:09]wFMCommunicate OK [21:06:09]wFMCommunicate request_size=255 [21:06:09]MH_SAM_APDU [21:06:09]CAPDU: 80 0D 02 02 FA 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 [21:06:09]Write to MH i2c: E2 02 01 4B 05 80 0D 02 02 FA 00 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 00 00 C5 [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]OFD Sender: No OFD packet to send [21:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [21:06:09]RAPDU: 90 00 [21:06:09]wFMCommunicate OK [21:06:09]wFMCommunicate request_size=255 [21:06:09]MH_SAM_APDU [21:06:09]CAPDU: 80 0D 02 02 FA 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 20 00 00 00 00 07 04 06 00 28 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 40 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 [21:06:09]Write to MH i2c: E2 02 01 4C 05 80 0D 02 02 FA 00 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 20 00 00 00 00 07 04 06 00 28 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 40 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 00 00 C1 [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [21:06:09]RAPDU: 90 00 [21:06:09]wFMCommunicate OK [21:06:09]wFMCommunicate request_size=22 [21:06:09]MH_SAM_APDU [21:06:09]CAPDU: 80 0D 02 02 11 04 04 00 1F 09 00 00 35 04 06 00 F5 B9 54 83 01 85 [21:06:09]Write to MH i2c: E2 19 00 4D 05 80 0D 02 02 11 00 04 04 00 1F 09 00 00 35 04 06 00 F5 B9 54 83 01 85 00 00 68 [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [21:06:09]RAPDU: 90 00 [21:06:09]wFMCommunicate OK [21:06:09]wFMCommunicate request_size=4 [21:06:09]MH_SAM_APDU [21:06:09]CAPDU: 80 0D 03 02 [21:06:09]Write to MH i2c: E2 08 00 4E 05 80 0D 03 02 00 00 00 00 CE [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 0B 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 0B 00 4E 05 00 CA F4 B0 B1 3F FC 14 9F 90 00 DC [21:06:09]RAPDU: CA F4 B0 B1 3F FC 14 9F 90 00 [21:06:09]wFMCommunicate OK [21:06:09]SAM_PROTO_SignData done [21:06:09]FM_MakeSignedData done [21:06:09]CreateOFDProtocolMessage [21:06:09]wFMCommunicate request_size=4 [21:06:09]MH_SAM_APDU [21:06:09]CAPDU: 80 11 00 00 [21:06:09]Write to MH i2c: E2 08 00 4F 05 80 11 00 00 00 00 00 00 CE [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 17 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 17 00 4F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1E [21:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:06:09]wFMCommunicate OK [21:06:09]CreateOFDProtocolMessage done [21:06:09]OFDSenderStorePacket 2335 [21:06:09]StoreOFDPacket docnum=2335 [21:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 03 00 00 DC 07 07 03 39 8C 5A 03 01 00 03 00 FB 02 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 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 20 CB 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 20 00 00 00 00 07 04 06 00 28 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 40 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1F 09 00 00 35 04 06 00 F5 B9 54 83 01 85 CA F4 B0 B1 3F FC 14 9F [21:06:10]CheckFolder [21:06:10]dirname=/storage/ofd_packets [21:06:10]CheckFolder done [21:06:10]ProducePacketName [21:06:10]name=ofd_packets/00002335 [21:06:10]NVStorageSaveData ofd_packets/00002335 [21:06:10]File name is /storage/ofd_packets/00002335 [21:06:10]Write 813 bytes [21:06:10]NVStorageSaveData done [21:06:10]OFDSenderStorePacket done [21:06:10]KKMCreateOFDPacket done [21:06:10]NVStorageSaveData kkm_last_timestamp [21:06:10]File name is /storage/kkm_last_timestamp [21:06:10]Write 4 bytes [21:06:10]NVStorageSaveData done [21:06:10]ExternCall_PrintAddStr [21:06:10]wPrintStart [21:06:10]Write to MH i2c: 01 00 00 50 05 55 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 FF 0F 6A [21:06:10]RasterBufferAndPrint [21:06:10]line Счет N : (3)126565 [21:06:10]line ИНН: 02508201610067 [21:06:10]line Контрольно-Кассовый Чек [21:06:10]line ПРОДАЖА [21:06:10]line Товар: 54491472 [21:06:10]line Напиток Кока-Кола 0,5л [21:06:10]line 2.000 * 75.00 [21:06:10]line = 150.00 [21:06:10]line НДС 12% НСП 1% [21:06:10]line > о реализуемом товаре [21:06:10]line Товар: 4860103356611 [21:06:10]line Пиво Миллер Дженьюн Драфт 0,5л ст [21:06:10]line 2.000 * 260.00 [21:06:10]line = 520.00 [21:06:10]line НДС 12% НСП 1% [21:06:10]line > о реализуемом товаре [21:06:10]line Товар: 2000031750019 [21:06:10]line Пакет Партнер Нефть [21:06:10]line 1.000 * 4.00 [21:06:10]line = 4.00 [21:06:10]line НДС 12% НСП 1% [21:06:10]line > о реализуемом товаре [21:06:10]line Товар: 4870235681079 [21:06:10]line Grizzly волнистые Сладкий чили 55 гр [21:06:10]line 1.000 * 90.00 [21:06:10]line = 90.00 [21:06:10]line НДС 12% НСП 1% [21:06:10]line > о реализуемом товаре [21:06:10]line Товар: 4700000160099 [21:06:10]line Снек Курут индивидуальный [21:06:10]line 2.000 * 15.00 [21:06:10]line = 30.00 [21:06:10]line НДС 12% НСП 1% [21:06:10]line > о реализуемом товаре [21:06:10]line ИТОГО: 794.00 [21:06:10]line НСП 1% : 7.02 [21:06:10]line НДС 12% : 84.32 [21:06:10]line Наличными: 794.00 [21:06:10]line Безнал.: 0.00 [21:06:10]line Место: АЗС № 127 "Партнер Нефть" [21:06:10]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:06:10]line СНО: Общий режим [21:06:10]line Чек 184 29.07.2024 21:06 [21:06:10]line Смена: 15 ФФД: 1.0 [21:06:10]line ЗНМ: 0300000161 [21:06:10]line РНМ: 0000000000189667 [21:06:10]line Версия ККМ: v1.0 [21:06:10]line ФМ: 0000000002094248 [21:06:10]line ФД: 2335 [21:06:10]line ФПД: 270176335626629 [21:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210608&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2335&fm=270176335626629&tin=02508201610067®Number=0000000000189667&sum=79400 [21:06:10]line 0 [21:06:10]written 0, free lines is 4095 [21:06:10]OFD Sender: Processing packet 2335 [packets to send 1, broken 0] [21:06:10]ProducePacketName [21:06:10]name=ofd_packets/00002335 [21:06:10]OFD Sender: To server: pG, [21:06:10]CommunicateWithHost lk.salyk.kg:30040 [21:06:10]ConnectInit lk.salyk.kg [21:06:10]Connected sock=10 [21:06:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 03 00 00 DC 07 07 03 39 8C 5A 03 01 00 03 00 FB 02 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 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 20 CB 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 20 00 00 00 00 07 04 06 00 28 36 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 40 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1F 09 00 00 35 04 06 00 F5 B9 54 83 01 85 CA F4 B0 B1 3F FC 14 9F [21:06:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9B 4D 47 00 83 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 1F 09 00 00 F4 03 04 00 AC AF A7 66 B6 04 01 00 00 4D E6 4B 35 58 55 97 CF [21:06:10]CommunicateWithHost err = 0 [21:06:10]CheckOFDResponse [21:06:10]1017 (14) - 77093643461234 [21:06:10]1041 (16) - 0000000002094248 [21:06:10]1040 (4) - 2335 [21:06:10]1012 (4) - 29.07.2024 15:05 [21:06:10]1206 (1) - 0 [21:06:10]OFD Sender: Remove packet 2335 [21:06:10]ProducePacketName [21:06:10]name=ofd_packets/00002335 [21:06:10]NVStorageDeleteData [21:06:10]Write to MH i2c: 01 00 00 92 05 97 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 DD 0B 86 [21:06:10]RasterBufferAndPrint [21:06:10]line [21:06:10]line [21:06:10]line [21:06:10]line [21:06:10]line [21:06:10]written 0, free lines is 3049 [21:06:10]MH_Cut [21:06:10]Write to MH i2c: D1 01 00 99 05 01 70 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: D1 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: D1 01 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: D1 01 00 99 05 00 6F [21:06:10]Write to MH i2c: 01 00 00 9A 05 9F [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:11]OFD Sender: No OFD packet to send [21:06:11]*** Cut start [21:06:11]*** Partial cut [21:06:11]*** CUTSNS_PIN = 1 [21:06:11]*** CUTSNS_PIN = 0 [21:06:12]*** Brake cut motor [21:06:12]Read from MH i2c: 01 [21:06:12]MH_I2C_Read... [21:06:12]*** Stop cut motor [21:06:12]*** Cut end [21:06:12]Read from MH i2c: 01 07 00 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [21:06:12]process_action close_receipt done [21:06:12]requested_data is exist [21:06:12]produce_requested_data [21:06:12]requested_item fm.sn is exist - process it [21:06:12]wFMCommunicate request_size=4 [21:06:12]MH_SAM_APDU [21:06:12]CAPDU: 80 11 00 00 [21:06:12]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [21:06:12]Write i2c OK [21:06:12]MH_I2C_Read... [21:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:12]Read from MH i2c: E2 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: E2 17 00 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6A [21:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:06:12]wFMCommunicate OK [21:06:12]requested_item fd.num is exist - process it [21:06:12]SAM_PROTO_GetFieldsCounters [21:06:12]wFMCommunicate request_size=4 [21:06:12]MH_SAM_APDU [21:06:12]CAPDU: 80 13 00 00 [21:06:12]Write to MH i2c: E2 08 00 9C 05 80 13 00 00 00 00 00 00 1D [21:06:12]Write i2c OK [21:06:12]MH_I2C_Read... [21:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:12]Read from MH i2c: E2 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: E2 62 00 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: E2 62 00 9C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [21:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 1F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:12]wFMCommunicate OK [21:06:12]SAM_PROTO_GetFieldsCounters done [21:06:12]requested_item shift.num is exist - process it [21:06:12]requested_item shift.opened is exist - process it [21:06:12]req_shift_opened [21:06:12]FM_GetShiftState [21:06:12]SAM_PROTO_GetShiftState [21:06:12]wFMCommunicate request_size=4 [21:06:12]MH_SAM_APDU [21:06:12]CAPDU: 80 13 01 00 [21:06:12]Write to MH i2c: E2 08 00 9D 05 80 13 01 00 00 00 00 00 1F [21:06:12]Write i2c OK [21:06:12]MH_I2C_Read... [21:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:12]Read from MH i2c: E2 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: E2 0E 00 [21:06:12]MH_I2C_Read... [21:06:12]Read from MH i2c: E2 0E 00 9D 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 18 [21:06:12]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:06:12]wFMCommunicate OK [21:06:12]SAM_PROTO_GetShiftState done [21:06:12]FM_GetShiftState done [21:06:12]req_shift_opened done [21:06:12]requested_item shift.open_date is exist - process it [21:06:12]req_shift_open_date [21:06:12]req_shift_open_date done [21:06:12]produce_requested_data done [21:06:12]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2335,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:06:12]process_action_free close_receipt [21:06:12]json_value_free [21:06:12]json_value_free done [21:06:12]process_json_proto returns [21:06:12]Send response to host [21:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2335,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:06:12]free response buf [21:06:12]execute_script done [21:06:12]execute_script returns [21:06:12]free content buf [21:06:12]Sock 7.Close socket [21:06:12]Sock 7.Thread stoped [21:06:16]accept exits with 9 [21:06:16]New connection [21:06:16]New thread 3067276644 created [21:06:16]Thread 3067420004 joined [21:06:16]Waiting for new connection... [21:06:16] Sock 9.Parse request [21:06:16]Sock 9.Check first char [21:06:16]Sock 9.First char is OK [21:06:16]request: POST /json_proto HTTP/1.0 [21:06:16]Method: POST [21:06:16]URL: /json_proto [21:06:16]Method is POST - this is cgi request [21:06:16]url: /json_proto [21:06:16]query_string will be loaded in cgi processing [21:06:16]execute_cgi json_proto POST (null) [21:06:16]execute_cgi path=json_proto method=POST [21:06:16]POST find Content-Length [21:06:16]Host: 172.17.45.132:8080 [21:06:16]Content-Length: 626 [21:06:16]Content-Type: application/json [21:06:16] [21:06:16]POST finish read [21:06:16]Found Content-Length = 626 [21:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126566", "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:06:16]execute_script... [21:06:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126566", "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:06:16]POST & json_proto [21:06:16]process_json_proto [21:06:16]json parsed OK: [21:06:16]protocol is kg_v1.0 [21:06:16]action value=close_receipt [21:06:16]process_action close_receipt [21:06:16]cmd_close_receipt [21:06:16]MH_GetDate [21:06:16]Write to MH i2c: F0 00 00 9E 05 92 [21:06:16]Write i2c OK [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: F0 [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: F0 09 00 [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: F0 09 00 9E 05 00 48 04 A8 66 E3 0B 90 66 D9 [21:06:16]GetLastDocTimeStamp 1722287168 [21:06:16]current date 1722287176 [21:06:16]FM_GetShiftState [21:06:16]SAM_PROTO_GetShiftState [21:06:16]wFMCommunicate request_size=4 [21:06:16]MH_SAM_APDU [21:06:16]CAPDU: 80 13 01 00 [21:06:16]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [21:06:16]Write i2c OK [21:06:16]MH_I2C_Read... [21:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:16]Read from MH i2c: E2 [21:06:16]MH_I2C_Read... [21:06:16]Read from MH i2c: E2 0E 00 [21:06:16]MH_I2C_Read... [21:06:16]OFD Sender: No OFD packet to send [21:06:16]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1A [21:06:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:06:16]wFMCommunicate OK [21:06:16]SAM_PROTO_GetShiftState done [21:06:16]FM_GetShiftState done [21:06:16]opened in 1722213119 [21:06:16]opened+sec_in_day 1722299519 [21:06:16]quantity*price = 15000 [21:06:16]sum+1 = 15001 [21:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 185 29.07.2024 21:06 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2336 ФПД: 75546769682396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210616&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2336&fm=75546769682396&tin=02508201610067®Number=0000000000189667&sum=15000 0 [21:06:17]StoreToDocumentArchive [21:06:17]shift 15 fd 2336 [21:06:17]save to /storage/0015/doc_00002336 [21:06:17]save last doc name /storage/0015/doc_00002336 to /storage/kkm_last_doc_name [21:06:17]save OK [21:06:17]Clear old archive folders... [21:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:06:17]tlvbuf is 01138D40 [21:06:17]SAM_PROTO_ClearQueue [21:06:17]wFMCommunicate request_size=4 [21:06:17]MH_SAM_APDU [21:06:17]CAPDU: 80 09 00 00 [21:06:17]Write to MH i2c: E2 08 00 AC 05 80 09 00 00 00 00 00 00 23 [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:17]Read from MH i2c: E2 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [21:06:17]RAPDU: 90 00 [21:06:17]wFMCommunicate OK [21:06:17]SAM_PROTO_ClearQueue done [21:06:17]KKMCreateOFDPacket [21:06:17]OFDProtocolAddRootSTLVToBuf [21:06:17]FM_MakeSignedData [21:06:17]FM_MakeSignedData [21:06:17]SAM_PROTO_SignData [21:06:17]wFMCommunicate request_size=4 [21:06:17]MH_SAM_APDU [21:06:17]CAPDU: 80 0D 01 02 [21:06:17]Write to MH i2c: E2 08 00 AD 05 80 0D 01 02 00 00 00 00 2B [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:17]Read from MH i2c: E2 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [21:06:17]RAPDU: 90 00 [21:06:17]wFMCommunicate OK [21:06:17]wFMCommunicate request_size=255 [21:06:17]MH_SAM_APDU [21:06:17]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 B9 00 00 00 F4 03 04 00 48 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 [21:06:17]Write to MH i2c: E2 02 01 AE 05 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 B9 00 00 00 F4 03 04 00 48 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 00 00 7E [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:17]Read from MH i2c: E2 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [21:06:17]RAPDU: 90 00 [21:06:17]wFMCommunicate OK [21:06:17]wFMCommunicate request_size=37 [21:06:17]MH_SAM_APDU [21:06:17]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 09 00 00 35 04 06 00 44 B5 9A 5E EF DC [21:06:17]Write to MH i2c: E2 28 00 AF 05 80 0D 02 02 20 00 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 09 00 00 35 04 06 00 44 B5 9A 5E EF DC 00 00 67 [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:17]Read from MH i2c: E2 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [21:06:17]RAPDU: 90 00 [21:06:17]wFMCommunicate OK [21:06:17]wFMCommunicate request_size=4 [21:06:17]MH_SAM_APDU [21:06:17]CAPDU: 80 0D 03 02 [21:06:17]Write to MH i2c: E2 08 00 B0 05 80 0D 03 02 00 00 00 00 30 [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:17]Read from MH i2c: E2 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 0B 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 0B 00 B0 05 00 A2 60 6E 06 79 B6 C3 9C 90 00 35 [21:06:17]RAPDU: A2 60 6E 06 79 B6 C3 9C 90 00 [21:06:17]wFMCommunicate OK [21:06:17]SAM_PROTO_SignData done [21:06:17]FM_MakeSignedData done [21:06:17]CreateOFDProtocolMessage [21:06:17]wFMCommunicate request_size=4 [21:06:17]MH_SAM_APDU [21:06:17]CAPDU: 80 11 00 00 [21:06:17]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:17]Read from MH i2c: E2 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 17 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 80 [21:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:06:17]wFMCommunicate OK [21:06:17]CreateOFDProtocolMessage done [21:06:17]OFDSenderStorePacket 2336 [21:06:17]StoreOFDPacket docnum=2336 [21:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 33 F3 22 01 E4 E1 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 B9 00 00 00 F4 03 04 00 48 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 09 00 00 35 04 06 00 44 B5 9A 5E EF DC A2 60 6E 06 79 B6 C3 9C [21:06:17]CheckFolder [21:06:17]dirname=/storage/ofd_packets [21:06:17]CheckFolder done [21:06:17]ProducePacketName [21:06:17]name=ofd_packets/00002336 [21:06:17]NVStorageSaveData ofd_packets/00002336 [21:06:17]File name is /storage/ofd_packets/00002336 [21:06:17]Write 328 bytes [21:06:17]NVStorageSaveData done [21:06:17]OFDSenderStorePacket done [21:06:17]KKMCreateOFDPacket done [21:06:17]NVStorageSaveData kkm_last_timestamp [21:06:17]File name is /storage/kkm_last_timestamp [21:06:17]Write 4 bytes [21:06:17]NVStorageSaveData done [21:06:17]ExternCall_PrintAddStr [21:06:17]wPrintStart [21:06:17]Write to MH i2c: 01 00 00 B2 05 B7 [21:06:17]Write i2c OK [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: 01 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: 01 07 00 [21:06:17]MH_I2C_Read... [21:06:17]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 FF 0F CC [21:06:17]RasterBufferAndPrint [21:06:17]line Счет N : (3)126566 [21:06:17]line ИНН: 02508201610067 [21:06:17]line Контрольно-Кассовый Чек [21:06:17]line ПРОДАЖА [21:06:17]line Товар: 4640030092499 [21:06:17]line Сигареты ESSE SENSE Himalaya [21:06:17]line 1.000 * 150.00 [21:06:17]line = 150.00 [21:06:17]line НДС 12% НСП 1% [21:06:17]line > о реализуемом товаре [21:06:17]line ИТОГО: 150.00 [21:06:17]line НСП 1% : 1.33 [21:06:17]line НДС 12% : 15.93 [21:06:17]line Наличными: 150.00 [21:06:17]line Безнал.: 0.00 [21:06:17]line Место: АЗС № 127 "Партнер Нефть" [21:06:17]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:06:17]line СНО: Общий режим [21:06:17]line Чек 185 29.07.2024 21:06 [21:06:17]line Смена: 15 ФФД: 1.0 [21:06:17]line ЗНМ: 0300000161 [21:06:17]line РНМ: 0000000000189667 [21:06:17]line Версия ККМ: v1.0 [21:06:17]line ФМ: 0000000002094248 [21:06:17]line ФД: 2336 [21:06:17]line ФПД: 75546769682396 [21:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210616&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2336&fm=75546769682396&tin=02508201610067®Number=0000000000189667&sum=15000 [21:06:18]line 0 [21:06:18]OFD Sender: Processing packet 2336 [packets to send 1, broken 0] [21:06:18]ProducePacketName [21:06:18]name=ofd_packets/00002336 [21:06:18]OFD Sender: To server: pG, [21:06:18]CommunicateWithHost lk.salyk.kg:30040 [21:06:18]ConnectInit lk.salyk.kg [21:06:18]written 0, free lines is 4095 [21:06:18]Connected sock=10 [21:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2A 01 00 00 33 F3 22 01 E4 E1 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 B9 00 00 00 F4 03 04 00 48 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 09 00 00 35 04 06 00 44 B5 9A 5E EF DC A2 60 6E 06 79 B6 C3 9C [21:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 55 CB 47 00 20 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 20 09 00 00 F4 03 04 00 B4 AF A7 66 B6 04 01 00 00 1D 9F EA D6 18 B5 E5 F4 [21:06:18]CommunicateWithHost err = 0 [21:06:18]CheckOFDResponse [21:06:18]1017 (14) - 77093643461234 [21:06:18]1041 (16) - 0000000002094248 [21:06:18]1040 (4) - 2336 [21:06:18]1012 (4) - 29.07.2024 15:05 [21:06:18]1206 (1) - 0 [21:06:18]OFD Sender: Remove packet 2336 [21:06:18]ProducePacketName [21:06:18]name=ofd_packets/00002336 [21:06:18]NVStorageDeleteData [21:06:18]Write to MH i2c: 01 00 00 DB 05 E0 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 07 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 22 0D 16 [21:06:18]RasterBufferAndPrint [21:06:18]line [21:06:18]line [21:06:18]line [21:06:18]line [21:06:18]line [21:06:18]written 0, free lines is 3382 [21:06:18]MH_Cut [21:06:18]Write to MH i2c: D1 01 00 E2 05 01 B9 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: D1 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: D1 01 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: D1 01 00 E2 05 00 B8 [21:06:18]Write to MH i2c: 01 00 00 E3 05 E8 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:19]OFD Sender: No OFD packet to send [21:06:19]*** Cut start [21:06:19]*** Partial cut [21:06:19]*** CUTSNS_PIN = 1 [21:06:19]*** CUTSNS_PIN = 0 [21:06:19]*** Brake cut motor [21:06:19]Read from MH i2c: 01 [21:06:19]MH_I2C_Read... [21:06:19]*** Stop cut motor [21:06:19]*** Cut end [21:06:19]Read from MH i2c: 01 07 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 FF 0F FD [21:06:19]process_action close_receipt done [21:06:19]requested_data is exist [21:06:19]produce_requested_data [21:06:19]requested_item fm.sn is exist - process it [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 11 00 00 [21:06:19]Write to MH i2c: E2 08 00 E4 05 80 11 00 00 00 00 00 00 63 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 17 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 17 00 E4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B3 [21:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:06:19]wFMCommunicate OK [21:06:19]requested_item fd.num is exist - process it [21:06:19]SAM_PROTO_GetFieldsCounters [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 13 00 00 [21:06:19]Write to MH i2c: E2 08 00 E5 05 80 13 00 00 00 00 00 00 66 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:20]Read from MH i2c: E2 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 62 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 62 00 E5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 20 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [21:06:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 20 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:20]wFMCommunicate OK [21:06:20]SAM_PROTO_GetFieldsCounters done [21:06:20]requested_item shift.num is exist - process it [21:06:20]requested_item shift.opened is exist - process it [21:06:20]req_shift_opened [21:06:20]FM_GetShiftState [21:06:20]SAM_PROTO_GetShiftState [21:06:20]wFMCommunicate request_size=4 [21:06:20]MH_SAM_APDU [21:06:20]CAPDU: 80 13 01 00 [21:06:20]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:20]Read from MH i2c: E2 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 0E 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 61 [21:06:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:06:20]wFMCommunicate OK [21:06:20]SAM_PROTO_GetShiftState done [21:06:20]FM_GetShiftState done [21:06:20]req_shift_opened done [21:06:20]requested_item shift.open_date is exist - process it [21:06:20]req_shift_open_date [21:06:20]req_shift_open_date done [21:06:20]produce_requested_data done [21:06:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2336,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:06:20]process_action_free close_receipt [21:06:20]json_value_free [21:06:20]json_value_free done [21:06:20]process_json_proto returns [21:06:20]Send response to host [21:06:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2336,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:06:20]free response buf [21:06:20]execute_script done [21:06:20]execute_script returns [21:06:20]free content buf [21:06:20]Sock 9.Close socket [21:06:20]Sock 9.Thread stoped [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:07]accept exits with 7 [21:07:07]New connection [21:07:07]New thread 3067420004 created [21:07:07]Thread 3067276644 joined [21:07:07]Waiting for new connection... [21:07:07] Sock 7.Parse request [21:07:07]Sock 7.Check first char [21:07:07]Sock 7.First char is OK [21:07:07]request: POST /json_proto HTTP/1.0 [21:07:07]Method: POST [21:07:07]URL: /json_proto [21:07:07]Method is POST - this is cgi request [21:07:07]url: /json_proto [21:07:07]query_string will be loaded in cgi processing [21:07:07]execute_cgi json_proto POST (null) [21:07:07]execute_cgi path=json_proto method=POST [21:07:07]POST find Content-Length [21:07:07]Host: 172.17.45.132:8080 [21:07:07]Content-Length: 620 [21:07:07]Content-Type: application/json [21:07:07] [21:07:07]POST finish read [21:07:07]Found Content-Length = 620 [21:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126567", "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:07:07]execute_script... [21:07: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)126567", "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:07:07]POST & json_proto [21:07:07]process_json_proto [21:07:07]json parsed OK: [21:07:07]protocol is kg_v1.0 [21:07:07]action value=close_receipt [21:07:07]process_action close_receipt [21:07:07]cmd_close_receipt [21:07:07]MH_GetDate [21:07:07]Write to MH i2c: F0 00 00 E7 05 DB [21:07:07]Write i2c OK [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: F0 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: F0 09 00 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: F0 09 00 E7 05 00 7B 04 A8 66 E3 0B 90 66 55 [21:07:07]GetLastDocTimeStamp 1722287176 [21:07:07]current date 1722287227 [21:07:07]FM_GetShiftState [21:07:07]SAM_PROTO_GetShiftState [21:07:07]wFMCommunicate request_size=4 [21:07:07]MH_SAM_APDU [21:07:07]CAPDU: 80 13 01 00 [21:07:07]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [21:07:07]Write i2c OK [21:07:07]MH_I2C_Read... [21:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:07]Read from MH i2c: E2 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: E2 0E 00 [21:07:07]MH_I2C_Read... [21:07:07]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 63 [21:07:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:07:07]wFMCommunicate OK [21:07:07]SAM_PROTO_GetShiftState done [21:07:07]FM_GetShiftState done [21:07:07]opened in 1722213119 [21:07:07]opened+sec_in_day 1722299519 [21:07:07]quantity*price = 15000 [21:07:07]sum+1 = 15001 [21:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 186 29.07.2024 21:07 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2337 ФПД: 80873479581388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210707&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2337&fm=80873479581388&tin=02508201610067®Number=0000000000189667&sum=15000 0 [21:07:08]StoreToDocumentArchive [21:07:08]shift 15 fd 2337 [21:07:08]save to /storage/0015/doc_00002337 [21:07:08]save last doc name /storage/0015/doc_00002337 to /storage/kkm_last_doc_name [21:07:08]save OK [21:07:08]Clear old archive folders... [21:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:07:08]tlvbuf is 010E85B0 [21:07:08]SAM_PROTO_ClearQueue [21:07:08]wFMCommunicate request_size=4 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 09 00 00 [21:07:08]Write to MH i2c: E2 08 00 F5 05 80 09 00 00 00 00 00 00 6C [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [21:07:08]RAPDU: 90 00 [21:07:08]wFMCommunicate OK [21:07:08]SAM_PROTO_ClearQueue done [21:07:08]KKMCreateOFDPacket [21:07:08]OFDProtocolAddRootSTLVToBuf [21:07:08]FM_MakeSignedData [21:07:08]FM_MakeSignedData [21:07:08]SAM_PROTO_SignData [21:07:08]wFMCommunicate request_size=4 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 0D 01 02 [21:07:08]Write to MH i2c: E2 08 00 F6 05 80 0D 01 02 00 00 00 00 74 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [21:07:08]RAPDU: 90 00 [21:07:08]wFMCommunicate OK [21:07:08]wFMCommunicate request_size=255 [21:07:08]MH_SAM_APDU [21:07:08]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 BA 00 00 00 F4 03 04 00 7B 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 [21:07:08]Write to MH i2c: E2 02 01 F7 05 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 BA 00 00 00 F4 03 04 00 7B 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5E [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [21:07:08]RAPDU: 90 00 [21:07:08]wFMCommunicate OK [21:07:08]wFMCommunicate request_size=31 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 0D 02 02 1A 30 32 30 39 34 32 34 38 10 04 04 00 21 09 00 00 35 04 06 00 49 8D D3 05 AE CC [21:07:08]Write to MH i2c: E2 22 00 F8 05 80 0D 02 02 1A 00 30 32 30 39 34 32 34 38 10 04 04 00 21 09 00 00 35 04 06 00 49 8D D3 05 AE CC 00 00 F1 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [21:07:08]RAPDU: 90 00 [21:07:08]wFMCommunicate OK [21:07:08]wFMCommunicate request_size=4 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 0D 03 02 [21:07:08]Write to MH i2c: E2 08 00 F9 05 80 0D 03 02 00 00 00 00 79 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 0B 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 0B 00 F9 05 00 AA 9C 0C 53 77 9F D1 B3 90 00 B9 [21:07:08]RAPDU: AA 9C 0C 53 77 9F D1 B3 90 00 [21:07:08]wFMCommunicate OK [21:07:08]SAM_PROTO_SignData done [21:07:08]FM_MakeSignedData done [21:07:08]CreateOFDProtocolMessage [21:07:08]wFMCommunicate request_size=4 [21:07:08]MH_SAM_APDU [21:07:08]CAPDU: 80 11 00 00 [21:07:08]Write to MH i2c: E2 08 00 FA 05 80 11 00 00 00 00 00 00 79 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:08]Read from MH i2c: E2 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 17 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: E2 17 00 FA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C9 [21:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:07:08]wFMCommunicate OK [21:07:08]CreateOFDProtocolMessage done [21:07:08]OFDSenderStorePacket 2337 [21:07:08]StoreOFDPacket docnum=2337 [21:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 A1 3F 1C 01 0F B6 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 BA 00 00 00 F4 03 04 00 7B 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 09 00 00 35 04 06 00 49 8D D3 05 AE CC AA 9C 0C 53 77 9F D1 B3 [21:07:08]CheckFolder [21:07:08]dirname=/storage/ofd_packets [21:07:08]CheckFolder done [21:07:08]ProducePacketName [21:07:08]name=ofd_packets/00002337 [21:07:08]NVStorageSaveData ofd_packets/00002337 [21:07:08]File name is /storage/ofd_packets/00002337 [21:07:08]Write 322 bytes [21:07:08]NVStorageSaveData done [21:07:08]OFDSenderStorePacket done [21:07:08]KKMCreateOFDPacket done [21:07:08]NVStorageSaveData kkm_last_timestamp [21:07:08]File name is /storage/kkm_last_timestamp [21:07:08]Write 4 bytes [21:07:08]NVStorageSaveData done [21:07:08]ExternCall_PrintAddStr [21:07:08]wPrintStart [21:07:08]Write to MH i2c: 01 00 00 FB 05 00 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 07 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 07 00 FB 05 00 00 00 00 00 FF 0F 15 [21:07:08]RasterBufferAndPrint [21:07:08]line Счет N : (3)126567 [21:07:08]line ИНН: 02508201610067 [21:07:08]line Контрольно-Кассовый Чек [21:07:08]line ПРОДАЖА [21:07:08]line Товар: 4640030091607 [21:07:08]line Сигареты ESSE Exchange [21:07:08]line 1.000 * 150.00 [21:07:08]line = 150.00 [21:07:08]line НДС 12% НСП 1% [21:07:08]line > о реализуемом товаре [21:07:08]line ИТОГО: 150.00 [21:07:08]line НСП 1% : 1.33 [21:07:08]line НДС 12% : 15.93 [21:07:08]line Наличными: 150.00 [21:07:08]line Безнал.: 0.00 [21:07:08]line Место: АЗС № 127 "Партнер Нефть" [21:07:08]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:07:08]line СНО: Общий режим [21:07:08]line Чек 186 29.07.2024 21:07 [21:07:08]line Смена: 15 ФФД: 1.0 [21:07:08]line ЗНМ: 0300000161 [21:07:08]line РНМ: 0000000000189667 [21:07:08]line Версия ККМ: v1.0 [21:07:08]line ФМ: 0000000002094248 [21:07:08]line ФД: 2337 [21:07:08]line ФПД: 80873479581388 [21:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210707&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2337&fm=80873479581388&tin=02508201610067®Number=0000000000189667&sum=15000 [21:07:09]line 0 [21:07:09]OFD Sender: Processing packet 2337 [packets to send 1, broken 0] [21:07:09]ProducePacketName [21:07:09]name=ofd_packets/00002337 [21:07:09]OFD Sender: To server: pG, [21:07:09]CommunicateWithHost lk.salyk.kg:30040 [21:07:09]ConnectInit lk.salyk.kg [21:07:09]written 0, free lines is 4095 [21:07:09]Connected sock=11 [21:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 24 01 00 00 A1 3F 1C 01 0F B6 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 BA 00 00 00 F4 03 04 00 7B 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 21 09 00 00 35 04 06 00 49 8D D3 05 AE CC AA 9C 0C 53 77 9F D1 B3 [21:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 42 2F 47 00 2E 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 32 30 39 34 32 34 38 10 04 04 00 21 09 00 00 F4 03 04 00 E7 AF A7 66 B6 04 01 00 00 0D A2 6F 43 E1 26 B7 21 [21:07:09]CommunicateWithHost err = 0 [21:07:09]CheckOFDResponse [21:07:09]1017 (14) - 77093643461234 [21:07:09]1041 (16) - 0000000002094248 [21:07:09]1040 (4) - 2337 [21:07:09]1012 (4) - 29.07.2024 15:06 [21:07:09]1206 (1) - 0 [21:07:09]OFD Sender: Remove packet 2337 [21:07:09]ProducePacketName [21:07:09]name=ofd_packets/00002337 [21:07:09]NVStorageDeleteData [21:07:09]Write to MH i2c: 01 00 00 23 06 29 [21:07:09]Write i2c OK [21:07:09]MH_I2C_Read... [21:07:09]Read from MH i2c: 01 [21:07:09]MH_I2C_Read... [21:07:09]Read from MH i2c: 01 07 00 [21:07:09]MH_I2C_Read... [21:07:09]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 20 0D 5D [21:07:09]RasterBufferAndPrint [21:07:09]line [21:07:09]line [21:07:09]line [21:07:09]line [21:07:09]line [21:07:09]written 0, free lines is 3366 [21:07:09]MH_Cut [21:07:09]Write to MH i2c: D1 01 00 2A 06 01 02 [21:07:09]Write i2c OK [21:07:09]MH_I2C_Read... [21:07:09]Read from MH i2c: D1 [21:07:09]MH_I2C_Read... [21:07:09]Read from MH i2c: D1 01 00 [21:07:09]MH_I2C_Read... [21:07:09]Read from MH i2c: D1 01 00 2A 06 00 01 [21:07:09]Write to MH i2c: 01 00 00 2B 06 31 [21:07:09]Write i2c OK [21:07:09]MH_I2C_Read... [21:07:10]OFD Sender: No OFD packet to send [21:07:10]*** Cut start [21:07:10]*** Partial cut [21:07:10]*** CUTSNS_PIN = 1 [21:07:10]*** CUTSNS_PIN = 0 [21:07:10]*** Brake cut motor [21:07:10]Read from MH i2c: 01 [21:07:10]MH_I2C_Read... [21:07:10]*** Stop cut motor [21:07:10]*** Cut end [21:07:10]Read from MH i2c: 01 07 00 [21:07:10]MH_I2C_Read... [21:07:10]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [21:07:10]process_action close_receipt done [21:07:10]requested_data is exist [21:07:10]produce_requested_data [21:07:10]requested_item fm.sn is exist - process it [21:07:10]wFMCommunicate request_size=4 [21:07:10]MH_SAM_APDU [21:07:10]CAPDU: 80 11 00 00 [21:07:10]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [21:07:10]Write i2c OK [21:07:10]MH_I2C_Read... [21:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:10]Read from MH i2c: E2 [21:07:10]MH_I2C_Read... [21:07:10]Read from MH i2c: E2 17 00 [21:07:10]MH_I2C_Read... [21:07:10]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 FC [21:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:07:10]wFMCommunicate OK [21:07:10]requested_item fd.num is exist - process it [21:07:10]SAM_PROTO_GetFieldsCounters [21:07:10]wFMCommunicate request_size=4 [21:07:10]MH_SAM_APDU [21:07:10]CAPDU: 80 13 00 00 [21:07:10]Write to MH i2c: E2 08 00 2D 06 80 13 00 00 00 00 00 00 AF [21:07:10]Write i2c OK [21:07:10]MH_I2C_Read... [21:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:11]Read from MH i2c: E2 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 62 00 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 62 00 2D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 21 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:07:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 21 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:11]wFMCommunicate OK [21:07:11]SAM_PROTO_GetFieldsCounters done [21:07:11]requested_item shift.num is exist - process it [21:07:11]requested_item shift.opened is exist - process it [21:07:11]req_shift_opened [21:07:11]FM_GetShiftState [21:07:11]SAM_PROTO_GetShiftState [21:07:11]wFMCommunicate request_size=4 [21:07:11]MH_SAM_APDU [21:07:11]CAPDU: 80 13 01 00 [21:07:11]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [21:07:11]Write i2c OK [21:07:11]MH_I2C_Read... [21:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:11]Read from MH i2c: E2 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 0E 00 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AA [21:07:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:07:11]wFMCommunicate OK [21:07:11]SAM_PROTO_GetShiftState done [21:07:11]FM_GetShiftState done [21:07:11]req_shift_opened done [21:07:11]requested_item shift.open_date is exist - process it [21:07:11]req_shift_open_date [21:07:11]req_shift_open_date done [21:07:11]produce_requested_data done [21:07:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2337,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:07:11]process_action_free close_receipt [21:07:11]json_value_free [21:07:11]json_value_free done [21:07:11]process_json_proto returns [21:07:11]Send response to host [21:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2337,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:07:11]free response buf [21:07:11]execute_script done [21:07:11]execute_script returns [21:07:11]free content buf [21:07:11]Sock 7.Close socket [21:07:11]Sock 7.Thread stoped [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:39]accept exits with 9 [21:07:39]New connection [21:07:39]New thread 3067276644 created [21:07:39]Thread 3067420004 joined [21:07:39]Waiting for new connection... [21:07:39] Sock 9.Parse request [21:07:39]Sock 9.Check first char [21:07:39]Sock 9.First char is OK [21:07:39]request: POST /json_proto HTTP/1.0 [21:07:39]Method: POST [21:07:39]URL: /json_proto [21:07:39]Method is POST - this is cgi request [21:07:39]url: /json_proto [21:07:39]query_string will be loaded in cgi processing [21:07:39]execute_cgi json_proto POST (null) [21:07:39]execute_cgi path=json_proto method=POST [21:07:39]POST find Content-Length [21:07:39]Host: 172.17.45.132:8080 [21:07:39]Content-Length: 682 [21:07:39]Content-Type: application/json [21:07:39] [21:07:39]POST finish read [21:07:39]Found Content-Length = 682 [21:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:39]execute_script... [21:07:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:39]POST & json_proto [21:07:39]process_json_proto [21:07:39]json parsed OK: [21:07:39]protocol is kg_v1.0 [21:07:39]action value=close_receipt [21:07:39]process_action close_receipt [21:07:39]cmd_close_receipt [21:07:39]MH_GetDate [21:07:39]Write to MH i2c: F0 00 00 2F 06 24 [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: F0 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: F0 09 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: F0 09 00 2F 06 00 9C 04 A8 66 E3 0B 90 66 BF [21:07:39]GetLastDocTimeStamp 1722287227 [21:07:39]current date 1722287260 [21:07:39]FM_GetShiftState [21:07:39]SAM_PROTO_GetShiftState [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 13 01 00 [21:07:39]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:39]Read from MH i2c: E2 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 0E 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 AC [21:07:39]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:07:39]wFMCommunicate OK [21:07:39]SAM_PROTO_GetShiftState done [21:07:39]FM_GetShiftState done [21:07:39]opened in 1722213119 [21:07:39]opened+sec_in_day 1722299519 [21:07:39]quantity*price = 100005 [21:07:39]sum+1 = 100006 [21:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 187 29.07.2024 21:07 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2338 ФПД: 205886763438161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210740&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2338&fm=205886763438161&tin=02508201610067®Number=0000000000189667&sum=100000 [21:07:40]StoreToDocumentArchive [21:07:40]shift 15 fd 2338 [21:07:40]save to /storage/0015/doc_00002338 [21:07:40]save last doc name /storage/0015/doc_00002338 to /storage/kkm_last_doc_name [21:07:40]save OK [21:07:40]Clear old archive folders... [21:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:40]tlvbuf is 010E7EF0 [21:07:40]SAM_PROTO_ClearQueue [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 09 00 00 [21:07:40]Write to MH i2c: E2 08 00 3D 06 80 09 00 00 00 00 00 00 B5 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [21:07:40]RAPDU: 90 00 [21:07:40]wFMCommunicate OK [21:07:40]SAM_PROTO_ClearQueue done [21:07:40]KKMCreateOFDPacket [21:07:40]OFDProtocolAddRootSTLVToBuf [21:07:40]FM_MakeSignedData [21:07:40]FM_MakeSignedData [21:07:40]SAM_PROTO_SignData [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 0D 01 02 [21:07:40]Write to MH i2c: E2 08 00 3E 06 80 0D 01 02 00 00 00 00 BD [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [21:07:40]RAPDU: 90 00 [21:07:40]wFMCommunicate OK [21:07:40]wFMCommunicate request_size=255 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 9C 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 09 00 00 35 04 06 00 BB [21:07:40]Write to MH i2c: E2 02 01 3F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 9C 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 09 00 00 35 04 06 00 BB 00 00 2F [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:41]Read from MH i2c: E2 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 03 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [21:07:41]RAPDU: 90 00 [21:07:41]wFMCommunicate OK [21:07:41]wFMCommunicate request_size=10 [21:07:41]MH_SAM_APDU [21:07:41]CAPDU: 80 0D 02 02 05 40 BF 66 10 51 [21:07:41]Write to MH i2c: E2 0D 00 40 06 80 0D 02 02 05 00 40 BF 66 10 51 00 00 90 [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:41]Read from MH i2c: E2 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 03 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [21:07:41]RAPDU: 90 00 [21:07:41]wFMCommunicate OK [21:07:41]wFMCommunicate request_size=4 [21:07:41]MH_SAM_APDU [21:07:41]CAPDU: 80 0D 03 02 [21:07:41]Write to MH i2c: E2 08 00 41 06 80 0D 03 02 00 00 00 00 C2 [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:41]Read from MH i2c: E2 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 0B 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 0B 00 41 06 00 3B 64 9F 42 51 90 B4 16 90 00 EE [21:07:41]RAPDU: 3B 64 9F 42 51 90 B4 16 90 00 [21:07:41]wFMCommunicate OK [21:07:41]SAM_PROTO_SignData done [21:07:41]FM_MakeSignedData done [21:07:41]CreateOFDProtocolMessage [21:07:41]wFMCommunicate request_size=4 [21:07:41]MH_SAM_APDU [21:07:41]CAPDU: 80 11 00 00 [21:07:41]Write to MH i2c: E2 08 00 42 06 80 11 00 00 00 00 00 00 C2 [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:41]Read from MH i2c: E2 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 17 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: E2 17 00 42 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 12 [21:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:07:41]wFMCommunicate OK [21:07:41]CreateOFDProtocolMessage done [21:07:41]OFDSenderStorePacket 2338 [21:07:41]StoreOFDPacket docnum=2338 [21:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2D 25 07 01 D7 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 9C 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 09 00 00 35 04 06 00 BB 40 BF 66 10 51 3B 64 9F 42 51 90 B4 16 [21:07:41]CheckFolder [21:07:41]dirname=/storage/ofd_packets [21:07:41]CheckFolder done [21:07:41]ProducePacketName [21:07:41]name=ofd_packets/00002338 [21:07:41]NVStorageSaveData ofd_packets/00002338 [21:07:41]File name is /storage/ofd_packets/00002338 [21:07:41]Write 301 bytes [21:07:41]NVStorageSaveData done [21:07:41]OFDSenderStorePacket done [21:07:41]KKMCreateOFDPacket done [21:07:41]NVStorageSaveData kkm_last_timestamp [21:07:41]File name is /storage/kkm_last_timestamp [21:07:41]Write 4 bytes [21:07:41]NVStorageSaveData done [21:07:41]ExternCall_PrintAddStr [21:07:41]wPrintStart [21:07:41]Write to MH i2c: 01 00 00 43 06 49 [21:07:41]Write i2c OK [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: 01 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: 01 07 00 [21:07:41]MH_I2C_Read... [21:07:41]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [21:07:41]RasterBufferAndPrint [21:07:41]line Счет N : (1)610152 [21:07:41]line ИНН: 02508201610067 [21:07:41]line Контрольно-Кассовый Чек [21:07:41]line ПРОДАЖА [21:07:41]line ТРК (МРК, ГНК) : 32 [21:07:41]line Товар: 2710124130 [21:07:41]line Аи-92-К-2 [21:07:41]line 14.750 * 67.80 [21:07:41]line = 1000.05 [21:07:41]line НДС 12% НСП 1% [21:07:41]line > о реализуемом товаре [21:07:41]line ОКРУГЛЕНИЕ: -0.05 [21:07:41]line ИТОГО: 1000.00 [21:07:41]line Внесено: 1000.00 [21:07:41]line СДАЧА: 0.00 [21:07:41]line НСП 1% : 8.85 [21:07:41]line НДС 12% : 106.20 [21:07:41]line Наличными: 1000.00 [21:07:41]line Безнал.: 0.00 [21:07:41]line Место: АЗС № 127 "Партнер Нефть" [21:07:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:07:41]line СНО: Общий режим [21:07:41]line Чек 187 29.07.2024 21:07 [21:07:41]line Смена: 15 ФФД: 1.0 [21:07:41]line ЗНМ: 0300000161 [21:07:41]line РНМ: 0000000000189667 [21:07:41]line Версия ККМ: v1.0 [21:07:41]line ФМ: 0000000002094248 [21:07:41]line ФД: 2338 [21:07:41]line ФПД: 205886763438161 [21:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210740&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2338&fm=205886763438161&tin=02508201610067®Number=0000000000189667&sum=100000 [21:07:41]OFD Sender: Processing packet 2338 [packets to send 1, broken 0] [21:07:41]ProducePacketName [21:07:41]name=ofd_packets/00002338 [21:07:41]OFD Sender: To server: pG, [21:07:41]CommunicateWithHost lk.salyk.kg:30040 [21:07:41]ConnectInit lk.salyk.kg [21:07:41]written 0, free lines is 4095 [21:07:41]Connected sock=10 [21:07:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 2D 25 07 01 D7 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 9C 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 22 09 00 00 35 04 06 00 BB 40 BF 66 10 51 3B 64 9F 42 51 90 B4 16 [21:07:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3F 10 47 00 15 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 32 30 39 34 32 34 38 10 04 04 00 22 09 00 00 F4 03 04 00 07 B0 A7 66 B6 04 01 00 00 7F 60 86 DC F9 E8 57 87 [21:07:42]CommunicateWithHost err = 0 [21:07:42]CheckOFDResponse [21:07:42]1017 (14) - 77093643461234 [21:07:42]1041 (16) - 0000000002094248 [21:07:42]1040 (4) - 2338 [21:07:42]1012 (4) - 29.07.2024 15:06 [21:07:42]1206 (1) - 0 [21:07:42]OFD Sender: Remove packet 2338 [21:07:42]ProducePacketName [21:07:42]name=ofd_packets/00002338 [21:07:42]NVStorageDeleteData [21:07:42]Write to MH i2c: 01 00 00 6E 06 74 [21:07:42]Write i2c OK [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: 01 [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: 01 07 00 [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 F7 0C 7E [21:07:42]RasterBufferAndPrint [21:07:42]line [21:07:42]line [21:07:42]line [21:07:42]line [21:07:42]line [21:07:42]written 0, free lines is 3326 [21:07:42]MH_Cut [21:07:42]Write to MH i2c: D1 01 00 75 06 01 4D [21:07:42]Write i2c OK [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: D1 [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: D1 01 00 [21:07:42]MH_I2C_Read... [21:07:42]Read from MH i2c: D1 01 00 75 06 00 4C [21:07:42]Write to MH i2c: 01 00 00 76 06 7C [21:07:42]Write i2c OK [21:07:42]MH_I2C_Read... [21:07:42]OFD Sender: No OFD packet to send [21:07:42]*** Cut start [21:07:42]*** Partial cut [21:07:42]*** CUTSNS_PIN = 1 [21:07:42]*** CUTSNS_PIN = 0 [21:07:43]*** Brake cut motor [21:07:43]Read from MH i2c: 01 [21:07:43]MH_I2C_Read... [21:07:43]*** Stop cut motor [21:07:43]*** Cut end [21:07:43]Read from MH i2c: 01 07 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [21:07:43]process_action close_receipt done [21:07:43]requested_data is exist [21:07:43]produce_requested_data [21:07:43]requested_item fm.sn is exist - process it [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 11 00 00 [21:07:43]Write to MH i2c: E2 08 00 77 06 80 11 00 00 00 00 00 00 F7 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 17 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 17 00 77 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 47 [21:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:07:43]wFMCommunicate OK [21:07:43]requested_item fd.num is exist - process it [21:07:43]SAM_PROTO_GetFieldsCounters [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 13 00 00 [21:07:43]Write to MH i2c: E2 08 00 78 06 80 13 00 00 00 00 00 00 FA [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 62 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 62 00 78 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 22 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [21:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 22 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:43]wFMCommunicate OK [21:07:43]SAM_PROTO_GetFieldsCounters done [21:07:43]requested_item shift.num is exist - process it [21:07:43]requested_item shift.opened is exist - process it [21:07:43]req_shift_opened [21:07:43]FM_GetShiftState [21:07:43]SAM_PROTO_GetShiftState [21:07:43]wFMCommunicate request_size=4 [21:07:43]MH_SAM_APDU [21:07:43]CAPDU: 80 13 01 00 [21:07:43]Write to MH i2c: E2 08 00 79 06 80 13 01 00 00 00 00 00 FC [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:43]Read from MH i2c: E2 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 0E 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: E2 0E 00 79 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F5 [21:07:43]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:07:43]wFMCommunicate OK [21:07:43]SAM_PROTO_GetShiftState done [21:07:43]FM_GetShiftState done [21:07:43]req_shift_opened done [21:07:43]requested_item shift.open_date is exist - process it [21:07:43]req_shift_open_date [21:07:43]req_shift_open_date done [21:07:43]produce_requested_data done [21:07:43]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2338,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:07:43]process_action_free close_receipt [21:07:43]json_value_free [21:07:43]json_value_free done [21:07:43]process_json_proto returns [21:07:43]Send response to host [21:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2338,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:07:43]free response buf [21:07:43]execute_script done [21:07:43]execute_script returns [21:07:43]free content buf [21:07:43]Sock 9.Close socket [21:07:43]Sock 9.Thread stoped [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:03]accept exits with 7 [21:08:03]New connection [21:08:03]New thread 3067420004 created [21:08:03]Thread 3067276644 joined [21:08:03]Waiting for new connection... [21:08:03] Sock 7.Parse request [21:08:03]Sock 7.Check first char [21:08:03]Sock 7.First char is OK [21:08:03]request: POST /json_proto HTTP/1.0 [21:08:03]Method: POST [21:08:03]URL: /json_proto [21:08:03]Method is POST - this is cgi request [21:08:03]url: /json_proto [21:08:03]query_string will be loaded in cgi processing [21:08:03]execute_cgi json_proto POST (null) [21:08:03]execute_cgi path=json_proto method=POST [21:08:03]POST find Content-Length [21:08:03]Host: 172.17.45.132:8080 [21:08:03]Content-Length: 677 [21:08:03]Content-Type: application/json [21:08:03] [21:08:03]POST finish read [21:08:03]Found Content-Length = 677 [21:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:03]execute_script... [21:08:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:03]POST & json_proto [21:08:03]process_json_proto [21:08:03]json parsed OK: [21:08:03]protocol is kg_v1.0 [21:08:03]action value=close_receipt [21:08:03]process_action close_receipt [21:08:03]cmd_close_receipt [21:08:03]MH_GetDate [21:08:03]Write to MH i2c: F0 00 00 7A 06 6F [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: F0 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: F0 09 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: F0 09 00 7A 06 00 B3 04 A8 66 E3 0B 90 66 21 [21:08:03]GetLastDocTimeStamp 1722287260 [21:08:03]current date 1722287283 [21:08:03]FM_GetShiftState [21:08:03]SAM_PROTO_GetShiftState [21:08:03]wFMCommunicate request_size=4 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 13 01 00 [21:08:03]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 0E 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F7 [21:08:03]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:08:03]wFMCommunicate OK [21:08:03]SAM_PROTO_GetShiftState done [21:08:03]FM_GetShiftState done [21:08:03]opened in 1722213119 [21:08:03]opened+sec_in_day 1722299519 [21:08:03]quantity*price = 50036 [21:08:03]sum+1 = 50037 [21:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 188 29.07.2024 21:08 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2339 ФПД: 1430389804130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210803&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2339&fm=1430389804130&tin=02508201610067®Number=0000000000189667&sum=50000 [21:08:04]StoreToDocumentArchive [21:08:04]shift 15 fd 2339 [21:08:04]save to /storage/0015/doc_00002339 [21:08:04]save last doc name /storage/0015/doc_00002339 to /storage/kkm_last_doc_name [21:08:04]save OK [21:08:04]Clear old archive folders... [21:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:04]tlvbuf is 010E1A20 [21:08:04]SAM_PROTO_ClearQueue [21:08:04]wFMCommunicate request_size=4 [21:08:04]MH_SAM_APDU [21:08:04]CAPDU: 80 09 00 00 [21:08:04]Write to MH i2c: E2 08 00 88 06 80 09 00 00 00 00 00 00 00 [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:04]Read from MH i2c: E2 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: E2 03 00 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [21:08:04]RAPDU: 90 00 [21:08:04]wFMCommunicate OK [21:08:04]SAM_PROTO_ClearQueue done [21:08:04]KKMCreateOFDPacket [21:08:04]OFDProtocolAddRootSTLVToBuf [21:08:04]FM_MakeSignedData [21:08:04]FM_MakeSignedData [21:08:04]SAM_PROTO_SignData [21:08:04]wFMCommunicate request_size=4 [21:08:04]MH_SAM_APDU [21:08:04]CAPDU: 80 0D 01 02 [21:08:04]Write to MH i2c: E2 08 00 89 06 80 0D 01 02 00 00 00 00 08 [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:04]Read from MH i2c: E2 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: E2 03 00 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [21:08:04]RAPDU: 90 00 [21:08:04]wFMCommunicate OK [21:08:04]wFMCommunicate request_size=255 [21:08:04]MH_SAM_APDU [21:08:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B3 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 09 00 00 35 04 06 00 01 [21:08:04]Write to MH i2c: E2 02 01 8A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B3 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 09 00 00 35 04 06 00 01 00 00 4A [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:04]Read from MH i2c: E2 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: E2 03 00 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [21:08:04]RAPDU: 90 00 [21:08:04]wFMCommunicate OK [21:08:04]wFMCommunicate request_size=10 [21:08:04]MH_SAM_APDU [21:08:04]CAPDU: 80 0D 02 02 05 4D 09 E0 4C 62 [21:08:04]Write to MH i2c: E2 0D 00 8B 06 80 0D 02 02 05 00 4D 09 E0 4C 62 00 00 F9 [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 03 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [21:08:05]RAPDU: 90 00 [21:08:05]wFMCommunicate OK [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 0D 03 02 [21:08:05]Write to MH i2c: E2 08 00 8C 06 80 0D 03 02 00 00 00 00 0D [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 0B 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 0B 00 8C 06 00 FC 18 1F D2 4A 03 4E 38 90 00 E6 [21:08:05]RAPDU: FC 18 1F D2 4A 03 4E 38 90 00 [21:08:05]wFMCommunicate OK [21:08:05]SAM_PROTO_SignData done [21:08:05]FM_MakeSignedData done [21:08:05]CreateOFDProtocolMessage [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 11 00 00 [21:08:05]Write to MH i2c: E2 08 00 8D 06 80 11 00 00 00 00 00 00 0D [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 17 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 17 00 8D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5D [21:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:05]wFMCommunicate OK [21:08:05]CreateOFDProtocolMessage done [21:08:05]OFDSenderStorePacket 2339 [21:08:05]StoreOFDPacket docnum=2339 [21:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 BC FF 07 01 54 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B3 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 09 00 00 35 04 06 00 01 4D 09 E0 4C 62 FC 18 1F D2 4A 03 4E 38 [21:08:05]CheckFolder [21:08:05]dirname=/storage/ofd_packets [21:08:05]CheckFolder done [21:08:05]ProducePacketName [21:08:05]name=ofd_packets/00002339 [21:08:05]NVStorageSaveData ofd_packets/00002339 [21:08:05]File name is /storage/ofd_packets/00002339 [21:08:05]Write 301 bytes [21:08:05]NVStorageSaveData done [21:08:05]OFDSenderStorePacket done [21:08:05]KKMCreateOFDPacket done [21:08:05]NVStorageSaveData kkm_last_timestamp [21:08:05]File name is /storage/kkm_last_timestamp [21:08:05]Write 4 bytes [21:08:05]NVStorageSaveData done [21:08:05]ExternCall_PrintAddStr [21:08:05]wPrintStart [21:08:05]Write to MH i2c: 01 00 00 8E 06 94 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 8E 06 00 00 00 00 00 FF 0F A9 [21:08:05]RasterBufferAndPrint [21:08:05]line Счет N : (1)610153 [21:08:05]line ИНН: 02508201610067 [21:08:05]line Контрольно-Кассовый Чек [21:08:05]line ПРОДАЖА [21:08:05]line ТРК (МРК, ГНК) : 52 [21:08:05]line Товар: 2710124130 [21:08:05]line Аи-92-К-2 [21:08:05]line 7.380 * 67.80 [21:08:05]line = 500.36 [21:08:05]line НДС 12% НСП 1% [21:08:05]line > о реализуемом товаре [21:08:05]line ОКРУГЛЕНИЕ: -0.36 [21:08:05]line ИТОГО: 500.00 [21:08:05]line Внесено: 500.00 [21:08:05]line СДАЧА: 0.00 [21:08:05]line НСП 1% : 4.43 [21:08:05]line НДС 12% : 53.14 [21:08:05]line Наличными: 500.00 [21:08:05]line Безнал.: 0.00 [21:08:05]line Место: АЗС № 127 "Партнер Нефть" [21:08:05]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:08:05]line СНО: Общий режим [21:08:05]line Чек 188 29.07.2024 21:08 [21:08:05]line Смена: 15 ФФД: 1.0 [21:08:05]line ЗНМ: 0300000161 [21:08:05]line РНМ: 0000000000189667 [21:08:05]line Версия ККМ: v1.0 [21:08:05]line ФМ: 0000000002094248 [21:08:05]line ФД: 2339 [21:08:05]line ФПД: 1430389804130 [21:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210803&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2339&fm=1430389804130&tin=02508201610067®Number=0000000000189667&sum=50000 [21:08:05]written 0, free lines is 4095 [21:08:05]OFD Sender: Processing packet 2339 [packets to send 1, broken 0] [21:08:05]ProducePacketName [21:08:05]name=ofd_packets/00002339 [21:08:05]OFD Sender: To server: pG, [21:08:05]CommunicateWithHost lk.salyk.kg:30040 [21:08:05]ConnectInit lk.salyk.kg [21:08:05]Connected sock=10 [21:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 BC FF 07 01 54 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 B3 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 09 00 00 35 04 06 00 01 4D 09 E0 4C 62 FC 18 1F D2 4A 03 4E 38 [21:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9E 7B 47 00 AD C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 23 09 00 00 F4 03 04 00 1F B0 A7 66 B6 04 01 00 00 A8 18 2E 70 E4 79 75 82 [21:08:05]CommunicateWithHost err = 0 [21:08:05]CheckOFDResponse [21:08:05]1017 (14) - 77093643461234 [21:08:05]1041 (16) - 0000000002094248 [21:08:05]1040 (4) - 2339 [21:08:05]1012 (4) - 29.07.2024 15:07 [21:08:05]1206 (1) - 0 [21:08:05]OFD Sender: Remove packet 2339 [21:08:05]ProducePacketName [21:08:05]name=ofd_packets/00002339 [21:08:05]NVStorageDeleteData [21:08:05]Write to MH i2c: 01 00 00 B9 06 BF [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 07 0D DA [21:08:05]RasterBufferAndPrint [21:08:05]line [21:08:05]line [21:08:05]line [21:08:05]line [21:08:05]line [21:08:05]written 0, free lines is 3341 [21:08:05]MH_Cut [21:08:05]Write to MH i2c: D1 01 00 C0 06 01 98 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: D1 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: D1 01 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: D1 01 00 C0 06 00 97 [21:08:05]Write to MH i2c: 01 00 00 C1 06 C7 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:06]OFD Sender: No OFD packet to send [21:08:06]*** Cut start [21:08:06]*** Partial cut [21:08:06]*** CUTSNS_PIN = 1 [21:08:06]*** CUTSNS_PIN = 0 [21:08:06]*** Brake cut motor [21:08:07]Read from MH i2c: 01 [21:08:07]MH_I2C_Read... [21:08:07]*** Stop cut motor [21:08:07]*** Cut end [21:08:07]Read from MH i2c: 01 07 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [21:08:07]process_action close_receipt done [21:08:07]requested_data is exist [21:08:07]produce_requested_data [21:08:07]requested_item fm.sn is exist - process it [21:08:07]wFMCommunicate request_size=4 [21:08:07]MH_SAM_APDU [21:08:07]CAPDU: 80 11 00 00 [21:08:07]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:07]Read from MH i2c: E2 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 17 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 92 [21:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:07]wFMCommunicate OK [21:08:07]requested_item fd.num is exist - process it [21:08:07]SAM_PROTO_GetFieldsCounters [21:08:07]wFMCommunicate request_size=4 [21:08:07]MH_SAM_APDU [21:08:07]CAPDU: 80 13 00 00 [21:08:07]Write to MH i2c: E2 08 00 C3 06 80 13 00 00 00 00 00 00 45 [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:07]Read from MH i2c: E2 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 62 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 62 00 C3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 23 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [21:08:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 23 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:07]wFMCommunicate OK [21:08:07]SAM_PROTO_GetFieldsCounters done [21:08:07]requested_item shift.num is exist - process it [21:08:07]requested_item shift.opened is exist - process it [21:08:07]req_shift_opened [21:08:07]FM_GetShiftState [21:08:07]SAM_PROTO_GetShiftState [21:08:07]wFMCommunicate request_size=4 [21:08:07]MH_SAM_APDU [21:08:07]CAPDU: 80 13 01 00 [21:08:07]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:07]Read from MH i2c: E2 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 0E 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 40 [21:08:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:08:07]wFMCommunicate OK [21:08:07]SAM_PROTO_GetShiftState done [21:08:07]FM_GetShiftState done [21:08:07]req_shift_opened done [21:08:07]requested_item shift.open_date is exist - process it [21:08:07]req_shift_open_date [21:08:07]req_shift_open_date done [21:08:07]produce_requested_data done [21:08:07]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2339,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:08:07]process_action_free close_receipt [21:08:07]json_value_free [21:08:07]json_value_free done [21:08:07]process_json_proto returns [21:08:07]Send response to host [21:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2339,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:08:07]free response buf [21:08:07]execute_script done [21:08:07]execute_script returns [21:08:07]free content buf [21:08:07]Sock 7.Close socket [21:08:07]Sock 7.Thread stoped [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:38]accept exits with 9 [21:08:38]New connection [21:08:38]New thread 3067276644 created [21:08:38]Thread 3067420004 joined [21:08:38]Waiting for new connection... [21:08:38] Sock 9.Parse request [21:08:38]Sock 9.Check first char [21:08:38]Sock 9.First char is OK [21:08:38]request: POST /json_proto HTTP/1.0 [21:08:38]Method: POST [21:08:38]URL: /json_proto [21:08:38]Method is POST - this is cgi request [21:08:38]url: /json_proto [21:08:38]query_string will be loaded in cgi processing [21:08:38]execute_cgi json_proto POST (null) [21:08:38]execute_cgi path=json_proto method=POST [21:08:38]POST find Content-Length [21:08:38]Host: 172.17.45.132:8080 [21:08:38]Content-Length: 900 [21:08:38]Content-Type: application/json [21:08:38] [21:08:38]POST finish read [21:08:38]Found Content-Length = 900 [21:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126568", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:38]execute_script... [21:08: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)126568", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:38]POST & json_proto [21:08:38]process_json_proto [21:08:38]json parsed OK: [21:08:38]protocol is kg_v1.0 [21:08:38]action value=close_receipt [21:08:38]process_action close_receipt [21:08:38]cmd_close_receipt [21:08:38]MH_GetDate [21:08:38]Write to MH i2c: F0 00 00 C5 06 BA [21:08:38]Write i2c OK [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: F0 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: F0 09 00 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: F0 09 00 C5 06 00 D6 04 A8 66 E3 0B 90 66 8F [21:08:38]GetLastDocTimeStamp 1722287283 [21:08:38]current date 1722287318 [21:08:38]FM_GetShiftState [21:08:38]SAM_PROTO_GetShiftState [21:08:38]wFMCommunicate request_size=4 [21:08:38]MH_SAM_APDU [21:08:38]CAPDU: 80 13 01 00 [21:08:38]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [21:08:38]Write i2c OK [21:08:38]MH_I2C_Read... [21:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:38]Read from MH i2c: E2 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: E2 0E 00 [21:08:38]MH_I2C_Read... [21:08:38]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 42 [21:08:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:08:38]wFMCommunicate OK [21:08:38]SAM_PROTO_GetShiftState done [21:08:38]FM_GetShiftState done [21:08:38]opened in 1722213119 [21:08:38]opened+sec_in_day 1722299519 [21:08:38]quantity*price = 14500 [21:08:38]sum+1 = 14501 [21:08:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 180.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.87 НДС 12% : 34.51 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 189 29.07.2024 21:08 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2340 ФПД: 173702329019398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210838&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2340&fm=173702329019398&tin=02508201610067®Number=0000000000189667&sum=32500 0 [21:08:39]StoreToDocumentArchive [21:08:39]shift 15 fd 2340 [21:08:39]save to /storage/0015/doc_00002340 [21:08:39]save last doc name /storage/0015/doc_00002340 to /storage/kkm_last_doc_name [21:08:39]save OK [21:08:39]Clear old archive folders... [21:08:39]ProcessDocumentItem done err = 0, tmpTLVsize=390 [21:08:39]tlvbuf is 010E4320 [21:08:39]SAM_PROTO_ClearQueue [21:08:39]wFMCommunicate request_size=4 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 09 00 00 [21:08:39]Write to MH i2c: E2 08 00 D3 06 80 09 00 00 00 00 00 00 4B [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:39]Read from MH i2c: E2 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [21:08:39]RAPDU: 90 00 [21:08:39]wFMCommunicate OK [21:08:39]SAM_PROTO_ClearQueue done [21:08:39]KKMCreateOFDPacket [21:08:39]OFDProtocolAddRootSTLVToBuf [21:08:39]FM_MakeSignedData [21:08:39]FM_MakeSignedData [21:08:39]SAM_PROTO_SignData [21:08:39]wFMCommunicate request_size=4 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 0D 01 02 [21:08:39]Write to MH i2c: E2 08 00 D4 06 80 0D 01 02 00 00 00 00 53 [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:39]Read from MH i2c: E2 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [21:08:39]RAPDU: 90 00 [21:08:39]wFMCommunicate OK [21:08:39]wFMCommunicate request_size=255 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 0D 02 02 FA 03 00 86 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 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 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [21:08:39]Write to MH i2c: E2 02 01 D5 06 80 0D 02 02 FA 00 03 00 86 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 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 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 2D [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:39]Read from MH i2c: E2 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [21:08:39]RAPDU: 90 00 [21:08:39]wFMCommunicate OK [21:08:39]wFMCommunicate request_size=149 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 09 00 00 35 04 06 00 9D FB 39 9E 2C 06 [21:08:39]Write to MH i2c: E2 98 00 D6 06 80 0D 02 02 90 00 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 09 00 00 35 04 06 00 9D FB 39 9E 2C 06 00 00 49 [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:39]Read from MH i2c: E2 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [21:08:39]RAPDU: 90 00 [21:08:39]wFMCommunicate OK [21:08:39]wFMCommunicate request_size=4 [21:08:39]MH_SAM_APDU [21:08:39]CAPDU: 80 0D 03 02 [21:08:39]Write to MH i2c: E2 08 00 D7 06 80 0D 03 02 00 00 00 00 58 [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 0B 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 0B 00 D7 06 00 59 5D 17 D7 39 9C 96 4E 90 00 B6 [21:08:40]RAPDU: 59 5D 17 D7 39 9C 96 4E 90 00 [21:08:40]wFMCommunicate OK [21:08:40]SAM_PROTO_SignData done [21:08:40]FM_MakeSignedData done [21:08:40]CreateOFDProtocolMessage [21:08:40]wFMCommunicate request_size=4 [21:08:40]MH_SAM_APDU [21:08:40]CAPDU: 80 11 00 00 [21:08:40]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:40]Read from MH i2c: E2 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 17 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A8 [21:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:40]wFMCommunicate OK [21:08:40]CreateOFDProtocolMessage done [21:08:40]OFDSenderStorePacket 2340 [21:08:40]StoreOFDPacket docnum=2340 [21:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9A 01 00 00 00 AE 92 01 99 A1 5A 03 01 00 03 00 86 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 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 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 09 00 00 35 04 06 00 9D FB 39 9E 2C 06 59 5D 17 D7 39 9C 96 4E [21:08:40]CheckFolder [21:08:40]dirname=/storage/ofd_packets [21:08:40]CheckFolder done [21:08:40]ProducePacketName [21:08:40]name=ofd_packets/00002340 [21:08:40]NVStorageSaveData ofd_packets/00002340 [21:08:40]File name is /storage/ofd_packets/00002340 [21:08:40]Write 440 bytes [21:08:40]NVStorageSaveData done [21:08:40]OFDSenderStorePacket done [21:08:40]KKMCreateOFDPacket done [21:08:40]NVStorageSaveData kkm_last_timestamp [21:08:40]File name is /storage/kkm_last_timestamp [21:08:40]Write 4 bytes [21:08:40]NVStorageSaveData done [21:08:40]ExternCall_PrintAddStr [21:08:40]wPrintStart [21:08:40]Write to MH i2c: 01 00 00 D9 06 DF [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [21:08:40]RasterBufferAndPrint [21:08:40]line Счет N : (3)126568 [21:08:40]line ИНН: 02508201610067 [21:08:40]line Контрольно-Кассовый Чек [21:08:40]line ПРОДАЖА [21:08:40]line Товар: 48744119 [21:08:40]line Сигареты Winston Xstyle Dual [21:08:40]line 1.000 * 145.00 [21:08:40]line = 145.00 [21:08:40]line НДС 12% НСП 1% [21:08:40]line > о реализуемом товаре [21:08:40]line Товар: 5449000176448 [21:08:40]line Сок Piko Pulpy апельсин ПЭТ 1л [21:08:40]line 1.000 * 180.00 [21:08:40]line = 180.00 [21:08:40]line НДС 12% НСП 1% [21:08:40]line > о реализуемом товаре [21:08:40]line ИТОГО: 325.00 [21:08:40]line НСП 1% : 2.87 [21:08:40]line НДС 12% : 34.51 [21:08:40]line Наличными: 325.00 [21:08:40]line Безнал.: 0.00 [21:08:40]line Место: АЗС № 127 "Партнер Нефть" [21:08:40]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:08:40]line СНО: Общий режим [21:08:40]line Чек 189 29.07.2024 21:08 [21:08:40]line Смена: 15 ФФД: 1.0 [21:08:40]line ЗНМ: 0300000161 [21:08:40]line РНМ: 0000000000189667 [21:08:40]line Версия ККМ: v1.0 [21:08:40]line ФМ: 0000000002094248 [21:08:40]line ФД: 2340 [21:08:40]line ФПД: 173702329019398 [21:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210838&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2340&fm=173702329019398&tin=02508201610067®Number=0000000000189667&sum=32500 [21:08:40]line 0 [21:08:40]OFD Sender: Processing packet 2340 [packets to send 1, broken 0] [21:08:40]ProducePacketName [21:08:40]name=ofd_packets/00002340 [21:08:40]OFD Sender: To server: pG, [21:08:40]CommunicateWithHost lk.salyk.kg:30040 [21:08:40]ConnectInit lk.salyk.kg [21:08:40]written 0, free lines is 4095 [21:08:40]Connected sock=10 [21:08:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 9A 01 00 00 00 AE 92 01 99 A1 5A 03 01 00 03 00 86 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 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 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 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 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 24 09 00 00 35 04 06 00 9D FB 39 9E 2C 06 59 5D 17 D7 39 9C 96 4E [21:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 24 20 47 00 51 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 32 30 39 34 32 34 38 10 04 04 00 24 09 00 00 F4 03 04 00 42 B0 A7 66 B6 04 01 00 00 8C 54 EA A3 0D F9 B6 61 [21:08:40]CommunicateWithHost err = 0 [21:08:40]CheckOFDResponse [21:08:40]1017 (14) - 77093643461234 [21:08:40]1041 (16) - 0000000002094248 [21:08:40]1040 (4) - 2340 [21:08:40]1012 (4) - 29.07.2024 15:07 [21:08:40]1206 (1) - 0 [21:08:40]OFD Sender: Remove packet 2340 [21:08:40]ProducePacketName [21:08:40]name=ofd_packets/00002340 [21:08:40]NVStorageDeleteData [21:08:40]Write to MH i2c: 01 00 00 08 07 0F [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 C9 0C EB [21:08:40]RasterBufferAndPrint [21:08:40]line [21:08:40]line [21:08:40]line [21:08:40]line [21:08:40]line [21:08:40]written 0, free lines is 3280 [21:08:40]MH_Cut [21:08:40]Write to MH i2c: D1 01 00 0F 07 01 E8 [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: D1 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: D1 01 00 [21:08:40]MH_I2C_Read... [21:08:40]Read from MH i2c: D1 01 00 0F 07 00 E7 [21:08:40]Write to MH i2c: 01 00 00 10 07 17 [21:08:40]Write i2c OK [21:08:40]MH_I2C_Read... [21:08:41]OFD Sender: No OFD packet to send [21:08:41]*** Cut start [21:08:41]*** Partial cut [21:08:41]*** CUTSNS_PIN = 1 [21:08:41]*** CUTSNS_PIN = 0 [21:08:41]*** Brake cut motor [21:08:42]Read from MH i2c: 01 [21:08:42]MH_I2C_Read... [21:08:42]*** Stop cut motor [21:08:42]*** Cut end [21:08:42]Read from MH i2c: 01 07 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 FF 0F 2C [21:08:42]process_action close_receipt done [21:08:42]requested_data is exist [21:08:42]produce_requested_data [21:08:42]requested_item fm.sn is exist - process it [21:08:42]wFMCommunicate request_size=4 [21:08:42]MH_SAM_APDU [21:08:42]CAPDU: 80 11 00 00 [21:08:42]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [21:08:42]Write i2c OK [21:08:42]MH_I2C_Read... [21:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:42]Read from MH i2c: E2 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 17 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E2 [21:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:42]wFMCommunicate OK [21:08:42]requested_item fd.num is exist - process it [21:08:42]SAM_PROTO_GetFieldsCounters [21:08:42]wFMCommunicate request_size=4 [21:08:42]MH_SAM_APDU [21:08:42]CAPDU: 80 13 00 00 [21:08:42]Write to MH i2c: E2 08 00 12 07 80 13 00 00 00 00 00 00 95 [21:08:42]Write i2c OK [21:08:42]MH_I2C_Read... [21:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:42]Read from MH i2c: E2 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 62 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 62 00 12 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 24 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 24 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:42]wFMCommunicate OK [21:08:42]SAM_PROTO_GetFieldsCounters done [21:08:42]requested_item shift.num is exist - process it [21:08:42]requested_item shift.opened is exist - process it [21:08:42]req_shift_opened [21:08:42]FM_GetShiftState [21:08:42]SAM_PROTO_GetShiftState [21:08:42]wFMCommunicate request_size=4 [21:08:42]MH_SAM_APDU [21:08:42]CAPDU: 80 13 01 00 [21:08:42]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [21:08:42]Write i2c OK [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 [21:08:42]MH_I2C_Read... [21:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:42]Read from MH i2c: E2 0E 00 [21:08:42]MH_I2C_Read... [21:08:42]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 90 [21:08:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:08:42]wFMCommunicate OK [21:08:42]SAM_PROTO_GetShiftState done [21:08:42]FM_GetShiftState done [21:08:42]req_shift_opened done [21:08:42]requested_item shift.open_date is exist - process it [21:08:42]req_shift_open_date [21:08:42]req_shift_open_date done [21:08:42]produce_requested_data done [21:08:42]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2340,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:08:42]process_action_free close_receipt [21:08:42]json_value_free [21:08:42]json_value_free done [21:08:42]process_json_proto returns [21:08:42]Send response to host [21:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2340,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:08:42]free response buf [21:08:42]execute_script done [21:08:42]execute_script returns [21:08:42]free content buf [21:08:42]Sock 9.Close socket [21:08:42]Sock 9.Thread stoped [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:55]accept exits with 7 [21:08:55]New connection [21:08:55]New thread 3067420004 created [21:08:55]Thread 3067276644 joined [21:08:55]Waiting for new connection... [21:08:55] Sock 7.Parse request [21:08:55]Sock 7.Check first char [21:08:55]Sock 7.First char is OK [21:08:55]request: POST /json_proto HTTP/1.0 [21:08:55]Method: POST [21:08:55]URL: /json_proto [21:08:55]Method is POST - this is cgi request [21:08:55]url: /json_proto [21:08:55]query_string will be loaded in cgi processing [21:08:55]execute_cgi json_proto POST (null) [21:08:55]execute_cgi path=json_proto method=POST [21:08:55]POST find Content-Length [21:08:55]Host: 172.17.45.132:8080 [21:08:55]Content-Length: 632 [21:08:55]Content-Type: application/json [21:08:55] [21:08:55]POST finish read [21:08:55]Found Content-Length = 632 [21:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126569", "tax_sys" : 0, "items" : [ { "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:55]execute_script... [21:08: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)126569", "tax_sys" : 0, "items" : [ { "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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:55]POST & json_proto [21:08:55]process_json_proto [21:08:55]json parsed OK: [21:08:55]protocol is kg_v1.0 [21:08:55]action value=close_receipt [21:08:55]process_action close_receipt [21:08:55]cmd_close_receipt [21:08:55]MH_GetDate [21:08:55]Write to MH i2c: F0 00 00 14 07 0A [21:08:55]Write i2c OK [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: F0 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: F0 09 00 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: F0 09 00 14 07 00 E7 04 A8 66 E3 0B 90 66 F0 [21:08:55]GetLastDocTimeStamp 1722287318 [21:08:55]current date 1722287335 [21:08:55]FM_GetShiftState [21:08:55]SAM_PROTO_GetShiftState [21:08:55]wFMCommunicate request_size=4 [21:08:55]MH_SAM_APDU [21:08:55]CAPDU: 80 13 01 00 [21:08:55]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [21:08:55]Write i2c OK [21:08:55]MH_I2C_Read... [21:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:55]Read from MH i2c: E2 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 0E 00 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 92 [21:08:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:08:55]wFMCommunicate OK [21:08:55]SAM_PROTO_GetShiftState done [21:08:55]FM_GetShiftState done [21:08:55]opened in 1722213119 [21:08:55]opened+sec_in_day 1722299519 [21:08:55]quantity*price = 6000 [21:08:55]sum+1 = 6001 [21:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 190 29.07.2024 21:08 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2341 ФПД: 68301418844474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210855&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2341&fm=68301418844474&tin=02508201610067®Number=0000000000189667&sum=6000 0 [21:08:56]StoreToDocumentArchive [21:08:56]shift 15 fd 2341 [21:08:56]save to /storage/0015/doc_00002341 [21:08:56]save last doc name /storage/0015/doc_00002341 to /storage/kkm_last_doc_name [21:08:56]save OK [21:08:56]Clear old archive folders... [21:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=271 [21:08:56]tlvbuf is 010F8520 [21:08:56]SAM_PROTO_ClearQueue [21:08:56]wFMCommunicate request_size=4 [21:08:56]MH_SAM_APDU [21:08:56]CAPDU: 80 09 00 00 [21:08:56]Write to MH i2c: E2 08 00 22 07 80 09 00 00 00 00 00 00 9B [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [21:08:56]RAPDU: 90 00 [21:08:56]wFMCommunicate OK [21:08:56]SAM_PROTO_ClearQueue done [21:08:56]KKMCreateOFDPacket [21:08:56]OFDProtocolAddRootSTLVToBuf [21:08:56]FM_MakeSignedData [21:08:56]FM_MakeSignedData [21:08:56]SAM_PROTO_SignData [21:08:56]wFMCommunicate request_size=4 [21:08:56]MH_SAM_APDU [21:08:56]CAPDU: 80 0D 01 02 [21:08:56]Write to MH i2c: E2 08 00 23 07 80 0D 01 02 00 00 00 00 A3 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [21:08:56]RAPDU: 90 00 [21:08:56]wFMCommunicate OK [21:08:56]wFMCommunicate request_size=255 [21:08:56]MH_SAM_APDU [21:08:56]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 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 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 BE 00 00 00 F4 03 04 00 E7 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [21:08:56]Write to MH i2c: E2 02 01 24 07 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 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 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 BE 00 00 00 F4 03 04 00 E7 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A4 [21:08:56]OFD Sender: No OFD packet to send [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [21:08:56]RAPDU: 90 00 [21:08:56]wFMCommunicate OK [21:08:56]wFMCommunicate request_size=30 [21:08:56]MH_SAM_APDU [21:08:56]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 25 09 00 00 35 04 06 00 3E 1E A9 CE D1 3A [21:08:56]Write to MH i2c: E2 21 00 25 07 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 25 09 00 00 35 04 06 00 3E 1E A9 CE D1 3A 00 00 A8 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [21:08:56]RAPDU: 90 00 [21:08:56]wFMCommunicate OK [21:08:56]wFMCommunicate request_size=4 [21:08:56]MH_SAM_APDU [21:08:56]CAPDU: 80 0D 03 02 [21:08:56]Write to MH i2c: E2 08 00 26 07 80 0D 03 02 00 00 00 00 A8 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 0B 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 0B 00 26 07 00 D1 EA 09 1E 51 6B 9C 45 90 00 28 [21:08:56]RAPDU: D1 EA 09 1E 51 6B 9C 45 90 00 [21:08:56]wFMCommunicate OK [21:08:56]SAM_PROTO_SignData done [21:08:56]FM_MakeSignedData done [21:08:56]CreateOFDProtocolMessage [21:08:56]wFMCommunicate request_size=4 [21:08:56]MH_SAM_APDU [21:08:56]CAPDU: 80 11 00 00 [21:08:56]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 17 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F8 [21:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:56]wFMCommunicate OK [21:08:56]CreateOFDProtocolMessage done [21:08:56]OFDSenderStorePacket 2341 [21:08:56]StoreOFDPacket docnum=2341 [21:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 93 4E 1B 01 9A A3 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 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 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 BE 00 00 00 F4 03 04 00 E7 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 09 00 00 35 04 06 00 3E 1E A9 CE D1 3A D1 EA 09 1E 51 6B 9C 45 [21:08:56]CheckFolder [21:08:56]dirname=/storage/ofd_packets [21:08:56]CheckFolder done [21:08:56]ProducePacketName [21:08:56]name=ofd_packets/00002341 [21:08:56]NVStorageSaveData ofd_packets/00002341 [21:08:56]File name is /storage/ofd_packets/00002341 [21:08:56]Write 321 bytes [21:08:56]NVStorageSaveData done [21:08:56]OFDSenderStorePacket done [21:08:56]KKMCreateOFDPacket done [21:08:56]NVStorageSaveData kkm_last_timestamp [21:08:56]File name is /storage/kkm_last_timestamp [21:08:56]Write 4 bytes [21:08:56]NVStorageSaveData done [21:08:56]ExternCall_PrintAddStr [21:08:56]wPrintStart [21:08:56]Write to MH i2c: 01 00 00 28 07 2F [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: 01 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: 01 07 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [21:08:56]RasterBufferAndPrint [21:08:56]line Счет N : (3)126569 [21:08:56]line ИНН: 02508201610067 [21:08:56]line Контрольно-Кассовый Чек [21:08:56]line ПРОДАЖА [21:08:56]line Товар: 4700000160204 [21:08:56]line Вода Легенда 1,5л [21:08:56]line 1.000 * 60.00 [21:08:56]line = 60.00 [21:08:56]line НДС 12% НСП 1% [21:08:56]line > о реализуемом товаре [21:08:56]line ИТОГО: 60.00 [21:08:56]line НСП 1% : 0.53 [21:08:56]line НДС 12% : 6.37 [21:08:56]line Наличными: 60.00 [21:08:56]line Безнал.: 0.00 [21:08:56]line Место: АЗС № 127 "Партнер Нефть" [21:08:56]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:08:56]line СНО: Общий режим [21:08:56]line Чек 190 29.07.2024 21:08 [21:08:56]line Смена: 15 ФФД: 1.0 [21:08:56]line ЗНМ: 0300000161 [21:08:56]line РНМ: 0000000000189667 [21:08:56]line Версия ККМ: v1.0 [21:08:56]line ФМ: 0000000002094248 [21:08:56]line ФД: 2341 [21:08:56]line ФПД: 68301418844474 [21:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210855&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2341&fm=68301418844474&tin=02508201610067®Number=0000000000189667&sum=6000 [21:08:56]line 0 [21:08:56]written 0, free lines is 4095 [21:08:56]OFD Sender: Processing packet 2341 [packets to send 1, broken 0] [21:08:56]ProducePacketName [21:08:56]name=ofd_packets/00002341 [21:08:56]OFD Sender: To server: pG, [21:08:56]CommunicateWithHost lk.salyk.kg:30040 [21:08:56]ConnectInit lk.salyk.kg [21:08:57]Write to MH i2c: 01 00 00 50 07 57 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: 01 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: 01 07 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: 01 07 00 50 07 00 00 00 00 00 09 0D 74 [21:08:57]RasterBufferAndPrint [21:08:57]line [21:08:57]line [21:08:57]line [21:08:57]line [21:08:57]line [21:08:57]written 0, free lines is 3343 [21:08:57]MH_Cut [21:08:57]Write to MH i2c: D1 01 00 57 07 01 30 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: D1 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: D1 01 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: D1 01 00 57 07 00 2F [21:08:57]Write to MH i2c: 01 00 00 58 07 5F [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** Cut start [21:08:57]*** Partial cut [21:08:57]*** CUTSNS_PIN = 1 [21:08:57]*** CUTSNS_PIN = 0 [21:08:58]*** Brake cut motor [21:08:58]Read from MH i2c: 01 [21:08:58]MH_I2C_Read... [21:08:58]*** Stop cut motor [21:08:58]*** Cut end [21:08:58]Read from MH i2c: 01 07 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: 01 07 00 58 07 00 00 00 00 00 FF 0F 74 [21:08:58]process_action close_receipt done [21:08:58]requested_data is exist [21:08:58]produce_requested_data [21:08:58]requested_item fm.sn is exist - process it [21:08:58]wFMCommunicate request_size=4 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 11 00 00 [21:08:58]Write to MH i2c: E2 08 00 59 07 80 11 00 00 00 00 00 00 DA [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 17 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 17 00 59 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2A [21:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:08:58]wFMCommunicate OK [21:08:58]requested_item fd.num is exist - process it [21:08:58]SAM_PROTO_GetFieldsCounters [21:08:58]wFMCommunicate request_size=4 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 13 00 00 [21:08:58]Write to MH i2c: E2 08 00 5A 07 80 13 00 00 00 00 00 00 DD [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 62 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 62 00 5A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 25 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [21:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 25 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:58]wFMCommunicate OK [21:08:58]SAM_PROTO_GetFieldsCounters done [21:08:58]requested_item shift.num is exist - process it [21:08:58]requested_item shift.opened is exist - process it [21:08:58]req_shift_opened [21:08:58]FM_GetShiftState [21:08:58]SAM_PROTO_GetShiftState [21:08:58]wFMCommunicate request_size=4 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 13 01 00 [21:08:58]Write to MH i2c: E2 08 00 5B 07 80 13 01 00 00 00 00 00 DF [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 0E 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 0E 00 5B 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D8 [21:08:58]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:08:58]wFMCommunicate OK [21:08:58]SAM_PROTO_GetShiftState done [21:08:58]FM_GetShiftState done [21:08:58]req_shift_opened done [21:08:58]requested_item shift.open_date is exist - process it [21:08:58]req_shift_open_date [21:08:58]req_shift_open_date done [21:08:58]produce_requested_data done [21:08:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2341,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:08:58]process_action_free close_receipt [21:08:58]json_value_free [21:08:58]json_value_free done [21:08:58]process_json_proto returns [21:08:58]Send response to host [21:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2341,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:08:58]free response buf [21:08:58]execute_script done [21:08:58]execute_script returns [21:08:58]free content buf [21:08:58]Sock 7.Close socket [21:08:58]Sock 7.Thread stoped [21:10:22]accept exits with 9 [21:10:22]New connection [21:10:22]New thread 3067276644 created [21:10:22]Thread 3067420004 joined [21:10:22]Waiting for new connection... [21:10:22] Sock 9.Parse request [21:10:22]Sock 9.Check first char [21:10:22]Sock 9.First char is OK [21:10:22]request: POST /json_proto HTTP/1.0 [21:10:22]Method: POST [21:10:22]URL: /json_proto [21:10:22]Method is POST - this is cgi request [21:10:22]url: /json_proto [21:10:22]query_string will be loaded in cgi processing [21:10:22]execute_cgi json_proto POST (null) [21:10:22]execute_cgi path=json_proto method=POST [21:10:22]POST find Content-Length [21:10:22]Host: 172.17.45.132:8080 [21:10:22]Content-Length: 673 [21:10:22]Content-Type: application/json [21:10:22] [21:10:22]POST finish read [21:10:22]Found Content-Length = 673 [21:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 7.930, "sum" : 600.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:22]execute_script... [21:10:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 7.930, "sum" : 600.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:22]POST & json_proto [21:10:22]process_json_proto [21:10:22]json parsed OK: [21:10:22]protocol is kg_v1.0 [21:10:22]action value=close_receipt [21:10:22]process_action close_receipt [21:10:22]cmd_close_receipt [21:10:22]MH_GetDate [21:10:22]Write to MH i2c: F0 00 00 5C 07 52 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: F0 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: F0 09 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: F0 09 00 5C 07 00 3E 05 A8 66 E3 0B 90 66 90 [21:10:22]GetLastDocTimeStamp 1722287335 [21:10:22]current date 1722287422 [21:10:22]FM_GetShiftState [21:10:22]SAM_PROTO_GetShiftState [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 13 01 00 [21:10:22]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0E 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DA [21:10:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:10:22]wFMCommunicate OK [21:10:22]SAM_PROTO_GetShiftState done [21:10:22]FM_GetShiftState done [21:10:22]opened in 1722213119 [21:10:22]opened+sec_in_day 1722299519 [21:10:22]quantity*price = 60030 [21:10:22]sum+1 = 60031 [21:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 191 29.07.2024 21:10 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2342 ФПД: 238679804848934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211022&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2342&fm=238679804848934&tin=02508201610067®Number=0000000000189667&sum=60000 [21:10:23]StoreToDocumentArchive [21:10:23]shift 15 fd 2342 [21:10:23]save to /storage/0015/doc_00002342 [21:10:23]save last doc name /storage/0015/doc_00002342 to /storage/kkm_last_doc_name [21:10:23]save OK [21:10:23]Clear old archive folders... [21:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:10:23]tlvbuf is 010C3DC0 [21:10:23]SAM_PROTO_ClearQueue [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 09 00 00 [21:10:23]Write to MH i2c: E2 08 00 6A 07 80 09 00 00 00 00 00 00 E3 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]SAM_PROTO_ClearQueue done [21:10:23]KKMCreateOFDPacket [21:10:23]OFDProtocolAddRootSTLVToBuf [21:10:23]FM_MakeSignedData [21:10:23]FM_MakeSignedData [21:10:23]SAM_PROTO_SignData [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 0D 01 02 [21:10:23]Write to MH i2c: E2 08 00 6B 07 80 0D 01 02 00 00 00 00 EB [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]wFMCommunicate request_size=255 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3E 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 09 00 00 35 04 06 00 D9 13 F8 FB [21:10:23]Write to MH i2c: E2 02 01 6C 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3E 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 09 00 00 35 04 06 00 D9 13 F8 FB 00 00 52 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]wFMCommunicate request_size=7 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 0D 02 02 02 AB 26 [21:10:23]Write to MH i2c: E2 0A 00 6D 07 80 0D 02 02 02 00 AB 26 00 00 C3 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 0D 03 02 [21:10:23]Write to MH i2c: E2 08 00 6E 07 80 0D 03 02 00 00 00 00 F0 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 0B 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 0B 00 6E 07 00 6F F1 F1 3F 47 D3 C9 FA 90 00 5E [21:10:23]RAPDU: 6F F1 F1 3F 47 D3 C9 FA 90 00 [21:10:23]wFMCommunicate OK [21:10:23]SAM_PROTO_SignData done [21:10:23]FM_MakeSignedData done [21:10:23]CreateOFDProtocolMessage [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 11 00 00 [21:10:23]Write to MH i2c: E2 08 00 6F 07 80 11 00 00 00 00 00 00 F0 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 17 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 17 00 6F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [21:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:10:23]wFMCommunicate OK [21:10:23]CreateOFDProtocolMessage done [21:10:23]OFDSenderStorePacket 2342 [21:10:23]StoreOFDPacket docnum=2342 [21:10:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 58 87 04 01 DC AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3E 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 09 00 00 35 04 06 00 D9 13 F8 FB AB 26 6F F1 F1 3F 47 D3 C9 FA [21:10:23]CheckFolder [21:10:23]dirname=/storage/ofd_packets [21:10:23]CheckFolder done [21:10:23]ProducePacketName [21:10:23]name=ofd_packets/00002342 [21:10:23]NVStorageSaveData ofd_packets/00002342 [21:10:23]File name is /storage/ofd_packets/00002342 [21:10:23]Write 298 bytes [21:10:23]NVStorageSaveData done [21:10:23]OFDSenderStorePacket done [21:10:23]KKMCreateOFDPacket done [21:10:23]NVStorageSaveData kkm_last_timestamp [21:10:23]File name is /storage/kkm_last_timestamp [21:10:23]Write 4 bytes [21:10:23]NVStorageSaveData done [21:10:23]ExternCall_PrintAddStr [21:10:23]wPrintStart [21:10:23]Write to MH i2c: 01 00 00 70 07 77 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 07 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 07 00 70 07 00 00 00 00 00 FF 0F 8C [21:10:23]RasterBufferAndPrint [21:10:23]line Счет N : (1)610156 [21:10:23]line ИНН: 02508201610067 [21:10:23]line Контрольно-Кассовый Чек [21:10:23]line ПРОДАЖА [21:10:23]line ТРК (МРК, ГНК) : 2 [21:10:23]line Товар: 2710194210 [21:10:23]line ДТ-К-2 [21:10:23]line 7.930 * 75.70 [21:10:23]line = 600.30 [21:10:23]line НДС 12% НСП 1% [21:10:23]line > о реализуемом товаре [21:10:23]line ОКРУГЛЕНИЕ: -0.30 [21:10:23]line ИТОГО: 600.00 [21:10:23]line Внесено: 600.00 [21:10:23]line СДАЧА: 0.00 [21:10:23]line НСП 1% : 5.31 [21:10:23]line НДС 12% : 63.75 [21:10:23]line Наличными: 600.00 [21:10:23]line Безнал.: 0.00 [21:10:23]line Место: АЗС № 127 "Партнер Нефть" [21:10:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:10:23]line СНО: Общий режим [21:10:23]line Чек 191 29.07.2024 21:10 [21:10:23]line Смена: 15 ФФД: 1.0 [21:10:23]line ЗНМ: 0300000161 [21:10:24]line РНМ: 0000000000189667 [21:10:24]line Версия ККМ: v1.0 [21:10:24]line ФМ: 0000000002094248 [21:10:24]line ФД: 2342 [21:10:24]line ФПД: 238679804848934 [21:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211022&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2342&fm=238679804848934&tin=02508201610067®Number=0000000000189667&sum=60000 [21:10:24]written 0, free lines is 4095 [21:10:24]Write to MH i2c: 01 00 00 9B 07 A2 [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: 01 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: 01 07 00 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 EC 0C A1 [21:10:24]RasterBufferAndPrint [21:10:24]line [21:10:24]line [21:10:24]line [21:10:24]line [21:10:24]line [21:10:24]written 0, free lines is 3311 [21:10:24]MH_Cut [21:10:24]Write to MH i2c: D1 01 00 A2 07 01 7B [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: D1 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: D1 01 00 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: D1 01 00 A2 07 00 7A [21:10:24]Write to MH i2c: 01 00 00 A3 07 AA [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:25]*** Cut start [21:10:25]*** Partial cut [21:10:25]*** CUTSNS_PIN = 1 [21:10:25]*** CUTSNS_PIN = 0 [21:10:25]*** Brake cut motor [21:10:25]Read from MH i2c: 01 [21:10:25]MH_I2C_Read... [21:10:25]*** Stop cut motor [21:10:26]*** Cut end [21:10:26]Read from MH i2c: 01 07 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [21:10:26]process_action close_receipt done [21:10:26]requested_data is exist [21:10:26]produce_requested_data [21:10:26]requested_item fm.sn is exist - process it [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 11 00 00 [21:10:26]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 17 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 75 [21:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:10:26]wFMCommunicate OK [21:10:26]requested_item fd.num is exist - process it [21:10:26]SAM_PROTO_GetFieldsCounters [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 13 00 00 [21:10:26]Write to MH i2c: E2 08 00 A5 07 80 13 00 00 00 00 00 00 28 [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 62 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 62 00 A5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [21:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 26 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:26]wFMCommunicate OK [21:10:26]SAM_PROTO_GetFieldsCounters done [21:10:26]requested_item shift.num is exist - process it [21:10:26]requested_item shift.opened is exist - process it [21:10:26]req_shift_opened [21:10:26]FM_GetShiftState [21:10:26]SAM_PROTO_GetShiftState [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 13 01 00 [21:10:26]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 0E 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 23 [21:10:26]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:10:26]wFMCommunicate OK [21:10:26]SAM_PROTO_GetShiftState done [21:10:26]FM_GetShiftState done [21:10:26]req_shift_opened done [21:10:26]requested_item shift.open_date is exist - process it [21:10:26]req_shift_open_date [21:10:26]req_shift_open_date done [21:10:26]produce_requested_data done [21:10:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2342,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:10:26]process_action_free close_receipt [21:10:26]json_value_free [21:10:26]json_value_free done [21:10:26]process_json_proto returns [21:10:26]Send response to host [21:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2342,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:10:26]free response buf [21:10:26]execute_script done [21:10:26]execute_script returns [21:10:26]free content buf [21:10:26]Sock 9.Close socket [21:10:26]Sock 9.Thread stoped [21:11:09]ConnectInit Can't connect to host [21:11:09]CommunicateWithHost connect error [21:11:09]CommunicateWithHost err = -1 [21:11:09]OFD Sender: Server communicate error [21:11:09]OFD Sender: Processing packet 2341 [packets to send 2, broken 0] [21:11:09]ProducePacketName [21:11:09]name=ofd_packets/00002341 [21:11:09]OFD Sender: To server: pG, [21:11:09]CommunicateWithHost lk.salyk.kg:30040 [21:11:09]ConnectInit lk.salyk.kg [21:11:09]Connected sock=9 [21:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 93 4E 1B 01 9A A3 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 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 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 BE 00 00 00 F4 03 04 00 E7 04 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 25 09 00 00 35 04 06 00 3E 1E A9 CE D1 3A D1 EA 09 1E 51 6B 9C 45 [21:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 54 50 47 00 C4 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 32 30 39 34 32 34 38 10 04 04 00 25 09 00 00 F4 03 04 00 D7 B0 A7 66 B6 04 01 00 00 DB 6E 12 91 E9 3E 8B D1 [21:11:09]CommunicateWithHost err = 0 [21:11:09]CheckOFDResponse [21:11:09]1017 (14) - 77093643461234 [21:11:09]1041 (16) - 0000000002094248 [21:11:09]1040 (4) - 2341 [21:11:09]1012 (4) - 29.07.2024 15:10 [21:11:09]1206 (1) - 0 [21:11:09]OFD Sender: Remove packet 2341 [21:11:09]ProducePacketName [21:11:09]name=ofd_packets/00002341 [21:11:09]NVStorageDeleteData [21:11:10]OFD Sender: Processing packet 2342 [packets to send 1, broken 0] [21:11:10]ProducePacketName [21:11:10]name=ofd_packets/00002342 [21:11:10]OFD Sender: To server: pG, [21:11:10]CommunicateWithHost lk.salyk.kg:30040 [21:11:10]ConnectInit lk.salyk.kg [21:11:10]Connected sock=10 [21:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 58 87 04 01 DC AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 1E 00 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3E 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 26 09 00 00 35 04 06 00 D9 13 F8 FB AB 26 6F F1 F1 3F 47 D3 C9 FA [21:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B6 05 47 00 1C 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 32 30 39 34 32 34 38 10 04 04 00 26 09 00 00 F4 03 04 00 D8 B0 A7 66 B6 04 01 00 00 CA 92 8C 4A 07 BD 3D 5C [21:11:10]CommunicateWithHost err = 0 [21:11:10]CheckOFDResponse [21:11:10]1017 (14) - 77093643461234 [21:11:10]1041 (16) - 0000000002094248 [21:11:10]1040 (4) - 2342 [21:11:10]1012 (4) - 29.07.2024 15:10 [21:11:10]1206 (1) - 0 [21:11:10]OFD Sender: Remove packet 2342 [21:11:10]ProducePacketName [21:11:10]name=ofd_packets/00002342 [21:11:10]NVStorageDeleteData [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:12:57]accept exits with 7 [21:12:57]New connection [21:12:57]New thread 3067420004 created [21:12:57]Thread 3067276644 joined [21:12:57]Waiting for new connection... [21:12:57] Sock 7.Parse request [21:12:57]Sock 7.Check first char [21:12:57]Sock 7.First char is OK [21:12:57]request: POST /json_proto HTTP/1.0 [21:12:57]Method: POST [21:12:57]URL: /json_proto [21:12:57]Method is POST - this is cgi request [21:12:57]url: /json_proto [21:12:57]query_string will be loaded in cgi processing [21:12:57]execute_cgi json_proto POST (null) [21:12:57]execute_cgi path=json_proto method=POST [21:12:57]POST find Content-Length [21:12:57]Host: 172.17.45.132:8080 [21:12:57]Content-Length: 684 [21:12:57]Content-Type: application/json [21:12:57] [21:12:57]POST finish read [21:12:57]Found Content-Length = 684 [21:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 27.030, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:57]execute_script... [21:12:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 27.030, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:57]POST & json_proto [21:12:57]process_json_proto [21:12:57]json parsed OK: [21:12:57]protocol is kg_v1.0 [21:12:57]action value=close_receipt [21:12:57]process_action close_receipt [21:12:57]cmd_close_receipt [21:12:57]MH_GetDate [21:12:57]Write to MH i2c: F0 00 00 A7 07 9D [21:12:57]Write i2c OK [21:12:57]MH_I2C_Read... [21:12:57]Read from MH i2c: F0 [21:12:57]MH_I2C_Read... [21:12:57]Read from MH i2c: F0 09 00 [21:12:57]MH_I2C_Read... [21:12:57]Read from MH i2c: F0 09 00 A7 07 00 DA 05 A8 66 E3 0B 90 66 77 [21:12:57]GetLastDocTimeStamp 1722287422 [21:12:57]current date 1722287578 [21:12:57]FM_GetShiftState [21:12:57]SAM_PROTO_GetShiftState [21:12:57]wFMCommunicate request_size=4 [21:12:57]MH_SAM_APDU [21:12:57]CAPDU: 80 13 01 00 [21:12:57]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [21:12:57]Write i2c OK [21:12:57]MH_I2C_Read... [21:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:57]Read from MH i2c: E2 [21:12:57]MH_I2C_Read... [21:12:57]Read from MH i2c: E2 0E 00 [21:12:57]MH_I2C_Read... [21:12:57]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 25 [21:12:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:12:57]wFMCommunicate OK [21:12:57]SAM_PROTO_GetShiftState done [21:12:57]FM_GetShiftState done [21:12:57]opened in 1722213119 [21:12:57]opened+sec_in_day 1722299519 [21:12:57]quantity*price = 100011 [21:12:57]sum+1 = 100012 [21:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 192 29.07.2024 21:12 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2343 ФПД: 198292108209831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211258&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2343&fm=198292108209831&tin=02508201610067®Number=0000000000189667&sum=100000 [21:12:58]StoreToDocumentArchive [21:12:58]shift 15 fd 2343 [21:12:58]save to /storage/0015/doc_00002343 [21:12:58]save last doc name /storage/0015/doc_00002343 to /storage/kkm_last_doc_name [21:12:58]save OK [21:12:58]Clear old archive folders... [21:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:12:58]tlvbuf is 010E2A20 [21:12:58]SAM_PROTO_ClearQueue [21:12:58]wFMCommunicate request_size=4 [21:12:58]MH_SAM_APDU [21:12:58]CAPDU: 80 09 00 00 [21:12:58]Write to MH i2c: E2 08 00 B5 07 80 09 00 00 00 00 00 00 2E [21:12:58]Write i2c OK [21:12:58]MH_I2C_Read... [21:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:58]Read from MH i2c: E2 [21:12:58]MH_I2C_Read... [21:12:58]Read from MH i2c: E2 03 00 [21:12:58]MH_I2C_Read... [21:12:58]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [21:12:58]RAPDU: 90 00 [21:12:58]wFMCommunicate OK [21:12:58]SAM_PROTO_ClearQueue done [21:12:58]KKMCreateOFDPacket [21:12:58]OFDProtocolAddRootSTLVToBuf [21:12:58]FM_MakeSignedData [21:12:58]FM_MakeSignedData [21:12:58]SAM_PROTO_SignData [21:12:58]wFMCommunicate request_size=4 [21:12:58]MH_SAM_APDU [21:12:58]CAPDU: 80 0D 01 02 [21:12:58]Write to MH i2c: E2 08 00 B6 07 80 0D 01 02 00 00 00 00 36 [21:12:58]Write i2c OK [21:12:58]MH_I2C_Read... [21:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:58]Read from MH i2c: E2 [21:12:58]MH_I2C_Read... [21:12:58]Read from MH i2c: E2 03 00 [21:12:58]MH_I2C_Read... [21:12:58]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [21:12:58]RAPDU: 90 00 [21:12:58]wFMCommunicate OK [21:12:58]wFMCommunicate request_size=255 [21:12:58]MH_SAM_APDU [21:12:58]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 33 FF 03 08 00 03 96 69 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 09 00 00 35 04 06 00 B4 58 [21:12:58]Write to MH i2c: E2 02 01 B7 07 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 33 FF 03 08 00 03 96 69 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 09 00 00 35 04 06 00 B4 58 00 00 05 [21:12:58]Write i2c OK [21:12:58]MH_I2C_Read... [21:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:59]Read from MH i2c: E2 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 03 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [21:12:59]RAPDU: 90 00 [21:12:59]wFMCommunicate OK [21:12:59]wFMCommunicate request_size=9 [21:12:59]MH_SAM_APDU [21:12:59]CAPDU: 80 0D 02 02 04 7A AB EE A7 [21:12:59]Write to MH i2c: E2 0C 00 B8 07 80 0D 02 02 04 00 7A AB EE A7 00 00 FB [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:59]Read from MH i2c: E2 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 03 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [21:12:59]RAPDU: 90 00 [21:12:59]wFMCommunicate OK [21:12:59]wFMCommunicate request_size=4 [21:12:59]MH_SAM_APDU [21:12:59]CAPDU: 80 0D 03 02 [21:12:59]Write to MH i2c: E2 08 00 B9 07 80 0D 03 02 00 00 00 00 3B [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:59]Read from MH i2c: E2 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 0B 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 0B 00 B9 07 00 D9 DC 07 80 11 B0 7D E8 90 00 9E [21:12:59]RAPDU: D9 DC 07 80 11 B0 7D E8 90 00 [21:12:59]wFMCommunicate OK [21:12:59]SAM_PROTO_SignData done [21:12:59]FM_MakeSignedData done [21:12:59]CreateOFDProtocolMessage [21:12:59]wFMCommunicate request_size=4 [21:12:59]MH_SAM_APDU [21:12:59]CAPDU: 80 11 00 00 [21:12:59]Write to MH i2c: E2 08 00 BA 07 80 11 00 00 00 00 00 00 3B [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:59]Read from MH i2c: E2 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 17 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: E2 17 00 BA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8B [21:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:12:59]wFMCommunicate OK [21:12:59]CreateOFDProtocolMessage done [21:12:59]OFDSenderStorePacket 2343 [21:12:59]StoreOFDPacket docnum=2343 [21:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 3E E3 06 01 65 96 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 33 FF 03 08 00 03 96 69 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 09 00 00 35 04 06 00 B4 58 7A AB EE A7 D9 DC 07 80 11 B0 7D E8 [21:12:59]CheckFolder [21:12:59]dirname=/storage/ofd_packets [21:12:59]CheckFolder done [21:12:59]ProducePacketName [21:12:59]name=ofd_packets/00002343 [21:12:59]NVStorageSaveData ofd_packets/00002343 [21:12:59]File name is /storage/ofd_packets/00002343 [21:12:59]Write 300 bytes [21:12:59]NVStorageSaveData done [21:12:59]OFDSenderStorePacket done [21:12:59]KKMCreateOFDPacket done [21:12:59]NVStorageSaveData kkm_last_timestamp [21:12:59]File name is /storage/kkm_last_timestamp [21:12:59]Write 4 bytes [21:12:59]NVStorageSaveData done [21:12:59]ExternCall_PrintAddStr [21:12:59]wPrintStart [21:12:59]Write to MH i2c: 01 00 00 BB 07 C2 [21:12:59]OFD Sender: Processing packet 2343 [packets to send 1, broken 0] [21:12:59]ProducePacketName [21:12:59]name=ofd_packets/00002343 [21:12:59]OFD Sender: To server: pG, [21:12:59]CommunicateWithHost lk.salyk.kg:30040 [21:12:59]ConnectInit lk.salyk.kg [21:12:59]Write i2c OK [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 [21:12:59]MH_I2C_Read... [21:12:59]Read from MH i2c: 01 07 00 BB 07 00 00 00 00 00 FF 0F D7 [21:12:59]RasterBufferAndPrint [21:12:59]line Счет N : (1)610157 [21:12:59]line ИНН: 02508201610067 [21:12:59]line Контрольно-Кассовый Чек [21:12:59]line ПРОДАЖА [21:12:59]line ТРК (МРК, ГНК) : 7 [21:12:59]line Товар: 2711190000 [21:12:59]line ГАЗ-К-3 [21:12:59]line 27.030 * 37.00 [21:12:59]line = 1000.11 [21:12:59]line НДС 12% НСП 1% [21:12:59]line > о реализуемом товаре [21:12:59]line ОКРУГЛЕНИЕ: -0.11 [21:12:59]line ИТОГО: 1000.00 [21:12:59]line Внесено: 1000.00 [21:12:59]line СДАЧА: 0.00 [21:12:59]line НСП 1% : 8.85 [21:12:59]line НДС 12% : 106.21 [21:12:59]line Наличными: 1000.00 [21:12:59]line Безнал.: 0.00 [21:12:59]line Место: АЗС № 127 "Партнер Нефть" [21:12:59]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:12:59]line СНО: Общий режим [21:12:59]line Чек 192 29.07.2024 21:12 [21:12:59]line Смена: 15 ФФД: 1.0 [21:12:59]line ЗНМ: 0300000161 [21:12:59]line РНМ: 0000000000189667 [21:12:59]line Версия ККМ: v1.0 [21:12:59]line ФМ: 0000000002094248 [21:12:59]line ФД: 2343 [21:12:59]line ФПД: 198292108209831 [21:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211258&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2343&fm=198292108209831&tin=02508201610067®Number=0000000000189667&sum=100000 [21:12:59]Connected sock=10 [21:12:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 3E E3 06 01 65 96 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 33 FF 03 08 00 03 96 69 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 DA 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 09 00 00 35 04 06 00 B4 58 7A AB EE A7 D9 DC 07 80 11 B0 7D E8 [21:12:59]written 0, free lines is 4095 [21:12:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 17 61 47 00 68 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 27 09 00 00 F4 03 04 00 45 B1 A7 66 B6 04 01 00 00 9B A8 51 81 99 9A EC 4B [21:12:59]CommunicateWithHost err = 0 [21:12:59]CheckOFDResponse [21:12:59]1017 (14) - 77093643461234 [21:12:59]1041 (16) - 0000000002094248 [21:12:59]1040 (4) - 2343 [21:12:59]1012 (4) - 29.07.2024 15:12 [21:12:59]1206 (1) - 0 [21:12:59]OFD Sender: Remove packet 2343 [21:12:59]ProducePacketName [21:12:59]name=ofd_packets/00002343 [21:12:59]NVStorageDeleteData [21:13:00]Write to MH i2c: 01 00 00 E6 07 ED [21:13:00]Write i2c OK [21:13:00]MH_I2C_Read... [21:13:00]Read from MH i2c: 01 [21:13:00]MH_I2C_Read... [21:13:00]Read from MH i2c: 01 07 00 [21:13:00]MH_I2C_Read... [21:13:00]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 EB 0C EB [21:13:00]RasterBufferAndPrint [21:13:00]line [21:13:00]line [21:13:00]line [21:13:00]line [21:13:00]line [21:13:00]written 0, free lines is 3313 [21:13:00]MH_Cut [21:13:00]Write to MH i2c: D1 01 00 ED 07 01 C6 [21:13:00]Write i2c OK [21:13:00]MH_I2C_Read... [21:13:00]Read from MH i2c: D1 [21:13:00]MH_I2C_Read... [21:13:00]Read from MH i2c: D1 01 00 [21:13:00]MH_I2C_Read... [21:13:00]Read from MH i2c: D1 01 00 ED 07 00 C5 [21:13:00]Write to MH i2c: 01 00 00 EE 07 F5 [21:13:00]Write i2c OK [21:13:00]MH_I2C_Read... [21:13:00]OFD Sender: No OFD packet to send [21:13:00]*** Cut start [21:13:00]*** Partial cut [21:13:00]*** CUTSNS_PIN = 1 [21:13:00]*** CUTSNS_PIN = 0 [21:13:01]*** Brake cut motor [21:13:01]Read from MH i2c: 01 [21:13:01]MH_I2C_Read... [21:13:01]*** Stop cut motor [21:13:01]*** Cut end [21:13:01]Read from MH i2c: 01 07 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [21:13:01]process_action close_receipt done [21:13:01]requested_data is exist [21:13:01]produce_requested_data [21:13:01]requested_item fm.sn is exist - process it [21:13:01]wFMCommunicate request_size=4 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 11 00 00 [21:13:01]Write to MH i2c: E2 08 00 EF 07 80 11 00 00 00 00 00 00 70 [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 17 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 17 00 EF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C0 [21:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:13:01]wFMCommunicate OK [21:13:01]requested_item fd.num is exist - process it [21:13:01]SAM_PROTO_GetFieldsCounters [21:13:01]wFMCommunicate request_size=4 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 13 00 00 [21:13:01]Write to MH i2c: E2 08 00 F0 07 80 13 00 00 00 00 00 00 73 [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 62 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 62 00 F0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 27 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [21:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 27 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:01]wFMCommunicate OK [21:13:01]SAM_PROTO_GetFieldsCounters done [21:13:01]requested_item shift.num is exist - process it [21:13:01]requested_item shift.opened is exist - process it [21:13:01]req_shift_opened [21:13:01]FM_GetShiftState [21:13:01]SAM_PROTO_GetShiftState [21:13:01]wFMCommunicate request_size=4 [21:13:01]MH_SAM_APDU [21:13:01]CAPDU: 80 13 01 00 [21:13:01]Write to MH i2c: E2 08 00 F1 07 80 13 01 00 00 00 00 00 75 [21:13:01]Write i2c OK [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 [21:13:01]MH_I2C_Read... [21:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:01]Read from MH i2c: E2 0E 00 [21:13:01]MH_I2C_Read... [21:13:01]Read from MH i2c: E2 0E 00 F1 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6E [21:13:01]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:13:01]wFMCommunicate OK [21:13:01]SAM_PROTO_GetShiftState done [21:13:01]FM_GetShiftState done [21:13:01]req_shift_opened done [21:13:01]requested_item shift.open_date is exist - process it [21:13:01]req_shift_open_date [21:13:01]req_shift_open_date done [21:13:01]produce_requested_data done [21:13:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2343,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:13:01]process_action_free close_receipt [21:13:01]json_value_free [21:13:01]json_value_free done [21:13:01]process_json_proto returns [21:13:01]Send response to host [21:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2343,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:13:01]free response buf [21:13:01]execute_script done [21:13:01]execute_script returns [21:13:01]free content buf [21:13:01]Sock 7.Close socket [21:13:01]Sock 7.Thread stoped [21:13:02]accept exits with 9 [21:13:02]New connection [21:13:02]New thread 3067276644 created [21:13:02]Thread 3067420004 joined [21:13:02]Waiting for new connection... [21:13:02] Sock 9.Parse request [21:13:02]Sock 9.Check first char [21:13:02]Sock 9.First char is OK [21:13:02]request: POST /json_proto HTTP/1.0 [21:13:02]Method: POST [21:13:02]URL: /json_proto [21:13:02]Method is POST - this is cgi request [21:13:02]url: /json_proto [21:13:02]query_string will be loaded in cgi processing [21:13:02]execute_cgi json_proto POST (null) [21:13:02]execute_cgi path=json_proto method=POST [21:13:02]POST find Content-Length [21:13:02]Host: 172.17.45.132:8080 [21:13:02]Content-Length: 728 [21:13:02]Content-Type: application/json [21:13:02] [21:13:02]POST finish read [21:13:02]Found Content-Length = 728 [21:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126570", "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" ] } } [21:13:02]execute_script... [21:13: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)126570", "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" ] } } [21:13:02]POST & json_proto [21:13:02]process_json_proto [21:13:02]json parsed OK: [21:13:02]protocol is kg_v1.0 [21:13:02]action value=close_receipt [21:13:02]process_action close_receipt [21:13:02]cmd_close_receipt [21:13:02]MH_GetDate [21:13:02]Write to MH i2c: F0 00 00 F2 07 E8 [21:13:02]Write i2c OK [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: F0 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: F0 09 00 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: F0 09 00 F2 07 00 DE 05 A8 66 E3 0B 90 66 C6 [21:13:02]GetLastDocTimeStamp 1722287578 [21:13:02]current date 1722287582 [21:13:02]FM_GetShiftState [21:13:02]SAM_PROTO_GetShiftState [21:13:02]wFMCommunicate request_size=4 [21:13:02]MH_SAM_APDU [21:13:02]CAPDU: 80 13 01 00 [21:13:02]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [21:13:02]Write i2c OK [21:13:02]MH_I2C_Read... [21:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:02]Read from MH i2c: E2 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: E2 0E 00 [21:13:02]MH_I2C_Read... [21:13:02]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 70 [21:13:02]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:13:02]wFMCommunicate OK [21:13:02]SAM_PROTO_GetShiftState done [21:13:02]FM_GetShiftState done [21:13:02]opened in 1722213119 [21:13:02]opened+sec_in_day 1722299519 [21:13:02]quantity*price = 6000 [21:13:02]sum+1 = 6001 [21:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 193 29.07.2024 21:13 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2344 ФПД: 255542821467666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211303&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2344&fm=255542821467666&tin=02508201610067®Number=0000000000189667&sum=6000 0 [21:13:03]StoreToDocumentArchive [21:13:03]shift 15 fd 2344 [21:13:03]save to /storage/0015/doc_00002344 [21:13:03]save last doc name /storage/0015/doc_00002344 to /storage/kkm_last_doc_name [21:13:03]save OK [21:13:03]Clear old archive folders... [21:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=303 [21:13:03]tlvbuf is 01137DE0 [21:13:03]SAM_PROTO_ClearQueue [21:13:03]wFMCommunicate request_size=4 [21:13:03]MH_SAM_APDU [21:13:03]CAPDU: 80 09 00 00 [21:13:03]Write to MH i2c: E2 08 00 00 08 80 09 00 00 00 00 00 00 7A [21:13:03]Write i2c OK [21:13:03]MH_I2C_Read... [21:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:03]Read from MH i2c: E2 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 03 00 [21:13:03]MH_I2C_Read... [21:13:03]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [21:13:03]RAPDU: 90 00 [21:13:03]wFMCommunicate OK [21:13:03]SAM_PROTO_ClearQueue done [21:13:03]KKMCreateOFDPacket [21:13:03]OFDProtocolAddRootSTLVToBuf [21:13:03]FM_MakeSignedData [21:13:03]FM_MakeSignedData [21:13:03]SAM_PROTO_SignData [21:13:03]wFMCommunicate request_size=4 [21:13:03]MH_SAM_APDU [21:13:03]CAPDU: 80 0D 01 02 [21:13:03]Write to MH i2c: E2 08 00 01 08 80 0D 01 02 00 00 00 00 82 [21:13:03]Write i2c OK [21:13:03]MH_I2C_Read... [21:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:04]Read from MH i2c: E2 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 03 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [21:13:04]RAPDU: 90 00 [21:13:04]wFMCommunicate OK [21:13:04]wFMCommunicate request_size=255 [21:13:04]MH_SAM_APDU [21:13:04]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 C1 00 00 00 F4 03 04 00 DF 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D [21:13:04]Write to MH i2c: E2 02 01 02 08 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 C1 00 00 00 F4 03 04 00 DF 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 00 00 24 [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:04]Read from MH i2c: E2 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 03 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [21:13:04]RAPDU: 90 00 [21:13:04]wFMCommunicate OK [21:13:04]wFMCommunicate request_size=62 [21:13:04]MH_SAM_APDU [21:13:04]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 09 00 00 35 04 06 00 E8 6A 33 19 36 12 [21:13:04]Write to MH i2c: E2 41 00 03 08 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 09 00 00 35 04 06 00 E8 6A 33 19 36 12 00 00 E0 [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:04]Read from MH i2c: E2 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 03 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [21:13:04]RAPDU: 90 00 [21:13:04]wFMCommunicate OK [21:13:04]wFMCommunicate request_size=4 [21:13:04]MH_SAM_APDU [21:13:04]CAPDU: 80 0D 03 02 [21:13:04]Write to MH i2c: E2 08 00 04 08 80 0D 03 02 00 00 00 00 87 [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:04]Read from MH i2c: E2 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 0B 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 0B 00 04 08 00 31 8D 4B 58 D2 CF 8A 7C 90 00 90 [21:13:04]RAPDU: 31 8D 4B 58 D2 CF 8A 7C 90 00 [21:13:04]wFMCommunicate OK [21:13:04]SAM_PROTO_SignData done [21:13:04]FM_MakeSignedData done [21:13:04]CreateOFDProtocolMessage [21:13:04]wFMCommunicate request_size=4 [21:13:04]MH_SAM_APDU [21:13:04]CAPDU: 80 11 00 00 [21:13:04]Write to MH i2c: E2 08 00 05 08 80 11 00 00 00 00 00 00 87 [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:04]Read from MH i2c: E2 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 17 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: E2 17 00 05 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D7 [21:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:13:04]wFMCommunicate OK [21:13:04]CreateOFDProtocolMessage done [21:13:04]OFDSenderStorePacket 2344 [21:13:04]StoreOFDPacket docnum=2344 [21:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 C6 E8 3B 01 5D ED 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 C1 00 00 00 F4 03 04 00 DF 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 09 00 00 35 04 06 00 E8 6A 33 19 36 12 31 8D 4B 58 D2 CF 8A 7C [21:13:04]CheckFolder [21:13:04]dirname=/storage/ofd_packets [21:13:04]CheckFolder done [21:13:04]ProducePacketName [21:13:04]name=ofd_packets/00002344 [21:13:04]NVStorageSaveData ofd_packets/00002344 [21:13:04]File name is /storage/ofd_packets/00002344 [21:13:04]Write 353 bytes [21:13:04]NVStorageSaveData done [21:13:04]OFDSenderStorePacket done [21:13:04]KKMCreateOFDPacket done [21:13:04]NVStorageSaveData kkm_last_timestamp [21:13:04]File name is /storage/kkm_last_timestamp [21:13:04]Write 4 bytes [21:13:04]NVStorageSaveData done [21:13:04]ExternCall_PrintAddStr [21:13:04]wPrintStart [21:13:04]Write to MH i2c: 01 00 00 06 08 0E [21:13:04]Write i2c OK [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: 01 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: 01 07 00 [21:13:04]MH_I2C_Read... [21:13:04]Read from MH i2c: 01 07 00 06 08 00 00 00 00 00 FF 0F 23 [21:13:04]RasterBufferAndPrint [21:13:04]line Счет N : (3)126570 [21:13:04]line ИНН: 02508201610067 [21:13:04]line Контрольно-Кассовый Чек [21:13:04]line ПРОДАЖА [21:13:04]line Товар: 4700000160792 [21:13:04]line Снек Курут классический (круглый) [21:13:04]line 1.000 * 60.00 [21:13:04]line = 60.00 [21:13:04]line НДС 12% НСП 1% [21:13:04]line > о реализуемом товаре [21:13:04]line ИТОГО: 60.00 [21:13:04]line НСП 1% : 0.53 [21:13:04]line НДС 12% : 6.37 [21:13:04]line Наличными: 60.00 [21:13:04]line Безнал.: 0.00 [21:13:04]line Место: АЗС № 127 "Партнер Нефть" [21:13:04]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:13:04]line СНО: Общий режим [21:13:04]line Чек 193 29.07.2024 21:13 [21:13:04]line Смена: 15 ФФД: 1.0 [21:13:04]line ЗНМ: 0300000161 [21:13:04]line РНМ: 0000000000189667 [21:13:04]line Версия ККМ: v1.0 [21:13:04]line ФМ: 0000000002094248 [21:13:04]line ФД: 2344 [21:13:04]line ФПД: 255542821467666 [21:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211303&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2344&fm=255542821467666&tin=02508201610067®Number=0000000000189667&sum=6000 [21:13:04]line 0 [21:13:04]written 0, free lines is 4095 [21:13:04]OFD Sender: Processing packet 2344 [packets to send 1, broken 0] [21:13:04]ProducePacketName [21:13:04]name=ofd_packets/00002344 [21:13:04]OFD Sender: To server: pG, [21:13:04]CommunicateWithHost lk.salyk.kg:30040 [21:13:04]ConnectInit lk.salyk.kg [21:13:04]Connected sock=10 [21:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 C6 E8 3B 01 5D ED 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 C1 00 00 00 F4 03 04 00 DF 05 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 09 00 00 35 04 06 00 E8 6A 33 19 36 12 31 8D 4B 58 D2 CF 8A 7C [21:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 05 A4 47 00 91 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 28 09 00 00 F4 03 04 00 4A B1 A7 66 B6 04 01 00 00 61 98 87 74 E2 D9 AD C9 [21:13:04]CommunicateWithHost err = 0 [21:13:04]CheckOFDResponse [21:13:04]1017 (14) - 77093643461234 [21:13:04]1041 (16) - 0000000002094248 [21:13:05]1040 (4) - 2344 [21:13:05]1012 (4) - 29.07.2024 15:12 [21:13:05]1206 (1) - 0 [21:13:05]OFD Sender: Remove packet 2344 [21:13:05]ProducePacketName [21:13:05]name=ofd_packets/00002344 [21:13:05]NVStorageDeleteData [21:13:05]Write to MH i2c: 01 00 00 2F 08 37 [21:13:05]Write i2c OK [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: 01 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: 01 07 00 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: 01 07 00 2F 08 00 00 00 00 00 18 0D 63 [21:13:05]RasterBufferAndPrint [21:13:05]line [21:13:05]line [21:13:05]line [21:13:05]line [21:13:05]line [21:13:05]written 0, free lines is 3367 [21:13:05]MH_Cut [21:13:05]Write to MH i2c: D1 01 00 36 08 01 10 [21:13:05]Write i2c OK [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: D1 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: D1 01 00 [21:13:05]MH_I2C_Read... [21:13:05]Read from MH i2c: D1 01 00 36 08 00 0F [21:13:05]Write to MH i2c: 01 00 00 37 08 3F [21:13:05]Write i2c OK [21:13:05]MH_I2C_Read... [21:13:05]OFD Sender: No OFD packet to send [21:13:05]*** Cut start [21:13:05]*** Partial cut [21:13:05]*** CUTSNS_PIN = 1 [21:13:05]*** CUTSNS_PIN = 0 [21:13:05]*** Brake cut motor [21:13:06]Read from MH i2c: 01 [21:13:06]MH_I2C_Read... [21:13:06]*** Stop cut motor [21:13:06]*** Cut end [21:13:06]Read from MH i2c: 01 07 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: 01 07 00 37 08 00 00 00 00 00 FF 0F 54 [21:13:06]process_action close_receipt done [21:13:06]requested_data is exist [21:13:06]produce_requested_data [21:13:06]requested_item fm.sn is exist - process it [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 11 00 00 [21:13:06]Write to MH i2c: E2 08 00 38 08 80 11 00 00 00 00 00 00 BA [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 17 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 17 00 38 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0A [21:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:13:06]wFMCommunicate OK [21:13:06]requested_item fd.num is exist - process it [21:13:06]SAM_PROTO_GetFieldsCounters [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 13 00 00 [21:13:06]Write to MH i2c: E2 08 00 39 08 80 13 00 00 00 00 00 00 BD [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 62 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 62 00 39 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 28 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [21:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 28 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:06]wFMCommunicate OK [21:13:06]SAM_PROTO_GetFieldsCounters done [21:13:06]requested_item shift.num is exist - process it [21:13:06]requested_item shift.opened is exist - process it [21:13:06]req_shift_opened [21:13:06]FM_GetShiftState [21:13:06]SAM_PROTO_GetShiftState [21:13:06]wFMCommunicate request_size=4 [21:13:06]MH_SAM_APDU [21:13:06]CAPDU: 80 13 01 00 [21:13:06]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [21:13:06]Write i2c OK [21:13:06]MH_I2C_Read... [21:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:06]Read from MH i2c: E2 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 0E 00 [21:13:06]MH_I2C_Read... [21:13:06]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B8 [21:13:06]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:13:06]wFMCommunicate OK [21:13:06]SAM_PROTO_GetShiftState done [21:13:06]FM_GetShiftState done [21:13:06]req_shift_opened done [21:13:06]requested_item shift.open_date is exist - process it [21:13:06]req_shift_open_date [21:13:06]req_shift_open_date done [21:13:06]produce_requested_data done [21:13:06]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2344,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:13:06]process_action_free close_receipt [21:13:06]json_value_free [21:13:06]json_value_free done [21:13:06]process_json_proto returns [21:13:06]Send response to host [21:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2344,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:13:06]free response buf [21:13:06]execute_script done [21:13:06]execute_script returns [21:13:06]free content buf [21:13:06]Sock 9.Close socket [21:13:06]Sock 9.Thread stoped [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:21]accept exits with 7 [21:14:21]New connection [21:14:21]New thread 3067420004 created [21:14:21]Thread 3067276644 joined [21:14:21]Waiting for new connection... [21:14:21] Sock 7.Parse request [21:14:21]Sock 7.Check first char [21:14:21]Sock 7.First char is OK [21:14:21]request: POST /json_proto HTTP/1.0 [21:14:21]Method: POST [21:14:21]URL: /json_proto [21:14:21]Method is POST - this is cgi request [21:14:21]url: /json_proto [21:14:21]query_string will be loaded in cgi processing [21:14:21]execute_cgi json_proto POST (null) [21:14:21]execute_cgi path=json_proto method=POST [21:14:21]POST find Content-Length [21:14:21]Host: 172.17.45.132:8080 [21:14:21]Content-Length: 682 [21:14:21]Content-Type: application/json [21:14:21] [21:14:21]POST finish read [21:14:21]Found Content-Length = 682 [21:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 16.520, "sum" : 1120.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:21]execute_script... [21:14: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)610160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 16.520, "sum" : 1120.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:21]POST & json_proto [21:14:21]process_json_proto [21:14:21]json parsed OK: [21:14:21]protocol is kg_v1.0 [21:14:21]action value=close_receipt [21:14:21]process_action close_receipt [21:14:21]cmd_close_receipt [21:14:21]MH_GetDate [21:14:21]Write to MH i2c: F0 00 00 3B 08 32 [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 09 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 09 00 3B 08 00 2E 06 A8 66 E3 0B 90 66 61 [21:14:21]GetLastDocTimeStamp 1722287583 [21:14:21]current date 1722287662 [21:14:21]FM_GetShiftState [21:14:21]SAM_PROTO_GetShiftState [21:14:21]wFMCommunicate request_size=4 [21:14:21]MH_SAM_APDU [21:14:21]CAPDU: 80 13 01 00 [21:14:21]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:21]Read from MH i2c: E2 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 0E 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BA [21:14:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:14:21]wFMCommunicate OK [21:14:21]SAM_PROTO_GetShiftState done [21:14:21]FM_GetShiftState done [21:14:21]opened in 1722213119 [21:14:21]opened+sec_in_day 1722299519 [21:14:21]quantity*price = 112005 [21:14:21]sum+1 = 112007 [21:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1120.00 Внесено: 1120.00 СДАЧА: 0.00 НСП 1% : 9.91 НДС 12% : 118.94 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 194 29.07.2024 21:14 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2345 ФПД: 15224456857129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211422&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2345&fm=15224456857129&tin=02508201610067®Number=0000000000189667&sum=112000 [21:14:22]StoreToDocumentArchive [21:14:22]shift 15 fd 2345 [21:14:22]save to /storage/0015/doc_00002345 [21:14:22]save last doc name /storage/0015/doc_00002345 to /storage/kkm_last_doc_name [21:14:22]save OK [21:14:22]Clear old archive folders... [21:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:22]tlvbuf is 011287B0 [21:14:22]SAM_PROTO_ClearQueue [21:14:22]wFMCommunicate request_size=4 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 09 00 00 [21:14:22]Write to MH i2c: E2 08 00 49 08 80 09 00 00 00 00 00 00 C3 [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]SAM_PROTO_ClearQueue done [21:14:23]KKMCreateOFDPacket [21:14:23]OFDProtocolAddRootSTLVToBuf [21:14:23]FM_MakeSignedData [21:14:23]FM_MakeSignedData [21:14:23]SAM_PROTO_SignData [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 01 02 [21:14:23]Write to MH i2c: E2 08 00 4A 08 80 0D 01 02 00 00 00 00 CB [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=255 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 86 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2E 06 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 09 00 00 35 04 06 00 0D [21:14:23]Write to MH i2c: E2 02 01 4B 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 86 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2E 06 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 09 00 00 35 04 06 00 0D 00 00 B9 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=10 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 05 D8 B8 57 C6 29 [21:14:23]Write to MH i2c: E2 0D 00 4C 08 80 0D 02 02 05 00 D8 B8 57 C6 29 00 00 AE [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 03 02 [21:14:23]Write to MH i2c: E2 08 00 4D 08 80 0D 03 02 00 00 00 00 D0 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 4D 08 00 50 38 C5 6C A8 72 0E 07 90 00 B9 [21:14:23]RAPDU: 50 38 C5 6C A8 72 0E 07 90 00 [21:14:23]wFMCommunicate OK [21:14:23]SAM_PROTO_SignData done [21:14:23]FM_MakeSignedData done [21:14:23]CreateOFDProtocolMessage [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 11 00 00 [21:14:23]Write to MH i2c: E2 08 00 4E 08 80 11 00 00 00 00 00 00 D0 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 17 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 17 00 4E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 20 [21:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:14:23]wFMCommunicate OK [21:14:23]CreateOFDProtocolMessage done [21:14:23]OFDSenderStorePacket 2345 [21:14:23]StoreOFDPacket docnum=2345 [21:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C6 D9 07 01 59 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 86 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2E 06 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 09 00 00 35 04 06 00 0D D8 B8 57 C6 29 50 38 C5 6C A8 72 0E 07 [21:14:23]CheckFolder [21:14:23]dirname=/storage/ofd_packets [21:14:23]CheckFolder done [21:14:23]ProducePacketName [21:14:23]name=ofd_packets/00002345 [21:14:23]NVStorageSaveData ofd_packets/00002345 [21:14:23]File name is /storage/ofd_packets/00002345 [21:14:23]Write 301 bytes [21:14:23]NVStorageSaveData done [21:14:23]OFDSenderStorePacket done [21:14:23]KKMCreateOFDPacket done [21:14:23]NVStorageSaveData kkm_last_timestamp [21:14:23]File name is /storage/kkm_last_timestamp [21:14:23]Write 4 bytes [21:14:23]NVStorageSaveData done [21:14:23]ExternCall_PrintAddStr [21:14:23]wPrintStart [21:14:23]Write to MH i2c: 01 00 00 4F 08 57 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 4F 08 00 00 00 00 00 FF 0F 6C [21:14:23]RasterBufferAndPrint [21:14:23]line Счет N : (1)610160 [21:14:23]line ИНН: 02508201610067 [21:14:23]line Контрольно-Кассовый Чек [21:14:23]line ПРОДАЖА [21:14:23]line ТРК (МРК, ГНК) : 32 [21:14:23]line Товар: 2710124130 [21:14:23]line Аи-92-К-2 [21:14:23]line 16.520 * 67.80 [21:14:23]line = 1120.06 [21:14:23]line НДС 12% НСП 1% [21:14:23]line > о реализуемом товаре [21:14:23]line ОКРУГЛЕНИЕ: -0.06 [21:14:23]line ИТОГО: 1120.00 [21:14:23]line Внесено: 1120.00 [21:14:23]line СДАЧА: 0.00 [21:14:23]line НСП 1% : 9.91 [21:14:23]line НДС 12% : 118.94 [21:14:23]line Наличными: 1120.00 [21:14:23]line Безнал.: 0.00 [21:14:23]line Место: АЗС № 127 "Партнер Нефть" [21:14:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:14:23]line СНО: Общий режим [21:14:23]line Чек 194 29.07.2024 21:14 [21:14:23]line Смена: 15 ФФД: 1.0 [21:14:23]line ЗНМ: 0300000161 [21:14:23]line РНМ: 0000000000189667 [21:14:23]line Версия ККМ: v1.0 [21:14:23]line ФМ: 0000000002094248 [21:14:23]line ФД: 2345 [21:14:23]line ФПД: 15224456857129 [21:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211422&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2345&fm=15224456857129&tin=02508201610067®Number=0000000000189667&sum=112000 [21:14:23]OFD Sender: Processing packet 2345 [packets to send 1, broken 0] [21:14:23]ProducePacketName [21:14:23]name=ofd_packets/00002345 [21:14:23]OFD Sender: To server: pG, [21:14:23]CommunicateWithHost lk.salyk.kg:30040 [21:14:23]ConnectInit lk.salyk.kg [21:14:23]written 0, free lines is 4095 [21:14:23]Connected sock=10 [21:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C6 D9 07 01 59 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 40 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 86 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2E 06 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 29 09 00 00 35 04 06 00 0D D8 B8 57 C6 29 50 38 C5 6C A8 72 0E 07 [21:14:24]Write to MH i2c: 01 00 00 7A 08 82 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 7A 08 00 00 00 00 00 F3 0C 88 [21:14:24]RasterBufferAndPrint [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]written 0, free lines is 3321 [21:14:24]MH_Cut [21:14:24]Write to MH i2c: D1 01 00 81 08 01 5B [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 81 08 00 5A [21:14:24]Write to MH i2c: 01 00 00 82 08 8A [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 85 E2 47 00 C0 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 32 30 39 34 32 34 38 10 04 04 00 29 09 00 00 F4 03 04 00 99 B1 A7 66 B6 04 01 00 00 ED F8 6E 18 20 03 3C C5 [21:14:24]CommunicateWithHost err = 0 [21:14:24]CheckOFDResponse [21:14:24]1017 (14) - 77093643461234 [21:14:24]1041 (16) - 0000000002094248 [21:14:24]1040 (4) - 2345 [21:14:24]1012 (4) - 29.07.2024 15:13 [21:14:24]1206 (1) - 0 [21:14:24]OFD Sender: Remove packet 2345 [21:14:24]ProducePacketName [21:14:24]name=ofd_packets/00002345 [21:14:24]NVStorageDeleteData [21:14:24]OFD Sender: No OFD packet to send [21:14:24]*** Cut start [21:14:24]*** Partial cut [21:14:24]*** CUTSNS_PIN = 1 [21:14:25]*** CUTSNS_PIN = 0 [21:14:25]*** Brake cut motor [21:14:25]Read from MH i2c: 01 [21:14:25]MH_I2C_Read... [21:14:25]*** Stop cut motor [21:14:25]*** Cut end [21:14:25]Read from MH i2c: 01 07 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 FF 0F 9F [21:14:25]process_action close_receipt done [21:14:25]requested_data is exist [21:14:25]produce_requested_data [21:14:25]requested_item fm.sn is exist - process it [21:14:25]wFMCommunicate request_size=4 [21:14:25]MH_SAM_APDU [21:14:25]CAPDU: 80 11 00 00 [21:14:25]Write to MH i2c: E2 08 00 83 08 80 11 00 00 00 00 00 00 05 [21:14:25]Write i2c OK [21:14:25]MH_I2C_Read... [21:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:25]Read from MH i2c: E2 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 17 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 17 00 83 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 55 [21:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:14:25]wFMCommunicate OK [21:14:25]requested_item fd.num is exist - process it [21:14:25]SAM_PROTO_GetFieldsCounters [21:14:25]wFMCommunicate request_size=4 [21:14:25]MH_SAM_APDU [21:14:25]CAPDU: 80 13 00 00 [21:14:25]Write to MH i2c: E2 08 00 84 08 80 13 00 00 00 00 00 00 08 [21:14:25]Write i2c OK [21:14:25]MH_I2C_Read... [21:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:25]Read from MH i2c: E2 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 62 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 62 00 84 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 29 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [21:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 29 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:25]wFMCommunicate OK [21:14:25]SAM_PROTO_GetFieldsCounters done [21:14:25]requested_item shift.num is exist - process it [21:14:25]requested_item shift.opened is exist - process it [21:14:25]req_shift_opened [21:14:25]FM_GetShiftState [21:14:25]SAM_PROTO_GetShiftState [21:14:25]wFMCommunicate request_size=4 [21:14:25]MH_SAM_APDU [21:14:25]CAPDU: 80 13 01 00 [21:14:25]Write to MH i2c: E2 08 00 85 08 80 13 01 00 00 00 00 00 0A [21:14:25]Write i2c OK [21:14:25]MH_I2C_Read... [21:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:25]Read from MH i2c: E2 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 0E 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 0E 00 85 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 03 [21:14:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:14:25]wFMCommunicate OK [21:14:25]SAM_PROTO_GetShiftState done [21:14:25]FM_GetShiftState done [21:14:25]req_shift_opened done [21:14:25]requested_item shift.open_date is exist - process it [21:14:25]req_shift_open_date [21:14:25]req_shift_open_date done [21:14:25]produce_requested_data done [21:14:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2345,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:14:25]process_action_free close_receipt [21:14:25]json_value_free [21:14:25]json_value_free done [21:14:25]process_json_proto returns [21:14:25]Send response to host [21:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2345,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:14:25]free response buf [21:14:25]execute_script done [21:14:25]execute_script returns [21:14:25]free content buf [21:14:25]Sock 7.Close socket [21:14:25]Sock 7.Thread stoped [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14: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:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]accept exits with 9 [21:22:00]New connection [21:22:00]New thread 3067276644 created [21:22:00]Thread 3067420004 joined [21:22:00]Waiting for new connection... [21:22:00] Sock 9.Parse request [21:22:00]Sock 9.Check first char [21:22:00]Sock 9.First char is OK [21:22:00]request: POST /json_proto HTTP/1.0 [21:22:00]Method: POST [21:22:00]URL: /json_proto [21:22:00]Method is POST - this is cgi request [21:22:00]url: /json_proto [21:22:00]query_string will be loaded in cgi processing [21:22:00]execute_cgi json_proto POST (null) [21:22:00]execute_cgi path=json_proto method=POST [21:22:00]POST find Content-Length [21:22:00]Host: 172.17.45.132:8080 [21:22:00]Content-Length: 1918 [21:22:00]Content-Type: application/json [21:22:00] [21:22:00]POST finish read [21:22:00]Found Content-Length = 1918 [21:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126571", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:00]execute_script... [21:22:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126571", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:00]POST & json_proto [21:22:00]process_json_proto [21:22:00]json parsed OK: [21:22:00]protocol is kg_v1.0 [21:22:00]action value=close_receipt [21:22:00]process_action close_receipt [21:22:00]cmd_close_receipt [21:22:00]MH_GetDate [21:22:00]Write to MH i2c: F0 00 00 86 08 7D [21:22:00]OFD Sender: No OFD packet to send [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: F0 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: F0 09 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: F0 09 00 86 08 00 F8 07 A8 66 E3 0B 90 66 77 [21:22:00]GetLastDocTimeStamp 1722287662 [21:22:00]current date 1722288120 [21:22:00]FM_GetShiftState [21:22:00]SAM_PROTO_GetShiftState [21:22:00]wFMCommunicate request_size=4 [21:22:00]MH_SAM_APDU [21:22:00]CAPDU: 80 13 01 00 [21:22:00]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:00]Read from MH i2c: E2 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 0E 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 05 [21:22:00]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:22:00]wFMCommunicate OK [21:22:00]SAM_PROTO_GetShiftState done [21:22:00]FM_GetShiftState done [21:22:00]opened in 1722213119 [21:22:00]opened+sec_in_day 1722299519 [21:22:00]quantity*price = 6000 [21:22:00]sum+1 = 6001 [21:22:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002328398 Вода ASU пит н.газ мята ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522015 Напиток Maxi Чай Грушевый 1,2л 2.000 * 110.00 = 220.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.87 НДС 12% : 70.50 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 195 29.07.2024 21:22 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2346 ФПД: 135351734836334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T212200&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2346&fm=135351734836334&tin=02508201610067®Number=0000000000189667&sum=66400 0 [21:22:01]StoreToDocumentArchive [21:22:01]shift 15 fd 2346 [21:22:01]save to /storage/0015/doc_00002346 [21:22:01]save last doc name /storage/0015/doc_00002346 to /storage/kkm_last_doc_name [21:22:01]save OK [21:22:01]Clear old archive folders... [21:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=731 [21:22:01]tlvbuf is 010FE0F0 [21:22:01]SAM_PROTO_ClearQueue [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 09 00 00 [21:22:01]Write to MH i2c: E2 08 00 94 08 80 09 00 00 00 00 00 00 0E [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]SAM_PROTO_ClearQueue done [21:22:01]KKMCreateOFDPacket [21:22:01]OFDProtocolAddRootSTLVToBuf [21:22:01]FM_MakeSignedData [21:22:01]FM_MakeSignedData [21:22:01]SAM_PROTO_SignData [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 01 02 [21:22:01]Write to MH i2c: E2 08 00 95 08 80 0D 01 02 00 00 00 00 16 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]wFMCommunicate request_size=255 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 02 02 FA 03 00 DB 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 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 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 65 00 8A 04 08 00 34 38 37 34 33 35 [21:22:01]Write to MH i2c: E2 02 01 96 08 80 0D 02 02 FA 00 03 00 DB 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 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 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 65 00 8A 04 08 00 34 38 37 34 33 35 00 00 E2 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 03 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [21:22:02]RAPDU: 90 00 [21:22:02]wFMCommunicate OK [21:22:02]wFMCommunicate request_size=255 [21:22:02]MH_SAM_APDU [21:22:02]CAPDU: 80 0D 02 02 FA 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 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F [21:22:02]Write to MH i2c: E2 02 01 97 08 80 0D 02 02 FA 00 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 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F 00 00 95 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 03 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [21:22:02]RAPDU: 90 00 [21:22:02]wFMCommunicate OK [21:22:02]wFMCommunicate request_size=240 [21:22:02]MH_SAM_APDU [21:22:02]CAPDU: 80 0D 02 02 EB D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F8 07 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 09 00 00 35 04 06 00 7B 1A 08 13 1C 6E [21:22:02]Write to MH i2c: E2 F3 00 98 08 80 0D 02 02 EB 00 D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F8 07 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 09 00 00 35 04 06 00 7B 1A 08 13 1C 6E 00 00 0B [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 03 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [21:22:02]RAPDU: 90 00 [21:22:02]wFMCommunicate OK [21:22:02]wFMCommunicate request_size=4 [21:22:02]MH_SAM_APDU [21:22:02]CAPDU: 80 0D 03 02 [21:22:02]Write to MH i2c: E2 08 00 99 08 80 0D 03 02 00 00 00 00 1C [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 0B 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 0B 00 99 08 00 AB 2E 46 02 AF CF 1F B1 90 00 8C [21:22:02]RAPDU: AB 2E 46 02 AF CF 1F B1 90 00 [21:22:02]wFMCommunicate OK [21:22:02]SAM_PROTO_SignData done [21:22:02]FM_MakeSignedData done [21:22:02]CreateOFDProtocolMessage [21:22:02]wFMCommunicate request_size=4 [21:22:02]MH_SAM_APDU [21:22:02]CAPDU: 80 11 00 00 [21:22:02]Write to MH i2c: E2 08 00 9A 08 80 11 00 00 00 00 00 00 1C [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:02]Read from MH i2c: E2 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 17 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: E2 17 00 9A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6C [21:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:22:02]wFMCommunicate OK [21:22:02]CreateOFDProtocolMessage done [21:22:02]OFDSenderStorePacket 2346 [21:22:02]StoreOFDPacket docnum=2346 [21:22:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 EF 02 00 00 9F F5 E7 02 88 55 5A 03 01 00 03 00 DB 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 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 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 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 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F8 07 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 09 00 00 35 04 06 00 7B 1A 08 13 1C 6E AB 2E 46 02 AF CF 1F B1 [21:22:02]CheckFolder [21:22:02]dirname=/storage/ofd_packets [21:22:02]CheckFolder done [21:22:02]ProducePacketName [21:22:02]name=ofd_packets/00002346 [21:22:02]NVStorageSaveData ofd_packets/00002346 [21:22:02]File name is /storage/ofd_packets/00002346 [21:22:02]Write 781 bytes [21:22:02]NVStorageSaveData done [21:22:02]OFDSenderStorePacket done [21:22:02]KKMCreateOFDPacket done [21:22:02]NVStorageSaveData kkm_last_timestamp [21:22:02]File name is /storage/kkm_last_timestamp [21:22:02]Write 4 bytes [21:22:02]NVStorageSaveData done [21:22:02]ExternCall_PrintAddStr [21:22:02]wPrintStart [21:22:02]Write to MH i2c: 01 00 00 9B 08 A3 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 FF 0F B8 [21:22:02]RasterBufferAndPrint [21:22:02]line Счет N : (3)126571 [21:22:02]line ИНН: 02508201610067 [21:22:02]line Контрольно-Кассовый Чек [21:22:02]line ПРОДАЖА [21:22:02]line Товар: 4700000310043 [21:22:02]line Вода Жалалабат 27 1л [21:22:02]line 1.000 * 60.00 [21:22:02]line = 60.00 [21:22:02]line НДС 12% НСП 1% [21:22:02]line > о реализуемом товаре [21:22:02]line Товар: 4870002328398 [21:22:02]line Вода ASU пит н.газ мята ПЭТ 1л [21:22:02]line 1.000 * 100.00 [21:22:02]line = 100.00 [21:22:02]line НДС 12% НСП 1% [21:22:02]line > о реализуемом товаре [21:22:02]line Товар: 48743587 [21:22:02]line Сигареты Winston XStyle Silver [21:22:02]line 2.000 * 140.00 [21:22:02]line = 280.00 [21:22:02]line НДС 12% НСП 1% [21:22:02]line > о реализуемом товаре [21:22:02]line Товар: 4870202522015 [21:22:02]line Напиток Maxi Чай Грушевый 1,2л [21:22:02]line 2.000 * 110.00 [21:22:02]line = 220.00 [21:22:02]line НДС 12% НСП 1% [21:22:02]line > о реализуемом товаре [21:22:02]line Товар: 2000031750019 [21:22:02]line Пакет Партнер Нефть [21:22:02]line 1.000 * 4.00 [21:22:02]line = 4.00 [21:22:02]line НДС 12% НСП 1% [21:22:02]line > о реализуемом товаре [21:22:02]line ИТОГО: 664.00 [21:22:02]line НСП 1% : 5.87 [21:22:02]line НДС 12% : 70.50 [21:22:02]line Наличными: 0.00 [21:22:02]line Безнал.: 664.00 [21:22:03]line Место: АЗС № 127 "Партнер Нефть" [21:22:03]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:22:03]line СНО: Общий режим [21:22:03]line Чек 195 29.07.2024 21:22 [21:22:03]line Смена: 15 ФФД: 1.0 [21:22:03]line ЗНМ: 0300000161 [21:22:03]line РНМ: 0000000000189667 [21:22:03]line Версия ККМ: v1.0 [21:22:03]line Платежная система: O! деньги [21:22:03]line ФМ: 0000000002094248 [21:22:03]line ФД: 2346 [21:22:03]line ФПД: 135351734836334 [21:22:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T212200&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2346&fm=135351734836334&tin=02508201610067®Number=0000000000189667&sum=66400 [21:22:03]line 0 [21:22:03]OFD Sender: Processing packet 2346 [packets to send 1, broken 0] [21:22:03]ProducePacketName [21:22:03]name=ofd_packets/00002346 [21:22:03]OFD Sender: To server: pG, [21:22:03]CommunicateWithHost lk.salyk.kg:30040 [21:22:03]ConnectInit lk.salyk.kg [21:22:03]written 0, free lines is 4095 [21:22:03]Connected sock=11 [21:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 EF 02 00 00 9F F5 E7 02 88 55 5A 03 01 00 03 00 DB 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 BC D1 8F D1 82 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 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 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 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F8 07 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2A 09 00 00 35 04 06 00 7B 1A 08 13 1C 6E AB 2E 46 02 AF CF 1F B1 [21:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6C 73 47 00 5D 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 32 30 39 34 32 34 38 10 04 04 00 2A 09 00 00 F4 03 04 00 65 B3 A7 66 B6 04 01 00 00 38 98 AC 44 07 B6 D0 6B [21:22:03]CommunicateWithHost err = 0 [21:22:03]CheckOFDResponse [21:22:03]1017 (14) - 77093643461234 [21:22:03]1041 (16) - 0000000002094248 [21:22:03]1040 (4) - 2346 [21:22:03]1012 (4) - 29.07.2024 15:21 [21:22:03]1206 (1) - 0 [21:22:03]OFD Sender: Remove packet 2346 [21:22:03]ProducePacketName [21:22:03]name=ofd_packets/00002346 [21:22:03]NVStorageDeleteData [21:22:03]Write to MH i2c: 01 00 00 E0 08 E8 [21:22:03]Write i2c OK [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: 01 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: 01 07 00 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 A1 0B 9B [21:22:03]RasterBufferAndPrint [21:22:03]line [21:22:03]line [21:22:03]line [21:22:03]line [21:22:03]line [21:22:03]written 0, free lines is 2986 [21:22:03]MH_Cut [21:22:03]Write to MH i2c: D1 01 00 E7 08 01 C1 [21:22:03]Write i2c OK [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: D1 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: D1 01 00 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: D1 01 00 E7 08 00 C0 [21:22:03]Write to MH i2c: 01 00 00 E8 08 F0 [21:22:03]Write i2c OK [21:22:03]MH_I2C_Read... [21:22:04]OFD Sender: No OFD packet to send [21:22:04]*** Cut start [21:22:04]*** Partial cut [21:22:04]*** CUTSNS_PIN = 1 [21:22:04]*** CUTSNS_PIN = 0 [21:22:05]*** Brake cut motor [21:22:05]Read from MH i2c: 01 [21:22:05]MH_I2C_Read... [21:22:05]*** Stop cut motor [21:22:05]*** Cut end [21:22:05]Read from MH i2c: 01 07 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 FF 0F 05 [21:22:05]process_action close_receipt done [21:22:05]requested_data is exist [21:22:05]produce_requested_data [21:22:05]requested_item fm.sn is exist - process it [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 11 00 00 [21:22:05]Write to MH i2c: E2 08 00 E9 08 80 11 00 00 00 00 00 00 6B [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 17 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 17 00 E9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BB [21:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:22:05]wFMCommunicate OK [21:22:05]requested_item fd.num is exist - process it [21:22:05]SAM_PROTO_GetFieldsCounters [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 13 00 00 [21:22:05]Write to MH i2c: E2 08 00 EA 08 80 13 00 00 00 00 00 00 6E [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 62 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 62 00 EA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [21:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:05]wFMCommunicate OK [21:22:05]SAM_PROTO_GetFieldsCounters done [21:22:05]requested_item shift.num is exist - process it [21:22:05]requested_item shift.opened is exist - process it [21:22:05]req_shift_opened [21:22:05]FM_GetShiftState [21:22:05]SAM_PROTO_GetShiftState [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 13 01 00 [21:22:05]Write to MH i2c: E2 08 00 EB 08 80 13 01 00 00 00 00 00 70 [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 0E 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 0E 00 EB 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 69 [21:22:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:22:05]wFMCommunicate OK [21:22:05]SAM_PROTO_GetShiftState done [21:22:05]FM_GetShiftState done [21:22:05]req_shift_opened done [21:22:05]requested_item shift.open_date is exist - process it [21:22:05]req_shift_open_date [21:22:05]req_shift_open_date done [21:22:05]produce_requested_data done [21:22:05]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2346,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:22:05]process_action_free close_receipt [21:22:05]json_value_free [21:22:05]json_value_free done [21:22:05]process_json_proto returns [21:22:05]Send response to host [21:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2346,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:22:05]free response buf [21:22:05]execute_script done [21:22:05]execute_script returns [21:22:05]free content buf [21:22:05]Sock 9.Close socket [21:22:05]Sock 9.Thread stoped [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:55]accept exits with 7 [21:23:55]New connection [21:23:55]New thread 3067420004 created [21:23:55]Thread 3067276644 joined [21:23:55]Waiting for new connection... [21:23:55] Sock 7.Parse request [21:23:55]Sock 7.Check first char [21:23:55]Sock 7.First char is OK [21:23:55]request: POST /json_proto HTTP/1.0 [21:23:55]Method: POST [21:23:55]URL: /json_proto [21:23:55]Method is POST - this is cgi request [21:23:55]url: /json_proto [21:23:55]query_string will be loaded in cgi processing [21:23:55]execute_cgi json_proto POST (null) [21:23:55]execute_cgi path=json_proto method=POST [21:23:55]POST find Content-Length [21:23:55]Host: 172.17.45.132:8080 [21:23:55]Content-Length: 682 [21:23:55]Content-Type: application/json [21:23:55] [21:23:55]POST finish read [21:23:55]Found Content-Length = 682 [21:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:55]execute_script... [21:23: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)610164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:55]POST & json_proto [21:23:55]process_json_proto [21:23:55]json parsed OK: [21:23:55]protocol is kg_v1.0 [21:23:55]action value=close_receipt [21:23:55]process_action close_receipt [21:23:55]cmd_close_receipt [21:23:55]MH_GetDate [21:23:55]Write to MH i2c: F0 00 00 EC 08 E3 [21:23:55]Write i2c OK [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: F0 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: F0 09 00 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: F0 09 00 EC 08 00 6C 08 A8 66 E3 0B 90 66 52 [21:23:55]GetLastDocTimeStamp 1722288120 [21:23:55]current date 1722288236 [21:23:55]FM_GetShiftState [21:23:55]SAM_PROTO_GetShiftState [21:23:55]wFMCommunicate request_size=4 [21:23:55]MH_SAM_APDU [21:23:55]CAPDU: 80 13 01 00 [21:23:55]Write to MH i2c: E2 08 00 ED 08 80 13 01 00 00 00 00 00 72 [21:23:55]Write i2c OK [21:23:55]MH_I2C_Read... [21:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:55]Read from MH i2c: E2 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: E2 0E 00 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: E2 0E 00 ED 08 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6B [21:23:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:23:55]wFMCommunicate OK [21:23:55]SAM_PROTO_GetShiftState done [21:23:55]FM_GetShiftState done [21:23:55]opened in 1722213119 [21:23:55]opened+sec_in_day 1722299519 [21:23:55]quantity*price = 150041 [21:23:55]sum+1 = 150042 [21:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 196 29.07.2024 21:23 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2347 ФПД: 245083562920639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T212356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2347&fm=245083562920639&tin=02508201610067®Number=0000000000189667&sum=150000 [21:23:57]StoreToDocumentArchive [21:23:57]shift 15 fd 2347 [21:23:57]save to /storage/0015/doc_00002347 [21:23:57]save last doc name /storage/0015/doc_00002347 to /storage/kkm_last_doc_name [21:23:57]save OK [21:23:57]Clear old archive folders... [21:23:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:57]tlvbuf is 010DB7E0 [21:23:57]SAM_PROTO_ClearQueue [21:23:57]wFMCommunicate request_size=4 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 09 00 00 [21:23:57]Write to MH i2c: E2 08 00 FA 08 80 09 00 00 00 00 00 00 74 [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [21:23:57]RAPDU: 90 00 [21:23:57]wFMCommunicate OK [21:23:57]SAM_PROTO_ClearQueue done [21:23:57]KKMCreateOFDPacket [21:23:57]OFDProtocolAddRootSTLVToBuf [21:23:57]FM_MakeSignedData [21:23:57]FM_MakeSignedData [21:23:57]SAM_PROTO_SignData [21:23:57]wFMCommunicate request_size=4 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 0D 01 02 [21:23:57]Write to MH i2c: E2 08 00 FB 08 80 0D 01 02 00 00 00 00 7C [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [21:23:57]RAPDU: 90 00 [21:23:57]wFMCommunicate OK [21:23:57]wFMCommunicate request_size=255 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 08 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 09 00 00 35 04 06 00 DE [21:23:57]Write to MH i2c: E2 02 01 FC 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 08 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 09 00 00 35 04 06 00 DE 00 00 DD [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [21:23:57]RAPDU: 90 00 [21:23:57]wFMCommunicate OK [21:23:57]wFMCommunicate request_size=10 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 0D 02 02 05 E6 F6 B5 4A BF [21:23:57]Write to MH i2c: E2 0D 00 FD 08 80 0D 02 02 05 00 E6 F6 B5 4A BF 00 00 23 [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 FD 08 00 90 00 79 [21:23:57]RAPDU: 90 00 [21:23:57]wFMCommunicate OK [21:23:57]wFMCommunicate request_size=4 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 0D 03 02 [21:23:57]Write to MH i2c: E2 08 00 FE 08 80 0D 03 02 00 00 00 00 81 [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 0B 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 0B 00 FE 08 00 11 40 6E 25 55 FB 2A F3 90 00 D3 [21:23:57]RAPDU: 11 40 6E 25 55 FB 2A F3 90 00 [21:23:57]wFMCommunicate OK [21:23:57]SAM_PROTO_SignData done [21:23:57]FM_MakeSignedData done [21:23:57]CreateOFDProtocolMessage [21:23:57]wFMCommunicate request_size=4 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 11 00 00 [21:23:57]Write to MH i2c: E2 08 00 FF 08 80 11 00 00 00 00 00 00 81 [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 17 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 17 00 FF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D1 [21:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:23:57]wFMCommunicate OK [21:23:57]CreateOFDProtocolMessage done [21:23:57]OFDSenderStorePacket 2347 [21:23:57]StoreOFDPacket docnum=2347 [21:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 01 D4 07 01 1A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 08 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 09 00 00 35 04 06 00 DE E6 F6 B5 4A BF 11 40 6E 25 55 FB 2A F3 [21:23:57]CheckFolder [21:23:57]dirname=/storage/ofd_packets [21:23:57]CheckFolder done [21:23:57]ProducePacketName [21:23:57]name=ofd_packets/00002347 [21:23:57]NVStorageSaveData ofd_packets/00002347 [21:23:57]File name is /storage/ofd_packets/00002347 [21:23:57]Write 301 bytes [21:23:57]NVStorageSaveData done [21:23:57]OFDSenderStorePacket done [21:23:57]KKMCreateOFDPacket done [21:23:57]NVStorageSaveData kkm_last_timestamp [21:23:57]File name is /storage/kkm_last_timestamp [21:23:57]Write 4 bytes [21:23:57]NVStorageSaveData done [21:23:57]ExternCall_PrintAddStr [21:23:57]wPrintStart [21:23:57]Write to MH i2c: 01 00 00 00 09 09 [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: 01 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: 01 07 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 FF 0F 1E [21:23:57]RasterBufferAndPrint [21:23:57]line Счет N : (1)610164 [21:23:57]line ИНН: 02508201610067 [21:23:57]line Контрольно-Кассовый Чек [21:23:57]line ПРОДАЖА [21:23:57]line ТРК (МРК, ГНК) : 52 [21:23:57]line Товар: 2710124130 [21:23:57]line Аи-92-К-2 [21:23:57]line 22.130 * 67.80 [21:23:57]line = 1500.41 [21:23:57]line НДС 12% НСП 1% [21:23:57]line > о реализуемом товаре [21:23:57]line ОКРУГЛЕНИЕ: -0.41 [21:23:57]line ИТОГО: 1500.00 [21:23:57]line Внесено: 1500.00 [21:23:57]line СДАЧА: 0.00 [21:23:57]line НСП 1% : 13.28 [21:23:57]line НДС 12% : 159.34 [21:23:57]line Наличными: 1500.00 [21:23:57]line Безнал.: 0.00 [21:23:57]line Место: АЗС № 127 "Партнер Нефть" [21:23:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:23:57]line СНО: Общий режим [21:23:57]line Чек 196 29.07.2024 21:23 [21:23:57]line Смена: 15 ФФД: 1.0 [21:23:57]line ЗНМ: 0300000161 [21:23:57]line РНМ: 0000000000189667 [21:23:57]line Версия ККМ: v1.0 [21:23:57]line ФМ: 0000000002094248 [21:23:57]line ФД: 2347 [21:23:57]line ФПД: 245083562920639 [21:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T212356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2347&fm=245083562920639&tin=02508201610067®Number=0000000000189667&sum=150000 [21:23:57]OFD Sender: Processing packet 2347 [packets to send 1, broken 0] [21:23:57]ProducePacketName [21:23:57]name=ofd_packets/00002347 [21:23:57]OFD Sender: To server: pG, [21:23:57]CommunicateWithHost lk.salyk.kg:30040 [21:23:57]ConnectInit lk.salyk.kg [21:23:57]written 0, free lines is 4095 [21:23:58]Connected sock=10 [21:23:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 01 D4 07 01 1A E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6C 08 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2B 09 00 00 35 04 06 00 DE E6 F6 B5 4A BF 11 40 6E 25 55 FB 2A F3 [21:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 AF B6 47 00 0D 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 32 30 39 34 32 34 38 10 04 04 00 2B 09 00 00 F4 03 04 00 D8 B3 A7 66 B6 04 01 00 00 65 43 84 C5 EE 9D 79 5B [21:23:58]CommunicateWithHost err = 0 [21:23:58]CheckOFDResponse [21:23:58]1017 (14) - 77093643461234 [21:23:58]1041 (16) - 0000000002094248 [21:23:58]1040 (4) - 2347 [21:23:58]1012 (4) - 29.07.2024 15:23 [21:23:58]1206 (1) - 0 [21:23:58]OFD Sender: Remove packet 2347 [21:23:58]ProducePacketName [21:23:58]name=ofd_packets/00002347 [21:23:58]NVStorageDeleteData [21:23:58]Write to MH i2c: 01 00 00 2B 09 34 [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 07 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 FA 0C 41 [21:23:58]RasterBufferAndPrint [21:23:58]line [21:23:58]line [21:23:58]line [21:23:58]line [21:23:58]line [21:23:58]written 0, free lines is 3328 [21:23:58]MH_Cut [21:23:58]Write to MH i2c: D1 01 00 32 09 01 0D [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: D1 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: D1 01 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: D1 01 00 32 09 00 0C [21:23:58]Write to MH i2c: 01 00 00 33 09 3C [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]OFD Sender: No OFD packet to send [21:23:59]*** Cut start [21:23:59]*** Partial cut [21:23:59]*** CUTSNS_PIN = 1 [21:23:59]*** CUTSNS_PIN = 0 [21:23:59]*** Brake cut motor [21:23:59]Read from MH i2c: 01 [21:23:59]MH_I2C_Read... [21:23:59]*** Stop cut motor [21:23:59]*** Cut end [21:23:59]Read from MH i2c: 01 07 00 [21:23:59]MH_I2C_Read... [21:23:59]Read from MH i2c: 01 07 00 33 09 00 00 00 00 00 FF 0F 51 [21:23:59]process_action close_receipt done [21:23:59]requested_data is exist [21:23:59]produce_requested_data [21:23:59]requested_item fm.sn is exist - process it [21:23:59]wFMCommunicate request_size=4 [21:23:59]MH_SAM_APDU [21:23:59]CAPDU: 80 11 00 00 [21:23:59]Write to MH i2c: E2 08 00 34 09 80 11 00 00 00 00 00 00 B7 [21:23:59]Write i2c OK [21:23:59]MH_I2C_Read... [21:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:59]Read from MH i2c: E2 [21:23:59]MH_I2C_Read... [21:23:59]Read from MH i2c: E2 17 00 [21:23:59]MH_I2C_Read... [21:23:59]Read from MH i2c: E2 17 00 34 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 07 [21:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:23:59]wFMCommunicate OK [21:23:59]requested_item fd.num is exist - process it [21:23:59]SAM_PROTO_GetFieldsCounters [21:23:59]wFMCommunicate request_size=4 [21:23:59]MH_SAM_APDU [21:23:59]CAPDU: 80 13 00 00 [21:23:59]Write to MH i2c: E2 08 00 35 09 80 13 00 00 00 00 00 00 BA [21:23:59]Write i2c OK [21:23:59]MH_I2C_Read... [21:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:59]Read from MH i2c: E2 [21:23:59]MH_I2C_Read... [21:23:59]Read from MH i2c: E2 62 00 [21:23:59]MH_I2C_Read... [21:23:59]Read from MH i2c: E2 62 00 35 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [21:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:59]wFMCommunicate OK [21:23:59]SAM_PROTO_GetFieldsCounters done [21:23:59]requested_item shift.num is exist - process it [21:23:59]requested_item shift.opened is exist - process it [21:23:59]req_shift_opened [21:23:59]FM_GetShiftState [21:23:59]SAM_PROTO_GetShiftState [21:23:59]wFMCommunicate request_size=4 [21:23:59]MH_SAM_APDU [21:23:59]CAPDU: 80 13 01 00 [21:23:59]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [21:23:59]Write i2c OK [21:23:59]MH_I2C_Read... [21:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:00]Read from MH i2c: E2 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 0E 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B5 [21:24:00]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:24:00]wFMCommunicate OK [21:24:00]SAM_PROTO_GetShiftState done [21:24:00]FM_GetShiftState done [21:24:00]req_shift_opened done [21:24:00]requested_item shift.open_date is exist - process it [21:24:00]req_shift_open_date [21:24:00]req_shift_open_date done [21:24:00]produce_requested_data done [21:24:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2347,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:24:00]process_action_free close_receipt [21:24:00]json_value_free [21:24:00]json_value_free done [21:24:00]process_json_proto returns [21:24:00]Send response to host [21:24:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2347,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:24:00]free response buf [21:24:00]execute_script done [21:24:00]execute_script returns [21:24:00]free content buf [21:24:00]Sock 7.Close socket [21:24:00]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:35]accept exits with 9 [21:27:35]New connection [21:27:35]New thread 3067276644 created [21:27:35]Thread 3067420004 joined [21:27:35]Waiting for new connection... [21:27:35] Sock 9.Parse request [21:27:35]Sock 9.Check first char [21:27:35]Sock 9.First char is OK [21:27:35]request: POST /json_proto HTTP/1.0 [21:27:35]Method: POST [21:27:35]URL: /json_proto [21:27:35]Method is POST - this is cgi request [21:27:35]url: /json_proto [21:27:35]query_string will be loaded in cgi processing [21:27:35]execute_cgi json_proto POST (null) [21:27:35]execute_cgi path=json_proto method=POST [21:27:35]POST find Content-Length [21:27:35]Host: 172.17.45.132:8080 [21:27:35]Content-Length: 614 [21:27:35]Content-Type: application/json [21:27:35] [21:27:35]POST finish read [21:27:35]Found Content-Length = 614 [21:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126572", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:35]execute_script... [21: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 : (3)126572", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:35]POST & json_proto [21:27:35]process_json_proto [21:27:35]json parsed OK: [21:27:35]protocol is kg_v1.0 [21:27:35]action value=close_receipt [21:27:35]process_action close_receipt [21:27:35]cmd_close_receipt [21:27:35]MH_GetDate [21:27:35]Write to MH i2c: F0 00 00 37 09 2F [21:27:35]Write i2c OK [21:27:35]MH_I2C_Read... [21:27:35]Read from MH i2c: F0 [21:27:35]MH_I2C_Read... [21:27:35]Read from MH i2c: F0 09 00 [21:27:35]MH_I2C_Read... [21:27:35]Read from MH i2c: F0 09 00 37 09 00 48 09 A8 66 E3 0B 90 66 7B [21:27:35]GetLastDocTimeStamp 1722288236 [21:27:35]current date 1722288456 [21:27:35]FM_GetShiftState [21:27:35]SAM_PROTO_GetShiftState [21:27:35]wFMCommunicate request_size=4 [21:27:35]MH_SAM_APDU [21:27:35]CAPDU: 80 13 01 00 [21:27:35]Write to MH i2c: E2 08 00 38 09 80 13 01 00 00 00 00 00 BE [21:27:35]Write i2c OK [21:27:35]MH_I2C_Read... [21:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:36]Read from MH i2c: E2 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 0E 00 [21:27:36]MH_I2C_Read... [21:27:36]Read from MH i2c: E2 0E 00 38 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 B7 [21:27:36]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:27:36]wFMCommunicate OK [21:27:36]SAM_PROTO_GetShiftState done [21:27:36]FM_GetShiftState done [21:27:36]opened in 1722213119 [21:27:36]opened+sec_in_day 1722299519 [21:27:36]quantity*price = 11100 [21:27:36]sum+1 = 11101 [21:27:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 197 29.07.2024 21:27 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2348 ФПД: 16641525516542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T212736&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2348&fm=16641525516542&tin=02508201610067®Number=0000000000189667&sum=11100 0 [21:27:37]StoreToDocumentArchive [21:27:37]shift 15 fd 2348 [21:27:37]save to /storage/0015/doc_00002348 [21:27:37]save last doc name /storage/0015/doc_00002348 to /storage/kkm_last_doc_name [21:27:37]save OK [21:27:37]Clear old archive folders... [21:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=266 [21:27:37]tlvbuf is 01119830 [21:27:37]SAM_PROTO_ClearQueue [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 09 00 00 [21:27:37]Write to MH i2c: E2 08 00 45 09 80 09 00 00 00 00 00 00 C0 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [21:27:37]RAPDU: 90 00 [21:27:37]wFMCommunicate OK [21:27:37]SAM_PROTO_ClearQueue done [21:27:37]KKMCreateOFDPacket [21:27:37]OFDProtocolAddRootSTLVToBuf [21:27:37]FM_MakeSignedData [21:27:37]FM_MakeSignedData [21:27:37]SAM_PROTO_SignData [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 0D 01 02 [21:27:37]Write to MH i2c: E2 08 00 46 09 80 0D 01 02 00 00 00 00 C8 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [21:27:37]RAPDU: 90 00 [21:27:37]wFMCommunicate OK [21:27:37]wFMCommunicate request_size=255 [21:27:37]MH_SAM_APDU [21:27:37]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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 48 09 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 [21:27:37]Write to MH i2c: E2 02 01 47 09 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 48 09 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 00 00 17 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 47 09 00 90 00 C4 [21:27:37]RAPDU: 90 00 [21:27:37]wFMCommunicate OK [21:27:37]wFMCommunicate request_size=25 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 0D 02 02 14 34 38 10 04 04 00 2C 09 00 00 35 04 06 00 0F 22 A8 37 88 FE [21:27:37]Write to MH i2c: E2 1C 00 48 09 80 0D 02 02 14 00 34 38 10 04 04 00 2C 09 00 00 35 04 06 00 0F 22 A8 37 88 FE 00 00 81 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [21:27:37]RAPDU: 90 00 [21:27:37]wFMCommunicate OK [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 0D 03 02 [21:27:37]Write to MH i2c: E2 08 00 49 09 80 0D 03 02 00 00 00 00 CD [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 0B 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 0B 00 49 09 00 D2 30 5A 27 0C 9D AC 8C 90 00 32 [21:27:37]RAPDU: D2 30 5A 27 0C 9D AC 8C 90 00 [21:27:37]wFMCommunicate OK [21:27:37]SAM_PROTO_SignData done [21:27:37]FM_MakeSignedData done [21:27:37]CreateOFDProtocolMessage [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 11 00 00 [21:27:37]Write to MH i2c: E2 08 00 4A 09 80 11 00 00 00 00 00 00 CD [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 17 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 17 00 4A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1D [21:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:27:37]wFMCommunicate OK [21:27:37]CreateOFDProtocolMessage done [21:27:37]OFDSenderStorePacket 2348 [21:27:37]StoreOFDPacket docnum=2348 [21:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 2D E0 16 01 99 01 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 48 09 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 09 00 00 35 04 06 00 0F 22 A8 37 88 FE D2 30 5A 27 0C 9D AC 8C [21:27:37]CheckFolder [21:27:37]dirname=/storage/ofd_packets [21:27:37]CheckFolder done [21:27:37]ProducePacketName [21:27:37]name=ofd_packets/00002348 [21:27:37]NVStorageSaveData ofd_packets/00002348 [21:27:37]File name is /storage/ofd_packets/00002348 [21:27:37]Write 316 bytes [21:27:37]NVStorageSaveData done [21:27:37]OFDSenderStorePacket done [21:27:37]KKMCreateOFDPacket done [21:27:37]NVStorageSaveData kkm_last_timestamp [21:27:37]File name is /storage/kkm_last_timestamp [21:27:37]OFD Sender: Processing packet 2348 [packets to send 1, broken 0] [21:27:37]ProducePacketName [21:27:37]name=ofd_packets/00002348 [21:27:37]OFD Sender: To server: pG, [21:27:37]CommunicateWithHost lk.salyk.kg:30040 [21:27:37]ConnectInit lk.salyk.kg [21:27:37]Write 4 bytes [21:27:37]NVStorageSaveData done [21:27:37]ExternCall_PrintAddStr [21:27:37]wPrintStart [21:27:37]Write to MH i2c: 01 00 00 4B 09 54 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: 01 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: 01 07 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 FF 0F 69 [21:27:37]RasterBufferAndPrint [21:27:37]line Счет N : (3)126572 [21:27:37]line ИНН: 02508201610067 [21:27:37]line Контрольно-Кассовый Чек [21:27:37]line ПРОДАЖА [21:27:37]line Товар: 4870001570071 [21:27:37]line Напиток Pepsi 1л [21:27:37]line 1.000 * 111.00 [21:27:37]line = 111.00 [21:27:37]line НДС 12% НСП 1% [21:27:37]line > о реализуемом товаре [21:27:37]line ИТОГО: 111.00 [21:27:37]line НСП 1% : 0.98 [21:27:37]line НДС 12% : 11.79 [21:27:37]line Наличными: 111.00 [21:27:37]line Безнал.: 0.00 [21:27:37]line Место: АЗС № 127 "Партнер Нефть" [21:27:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:27:37]line СНО: Общий режим [21:27:37]line Чек 197 29.07.2024 21:27 [21:27:37]line Смена: 15 ФФД: 1.0 [21:27:37]line ЗНМ: 0300000161 [21:27:37]line РНМ: 0000000000189667 [21:27:37]line Версия ККМ: v1.0 [21:27:37]line ФМ: 0000000002094248 [21:27:37]line ФД: 2348 [21:27:38]line ФПД: 16641525516542 [21:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T212736&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2348&fm=16641525516542&tin=02508201610067®Number=0000000000189667&sum=11100 [21:27:38]line 0 [21:27:38]Connected sock=11 [21:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1E 01 00 00 2D E0 16 01 99 01 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 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 48 09 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2C 09 00 00 35 04 06 00 0F 22 A8 37 88 FE D2 30 5A 27 0C 9D AC 8C [21:27:38]written 0, free lines is 4095 [21:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 34 21 47 00 F5 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 32 30 39 34 32 34 38 10 04 04 00 2C 09 00 00 F4 03 04 00 B3 B4 A7 66 B6 04 01 00 00 FC 3B 39 15 22 8E 4C 59 [21:27:38]CommunicateWithHost err = 0 [21:27:38]CheckOFDResponse [21:27:38]1017 (14) - 77093643461234 [21:27:38]1041 (16) - 0000000002094248 [21:27:38]1040 (4) - 2348 [21:27:38]1012 (4) - 29.07.2024 15:26 [21:27:38]1206 (1) - 0 [21:27:38]OFD Sender: Remove packet 2348 [21:27:38]ProducePacketName [21:27:38]name=ofd_packets/00002348 [21:27:38]NVStorageDeleteData [21:27:38]Write to MH i2c: 01 00 00 73 09 7C [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 07 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 07 0D 97 [21:27:38]RasterBufferAndPrint [21:27:38]line [21:27:38]line [21:27:38]line [21:27:38]line [21:27:38]line [21:27:38]written 0, free lines is 3344 [21:27:38]MH_Cut [21:27:38]Write to MH i2c: D1 01 00 7A 09 01 55 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: D1 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: D1 01 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: D1 01 00 7A 09 00 54 [21:27:38]Write to MH i2c: 01 00 00 7B 09 84 [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]OFD Sender: No OFD packet to send [21:27:39]*** Cut start [21:27:39]*** Partial cut [21:27:39]*** CUTSNS_PIN = 1 [21:27:39]*** CUTSNS_PIN = 0 [21:27:39]*** Brake cut motor [21:27:39]Read from MH i2c: 01 [21:27:39]MH_I2C_Read... [21:27:39]*** Stop cut motor [21:27:39]*** Cut end [21:27:39]Read from MH i2c: 01 07 00 [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [21:27:39]process_action close_receipt done [21:27:39]requested_data is exist [21:27:39]produce_requested_data [21:27:39]requested_item fm.sn is exist - process it [21:27:39]wFMCommunicate request_size=4 [21:27:39]MH_SAM_APDU [21:27:39]CAPDU: 80 11 00 00 [21:27:39]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [21:27:39]Write i2c OK [21:27:39]MH_I2C_Read... [21:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:39]Read from MH i2c: E2 [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: E2 17 00 [21:27:39]MH_I2C_Read... [21:27:39]Read from MH i2c: E2 17 00 7C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4F [21:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:27:39]wFMCommunicate OK [21:27:39]requested_item fd.num is exist - process it [21:27:39]SAM_PROTO_GetFieldsCounters [21:27:39]wFMCommunicate request_size=4 [21:27:39]MH_SAM_APDU [21:27:39]CAPDU: 80 13 00 00 [21:27:39]Write to MH i2c: E2 08 00 7D 09 80 13 00 00 00 00 00 00 02 [21:27:39]Write i2c OK [21:27:39]MH_I2C_Read... [21:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:40]Read from MH i2c: E2 [21:27:40]MH_I2C_Read... [21:27:40]Read from MH i2c: E2 62 00 [21:27:40]MH_I2C_Read... [21:27:40]Read from MH i2c: E2 62 00 7D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [21:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:40]wFMCommunicate OK [21:27:40]SAM_PROTO_GetFieldsCounters done [21:27:40]requested_item shift.num is exist - process it [21:27:40]requested_item shift.opened is exist - process it [21:27:40]req_shift_opened [21:27:40]FM_GetShiftState [21:27:40]SAM_PROTO_GetShiftState [21:27:40]wFMCommunicate request_size=4 [21:27:40]MH_SAM_APDU [21:27:40]CAPDU: 80 13 01 00 [21:27:40]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [21:27:40]Write i2c OK [21:27:40]MH_I2C_Read... [21:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:40]Read from MH i2c: E2 [21:27:40]MH_I2C_Read... [21:27:40]Read from MH i2c: E2 0E 00 [21:27:40]MH_I2C_Read... [21:27:40]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FD [21:27:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:27:40]wFMCommunicate OK [21:27:40]SAM_PROTO_GetShiftState done [21:27:40]FM_GetShiftState done [21:27:40]req_shift_opened done [21:27:40]requested_item shift.open_date is exist - process it [21:27:40]req_shift_open_date [21:27:40]req_shift_open_date done [21:27:40]produce_requested_data done [21:27:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2348,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:27:40]process_action_free close_receipt [21:27:40]json_value_free [21:27:40]json_value_free done [21:27:40]process_json_proto returns [21:27:40]Send response to host [21:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2348,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:27:40]free response buf [21:27:40]execute_script done [21:27:40]execute_script returns [21:27:40]free content buf [21:27:40]Sock 9.Close socket [21:27:40]Sock 9.Thread stoped [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:40]accept exits with 10 [21:30:40]New connection [21:30:40]New thread 3067420004 created [21:30:40]Thread 3067276644 joined [21:30:40]Waiting for new connection... [21:30:40] Sock 10.Parse request [21:30:40]Sock 10.Check first char [21:30:40]Sock 10.First char is OK [21:30:40]request: POST /json_proto HTTP/1.0 [21:30:40]Method: POST [21:30:40]URL: /json_proto [21:30:40]Method is POST - this is cgi request [21:30:40]url: /json_proto [21:30:40]query_string will be loaded in cgi processing [21:30:40]execute_cgi json_proto POST (null) [21:30:40]execute_cgi path=json_proto method=POST [21:30:40]POST find Content-Length [21:30:40]Host: 172.17.45.132:8080 [21:30:40]Content-Length: 623 [21:30:40]Content-Type: application/json [21:30:40] [21:30:40]POST finish read [21:30:40]Found Content-Length = 623 [21:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126573", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:40]execute_script... [21:30:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126573", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:40]POST & json_proto [21:30:40]process_json_proto [21:30:40]json parsed OK: [21:30:40]protocol is kg_v1.0 [21:30:40]action value=close_receipt [21:30:40]process_action close_receipt [21:30:40]cmd_close_receipt [21:30:40]MH_GetDate [21:30:40]Write to MH i2c: F0 00 00 7F 09 77 [21:30:40]Write i2c OK [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 09 00 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: F0 09 00 7F 09 00 00 0A A8 66 E3 0B 90 66 7C [21:30:40]GetLastDocTimeStamp 1722288456 [21:30:40]current date 1722288640 [21:30:40]FM_GetShiftState [21:30:40]SAM_PROTO_GetShiftState [21:30:40]wFMCommunicate request_size=4 [21:30:40]MH_SAM_APDU [21:30:40]CAPDU: 80 13 01 00 [21:30:40]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [21:30:40]Write i2c OK [21:30:40]MH_I2C_Read... [21:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:40]Read from MH i2c: E2 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: E2 0E 00 [21:30:40]MH_I2C_Read... [21:30:40]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FF [21:30:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:30:40]wFMCommunicate OK [21:30:40]SAM_PROTO_GetShiftState done [21:30:40]FM_GetShiftState done [21:30:40]opened in 1722213119 [21:30:40]opened+sec_in_day 1722299519 [21:30:40]quantity*price = 42500 [21:30:40]sum+1 = 42501 [21:30:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 198 29.07.2024 21:30 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2349 ФПД: 173549798028962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213040&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2349&fm=173549798028962&tin=02508201610067®Number=0000000000189667&sum=42500 0 [21:30:41]StoreToDocumentArchive [21:30:41]shift 15 fd 2349 [21:30:41]save to /storage/0015/doc_00002349 [21:30:41]save last doc name /storage/0015/doc_00002349 to /storage/kkm_last_doc_name [21:30:41]save OK [21:30:41]Clear old archive folders... [21:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=267 [21:30:41]tlvbuf is 010FEB00 [21:30:41]SAM_PROTO_ClearQueue [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 09 00 00 [21:30:41]Write to MH i2c: E2 08 00 8D 09 80 09 00 00 00 00 00 00 08 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]SAM_PROTO_ClearQueue done [21:30:41]KKMCreateOFDPacket [21:30:41]OFDProtocolAddRootSTLVToBuf [21:30:41]FM_MakeSignedData [21:30:41]FM_MakeSignedData [21:30:41]SAM_PROTO_SignData [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 01 02 [21:30:41]Write to MH i2c: E2 08 00 8E 09 80 0D 01 02 00 00 00 00 10 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]wFMCommunicate request_size=255 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 00 0A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 [21:30:41]Write to MH i2c: E2 02 01 8F 09 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 00 0A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 00 00 E9 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]wFMCommunicate request_size=26 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 02 02 15 32 34 38 10 04 04 00 2D 09 00 00 35 04 06 00 9D D7 B6 0F F6 A2 [21:30:41]Write to MH i2c: E2 1D 00 90 09 80 0D 02 02 15 00 32 34 38 10 04 04 00 2D 09 00 00 35 04 06 00 9D D7 B6 0F F6 A2 00 00 39 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [21:30:41]RAPDU: 90 00 [21:30:41]wFMCommunicate OK [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 0D 03 02 [21:30:41]Write to MH i2c: E2 08 00 91 09 80 0D 03 02 00 00 00 00 15 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 0B 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 0B 00 91 09 00 16 DB EC 3F B6 60 2E B0 90 00 26 [21:30:41]RAPDU: 16 DB EC 3F B6 60 2E B0 90 00 [21:30:41]wFMCommunicate OK [21:30:41]SAM_PROTO_SignData done [21:30:41]FM_MakeSignedData done [21:30:41]CreateOFDProtocolMessage [21:30:41]wFMCommunicate request_size=4 [21:30:41]MH_SAM_APDU [21:30:41]CAPDU: 80 11 00 00 [21:30:41]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:41]Read from MH i2c: E2 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 17 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: E2 17 00 92 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [21:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:30:41]wFMCommunicate OK [21:30:41]CreateOFDProtocolMessage done [21:30:41]OFDSenderStorePacket 2349 [21:30:41]StoreOFDPacket docnum=2349 [21:30:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 22 06 17 01 16 49 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 00 0A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 09 00 00 35 04 06 00 9D D7 B6 0F F6 A2 16 DB EC 3F B6 60 2E B0 [21:30:41]CheckFolder [21:30:41]dirname=/storage/ofd_packets [21:30:41]CheckFolder done [21:30:41]ProducePacketName [21:30:41]name=ofd_packets/00002349 [21:30:41]NVStorageSaveData ofd_packets/00002349 [21:30:41]File name is /storage/ofd_packets/00002349 [21:30:41]Write 317 bytes [21:30:41]NVStorageSaveData done [21:30:41]OFDSenderStorePacket done [21:30:41]KKMCreateOFDPacket done [21:30:41]NVStorageSaveData kkm_last_timestamp [21:30:41]File name is /storage/kkm_last_timestamp [21:30:41]Write 4 bytes [21:30:41]NVStorageSaveData done [21:30:41]ExternCall_PrintAddStr [21:30:41]wPrintStart [21:30:41]Write to MH i2c: 01 00 00 93 09 9C [21:30:41]Write i2c OK [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: 01 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: 01 07 00 [21:30:41]MH_I2C_Read... [21:30:41]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 FF 0F B1 [21:30:41]RasterBufferAndPrint [21:30:41]line Счет N : (3)126573 [21:30:41]line ИНН: 02508201610067 [21:30:41]line Контрольно-Кассовый Чек [21:30:41]line ПРОДАЖА [21:30:41]line Товар: 4700003150486 [21:30:41]line Водка Ороон 0,5 [21:30:41]line 1.000 * 425.00 [21:30:41]line = 425.00 [21:30:41]line НДС 12% НСП 1% [21:30:41]line > о реализуемом товаре [21:30:41]line ИТОГО: 425.00 [21:30:41]line НСП 1% : 3.76 [21:30:41]line НДС 12% : 45.13 [21:30:41]line Наличными: 425.00 [21:30:41]line Безнал.: 0.00 [21:30:41]line Место: АЗС № 127 "Партнер Нефть" [21:30:41]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:30:41]line СНО: Общий режим [21:30:41]line Чек 198 29.07.2024 21:30 [21:30:41]line Смена: 15 ФФД: 1.0 [21:30:41]line ЗНМ: 0300000161 [21:30:41]line РНМ: 0000000000189667 [21:30:41]line Версия ККМ: v1.0 [21:30:41]line ФМ: 0000000002094248 [21:30:41]line ФД: 2349 [21:30:41]line ФПД: 173549798028962 [21:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213040&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2349&fm=173549798028962&tin=02508201610067®Number=0000000000189667&sum=42500 [21:30:42]line 0 [21:30:42]OFD Sender: Processing packet 2349 [packets to send 1, broken 0] [21:30:42]ProducePacketName [21:30:42]name=ofd_packets/00002349 [21:30:42]OFD Sender: To server: pG, [21:30:42]CommunicateWithHost lk.salyk.kg:30040 [21:30:42]ConnectInit lk.salyk.kg [21:30:42]written 0, free lines is 4095 [21:30:42]Connected sock=9 [21:30:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1F 01 00 00 22 06 17 01 16 49 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 00 0A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 09 00 00 35 04 06 00 9D D7 B6 0F F6 A2 16 DB EC 3F B6 60 2E B0 [21:30:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7F 1E 47 00 FB DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2D 09 00 00 F4 03 04 00 6C B5 A7 66 B6 04 01 00 00 C2 56 BB EE F5 F8 38 3D [21:30:42]CommunicateWithHost err = 0 [21:30:42]CheckOFDResponse [21:30:42]1017 (14) - 77093643461234 [21:30:42]1041 (16) - 0000000002094248 [21:30:42]1040 (4) - 2349 [21:30:42]1012 (4) - 29.07.2024 15:29 [21:30:42]1206 (1) - 0 [21:30:42]OFD Sender: Remove packet 2349 [21:30:42]ProducePacketName [21:30:42]name=ofd_packets/00002349 [21:30:42]NVStorageDeleteData [21:30:42]Write to MH i2c: 01 00 00 BB 09 C4 [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 13 0D EB [21:30:42]RasterBufferAndPrint [21:30:42]line [21:30:42]line [21:30:42]line [21:30:42]line [21:30:42]line [21:30:42]written 0, free lines is 3357 [21:30:42]MH_Cut [21:30:42]Write to MH i2c: D1 01 00 C2 09 01 9D [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: D1 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: D1 01 00 [21:30:42]MH_I2C_Read... [21:30:42]Read from MH i2c: D1 01 00 C2 09 00 9C [21:30:42]Write to MH i2c: 01 00 00 C3 09 CC [21:30:42]Write i2c OK [21:30:42]MH_I2C_Read... [21:30:42]OFD Sender: No OFD packet to send [21:30:43]*** Cut start [21:30:43]*** Partial cut [21:30:43]*** CUTSNS_PIN = 1 [21:30:43]*** CUTSNS_PIN = 0 [21:30:43]*** Brake cut motor [21:30:43]Read from MH i2c: 01 [21:30:43]MH_I2C_Read... [21:30:43]*** Stop cut motor [21:30:43]*** Cut end [21:30:43]Read from MH i2c: 01 07 00 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: 01 07 00 C3 09 00 00 00 00 00 FF 0F E1 [21:30:43]process_action close_receipt done [21:30:43]requested_data is exist [21:30:43]produce_requested_data [21:30:43]requested_item fm.sn is exist - process it [21:30:43]wFMCommunicate request_size=4 [21:30:43]MH_SAM_APDU [21:30:43]CAPDU: 80 11 00 00 [21:30:43]Write to MH i2c: E2 08 00 C4 09 80 11 00 00 00 00 00 00 47 [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:43]Read from MH i2c: E2 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: E2 17 00 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: E2 17 00 C4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 97 [21:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:30:43]wFMCommunicate OK [21:30:43]requested_item fd.num is exist - process it [21:30:43]SAM_PROTO_GetFieldsCounters [21:30:43]wFMCommunicate request_size=4 [21:30:43]MH_SAM_APDU [21:30:43]CAPDU: 80 13 00 00 [21:30:43]Write to MH i2c: E2 08 00 C5 09 80 13 00 00 00 00 00 00 4A [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:44]Read from MH i2c: E2 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 62 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 62 00 C5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [21:30:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:44]wFMCommunicate OK [21:30:44]SAM_PROTO_GetFieldsCounters done [21:30:44]requested_item shift.num is exist - process it [21:30:44]requested_item shift.opened is exist - process it [21:30:44]req_shift_opened [21:30:44]FM_GetShiftState [21:30:44]SAM_PROTO_GetShiftState [21:30:44]wFMCommunicate request_size=4 [21:30:44]MH_SAM_APDU [21:30:44]CAPDU: 80 13 01 00 [21:30:44]Write to MH i2c: E2 08 00 C6 09 80 13 01 00 00 00 00 00 4C [21:30:44]Write i2c OK [21:30:44]MH_I2C_Read... [21:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:44]Read from MH i2c: E2 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 0E 00 [21:30:44]MH_I2C_Read... [21:30:44]Read from MH i2c: E2 0E 00 C6 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 45 [21:30:44]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:30:44]wFMCommunicate OK [21:30:44]SAM_PROTO_GetShiftState done [21:30:44]FM_GetShiftState done [21:30:44]req_shift_opened done [21:30:44]requested_item shift.open_date is exist - process it [21:30:44]req_shift_open_date [21:30:44]req_shift_open_date done [21:30:44]produce_requested_data done [21:30:44]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2349,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:30:44]process_action_free close_receipt [21:30:44]json_value_free [21:30:44]json_value_free done [21:30:44]process_json_proto returns [21:30:44]Send response to host [21:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2349,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:30:44]free response buf [21:30:44]execute_script done [21:30:44]execute_script returns [21:30:44]free content buf [21:30:44]Sock 10.Close socket [21:30:44]Sock 10.Thread stoped [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:36]accept exits with 7 [21:39:36]New connection [21:39:36]New thread 3067276644 created [21:39:36]Thread 3067420004 joined [21:39:36]Waiting for new connection... [21:39:36] Sock 7.Parse request [21:39:36]Sock 7.Check first char [21:39:36]Sock 7.First char is OK [21:39:36]request: POST /json_proto HTTP/1.0 [21:39:36]Method: POST [21:39:36]URL: /json_proto [21:39:36]Method is POST - this is cgi request [21:39:36]url: /json_proto [21:39:36]query_string will be loaded in cgi processing [21:39:36]execute_cgi json_proto POST (null) [21:39:36]execute_cgi path=json_proto method=POST [21:39:36]POST find Content-Length [21:39:36]Host: 172.17.45.132:8080 [21:39:36]Content-Length: 644 [21:39:36]Content-Type: application/json [21:39:36] [21:39:36]POST finish read [21:39:36]Found Content-Length = 644 [21:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126574", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:36]execute_script... [21:39: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)126574", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:36]POST & json_proto [21:39:36]process_json_proto [21:39:36]json parsed OK: [21:39:36]protocol is kg_v1.0 [21:39:36]action value=close_receipt [21:39:36]process_action close_receipt [21:39:36]cmd_close_receipt [21:39:36]MH_GetDate [21:39:36]Write to MH i2c: F0 00 00 C7 09 BF [21:39:36]Write i2c OK [21:39:36]MH_I2C_Read... [21:39:36]Read from MH i2c: F0 [21:39:36]MH_I2C_Read... [21:39:36]Read from MH i2c: F0 09 00 [21:39:36]MH_I2C_Read... [21:39:36]Read from MH i2c: F0 09 00 C7 09 00 18 0C A8 66 E3 0B 90 66 DE [21:39:36]GetLastDocTimeStamp 1722288640 [21:39:36]current date 1722289176 [21:39:36]FM_GetShiftState [21:39:36]SAM_PROTO_GetShiftState [21:39:36]wFMCommunicate request_size=4 [21:39:36]MH_SAM_APDU [21:39:36]CAPDU: 80 13 01 00 [21:39:36]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [21:39:36]Write i2c OK [21:39:36]MH_I2C_Read... [21:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:36]Read from MH i2c: E2 [21:39:36]MH_I2C_Read... [21:39:36]Read from MH i2c: E2 0E 00 [21:39:36]MH_I2C_Read... [21:39:36]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 47 [21:39:36]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:39:36]wFMCommunicate OK [21:39:36]SAM_PROTO_GetShiftState done [21:39:36]FM_GetShiftState done [21:39:36]opened in 1722213119 [21:39:36]opened+sec_in_day 1722299519 [21:39:36]quantity*price = 23000 [21:39:36]sum+1 = 23001 [21:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 199 29.07.2024 21:39 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2350 ФПД: 193133947605574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213936&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2350&fm=193133947605574&tin=02508201610067®Number=0000000000189667&sum=23000 0 [21:39:37]StoreToDocumentArchive [21:39:37]shift 15 fd 2350 [21:39:37]save to /storage/0015/doc_00002350 [21:39:37]save last doc name /storage/0015/doc_00002350 to /storage/kkm_last_doc_name [21:39:37]save OK [21:39:37]Clear old archive folders... [21:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:39:37]tlvbuf is 010C34C0 [21:39:37]SAM_PROTO_ClearQueue [21:39:37]wFMCommunicate request_size=4 [21:39:37]MH_SAM_APDU [21:39:37]CAPDU: 80 09 00 00 [21:39:37]Write to MH i2c: E2 08 00 D5 09 80 09 00 00 00 00 00 00 50 [21:39:37]Write i2c OK [21:39:37]MH_I2C_Read... [21:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:37]Read from MH i2c: E2 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [21:39:37]RAPDU: 90 00 [21:39:37]wFMCommunicate OK [21:39:37]SAM_PROTO_ClearQueue done [21:39:37]KKMCreateOFDPacket [21:39:37]OFDProtocolAddRootSTLVToBuf [21:39:37]FM_MakeSignedData [21:39:37]FM_MakeSignedData [21:39:37]SAM_PROTO_SignData [21:39:37]wFMCommunicate request_size=4 [21:39:37]MH_SAM_APDU [21:39:37]CAPDU: 80 0D 01 02 [21:39:37]Write to MH i2c: E2 08 00 D6 09 80 0D 01 02 00 00 00 00 58 [21:39:37]Write i2c OK [21:39:37]MH_I2C_Read... [21:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:37]Read from MH i2c: E2 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [21:39:37]RAPDU: 90 00 [21:39:37]wFMCommunicate OK [21:39:37]wFMCommunicate request_size=255 [21:39:37]MH_SAM_APDU [21:39:37]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 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 C7 00 00 00 F4 03 04 00 18 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 [21:39:37]Write to MH i2c: E2 02 01 D7 09 80 0D 02 02 FA 00 03 00 18 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 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 C7 00 00 00 F4 03 04 00 18 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 00 00 12 [21:39:37]Write i2c OK [21:39:37]MH_I2C_Read... [21:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:37]Read from MH i2c: E2 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [21:39:37]RAPDU: 90 00 [21:39:37]wFMCommunicate OK [21:39:37]wFMCommunicate request_size=39 [21:39:37]MH_SAM_APDU [21:39:37]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 09 00 00 35 04 06 00 AF A7 80 57 52 46 [21:39:37]Write to MH i2c: E2 2A 00 D8 09 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 09 00 00 35 04 06 00 AF A7 80 57 52 46 00 00 0F [21:39:37]Write i2c OK [21:39:37]MH_I2C_Read... [21:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:37]Read from MH i2c: E2 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [21:39:37]RAPDU: 90 00 [21:39:37]wFMCommunicate OK [21:39:37]wFMCommunicate request_size=4 [21:39:37]MH_SAM_APDU [21:39:37]CAPDU: 80 0D 03 02 [21:39:37]Write to MH i2c: E2 08 00 D9 09 80 0D 03 02 00 00 00 00 5D [21:39:37]Write i2c OK [21:39:37]MH_I2C_Read... [21:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:37]Read from MH i2c: E2 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 0B 00 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 0B 00 D9 09 00 7A BC 80 22 AC 3B 33 11 90 00 61 [21:39:37]RAPDU: 7A BC 80 22 AC 3B 33 11 90 00 [21:39:37]wFMCommunicate OK [21:39:37]SAM_PROTO_SignData done [21:39:37]FM_MakeSignedData done [21:39:37]CreateOFDProtocolMessage [21:39:37]wFMCommunicate request_size=4 [21:39:37]MH_SAM_APDU [21:39:37]CAPDU: 80 11 00 00 [21:39:37]Write to MH i2c: E2 08 00 DA 09 80 11 00 00 00 00 00 00 5D [21:39:37]Write i2c OK [21:39:37]MH_I2C_Read... [21:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:37]Read from MH i2c: E2 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 17 00 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: E2 17 00 DA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AD [21:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:39:37]wFMCommunicate OK [21:39:37]CreateOFDProtocolMessage done [21:39:37]OFDSenderStorePacket 2350 [21:39:37]StoreOFDPacket docnum=2350 [21:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 97 3B 24 01 92 12 5A 03 01 00 03 00 18 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 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 C7 00 00 00 F4 03 04 00 18 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 09 00 00 35 04 06 00 AF A7 80 57 52 46 7A BC 80 22 AC 3B 33 11 [21:39:37]CheckFolder [21:39:37]dirname=/storage/ofd_packets [21:39:37]CheckFolder done [21:39:37]ProducePacketName [21:39:37]name=ofd_packets/00002350 [21:39:37]NVStorageSaveData ofd_packets/00002350 [21:39:37]File name is /storage/ofd_packets/00002350 [21:39:37]Write 330 bytes [21:39:37]NVStorageSaveData done [21:39:37]OFDSenderStorePacket done [21:39:37]KKMCreateOFDPacket done [21:39:37]NVStorageSaveData kkm_last_timestamp [21:39:37]File name is /storage/kkm_last_timestamp [21:39:37]Write 4 bytes [21:39:37]NVStorageSaveData done [21:39:37]ExternCall_PrintAddStr [21:39:37]wPrintStart [21:39:37]Write to MH i2c: 01 00 00 DB 09 E4 [21:39:37]Write i2c OK [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: 01 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: 01 07 00 [21:39:37]MH_I2C_Read... [21:39:37]Read from MH i2c: 01 07 00 DB 09 00 00 00 00 00 FF 0F F9 [21:39:37]RasterBufferAndPrint [21:39:37]line Счет N : (3)126574 [21:39:37]line ИНН: 02508201610067 [21:39:37]line Контрольно-Кассовый Чек [21:39:37]line ПРОДАЖА [21:39:37]line Товар: 2000036210013 [21:39:37]line Кофе Капучино (GABB TRADE) [21:39:37]line 2.000 * 115.00 [21:39:37]line = 230.00 [21:39:37]line НДС 12% НСП 1% [21:39:37]line > о реализуемом товаре [21:39:37]line ИТОГО: 230.00 [21:39:37]line НСП 1% : 2.03 [21:39:37]line НДС 12% : 24.42 [21:39:37]line Наличными: 230.00 [21:39:37]line Безнал.: 0.00 [21:39:37]line Место: АЗС № 127 "Партнер Нефть" [21:39:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:39:37]line СНО: Общий режим [21:39:37]line Чек 199 29.07.2024 21:39 [21:39:37]line Смена: 15 ФФД: 1.0 [21:39:37]line ЗНМ: 0300000161 [21:39:37]line РНМ: 0000000000189667 [21:39:37]line Версия ККМ: v1.0 [21:39:37]line ФМ: 0000000002094248 [21:39:37]line ФД: 2350 [21:39:37]line ФПД: 193133947605574 [21:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213936&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2350&fm=193133947605574&tin=02508201610067®Number=0000000000189667&sum=23000 [21:39:38]OFD Sender: Processing packet 2350 [packets to send 1, broken 0] [21:39:38]ProducePacketName [21:39:38]name=ofd_packets/00002350 [21:39:38]OFD Sender: To server: pG, [21:39:38]CommunicateWithHost lk.salyk.kg:30040 [21:39:38]ConnectInit lk.salyk.kg [21:39:38]line 0 [21:39:38]written 0, free lines is 4095 [21:39:38]Connected sock=10 [21:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2C 01 00 00 97 3B 24 01 92 12 5A 03 01 00 03 00 18 01 1E 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 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 C7 00 00 00 F4 03 04 00 18 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 09 00 00 35 04 06 00 AF A7 80 57 52 46 7A BC 80 22 AC 3B 33 11 [21:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F9 46 47 00 1F 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2E 09 00 00 F4 03 04 00 84 B7 A7 66 B6 04 01 00 00 DA FD F2 56 3B 7C 20 AA [21:39:38]CommunicateWithHost err = 0 [21:39:38]CheckOFDResponse [21:39:38]1017 (14) - 77093643461234 [21:39:38]1041 (16) - 0000000002094248 [21:39:38]1040 (4) - 2350 [21:39:38]1012 (4) - 29.07.2024 15:38 [21:39:38]1206 (1) - 0 [21:39:38]OFD Sender: Remove packet 2350 [21:39:38]ProducePacketName [21:39:38]name=ofd_packets/00002350 [21:39:38]NVStorageDeleteData [21:39:38]Write to MH i2c: 01 00 00 03 0A 0D [21:39:38]Write i2c OK [21:39:38]MH_I2C_Read... [21:39:38]Read from MH i2c: 01 [21:39:38]MH_I2C_Read... [21:39:38]Read from MH i2c: 01 07 00 [21:39:38]MH_I2C_Read... [21:39:38]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 30 0D 51 [21:39:38]RasterBufferAndPrint [21:39:38]line [21:39:38]line [21:39:38]line [21:39:38]line [21:39:38]line [21:39:38]written 0, free lines is 3383 [21:39:38]MH_Cut [21:39:38]Write to MH i2c: D1 01 00 0A 0A 01 E6 [21:39:38]Write i2c OK [21:39:38]MH_I2C_Read... [21:39:38]Read from MH i2c: D1 [21:39:38]MH_I2C_Read... [21:39:38]Read from MH i2c: D1 01 00 [21:39:38]MH_I2C_Read... [21:39:38]Read from MH i2c: D1 01 00 0A 0A 00 E5 [21:39:38]Write to MH i2c: 01 00 00 0B 0A 15 [21:39:38]Write i2c OK [21:39:38]MH_I2C_Read... [21:39:39]OFD Sender: No OFD packet to send [21:39:39]*** Cut start [21:39:39]*** Partial cut [21:39:39]*** CUTSNS_PIN = 1 [21:39:39]*** CUTSNS_PIN = 0 [21:39:39]*** Brake cut motor [21:39:39]Read from MH i2c: 01 [21:39:39]MH_I2C_Read... [21:39:39]*** Stop cut motor [21:39:39]*** Cut end [21:39:39]Read from MH i2c: 01 07 00 [21:39:39]MH_I2C_Read... [21:39:39]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [21:39:39]process_action close_receipt done [21:39:39]requested_data is exist [21:39:39]produce_requested_data [21:39:39]requested_item fm.sn is exist - process it [21:39:39]wFMCommunicate request_size=4 [21:39:39]MH_SAM_APDU [21:39:39]CAPDU: 80 11 00 00 [21:39:39]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [21:39:39]Write i2c OK [21:39:39]MH_I2C_Read... [21:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:40]Read from MH i2c: E2 [21:39:40]MH_I2C_Read... [21:39:40]Read from MH i2c: E2 17 00 [21:39:40]MH_I2C_Read... [21:39:40]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E0 [21:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:39:40]wFMCommunicate OK [21:39:40]requested_item fd.num is exist - process it [21:39:40]SAM_PROTO_GetFieldsCounters [21:39:40]wFMCommunicate request_size=4 [21:39:40]MH_SAM_APDU [21:39:40]CAPDU: 80 13 00 00 [21:39:40]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [21:39:40]Write i2c OK [21:39:40]MH_I2C_Read... [21:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:40]Read from MH i2c: E2 [21:39:40]MH_I2C_Read... [21:39:40]Read from MH i2c: E2 62 00 [21:39:40]MH_I2C_Read... [21:39:40]Read from MH i2c: E2 62 00 0D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:40]wFMCommunicate OK [21:39:40]SAM_PROTO_GetFieldsCounters done [21:39:40]requested_item shift.num is exist - process it [21:39:40]requested_item shift.opened is exist - process it [21:39:40]req_shift_opened [21:39:40]FM_GetShiftState [21:39:40]SAM_PROTO_GetShiftState [21:39:40]wFMCommunicate request_size=4 [21:39:40]MH_SAM_APDU [21:39:40]CAPDU: 80 13 01 00 [21:39:40]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [21:39:40]Write i2c OK [21:39:40]MH_I2C_Read... [21:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:40]Read from MH i2c: E2 [21:39:40]MH_I2C_Read... [21:39:40]Read from MH i2c: E2 0E 00 [21:39:40]MH_I2C_Read... [21:39:40]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 8E [21:39:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:39:40]wFMCommunicate OK [21:39:40]SAM_PROTO_GetShiftState done [21:39:40]FM_GetShiftState done [21:39:40]req_shift_opened done [21:39:40]requested_item shift.open_date is exist - process it [21:39:40]req_shift_open_date [21:39:40]req_shift_open_date done [21:39:40]produce_requested_data done [21:39:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2350,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:39:40]process_action_free close_receipt [21:39:40]json_value_free [21:39:40]json_value_free done [21:39:40]process_json_proto returns [21:39:40]Send response to host [21:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2350,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:39:40]free response buf [21:39:40]execute_script done [21:39:40]execute_script returns [21:39:40]free content buf [21:39:40]Sock 7.Close socket [21:39:40]Sock 7.Thread stoped [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]accept exits with 9 [21:40:34]New connection [21:40:34]New thread 3067420004 created [21:40:34]Thread 3067276644 joined [21:40:34]Waiting for new connection... [21:40:34] Sock 9.Parse request [21:40:34]Sock 9.Check first char [21:40:34]Sock 9.First char is OK [21:40:34]request: POST /json_proto HTTP/1.0 [21:40:34]Method: POST [21:40:34]URL: /json_proto [21:40:34]Method is POST - this is cgi request [21:40:34]url: /json_proto [21:40:34]query_string will be loaded in cgi processing [21:40:34]execute_cgi json_proto POST (null) [21:40:34]execute_cgi path=json_proto method=POST [21:40:34]POST find Content-Length [21:40:34]Host: 172.17.45.132:8080 [21:40:34]Content-Length: 815 [21:40:34]Content-Type: application/json [21:40:34] [21:40:34]POST finish read [21:40:34]Found Content-Length = 815 [21:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126575", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:34]execute_script... [21:40: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)126575", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:34]POST & json_proto [21:40:34]process_json_proto [21:40:34]json parsed OK: [21:40:34]protocol is kg_v1.0 [21:40:34]action value=close_receipt [21:40:34]process_action close_receipt [21:40:34]cmd_close_receipt [21:40:34]MH_GetDate [21:40:34]Write to MH i2c: F0 00 00 0F 0A 08 [21:40:34]Write i2c OK [21:40:34]MH_I2C_Read... [21:40:34]Read from MH i2c: F0 [21:40:34]MH_I2C_Read... [21:40:34]Read from MH i2c: F0 09 00 [21:40:34]MH_I2C_Read... [21:40:34]Read from MH i2c: F0 09 00 0F 0A 00 52 0C A8 66 E3 0B 90 66 61 [21:40:34]GetLastDocTimeStamp 1722289176 [21:40:34]current date 1722289234 [21:40:34]FM_GetShiftState [21:40:34]SAM_PROTO_GetShiftState [21:40:34]wFMCommunicate request_size=4 [21:40:34]MH_SAM_APDU [21:40:34]CAPDU: 80 13 01 00 [21:40:34]Write to MH i2c: E2 08 00 10 0A 80 13 01 00 00 00 00 00 97 [21:40:34]Write i2c OK [21:40:34]MH_I2C_Read... [21:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:34]Read from MH i2c: E2 [21:40:34]MH_I2C_Read... [21:40:34]Read from MH i2c: E2 0E 00 [21:40:34]MH_I2C_Read... [21:40:34]Read from MH i2c: E2 0E 00 10 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 90 [21:40:34]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:40:34]wFMCommunicate OK [21:40:34]SAM_PROTO_GetShiftState done [21:40:34]FM_GetShiftState done [21:40:34]opened in 1722213119 [21:40:34]opened+sec_in_day 1722299519 [21:40:34]quantity*price = 15000 [21:40:34]sum+1 = 15001 [21:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 200 29.07.2024 21:40 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2351 ФПД: 21077011310171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T214034&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2351&fm=21077011310171&tin=02508201610067®Number=0000000000189667&sum=15000 0 [21:40:35]StoreToDocumentArchive [21:40:35]shift 15 fd 2351 [21:40:35]save to /storage/0015/doc_00002351 [21:40:35]save last doc name /storage/0015/doc_00002351 to /storage/kkm_last_doc_name [21:40:35]save OK [21:40:35]Clear old archive folders... [21:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:40:35]tlvbuf is 010DBD60 [21:40:35]SAM_PROTO_ClearQueue [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 09 00 00 [21:40:35]Write to MH i2c: E2 08 00 1D 0A 80 09 00 00 00 00 00 00 99 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [21:40:35]RAPDU: 90 00 [21:40:35]wFMCommunicate OK [21:40:35]SAM_PROTO_ClearQueue done [21:40:35]KKMCreateOFDPacket [21:40:35]OFDProtocolAddRootSTLVToBuf [21:40:35]FM_MakeSignedData [21:40:35]FM_MakeSignedData [21:40:35]SAM_PROTO_SignData [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 0D 01 02 [21:40:35]Write to MH i2c: E2 08 00 1E 0A 80 0D 01 02 00 00 00 00 A1 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [21:40:35]RAPDU: 90 00 [21:40:35]wFMCommunicate OK [21:40:35]wFMCommunicate request_size=255 [21:40:35]MH_SAM_APDU [21:40:35]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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [21:40:35]Write to MH i2c: E2 02 01 1F 0A 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 69 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [21:40:35]RAPDU: 90 00 [21:40:35]wFMCommunicate OK [21:40:35]wFMCommunicate request_size=34 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 09 00 00 35 04 06 00 13 2B 5F C5 A6 5B [21:40:35]Write to MH i2c: E2 25 00 20 0A 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 09 00 00 35 04 06 00 13 2B 5F C5 A6 5B 00 00 FD [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [21:40:35]RAPDU: 90 00 [21:40:35]wFMCommunicate OK [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 0D 03 02 [21:40:35]Write to MH i2c: E2 08 00 21 0A 80 0D 03 02 00 00 00 00 A6 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 0B 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 0B 00 21 0A 00 66 FA 4B 18 DF 40 0C 6F 90 00 04 [21:40:35]RAPDU: 66 FA 4B 18 DF 40 0C 6F 90 00 [21:40:35]wFMCommunicate OK [21:40:35]SAM_PROTO_SignData done [21:40:35]FM_MakeSignedData done [21:40:35]CreateOFDProtocolMessage [21:40:35]wFMCommunicate request_size=4 [21:40:35]MH_SAM_APDU [21:40:35]CAPDU: 80 11 00 00 [21:40:35]Write to MH i2c: E2 08 00 22 0A 80 11 00 00 00 00 00 00 A6 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:35]Read from MH i2c: E2 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 17 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: E2 17 00 22 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F6 [21:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:40:35]wFMCommunicate OK [21:40:35]CreateOFDProtocolMessage done [21:40:35]OFDSenderStorePacket 2351 [21:40:35]StoreOFDPacket docnum=2351 [21:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 7D EF 1F 01 1F FE 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 09 00 00 35 04 06 00 13 2B 5F C5 A6 5B 66 FA 4B 18 DF 40 0C 6F [21:40:35]CheckFolder [21:40:35]dirname=/storage/ofd_packets [21:40:35]CheckFolder done [21:40:35]ProducePacketName [21:40:35]name=ofd_packets/00002351 [21:40:35]NVStorageSaveData ofd_packets/00002351 [21:40:35]File name is /storage/ofd_packets/00002351 [21:40:35]Write 325 bytes [21:40:35]NVStorageSaveData done [21:40:35]OFDSenderStorePacket done [21:40:35]KKMCreateOFDPacket done [21:40:35]NVStorageSaveData kkm_last_timestamp [21:40:35]File name is /storage/kkm_last_timestamp [21:40:35]Write 4 bytes [21:40:35]NVStorageSaveData done [21:40:35]ExternCall_PrintAddStr [21:40:35]wPrintStart [21:40:35]Write to MH i2c: 01 00 00 23 0A 2D [21:40:35]OFD Sender: Processing packet 2351 [packets to send 1, broken 0] [21:40:35]ProducePacketName [21:40:35]name=ofd_packets/00002351 [21:40:35]Write i2c OK [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: 01 [21:40:35]MH_I2C_Read... [21:40:35]OFD Sender: To server: pG, [21:40:35]CommunicateWithHost lk.salyk.kg:30040 [21:40:35]ConnectInit lk.salyk.kg [21:40:35]Read from MH i2c: 01 07 00 [21:40:35]MH_I2C_Read... [21:40:35]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [21:40:35]RasterBufferAndPrint [21:40:35]line Счет N : (3)126575 [21:40:35]line ИНН: 02508201610067 [21:40:35]line Контрольно-Кассовый Чек [21:40:35]line ПРОДАЖА [21:40:35]line Товар: 54491472 [21:40:35]line Напиток Кока-Кола 0,5л [21:40:35]line 2.000 * 75.00 [21:40:35]line = 150.00 [21:40:35]line НДС 12% НСП 1% [21:40:35]line > о реализуемом товаре [21:40:35]line ИТОГО: 150.00 [21:40:35]line НСП 1% : 1.33 [21:40:35]line НДС 12% : 15.93 [21:40:35]line Наличными: 0.00 [21:40:35]line Безнал.: 150.00 [21:40:35]line Место: АЗС № 127 "Партнер Нефть" [21:40:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:40:35]line СНО: Общий режим [21:40:35]line Чек 200 29.07.2024 21:40 [21:40:35]line Смена: 15 ФФД: 1.0 [21:40:35]line ЗНМ: 0300000161 [21:40:35]line РНМ: 0000000000189667 [21:40:35]line Версия ККМ: v1.0 [21:40:35]line Платежная система: O! деньги [21:40:35]line ФМ: 0000000002094248 [21:40:35]line ФД: 2351 [21:40:35]line ФПД: 21077011310171 [21:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T214034&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2351&fm=21077011310171&tin=02508201610067®Number=0000000000189667&sum=15000 [21:40:35]line 0 [21:40:35]written 0, free lines is 4095 [21:40:35]Connected sock=10 [21:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 7D EF 1F 01 1F FE 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 0C A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 2F 09 00 00 35 04 06 00 13 2B 5F C5 A6 5B 66 FA 4B 18 DF 40 0C 6F [21:40:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8E 5D 47 00 D9 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 32 30 39 34 32 34 38 10 04 04 00 2F 09 00 00 F4 03 04 00 BD B7 A7 66 B6 04 01 00 00 49 7B 24 AA D6 D7 78 88 [21:40:36]CommunicateWithHost err = 0 [21:40:36]CheckOFDResponse [21:40:36]1017 (14) - 77093643461234 [21:40:36]1041 (16) - 0000000002094248 [21:40:36]1040 (4) - 2351 [21:40:36]1012 (4) - 29.07.2024 15:39 [21:40:36]1206 (1) - 0 [21:40:36]OFD Sender: Remove packet 2351 [21:40:36]ProducePacketName [21:40:36]name=ofd_packets/00002351 [21:40:36]NVStorageDeleteData [21:40:36]Write to MH i2c: 01 00 00 4D 0A 57 [21:40:36]Write i2c OK [21:40:36]MH_I2C_Read... [21:40:36]Read from MH i2c: 01 [21:40:36]MH_I2C_Read... [21:40:36]Read from MH i2c: 01 07 00 [21:40:36]MH_I2C_Read... [21:40:36]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 FB 0C 65 [21:40:36]RasterBufferAndPrint [21:40:36]line [21:40:36]line [21:40:36]line [21:40:36]line [21:40:36]line [21:40:36]written 0, free lines is 3332 [21:40:36]MH_Cut [21:40:36]Write to MH i2c: D1 01 00 54 0A 01 30 [21:40:36]Write i2c OK [21:40:36]MH_I2C_Read... [21:40:36]Read from MH i2c: D1 [21:40:36]MH_I2C_Read... [21:40:36]Read from MH i2c: D1 01 00 [21:40:36]MH_I2C_Read... [21:40:36]Read from MH i2c: D1 01 00 54 0A 00 2F [21:40:36]Write to MH i2c: 01 00 00 55 0A 5F [21:40:36]Write i2c OK [21:40:36]MH_I2C_Read... [21:40:36]OFD Sender: No OFD packet to send [21:40:36]*** Cut start [21:40:36]*** Partial cut [21:40:36]*** CUTSNS_PIN = 1 [21:40:37]*** CUTSNS_PIN = 0 [21:40:37]*** Brake cut motor [21:40:37]Read from MH i2c: 01 [21:40:37]MH_I2C_Read... [21:40:37]*** Stop cut motor [21:40:37]*** Cut end [21:40:37]Read from MH i2c: 01 07 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 FF 0F 74 [21:40:37]process_action close_receipt done [21:40:37]requested_data is exist [21:40:37]produce_requested_data [21:40:37]requested_item fm.sn is exist - process it [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 11 00 00 [21:40:37]Write to MH i2c: E2 08 00 56 0A 80 11 00 00 00 00 00 00 DA [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 17 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 17 00 56 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2A [21:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:40:37]wFMCommunicate OK [21:40:37]requested_item fd.num is exist - process it [21:40:37]SAM_PROTO_GetFieldsCounters [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 13 00 00 [21:40:37]Write to MH i2c: E2 08 00 57 0A 80 13 00 00 00 00 00 00 DD [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 62 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 62 00 57 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [21:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 2F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:37]wFMCommunicate OK [21:40:37]SAM_PROTO_GetFieldsCounters done [21:40:37]requested_item shift.num is exist - process it [21:40:37]requested_item shift.opened is exist - process it [21:40:37]req_shift_opened [21:40:37]FM_GetShiftState [21:40:37]SAM_PROTO_GetShiftState [21:40:37]wFMCommunicate request_size=4 [21:40:37]MH_SAM_APDU [21:40:37]CAPDU: 80 13 01 00 [21:40:37]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [21:40:37]Write i2c OK [21:40:37]MH_I2C_Read... [21:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:37]Read from MH i2c: E2 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 0E 00 [21:40:37]MH_I2C_Read... [21:40:37]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D8 [21:40:37]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:40:37]wFMCommunicate OK [21:40:37]SAM_PROTO_GetShiftState done [21:40:37]FM_GetShiftState done [21:40:37]req_shift_opened done [21:40:37]requested_item shift.open_date is exist - process it [21:40:37]req_shift_open_date [21:40:37]req_shift_open_date done [21:40:37]produce_requested_data done [21:40:37]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2351,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:40:37]process_action_free close_receipt [21:40:37]json_value_free [21:40:37]json_value_free done [21:40:37]process_json_proto returns [21:40:37]Send response to host [21:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2351,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:40:37]free response buf [21:40:37]execute_script done [21:40:37]execute_script returns [21:40:37]free content buf [21:40:37]Sock 9.Close socket [21:40:37]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]accept exits with 7 [21:56:07]New connection [21:56:07]New thread 3067276644 created [21:56:07]Thread 3067420004 joined [21:56:07]Waiting for new connection... [21:56:07] Sock 7.Parse request [21:56:07]Sock 7.Check first char [21:56:07]Sock 7.First char is OK [21:56:07]request: POST /json_proto HTTP/1.0 [21:56:07]Method: POST [21:56:07]URL: /json_proto [21:56:07]Method is POST - this is cgi request [21:56:07]url: /json_proto [21:56:07]query_string will be loaded in cgi processing [21:56:07]execute_cgi json_proto POST (null) [21:56:07]execute_cgi path=json_proto method=POST [21:56:07]POST find Content-Length [21:56:07]Host: 172.17.45.132:8080 [21:56:07]Content-Length: 632 [21:56:07]Content-Type: application/json [21:56:07] [21:56:07]POST finish read [21:56:07]Found Content-Length = 632 [21:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126576", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "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" ] } } [21:56:07]execute_script... [21:56: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)126576", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "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" ] } } [21:56:07]POST & json_proto [21:56:07]process_json_proto [21:56:07]json parsed OK: [21:56:07]protocol is kg_v1.0 [21:56:07]action value=close_receipt [21:56:07]process_action close_receipt [21:56:07]cmd_close_receipt [21:56:07]MH_GetDate [21:56:07]Write to MH i2c: F0 00 00 59 0A 52 [21:56:07]Write i2c OK [21:56:07]MH_I2C_Read... [21:56:07]Read from MH i2c: F0 [21:56:07]MH_I2C_Read... [21:56:07]Read from MH i2c: F0 09 00 [21:56:07]MH_I2C_Read... [21:56:07]Read from MH i2c: F0 09 00 59 0A 00 F7 0F A8 66 E3 0B 90 66 53 [21:56:07]GetLastDocTimeStamp 1722289234 [21:56:07]current date 1722290167 [21:56:07]FM_GetShiftState [21:56:07]SAM_PROTO_GetShiftState [21:56:07]wFMCommunicate request_size=4 [21:56:07]MH_SAM_APDU [21:56:07]CAPDU: 80 13 01 00 [21:56:07]Write to MH i2c: E2 08 00 5A 0A 80 13 01 00 00 00 00 00 E1 [21:56:07]Write i2c OK [21:56:07]MH_I2C_Read... [21:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:07]Read from MH i2c: E2 [21:56:07]MH_I2C_Read... [21:56:07]Read from MH i2c: E2 0E 00 [21:56:07]MH_I2C_Read... [21:56:07]Read from MH i2c: E2 0E 00 5A 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 DA [21:56:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:56:07]wFMCommunicate OK [21:56:07]SAM_PROTO_GetShiftState done [21:56:07]FM_GetShiftState done [21:56:07]opened in 1722213119 [21:56:07]opened+sec_in_day 1722299519 [21:56:07]quantity*price = 14800 [21:56:07]sum+1 = 14801 [21:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 148.00 НСП 1% : 1.31 НДС 12% : 15.72 Наличными: 148.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 201 29.07.2024 21:56 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2352 ФПД: 163184046173571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215607&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2352&fm=163184046173571&tin=02508201610067®Number=0000000000189667&sum=14800 0 [21:56:08]StoreToDocumentArchive [21:56:08]shift 15 fd 2352 [21:56:08]save to /storage/0015/doc_00002352 [21:56:08]save last doc name /storage/0015/doc_00002352 to /storage/kkm_last_doc_name [21:56:08]save OK [21:56:08]Clear old archive folders... [21:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:56:08]tlvbuf is 010DC3B0 [21:56:08]SAM_PROTO_ClearQueue [21:56:08]wFMCommunicate request_size=4 [21:56:08]MH_SAM_APDU [21:56:08]CAPDU: 80 09 00 00 [21:56:08]Write to MH i2c: E2 08 00 67 0A 80 09 00 00 00 00 00 00 E3 [21:56:08]Write i2c OK [21:56:08]MH_I2C_Read... [21:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:08]Read from MH i2c: E2 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [21:56:08]RAPDU: 90 00 [21:56:08]wFMCommunicate OK [21:56:08]SAM_PROTO_ClearQueue done [21:56:08]KKMCreateOFDPacket [21:56:08]OFDProtocolAddRootSTLVToBuf [21:56:08]FM_MakeSignedData [21:56:08]FM_MakeSignedData [21:56:08]SAM_PROTO_SignData [21:56:08]wFMCommunicate request_size=4 [21:56:08]MH_SAM_APDU [21:56:08]CAPDU: 80 0D 01 02 [21:56:08]Write to MH i2c: E2 08 00 68 0A 80 0D 01 02 00 00 00 00 EB [21:56:08]Write i2c OK [21:56:08]MH_I2C_Read... [21:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:08]Read from MH i2c: E2 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [21:56:08]RAPDU: 90 00 [21:56:08]wFMCommunicate OK [21:56:08]wFMCommunicate request_size=255 [21:56:08]MH_SAM_APDU [21:56:08]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 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 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 C9 00 00 00 F4 03 04 00 F7 0F A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 [21:56:08]Write to MH i2c: E2 02 01 69 0A 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 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 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 C9 00 00 00 F4 03 04 00 F7 0F A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 00 00 AB [21:56:08]Write i2c OK [21:56:08]MH_I2C_Read... [21:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:08]Read from MH i2c: E2 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [21:56:08]RAPDU: 90 00 [21:56:08]wFMCommunicate OK [21:56:08]wFMCommunicate request_size=35 [21:56:08]MH_SAM_APDU [21:56:08]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 09 00 00 35 04 06 00 94 6A 3F 1A ED 83 [21:56:08]Write to MH i2c: E2 26 00 6A 0A 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 09 00 00 35 04 06 00 94 6A 3F 1A ED 83 00 00 DE [21:56:08]Write i2c OK [21:56:08]MH_I2C_Read... [21:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:08]Read from MH i2c: E2 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 03 00 6A 0A 00 90 00 E8 [21:56:08]RAPDU: 90 00 [21:56:08]wFMCommunicate OK [21:56:08]wFMCommunicate request_size=4 [21:56:08]MH_SAM_APDU [21:56:08]CAPDU: 80 0D 03 02 [21:56:08]Write to MH i2c: E2 08 00 6B 0A 80 0D 03 02 00 00 00 00 F0 [21:56:08]Write i2c OK [21:56:08]MH_I2C_Read... [21:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:08]Read from MH i2c: E2 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 0B 00 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 0B 00 6B 0A 00 7B 60 56 C5 9D F4 F9 79 90 00 EA [21:56:08]RAPDU: 7B 60 56 C5 9D F4 F9 79 90 00 [21:56:08]wFMCommunicate OK [21:56:08]SAM_PROTO_SignData done [21:56:08]FM_MakeSignedData done [21:56:08]CreateOFDProtocolMessage [21:56:08]wFMCommunicate request_size=4 [21:56:08]MH_SAM_APDU [21:56:08]CAPDU: 80 11 00 00 [21:56:08]Write to MH i2c: E2 08 00 6C 0A 80 11 00 00 00 00 00 00 F0 [21:56:08]Write i2c OK [21:56:08]MH_I2C_Read... [21:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:08]Read from MH i2c: E2 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 17 00 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: E2 17 00 6C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 40 [21:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:56:08]wFMCommunicate OK [21:56:08]CreateOFDProtocolMessage done [21:56:08]OFDSenderStorePacket 2352 [21:56:08]StoreOFDPacket docnum=2352 [21:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 28 01 00 00 DF 17 20 01 46 83 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 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 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 C9 00 00 00 F4 03 04 00 F7 0F A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 09 00 00 35 04 06 00 94 6A 3F 1A ED 83 7B 60 56 C5 9D F4 F9 79 [21:56:08]CheckFolder [21:56:08]dirname=/storage/ofd_packets [21:56:08]CheckFolder done [21:56:08]ProducePacketName [21:56:08]name=ofd_packets/00002352 [21:56:08]NVStorageSaveData ofd_packets/00002352 [21:56:08]File name is /storage/ofd_packets/00002352 [21:56:08]Write 326 bytes [21:56:08]NVStorageSaveData done [21:56:08]OFDSenderStorePacket done [21:56:08]KKMCreateOFDPacket done [21:56:08]NVStorageSaveData kkm_last_timestamp [21:56:08]File name is /storage/kkm_last_timestamp [21:56:08]Write 4 bytes [21:56:08]NVStorageSaveData done [21:56:08]ExternCall_PrintAddStr [21:56:08]wPrintStart [21:56:08]Write to MH i2c: 01 00 00 6D 0A 77 [21:56:08]Write i2c OK [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: 01 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: 01 07 00 [21:56:08]MH_I2C_Read... [21:56:08]Read from MH i2c: 01 07 00 6D 0A 00 00 00 00 00 FF 0F 8C [21:56:08]RasterBufferAndPrint [21:56:08]line Счет N : (3)126576 [21:56:08]line ИНН: 02508201610067 [21:56:08]line Контрольно-Кассовый Чек [21:56:08]line ПРОДАЖА [21:56:08]line Товар: 4780022460452 [21:56:08]line Антифриз Yumiko gold 1кг [21:56:08]line 1.000 * 148.00 [21:56:08]line = 148.00 [21:56:08]line НДС 12% НСП 1% [21:56:08]line > о реализуемом товаре [21:56:08]line ИТОГО: 148.00 [21:56:08]line НСП 1% : 1.31 [21:56:08]line НДС 12% : 15.72 [21:56:08]line Наличными: 148.00 [21:56:08]line Безнал.: 0.00 [21:56:08]line Место: АЗС № 127 "Партнер Нефть" [21:56:08]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:56:08]line СНО: Общий режим [21:56:08]line Чек 201 29.07.2024 21:56 [21:56:08]line Смена: 15 ФФД: 1.0 [21:56:08]line ЗНМ: 0300000161 [21:56:08]line РНМ: 0000000000189667 [21:56:08]line Версия ККМ: v1.0 [21:56:08]line ФМ: 0000000002094248 [21:56:08]line ФД: 2352 [21:56:08]line ФПД: 163184046173571 [21:56:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215607&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2352&fm=163184046173571&tin=02508201610067®Number=0000000000189667&sum=14800 [21:56:09]line 0 [21:56:09]OFD Sender: Processing packet 2352 [packets to send 1, broken 0] [21:56:09]ProducePacketName [21:56:09]name=ofd_packets/00002352 [21:56:09]OFD Sender: To server: pG, [21:56:09]CommunicateWithHost lk.salyk.kg:30040 [21:56:09]ConnectInit lk.salyk.kg [21:56:09]written 0, free lines is 4095 [21:56:09]Connected sock=10 [21:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 28 01 00 00 DF 17 20 01 46 83 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 D0 39 00 00 00 00 13 04 06 00 D0 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 06 00 00 00 00 07 04 06 00 D0 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 C9 00 00 00 F4 03 04 00 F7 0F A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 09 00 00 35 04 06 00 94 6A 3F 1A ED 83 7B 60 56 C5 9D F4 F9 79 [21:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FF B6 47 00 8B 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 30 09 00 00 F4 03 04 00 63 BB A7 66 B6 04 01 00 00 EE FD 47 07 29 AD 83 EB [21:56:09]CommunicateWithHost err = 0 [21:56:09]CheckOFDResponse [21:56:09]1017 (14) - 77093643461234 [21:56:09]1041 (16) - 0000000002094248 [21:56:09]1040 (4) - 2352 [21:56:09]1012 (4) - 29.07.2024 15:55 [21:56:09]1206 (1) - 0 [21:56:09]OFD Sender: Remove packet 2352 [21:56:09]ProducePacketName [21:56:09]name=ofd_packets/00002352 [21:56:09]NVStorageDeleteData [21:56:09]Write to MH i2c: 01 00 00 95 0A 9F [21:56:09]Write i2c OK [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: 01 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: 01 07 00 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: 01 07 00 95 0A 00 00 00 00 00 20 0D D3 [21:56:09]RasterBufferAndPrint [21:56:09]line [21:56:09]line [21:56:09]line [21:56:09]line [21:56:09]line [21:56:09]written 0, free lines is 3369 [21:56:09]MH_Cut [21:56:09]Write to MH i2c: D1 01 00 9C 0A 01 78 [21:56:09]Write i2c OK [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: D1 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: D1 01 00 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: D1 01 00 9C 0A 00 77 [21:56:09]Write to MH i2c: 01 00 00 9D 0A A7 [21:56:09]Write i2c OK [21:56:09]MH_I2C_Read... [21:56:09]OFD Sender: No OFD packet to send [21:56:10]*** Cut start [21:56:10]*** Partial cut [21:56:10]*** CUTSNS_PIN = 1 [21:56:10]*** CUTSNS_PIN = 0 [21:56:10]*** Brake cut motor [21:56:10]Read from MH i2c: 01 [21:56:10]MH_I2C_Read... [21:56:10]*** Stop cut motor [21:56:10]*** Cut end [21:56:10]Read from MH i2c: 01 07 00 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 FF 0F BC [21:56:10]process_action close_receipt done [21:56:10]requested_data is exist [21:56:10]produce_requested_data [21:56:10]requested_item fm.sn is exist - process it [21:56:10]wFMCommunicate request_size=4 [21:56:10]MH_SAM_APDU [21:56:10]CAPDU: 80 11 00 00 [21:56:10]Write to MH i2c: E2 08 00 9E 0A 80 11 00 00 00 00 00 00 22 [21:56:10]Write i2c OK [21:56:10]MH_I2C_Read... [21:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:10]Read from MH i2c: E2 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 17 00 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 17 00 9E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 72 [21:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:56:10]wFMCommunicate OK [21:56:10]requested_item fd.num is exist - process it [21:56:10]SAM_PROTO_GetFieldsCounters [21:56:10]wFMCommunicate request_size=4 [21:56:10]MH_SAM_APDU [21:56:10]CAPDU: 80 13 00 00 [21:56:10]Write to MH i2c: E2 08 00 9F 0A 80 13 00 00 00 00 00 00 25 [21:56:10]Write i2c OK [21:56:10]MH_I2C_Read... [21:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:10]Read from MH i2c: E2 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 62 00 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 62 00 9F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 30 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [21:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 30 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:11]wFMCommunicate OK [21:56:11]SAM_PROTO_GetFieldsCounters done [21:56:11]requested_item shift.num is exist - process it [21:56:11]requested_item shift.opened is exist - process it [21:56:11]req_shift_opened [21:56:11]FM_GetShiftState [21:56:11]SAM_PROTO_GetShiftState [21:56:11]wFMCommunicate request_size=4 [21:56:11]MH_SAM_APDU [21:56:11]CAPDU: 80 13 01 00 [21:56:11]Write to MH i2c: E2 08 00 A0 0A 80 13 01 00 00 00 00 00 27 [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:11]Read from MH i2c: E2 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 0E 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 0E 00 A0 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 20 [21:56:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:56:11]wFMCommunicate OK [21:56:11]SAM_PROTO_GetShiftState done [21:56:11]FM_GetShiftState done [21:56:11]req_shift_opened done [21:56:11]requested_item shift.open_date is exist - process it [21:56:11]req_shift_open_date [21:56:11]req_shift_open_date done [21:56:11]produce_requested_data done [21:56:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2352,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:56:11]process_action_free close_receipt [21:56:11]json_value_free [21:56:11]json_value_free done [21:56:11]process_json_proto returns [21:56:11]Send response to host [21:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2352,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:56:11]free response buf [21:56:11]execute_script done [21:56:11]execute_script returns [21:56:11]free content buf [21:56:11]Sock 7.Close socket [21:56:11]Sock 7.Thread stoped [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:53]accept exits with 9 [21:56:53]New connection [21:56:53]New thread 3067420004 created [21:56:53]Thread 3067276644 joined [21:56:53]Waiting for new connection... [21:56:53] Sock 9.Parse request [21:56:53]Sock 9.Check first char [21:56:53]Sock 9.First char is OK [21:56:53]request: POST /json_proto HTTP/1.0 [21:56:53]Method: POST [21:56:53]URL: /json_proto [21:56:53]Method is POST - this is cgi request [21:56:53]url: /json_proto [21:56:53]query_string will be loaded in cgi processing [21:56:53]execute_cgi json_proto POST (null) [21:56:53]execute_cgi path=json_proto method=POST [21:56:53]POST find Content-Length [21:56:53]Host: 172.17.45.132:8080 [21:56:53]Content-Length: 1211 [21:56:53]Content-Type: application/json [21:56:53] [21:56:53]POST finish read [21:56:53]Found Content-Length = 1211 [21:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126577", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 4.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 107.00, "quantity" : 1.000, "sum" : 107.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 647.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:53]execute_script... [21:56:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126577", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 4.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 107.00, "quantity" : 1.000, "sum" : 107.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" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 647.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:53]POST & json_proto [21:56:53]process_json_proto [21:56:53]json parsed OK: [21:56:53]protocol is kg_v1.0 [21:56:53]action value=close_receipt [21:56:53]process_action close_receipt [21:56:53]cmd_close_receipt [21:56:53]MH_GetDate [21:56:53]Write to MH i2c: F0 00 00 A1 0A 9A [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 09 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 09 00 A1 0A 00 26 10 A8 66 E3 0B 90 66 CB [21:56:53]GetLastDocTimeStamp 1722290167 [21:56:53]current date 1722290214 [21:56:53]FM_GetShiftState [21:56:53]SAM_PROTO_GetShiftState [21:56:53]wFMCommunicate request_size=4 [21:56:53]MH_SAM_APDU [21:56:53]CAPDU: 80 13 01 00 [21:56:53]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:53]Read from MH i2c: E2 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 22 [21:56:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:56:53]wFMCommunicate OK [21:56:53]SAM_PROTO_GetShiftState done [21:56:53]FM_GetShiftState done [21:56:53]opened in 1722213119 [21:56:53]opened+sec_in_day 1722299519 [21:56:53]quantity*price = 40000 [21:56:53]sum+1 = 40001 [21:56:53]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 647.00 НСП 1% : 5.73 НДС 12% : 68.71 Наличными: 647.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 202 29.07.2024 21:56 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2353 ФПД: 160207398869785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215654&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2353&fm=160207398869785&tin=02508201610067®Number=0000000000189667&sum=64700 0 [21:56:54]StoreToDocumentArchive [21:56:54]shift 15 fd 2353 [21:56:54]save to /storage/0015/doc_00002353 [21:56:54]save last doc name /storage/0015/doc_00002353 to /storage/kkm_last_doc_name [21:56:54]save OK [21:56:54]Clear old archive folders... [21:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=511 [21:56:54]tlvbuf is 0110F180 [21:56:54]SAM_PROTO_ClearQueue [21:56:54]wFMCommunicate request_size=4 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 09 00 00 [21:56:54]Write to MH i2c: E2 08 00 AF 0A 80 09 00 00 00 00 00 00 2B [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:54]Read from MH i2c: E2 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [21:56:54]RAPDU: 90 00 [21:56:54]wFMCommunicate OK [21:56:54]SAM_PROTO_ClearQueue done [21:56:54]KKMCreateOFDPacket [21:56:54]OFDProtocolAddRootSTLVToBuf [21:56:54]FM_MakeSignedData [21:56:54]FM_MakeSignedData [21:56:54]SAM_PROTO_SignData [21:56:54]wFMCommunicate request_size=4 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 0D 01 02 [21:56:54]Write to MH i2c: E2 08 00 B0 0A 80 0D 01 02 00 00 00 00 33 [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:54]Read from MH i2c: E2 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [21:56:54]RAPDU: 90 00 [21:56:54]wFMCommunicate OK [21:56:54]wFMCommunicate request_size=255 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 0D 02 02 FA 03 00 FF 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 [21:56:55]Write to MH i2c: E2 02 01 B1 0A 80 0D 02 02 FA 00 03 00 FF 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 00 79 [21:56:55]OFD Sender: No OFD packet to send [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [21:56:55]RAPDU: 90 00 [21:56:55]wFMCommunicate OK [21:56:55]wFMCommunicate request_size=255 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 0D 02 02 FA 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 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 FC 03 06 00 BC FC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1A 00 00 00 00 07 04 06 00 BC FC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 [21:56:55]Write to MH i2c: E2 02 01 B2 0A 80 0D 02 02 FA 00 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 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 FC 03 06 00 BC FC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1A 00 00 00 00 07 04 06 00 BC FC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 00 E4 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [21:56:55]RAPDU: 90 00 [21:56:55]wFMCommunicate OK [21:56:55]wFMCommunicate request_size=20 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 0D 02 02 0F 00 31 09 00 00 35 04 06 00 91 B5 31 19 9B 19 [21:56:55]Write to MH i2c: E2 17 00 B3 0A 80 0D 02 02 0F 00 00 31 09 00 00 35 04 06 00 91 B5 31 19 9B 19 00 00 12 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [21:56:55]RAPDU: 90 00 [21:56:55]wFMCommunicate OK [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 0D 03 02 [21:56:55]Write to MH i2c: E2 08 00 B4 0A 80 0D 03 02 00 00 00 00 39 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 0B 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 0B 00 B4 0A 00 DF C7 C6 D2 72 17 CF 81 90 00 51 [21:56:55]RAPDU: DF C7 C6 D2 72 17 CF 81 90 00 [21:56:55]wFMCommunicate OK [21:56:55]SAM_PROTO_SignData done [21:56:55]FM_MakeSignedData done [21:56:55]CreateOFDProtocolMessage [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 11 00 00 [21:56:55]Write to MH i2c: E2 08 00 B5 0A 80 11 00 00 00 00 00 00 39 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 B5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [21:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:56:55]wFMCommunicate OK [21:56:55]CreateOFDProtocolMessage done [21:56:55]OFDSenderStorePacket 2353 [21:56:55]StoreOFDPacket docnum=2353 [21:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 13 02 00 00 2B E1 0B 02 D4 DC 5A 03 01 00 03 00 FF 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 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 FC 03 06 00 BC FC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1A 00 00 00 00 07 04 06 00 BC FC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 31 09 00 00 35 04 06 00 91 B5 31 19 9B 19 DF C7 C6 D2 72 17 CF 81 [21:56:55]CheckFolder [21:56:55]dirname=/storage/ofd_packets [21:56:55]CheckFolder done [21:56:55]ProducePacketName [21:56:55]name=ofd_packets/00002353 [21:56:55]NVStorageSaveData ofd_packets/00002353 [21:56:55]File name is /storage/ofd_packets/00002353 [21:56:55]Write 561 bytes [21:56:55]NVStorageSaveData done [21:56:55]OFDSenderStorePacket done [21:56:55]KKMCreateOFDPacket done [21:56:55]NVStorageSaveData kkm_last_timestamp [21:56:55]File name is /storage/kkm_last_timestamp [21:56:55]Write 4 bytes [21:56:55]NVStorageSaveData done [21:56:55]ExternCall_PrintAddStr [21:56:55]wPrintStart [21:56:55]Write to MH i2c: 01 00 00 B6 0A C0 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 FF 0F D5 [21:56:55]RasterBufferAndPrint [21:56:55]line Счет N : (3)126577 [21:56:55]line ИНН: 02508201610067 [21:56:55]line Контрольно-Кассовый Чек [21:56:55]line ПРОДАЖА [21:56:55]line Товар: 4700000480814 [21:56:55]line Пиво Живое 0,5 ст [21:56:55]line 4.000 * 100.00 [21:56:55]line = 400.00 [21:56:55]line НДС 12% НСП 1% [21:56:55]line > о реализуемом товаре [21:56:55]line Товар: 5449000027474 [21:56:55]line Напиток FuzeTea зел чай манго,ромашка 1л [21:56:55]line 1.000 * 107.00 [21:56:55]line = 107.00 [21:56:55]line НДС 12% НСП 1% [21:56:55]line > о реализуемом товаре [21:56:55]line Товар: 48747059 [21:56:55]line Сигареты Winston Legend Blue [21:56:55]line 1.000 * 140.00 [21:56:55]line = 140.00 [21:56:55]line НДС 12% НСП 1% [21:56:55]line > о реализуемом товаре [21:56:55]line ИТОГО: 647.00 [21:56:55]line НСП 1% : 5.73 [21:56:55]line НДС 12% : 68.71 [21:56:55]line Наличными: 647.00 [21:56:55]line Безнал.: 0.00 [21:56:55]line Место: АЗС № 127 "Партнер Нефть" [21:56:55]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:56:55]line СНО: Общий режим [21:56:55]line Чек 202 29.07.2024 21:56 [21:56:55]line Смена: 15 ФФД: 1.0 [21:56:55]line ЗНМ: 0300000161 [21:56:55]line РНМ: 0000000000189667 [21:56:55]line Версия ККМ: v1.0 [21:56:55]line ФМ: 0000000002094248 [21:56:55]line ФД: 2353 [21:56:55]line ФПД: 160207398869785 [21:56:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215654&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2353&fm=160207398869785&tin=02508201610067®Number=0000000000189667&sum=64700 [21:56:56]line 0 [21:56:56]OFD Sender: Processing packet 2353 [packets to send 1, broken 0] [21:56:56]ProducePacketName [21:56:56]name=ofd_packets/00002353 [21:56:56]OFD Sender: To server: pG, [21:56:56]CommunicateWithHost lk.salyk.kg:30040 [21:56:56]ConnectInit lk.salyk.kg [21:56:56]written 0, free lines is 4095 [21:56:56]Connected sock=10 [21:56:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 13 02 00 00 2B E1 0B 02 D4 DC 5A 03 01 00 03 00 FF 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 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 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 CC 29 00 00 00 00 13 04 06 00 CC 29 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 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 FC 03 06 00 BC FC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1A 00 00 00 00 07 04 06 00 BC FC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 26 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 31 09 00 00 35 04 06 00 91 B5 31 19 9B 19 DF C7 C6 D2 72 17 CF 81 [21:56:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 41 68 47 00 A1 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 32 30 39 34 32 34 38 10 04 04 00 31 09 00 00 F4 03 04 00 92 BB A7 66 B6 04 01 00 00 C5 E2 6A 8E AC 4B A6 1A [21:56:56]CommunicateWithHost err = 0 [21:56:56]CheckOFDResponse [21:56:56]1017 (14) - 77093643461234 [21:56:56]1041 (16) - 0000000002094248 [21:56:56]1040 (4) - 2353 [21:56:56]1012 (4) - 29.07.2024 15:56 [21:56:56]1206 (1) - 0 [21:56:56]OFD Sender: Remove packet 2353 [21:56:56]ProducePacketName [21:56:56]name=ofd_packets/00002353 [21:56:56]NVStorageDeleteData [21:56:56]Write to MH i2c: 01 00 00 EC 0A F6 [21:56:56]Write i2c OK [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: 01 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: 01 07 00 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 62 0C 6B [21:56:56]RasterBufferAndPrint [21:56:56]line [21:56:56]line [21:56:56]line [21:56:56]line [21:56:56]line [21:56:56]written 0, free lines is 3179 [21:56:56]MH_Cut [21:56:56]Write to MH i2c: D1 01 00 F3 0A 01 CF [21:56:56]Write i2c OK [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: D1 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: D1 01 00 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: D1 01 00 F3 0A 00 CE [21:56:56]Write to MH i2c: 01 00 00 F4 0A FE [21:56:56]Write i2c OK [21:56:56]MH_I2C_Read... [21:56:56]OFD Sender: No OFD packet to send [21:56:57]*** Cut start [21:56:57]*** Partial cut [21:56:57]*** CUTSNS_PIN = 1 [21:56:57]*** CUTSNS_PIN = 0 [21:56:57]*** Brake cut motor [21:56:58]Read from MH i2c: 01 [21:56:58]MH_I2C_Read... [21:56:58]*** Stop cut motor [21:56:58]*** Cut end [21:56:58]Read from MH i2c: 01 07 00 [21:56:58]MH_I2C_Read... [21:56:58]Read from MH i2c: 01 07 00 F4 0A 00 00 00 00 00 FF 0F 13 [21:56:58]process_action close_receipt done [21:56:58]requested_data is exist [21:56:58]produce_requested_data [21:56:58]requested_item fm.sn is exist - process it [21:56:58]wFMCommunicate request_size=4 [21:56:58]MH_SAM_APDU [21:56:58]CAPDU: 80 11 00 00 [21:56:58]Write to MH i2c: E2 08 00 F5 0A 80 11 00 00 00 00 00 00 79 [21:56:58]Write i2c OK [21:56:58]MH_I2C_Read... [21:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:58]Read from MH i2c: E2 [21:56:58]MH_I2C_Read... [21:56:58]Read from MH i2c: E2 17 00 [21:56:58]MH_I2C_Read... [21:56:58]Read from MH i2c: E2 17 00 F5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C9 [21:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:56:58]wFMCommunicate OK [21:56:58]requested_item fd.num is exist - process it [21:56:58]SAM_PROTO_GetFieldsCounters [21:56:58]wFMCommunicate request_size=4 [21:56:58]MH_SAM_APDU [21:56:58]CAPDU: 80 13 00 00 [21:56:58]Write to MH i2c: E2 08 00 F6 0A 80 13 00 00 00 00 00 00 7C [21:56:58]Write i2c OK [21:56:58]MH_I2C_Read... [21:56:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:58]Read from MH i2c: E2 [21:56:58]MH_I2C_Read... [21:56:58]Read from MH i2c: E2 62 00 [21:56:58]MH_I2C_Read... [21:56:58]Read from MH i2c: E2 62 00 F6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 31 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [21:56:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 31 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:58]wFMCommunicate OK [21:56:58]SAM_PROTO_GetFieldsCounters done [21:56:58]requested_item shift.num is exist - process it [21:56:58]requested_item shift.opened is exist - process it [21:56:58]req_shift_opened [21:56:58]FM_GetShiftState [21:56:58]SAM_PROTO_GetShiftState [21:56:58]wFMCommunicate request_size=4 [21:56:58]MH_SAM_APDU [21:56:58]CAPDU: 80 13 01 00 [21:56:58]Write to MH i2c: E2 08 00 F7 0A 80 13 01 00 00 00 00 00 7E [21:56:58]Write i2c OK [21:56:58]MH_I2C_Read... [21:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:58]Read from MH i2c: E2 [21:56:58]MH_I2C_Read... [21:56:58]Read from MH i2c: E2 0E 00 [21:56:58]MH_I2C_Read... [21:56:58]Read from MH i2c: E2 0E 00 F7 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 77 [21:56:58]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:56:58]wFMCommunicate OK [21:56:58]SAM_PROTO_GetShiftState done [21:56:58]FM_GetShiftState done [21:56:58]req_shift_opened done [21:56:58]requested_item shift.open_date is exist - process it [21:56:58]req_shift_open_date [21:56:58]req_shift_open_date done [21:56:58]produce_requested_data done [21:56:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2353,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:56:58]process_action_free close_receipt [21:56:58]json_value_free [21:56:58]json_value_free done [21:56:58]process_json_proto returns [21:56:58]Send response to host [21:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2353,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:56:58]free response buf [21:56:58]execute_script done [21:56:58]execute_script returns [21:56:58]free content buf [21:56:58]Sock 9.Close socket [21:56:58]Sock 9.Thread stoped [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]accept exits with 7 [21:57:41]New connection [21:57:41]New thread 3067276644 created [21:57:41]Thread 3067420004 joined [21:57:41]Waiting for new connection... [21:57:41] Sock 7.Parse request [21:57:41]Sock 7.Check first char [21:57:41]Sock 7.First char is OK [21:57:41]request: POST /json_proto HTTP/1.0 [21:57:41]Method: POST [21:57:41]URL: /json_proto [21:57:41]Method is POST - this is cgi request [21:57:41]url: /json_proto [21:57:41]query_string will be loaded in cgi processing [21:57:41]execute_cgi json_proto POST (null) [21:57:41]execute_cgi path=json_proto method=POST [21:57:41]POST find Content-Length [21:57:41]Host: 172.17.45.132:8080 [21:57:41]Content-Length: 677 [21:57:41]Content-Type: application/json [21:57:41] [21:57:41]POST finish read [21:57:41]Found Content-Length = 677 [21:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:41]execute_script... [21:57:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:41]POST & json_proto [21:57:41]process_json_proto [21:57:41]json parsed OK: [21:57:41]protocol is kg_v1.0 [21:57:41]action value=close_receipt [21:57:41]process_action close_receipt [21:57:41]cmd_close_receipt [21:57:41]MH_GetDate [21:57:41]Write to MH i2c: F0 00 00 F8 0A F1 [21:57:41]Write i2c OK [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: F0 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: F0 09 00 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: F0 09 00 F8 0A 00 56 10 A8 66 E3 0B 90 66 52 [21:57:41]GetLastDocTimeStamp 1722290214 [21:57:41]current date 1722290262 [21:57:41]FM_GetShiftState [21:57:41]SAM_PROTO_GetShiftState [21:57:41]wFMCommunicate request_size=4 [21:57:41]MH_SAM_APDU [21:57:41]CAPDU: 80 13 01 00 [21:57:41]Write to MH i2c: E2 08 00 F9 0A 80 13 01 00 00 00 00 00 80 [21:57:41]Write i2c OK [21:57:41]MH_I2C_Read... [21:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:41]Read from MH i2c: E2 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: E2 0E 00 [21:57:41]MH_I2C_Read... [21:57:41]Read from MH i2c: E2 0E 00 F9 0A 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 79 [21:57:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:57:41]wFMCommunicate OK [21:57:41]SAM_PROTO_GetShiftState done [21:57:41]FM_GetShiftState done [21:57:41]opened in 1722213119 [21:57:41]opened+sec_in_day 1722299519 [21:57:41]quantity*price = 50036 [21:57:41]sum+1 = 50037 [21:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 203 29.07.2024 21:57 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2354 ФПД: 17801442591907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215742&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2354&fm=17801442591907&tin=02508201610067®Number=0000000000189667&sum=50000 [21:57:42]StoreToDocumentArchive [21:57:42]shift 15 fd 2354 [21:57:42]save to /storage/0015/doc_00002354 [21:57:42]save last doc name /storage/0015/doc_00002354 to /storage/kkm_last_doc_name [21:57:42]save OK [21:57:42]Clear old archive folders... [21:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:42]tlvbuf is 0112F0F0 [21:57:42]SAM_PROTO_ClearQueue [21:57:42]wFMCommunicate request_size=4 [21:57:42]MH_SAM_APDU [21:57:42]CAPDU: 80 09 00 00 [21:57:42]Write to MH i2c: E2 08 00 06 0B 80 09 00 00 00 00 00 00 83 [21:57:42]Write i2c OK [21:57:42]MH_I2C_Read... [21:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:42]Read from MH i2c: E2 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 03 00 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 03 00 06 0B 00 90 00 85 [21:57:42]RAPDU: 90 00 [21:57:42]wFMCommunicate OK [21:57:42]SAM_PROTO_ClearQueue done [21:57:42]KKMCreateOFDPacket [21:57:42]OFDProtocolAddRootSTLVToBuf [21:57:42]FM_MakeSignedData [21:57:42]FM_MakeSignedData [21:57:42]SAM_PROTO_SignData [21:57:42]wFMCommunicate request_size=4 [21:57:42]MH_SAM_APDU [21:57:42]CAPDU: 80 0D 01 02 [21:57:42]Write to MH i2c: E2 08 00 07 0B 80 0D 01 02 00 00 00 00 8B [21:57:42]Write i2c OK [21:57:42]MH_I2C_Read... [21:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:42]Read from MH i2c: E2 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 03 00 [21:57:42]MH_I2C_Read... [21:57:42]Read from MH i2c: E2 03 00 07 0B 00 90 00 86 [21:57:42]RAPDU: 90 00 [21:57:42]wFMCommunicate OK [21:57:42]wFMCommunicate request_size=255 [21:57:42]MH_SAM_APDU [21:57:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 56 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 09 00 00 35 04 06 00 10 [21:57:42]Write to MH i2c: E2 02 01 08 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 56 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 09 00 00 35 04 06 00 10 00 00 A9 [21:57:42]Write i2c OK [21:57:42]MH_I2C_Read... [21:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:43]Read from MH i2c: E2 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 03 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 03 00 08 0B 00 90 00 87 [21:57:43]RAPDU: 90 00 [21:57:43]wFMCommunicate OK [21:57:43]wFMCommunicate request_size=10 [21:57:43]MH_SAM_APDU [21:57:43]CAPDU: 80 0D 02 02 05 30 B8 A9 84 A3 [21:57:43]Write to MH i2c: E2 0D 00 09 0B 80 0D 02 02 05 00 30 B8 A9 84 A3 00 00 50 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:43]Read from MH i2c: E2 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 03 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 03 00 09 0B 00 90 00 88 [21:57:43]RAPDU: 90 00 [21:57:43]wFMCommunicate OK [21:57:43]wFMCommunicate request_size=4 [21:57:43]MH_SAM_APDU [21:57:43]CAPDU: 80 0D 03 02 [21:57:43]Write to MH i2c: E2 08 00 0A 0B 80 0D 03 02 00 00 00 00 90 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:43]Read from MH i2c: E2 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 0B 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 0B 00 0A 0B 00 BF D3 03 A3 8D F5 A0 32 90 00 1D [21:57:43]RAPDU: BF D3 03 A3 8D F5 A0 32 90 00 [21:57:43]wFMCommunicate OK [21:57:43]SAM_PROTO_SignData done [21:57:43]FM_MakeSignedData done [21:57:43]CreateOFDProtocolMessage [21:57:43]wFMCommunicate request_size=4 [21:57:43]MH_SAM_APDU [21:57:43]CAPDU: 80 11 00 00 [21:57:43]Write to MH i2c: E2 08 00 0B 0B 80 11 00 00 00 00 00 00 90 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:43]Read from MH i2c: E2 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 17 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: E2 17 00 0B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E0 [21:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:57:43]wFMCommunicate OK [21:57:43]CreateOFDProtocolMessage done [21:57:43]OFDSenderStorePacket 2354 [21:57:43]StoreOFDPacket docnum=2354 [21:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B2 FB 07 01 49 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 56 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 09 00 00 35 04 06 00 10 30 B8 A9 84 A3 BF D3 03 A3 8D F5 A0 32 [21:57:43]CheckFolder [21:57:43]dirname=/storage/ofd_packets [21:57:43]CheckFolder done [21:57:43]ProducePacketName [21:57:43]name=ofd_packets/00002354 [21:57:43]NVStorageSaveData ofd_packets/00002354 [21:57:43]File name is /storage/ofd_packets/00002354 [21:57:43]Write 301 bytes [21:57:43]NVStorageSaveData done [21:57:43]OFDSenderStorePacket done [21:57:43]KKMCreateOFDPacket done [21:57:43]NVStorageSaveData kkm_last_timestamp [21:57:43]File name is /storage/kkm_last_timestamp [21:57:43]Write 4 bytes [21:57:43]NVStorageSaveData done [21:57:43]ExternCall_PrintAddStr [21:57:43]wPrintStart [21:57:43]Write to MH i2c: 01 00 00 0C 0B 17 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: 01 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: 01 07 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: 01 07 00 0C 0B 00 00 00 00 00 FF 0F 2C [21:57:43]RasterBufferAndPrint [21:57:43]line Счет N : (1)610195 [21:57:43]line ИНН: 02508201610067 [21:57:43]line Контрольно-Кассовый Чек [21:57:43]line ПРОДАЖА [21:57:43]line ТРК (МРК, ГНК) : 52 [21:57:43]line Товар: 2710124130 [21:57:43]line Аи-92-К-2 [21:57:43]line 7.380 * 67.80 [21:57:43]line = 500.36 [21:57:43]line НДС 12% НСП 1% [21:57:43]line > о реализуемом товаре [21:57:43]line ОКРУГЛЕНИЕ: -0.36 [21:57:43]line ИТОГО: 500.00 [21:57:43]line Внесено: 500.00 [21:57:43]line СДАЧА: 0.00 [21:57:43]line НСП 1% : 4.43 [21:57:43]line НДС 12% : 53.14 [21:57:43]line Наличными: 500.00 [21:57:43]line Безнал.: 0.00 [21:57:43]line Место: АЗС № 127 "Партнер Нефть" [21:57:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:57:43]line СНО: Общий режим [21:57:43]line Чек 203 29.07.2024 21:57 [21:57:43]line Смена: 15 ФФД: 1.0 [21:57:43]line ЗНМ: 0300000161 [21:57:43]line РНМ: 0000000000189667 [21:57:43]line Версия ККМ: v1.0 [21:57:43]line ФМ: 0000000002094248 [21:57:43]line ФД: 2354 [21:57:43]line ФПД: 17801442591907 [21:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215742&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2354&fm=17801442591907&tin=02508201610067®Number=0000000000189667&sum=50000 [21:57:43]OFD Sender: Processing packet 2354 [packets to send 1, broken 0] [21:57:43]ProducePacketName [21:57:43]name=ofd_packets/00002354 [21:57:43]OFD Sender: To server: pG, [21:57:43]CommunicateWithHost lk.salyk.kg:30040 [21:57:43]ConnectInit lk.salyk.kg [21:57:43]written 0, free lines is 4095 [21:57:43]Connected sock=10 [21:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 B2 FB 07 01 49 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 56 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 09 00 00 35 04 06 00 10 30 B8 A9 84 A3 BF D3 03 A3 8D F5 A0 32 [21:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CF 52 47 00 24 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 32 09 00 00 F4 03 04 00 C1 BB A7 66 B6 04 01 00 00 83 37 50 E3 45 D7 38 93 [21:57:43]CommunicateWithHost err = 0 [21:57:43]CheckOFDResponse [21:57:43]1017 (14) - 77093643461234 [21:57:43]1041 (16) - 0000000002094248 [21:57:43]1040 (4) - 2354 [21:57:43]1012 (4) - 29.07.2024 15:56 [21:57:43]1206 (1) - 0 [21:57:43]OFD Sender: Remove packet 2354 [21:57:43]ProducePacketName [21:57:43]name=ofd_packets/00002354 [21:57:43]NVStorageDeleteData [21:57:43]Write to MH i2c: 01 00 00 37 0B 42 [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: 01 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: 01 07 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 EF 0C 44 [21:57:43]RasterBufferAndPrint [21:57:43]line [21:57:43]line [21:57:43]line [21:57:43]line [21:57:43]line [21:57:43]written 0, free lines is 3317 [21:57:43]MH_Cut [21:57:43]Write to MH i2c: D1 01 00 3E 0B 01 1B [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: D1 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: D1 01 00 [21:57:43]MH_I2C_Read... [21:57:43]Read from MH i2c: D1 01 00 3E 0B 00 1A [21:57:43]Write to MH i2c: 01 00 00 3F 0B 4A [21:57:43]Write i2c OK [21:57:43]MH_I2C_Read... [21:57:44]OFD Sender: No OFD packet to send [21:57:44]*** Cut start [21:57:44]*** Partial cut [21:57:44]*** CUTSNS_PIN = 1 [21:57:44]*** CUTSNS_PIN = 0 [21:57:44]*** Brake cut motor [21:57:45]Read from MH i2c: 01 [21:57:45]MH_I2C_Read... [21:57:45]*** Stop cut motor [21:57:45]*** Cut end [21:57:45]Read from MH i2c: 01 07 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: 01 07 00 3F 0B 00 00 00 00 00 FF 0F 5F [21:57:45]process_action close_receipt done [21:57:45]requested_data is exist [21:57:45]produce_requested_data [21:57:45]requested_item fm.sn is exist - process it [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 11 00 00 [21:57:45]Write to MH i2c: E2 08 00 40 0B 80 11 00 00 00 00 00 00 C5 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 17 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 17 00 40 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 15 [21:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:57:45]wFMCommunicate OK [21:57:45]requested_item fd.num is exist - process it [21:57:45]SAM_PROTO_GetFieldsCounters [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 13 00 00 [21:57:45]Write to MH i2c: E2 08 00 41 0B 80 13 00 00 00 00 00 00 C8 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 62 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 62 00 41 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 32 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:57:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 32 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:45]wFMCommunicate OK [21:57:45]SAM_PROTO_GetFieldsCounters done [21:57:45]requested_item shift.num is exist - process it [21:57:45]requested_item shift.opened is exist - process it [21:57:45]req_shift_opened [21:57:45]FM_GetShiftState [21:57:45]SAM_PROTO_GetShiftState [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 13 01 00 [21:57:45]Write to MH i2c: E2 08 00 42 0B 80 13 01 00 00 00 00 00 CA [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0E 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0E 00 42 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C3 [21:57:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:57:45]wFMCommunicate OK [21:57:45]SAM_PROTO_GetShiftState done [21:57:45]FM_GetShiftState done [21:57:45]req_shift_opened done [21:57:45]requested_item shift.open_date is exist - process it [21:57:45]req_shift_open_date [21:57:45]req_shift_open_date done [21:57:45]produce_requested_data done [21:57:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2354,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:57:45]process_action_free close_receipt [21:57:45]json_value_free [21:57:45]json_value_free done [21:57:45]process_json_proto returns [21:57:45]Send response to host [21:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2354,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:57:45]free response buf [21:57:45]execute_script done [21:57:45]execute_script returns [21:57:45]free content buf [21:57:45]Sock 7.Close socket [21:57:45]Sock 7.Thread stoped [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:57]accept exits with 9 [21:57:57]New connection [21:57:57]New thread 3067420004 created [21:57:57]Thread 3067276644 joined [21:57:57]Waiting for new connection... [21:57:57] Sock 9.Parse request [21:57:57]Sock 9.Check first char [21:57:57]Sock 9.First char is OK [21:57:57]request: POST /json_proto HTTP/1.0 [21:57:57]Method: POST [21:57:57]URL: /json_proto [21:57:57]Method is POST - this is cgi request [21:57:57]url: /json_proto [21:57:57]query_string will be loaded in cgi processing [21:57:57]execute_cgi json_proto POST (null) [21:57:57]execute_cgi path=json_proto method=POST [21:57:57]POST find Content-Length [21:57:57]Host: 172.17.45.132:8080 [21:57:57]Content-Length: 644 [21:57:57]Content-Type: application/json [21:57:57] [21:57:57]POST finish read [21:57:57]Found Content-Length = 644 [21:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126578", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\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" ] } } [21:57:57]execute_script... [21:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126578", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\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" ] } } [21:57:57]POST & json_proto [21:57:57]process_json_proto [21:57:57]json parsed OK: [21:57:57]protocol is kg_v1.0 [21:57:57]action value=close_receipt [21:57:57]process_action close_receipt [21:57:57]cmd_close_receipt [21:57:57]MH_GetDate [21:57:57]Write to MH i2c: F0 00 00 43 0B 3D [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: F0 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: F0 09 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: F0 09 00 43 0B 00 65 10 A8 66 E3 0B 90 66 AD [21:57:57]GetLastDocTimeStamp 1722290262 [21:57:57]current date 1722290277 [21:57:57]FM_GetShiftState [21:57:57]SAM_PROTO_GetShiftState [21:57:57]wFMCommunicate request_size=4 [21:57:57]MH_SAM_APDU [21:57:57]CAPDU: 80 13 01 00 [21:57:57]Write to MH i2c: E2 08 00 44 0B 80 13 01 00 00 00 00 00 CC [21:57:57]Write i2c OK [21:57:57]MH_I2C_Read... [21:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:57]Read from MH i2c: E2 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 0E 00 [21:57:57]MH_I2C_Read... [21:57:57]Read from MH i2c: E2 0E 00 44 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C5 [21:57:57]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:57:57]wFMCommunicate OK [21:57:57]SAM_PROTO_GetShiftState done [21:57:57]FM_GetShiftState done [21:57:57]opened in 1722213119 [21:57:57]opened+sec_in_day 1722299519 [21:57:57]quantity*price = 3500 [21:57:57]sum+1 = 3501 [21:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 204 29.07.2024 21:57 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2355 ФПД: 112310357310930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215757&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2355&fm=112310357310930&tin=02508201610067®Number=0000000000189667&sum=3500 0 [21:57:58]StoreToDocumentArchive [21:57:58]shift 15 fd 2355 [21:57:58]save to /storage/0015/doc_00002355 [21:57:58]save last doc name /storage/0015/doc_00002355 to /storage/kkm_last_doc_name [21:57:58]save OK [21:57:58]Clear old archive folders... [21:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:57:58]tlvbuf is 010C3980 [21:57:58]SAM_PROTO_ClearQueue [21:57:58]wFMCommunicate request_size=4 [21:57:58]MH_SAM_APDU [21:57:58]CAPDU: 80 09 00 00 [21:57:58]Write to MH i2c: E2 08 00 51 0B 80 09 00 00 00 00 00 00 CE [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:58]Read from MH i2c: E2 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 51 0B 00 90 00 D0 [21:57:58]RAPDU: 90 00 [21:57:58]wFMCommunicate OK [21:57:58]SAM_PROTO_ClearQueue done [21:57:58]KKMCreateOFDPacket [21:57:58]OFDProtocolAddRootSTLVToBuf [21:57:58]FM_MakeSignedData [21:57:58]FM_MakeSignedData [21:57:58]SAM_PROTO_SignData [21:57:58]wFMCommunicate request_size=4 [21:57:58]MH_SAM_APDU [21:57:58]CAPDU: 80 0D 01 02 [21:57:58]Write to MH i2c: E2 08 00 52 0B 80 0D 01 02 00 00 00 00 D6 [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:58]Read from MH i2c: E2 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [21:57:58]RAPDU: 90 00 [21:57:58]wFMCommunicate OK [21:57:58]wFMCommunicate request_size=255 [21:57:58]MH_SAM_APDU [21:57:58]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 CC 00 00 00 F4 03 04 00 65 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [21:57:58]Write to MH i2c: E2 02 01 53 0B 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 CC 00 00 00 F4 03 04 00 65 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 28 [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:58]Read from MH i2c: E2 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [21:57:58]RAPDU: 90 00 [21:57:58]wFMCommunicate OK [21:57:58]wFMCommunicate request_size=34 [21:57:58]MH_SAM_APDU [21:57:58]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 09 00 00 35 04 06 00 66 25 4A F3 BD D2 [21:57:58]Write to MH i2c: E2 25 00 54 0B 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 09 00 00 35 04 06 00 66 25 4A F3 BD D2 00 00 2A [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:58]Read from MH i2c: E2 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [21:57:58]RAPDU: 90 00 [21:57:58]wFMCommunicate OK [21:57:58]wFMCommunicate request_size=4 [21:57:58]MH_SAM_APDU [21:57:58]CAPDU: 80 0D 03 02 [21:57:58]Write to MH i2c: E2 08 00 55 0B 80 0D 03 02 00 00 00 00 DB [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:58]Read from MH i2c: E2 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 0B 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 0B 00 55 0B 00 75 51 BD 74 C9 87 73 97 90 00 2D [21:57:58]RAPDU: 75 51 BD 74 C9 87 73 97 90 00 [21:57:58]wFMCommunicate OK [21:57:58]SAM_PROTO_SignData done [21:57:58]FM_MakeSignedData done [21:57:58]CreateOFDProtocolMessage [21:57:58]wFMCommunicate request_size=4 [21:57:58]MH_SAM_APDU [21:57:58]CAPDU: 80 11 00 00 [21:57:58]Write to MH i2c: E2 08 00 56 0B 80 11 00 00 00 00 00 00 DB [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:58]Read from MH i2c: E2 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 17 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: E2 17 00 56 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2B [21:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:57:58]wFMCommunicate OK [21:57:58]CreateOFDProtocolMessage done [21:57:58]OFDSenderStorePacket 2355 [21:57:58]StoreOFDPacket docnum=2355 [21:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 B6 65 1F 01 07 71 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 CC 00 00 00 F4 03 04 00 65 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 09 00 00 35 04 06 00 66 25 4A F3 BD D2 75 51 BD 74 C9 87 73 97 [21:57:58]CheckFolder [21:57:58]dirname=/storage/ofd_packets [21:57:58]CheckFolder done [21:57:58]ProducePacketName [21:57:58]name=ofd_packets/00002355 [21:57:58]NVStorageSaveData ofd_packets/00002355 [21:57:58]File name is /storage/ofd_packets/00002355 [21:57:58]Write 325 bytes [21:57:58]NVStorageSaveData done [21:57:58]OFDSenderStorePacket done [21:57:58]KKMCreateOFDPacket done [21:57:58]NVStorageSaveData kkm_last_timestamp [21:57:58]File name is /storage/kkm_last_timestamp [21:57:58]Write 4 bytes [21:57:58]NVStorageSaveData done [21:57:58]ExternCall_PrintAddStr [21:57:58]wPrintStart [21:57:58]Write to MH i2c: 01 00 00 57 0B 62 [21:57:58]Write i2c OK [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: 01 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: 01 07 00 [21:57:58]MH_I2C_Read... [21:57:58]Read from MH i2c: 01 07 00 57 0B 00 00 00 00 00 FF 0F 77 [21:57:58]RasterBufferAndPrint [21:57:58]line Счет N : (3)126578 [21:57:58]line ИНН: 02508201610067 [21:57:58]line Контрольно-Кассовый Чек [21:57:58]line ПРОДАЖА [21:57:58]line Товар: 4700000310326 [21:57:58]line Вода Адыгене 1л б/г [21:57:58]line 1.000 * 35.00 [21:57:58]line = 35.00 [21:57:58]line НДС 12% НСП 1% [21:57:58]line > о реализуемом товаре [21:57:58]line ИТОГО: 35.00 [21:57:58]line НСП 1% : 0.31 [21:57:58]line НДС 12% : 3.72 [21:57:58]line Наличными: 35.00 [21:57:58]line Безнал.: 0.00 [21:57:58]line Место: АЗС № 127 "Партнер Нефть" [21:57:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [21:57:58]line СНО: Общий режим [21:57:58]line Чек 204 29.07.2024 21:57 [21:57:58]line Смена: 15 ФФД: 1.0 [21:57:58]line ЗНМ: 0300000161 [21:57:58]line РНМ: 0000000000189667 [21:57:58]line Версия ККМ: v1.0 [21:57:58]line ФМ: 0000000002094248 [21:57:58]line ФД: 2355 [21:57:58]line ФПД: 112310357310930 [21:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215757&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2355&fm=112310357310930&tin=02508201610067®Number=0000000000189667&sum=3500 [21:57:59]line 0 [21:57:59]OFD Sender: Processing packet 2355 [packets to send 1, broken 0] [21:57:59]ProducePacketName [21:57:59]name=ofd_packets/00002355 [21:57:59]OFD Sender: To server: pG, [21:57:59]CommunicateWithHost lk.salyk.kg:30040 [21:57:59]ConnectInit lk.salyk.kg [21:57:59]written 0, free lines is 4095 [21:57:59]Connected sock=11 [21:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 B6 65 1F 01 07 71 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 CC 00 00 00 F4 03 04 00 65 10 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 33 09 00 00 35 04 06 00 66 25 4A F3 BD D2 75 51 BD 74 C9 87 73 97 [21:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 25 B4 47 00 3F 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 32 30 39 34 32 34 38 10 04 04 00 33 09 00 00 F4 03 04 00 D1 BB A7 66 B6 04 01 00 00 87 44 42 0E 99 A0 92 D9 [21:57:59]CommunicateWithHost err = 0 [21:57:59]CheckOFDResponse [21:57:59]1017 (14) - 77093643461234 [21:57:59]1041 (16) - 0000000002094248 [21:57:59]1040 (4) - 2355 [21:57:59]1012 (4) - 29.07.2024 15:57 [21:57:59]1206 (1) - 0 [21:57:59]OFD Sender: Remove packet 2355 [21:57:59]ProducePacketName [21:57:59]name=ofd_packets/00002355 [21:57:59]NVStorageDeleteData [21:57:59]Write to MH i2c: 01 00 00 7F 0B 8A [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: 01 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: 01 07 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: 01 07 00 7F 0B 00 00 00 00 00 11 0D AF [21:57:59]RasterBufferAndPrint [21:57:59]line [21:57:59]line [21:57:59]line [21:57:59]line [21:57:59]line [21:57:59]written 0, free lines is 3351 [21:57:59]MH_Cut [21:57:59]Write to MH i2c: D1 01 00 86 0B 01 63 [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: D1 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: D1 01 00 [21:57:59]MH_I2C_Read... [21:57:59]Read from MH i2c: D1 01 00 86 0B 00 62 [21:57:59]Write to MH i2c: 01 00 00 87 0B 92 [21:57:59]Write i2c OK [21:57:59]MH_I2C_Read... [21:58:00]OFD Sender: No OFD packet to send [21:58:00]*** Cut start [21:58:00]*** Partial cut [21:58:00]*** CUTSNS_PIN = 1 [21:58:00]*** CUTSNS_PIN = 0 [21:58:00]*** Brake cut motor [21:58:00]Read from MH i2c: 01 [21:58:00]MH_I2C_Read... [21:58:00]*** Stop cut motor [21:58:00]*** Cut end [21:58:00]Read from MH i2c: 01 07 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: 01 07 00 87 0B 00 00 00 00 00 FF 0F A7 [21:58:00]process_action close_receipt done [21:58:00]requested_data is exist [21:58:00]produce_requested_data [21:58:00]requested_item fm.sn is exist - process it [21:58:00]wFMCommunicate request_size=4 [21:58:00]MH_SAM_APDU [21:58:00]CAPDU: 80 11 00 00 [21:58:00]Write to MH i2c: E2 08 00 88 0B 80 11 00 00 00 00 00 00 0D [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:00]Read from MH i2c: E2 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 17 00 [21:58:00]MH_I2C_Read... [21:58:00]Read from MH i2c: E2 17 00 88 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5D [21:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [21:58:00]wFMCommunicate OK [21:58:00]requested_item fd.num is exist - process it [21:58:00]SAM_PROTO_GetFieldsCounters [21:58:00]wFMCommunicate request_size=4 [21:58:00]MH_SAM_APDU [21:58:00]CAPDU: 80 13 00 00 [21:58:00]Write to MH i2c: E2 08 00 89 0B 80 13 00 00 00 00 00 00 10 [21:58:00]Write i2c OK [21:58:00]MH_I2C_Read... [21:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:01]Read from MH i2c: E2 [21:58:01]MH_I2C_Read... [21:58:01]Read from MH i2c: E2 62 00 [21:58:01]MH_I2C_Read... [21:58:01]Read from MH i2c: E2 62 00 89 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 33 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [21:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 33 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:01]wFMCommunicate OK [21:58:01]SAM_PROTO_GetFieldsCounters done [21:58:01]requested_item shift.num is exist - process it [21:58:01]requested_item shift.opened is exist - process it [21:58:01]req_shift_opened [21:58:01]FM_GetShiftState [21:58:01]SAM_PROTO_GetShiftState [21:58:01]wFMCommunicate request_size=4 [21:58:01]MH_SAM_APDU [21:58:01]CAPDU: 80 13 01 00 [21:58:01]Write to MH i2c: E2 08 00 8A 0B 80 13 01 00 00 00 00 00 12 [21:58:01]Write i2c OK [21:58:01]MH_I2C_Read... [21:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:01]Read from MH i2c: E2 [21:58:01]MH_I2C_Read... [21:58:01]Read from MH i2c: E2 0E 00 [21:58:01]MH_I2C_Read... [21:58:01]Read from MH i2c: E2 0E 00 8A 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 0B [21:58:01]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [21:58:01]wFMCommunicate OK [21:58:01]SAM_PROTO_GetShiftState done [21:58:01]FM_GetShiftState done [21:58:01]req_shift_opened done [21:58:01]requested_item shift.open_date is exist - process it [21:58:01]req_shift_open_date [21:58:01]req_shift_open_date done [21:58:01]produce_requested_data done [21:58:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2355,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [21:58:01]process_action_free close_receipt [21:58:01]json_value_free [21:58:01]json_value_free done [21:58:01]process_json_proto returns [21:58:01]Send response to host [21:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2355,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [21:58:01]free response buf [21:58:01]execute_script done [21:58:01]execute_script returns [21:58:01]free content buf [21:58:01]Sock 9.Close socket [21:58:01]Sock 9.Thread stoped [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:46]accept exits with 7 [22:02:46]New connection [22:02:46]New thread 3067276644 created [22:02:46]Thread 3067420004 joined [22:02:46]Waiting for new connection... [22:02:46] Sock 7.Parse request [22:02:46]Sock 7.Check first char [22:02:46]Sock 7.First char is OK [22:02:46]request: POST /json_proto HTTP/1.0 [22:02:46]Method: POST [22:02:46]URL: /json_proto [22:02:46]Method is POST - this is cgi request [22:02:46]url: /json_proto [22:02:46]query_string will be loaded in cgi processing [22:02:46]execute_cgi json_proto POST (null) [22:02:46]execute_cgi path=json_proto method=POST [22:02:46]POST find Content-Length [22:02:46]Host: 172.17.45.132:8080 [22:02:46]Content-Length: 677 [22:02:46]Content-Type: application/json [22:02:46] [22:02:46]POST finish read [22:02:46]Found Content-Length = 677 [22:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:46]execute_script... [22:02:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:46]POST & json_proto [22:02:46]process_json_proto [22:02:46]json parsed OK: [22:02:46]protocol is kg_v1.0 [22:02:46]action value=close_receipt [22:02:46]process_action close_receipt [22:02:46]cmd_close_receipt [22:02:46]MH_GetDate [22:02:46]Write to MH i2c: F0 00 00 8B 0B 85 [22:02:46]Write i2c OK [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: F0 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: F0 09 00 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: F0 09 00 8B 0B 00 86 11 A8 66 E3 0B 90 66 17 [22:02:46]GetLastDocTimeStamp 1722290277 [22:02:46]current date 1722290566 [22:02:46]FM_GetShiftState [22:02:46]SAM_PROTO_GetShiftState [22:02:46]wFMCommunicate request_size=4 [22:02:46]MH_SAM_APDU [22:02:46]CAPDU: 80 13 01 00 [22:02:46]Write to MH i2c: E2 08 00 8C 0B 80 13 01 00 00 00 00 00 14 [22:02:46]Write i2c OK [22:02:46]MH_I2C_Read... [22:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:46]Read from MH i2c: E2 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 0E 00 [22:02:46]MH_I2C_Read... [22:02:46]Read from MH i2c: E2 0E 00 8C 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 0D [22:02:46]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:02:46]wFMCommunicate OK [22:02:46]SAM_PROTO_GetShiftState done [22:02:46]FM_GetShiftState done [22:02:46]opened in 1722213119 [22:02:46]opened+sec_in_day 1722299519 [22:02:46]quantity*price = 20001 [22:02:46]sum+1 = 20002 [22:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 205 29.07.2024 22:02 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2356 ФПД: 126545030808525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220246&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2356&fm=126545030808525&tin=02508201610067®Number=0000000000189667&sum=20000 [22:02:47]StoreToDocumentArchive [22:02:47]shift 15 fd 2356 [22:02:47]save to /storage/0015/doc_00002356 [22:02:47]save last doc name /storage/0015/doc_00002356 to /storage/kkm_last_doc_name [22:02:47]save OK [22:02:47]Clear old archive folders... [22:02:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:47]tlvbuf is 010DB660 [22:02:47]SAM_PROTO_ClearQueue [22:02:47]wFMCommunicate request_size=4 [22:02:47]MH_SAM_APDU [22:02:47]CAPDU: 80 09 00 00 [22:02:47]Write to MH i2c: E2 08 00 99 0B 80 09 00 00 00 00 00 00 16 [22:02:47]Write i2c OK [22:02:47]MH_I2C_Read... [22:02:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:47]Read from MH i2c: E2 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [22:02:47]RAPDU: 90 00 [22:02:47]wFMCommunicate OK [22:02:47]SAM_PROTO_ClearQueue done [22:02:47]KKMCreateOFDPacket [22:02:47]OFDProtocolAddRootSTLVToBuf [22:02:47]FM_MakeSignedData [22:02:47]FM_MakeSignedData [22:02:47]SAM_PROTO_SignData [22:02:47]wFMCommunicate request_size=4 [22:02:47]MH_SAM_APDU [22:02:47]CAPDU: 80 0D 01 02 [22:02:47]Write to MH i2c: E2 08 00 9A 0B 80 0D 01 02 00 00 00 00 1E [22:02:47]Write i2c OK [22:02:47]MH_I2C_Read... [22:02:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:47]Read from MH i2c: E2 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [22:02:47]RAPDU: 90 00 [22:02:47]wFMCommunicate OK [22:02:47]wFMCommunicate request_size=255 [22:02:47]MH_SAM_APDU [22:02:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 86 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 09 00 00 35 04 06 00 73 [22:02:47]Write to MH i2c: E2 02 01 9B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 86 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 09 00 00 35 04 06 00 73 00 00 D6 [22:02:47]Write i2c OK [22:02:47]MH_I2C_Read... [22:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:47]Read from MH i2c: E2 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [22:02:47]RAPDU: 90 00 [22:02:47]wFMCommunicate OK [22:02:47]wFMCommunicate request_size=10 [22:02:47]MH_SAM_APDU [22:02:47]CAPDU: 80 0D 02 02 05 17 8F 9C 03 CD [22:02:47]Write to MH i2c: E2 0D 00 9C 0B 80 0D 02 02 05 00 17 8F 9C 03 CD 00 00 3D [22:02:47]Write i2c OK [22:02:47]MH_I2C_Read... [22:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:47]Read from MH i2c: E2 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [22:02:47]RAPDU: 90 00 [22:02:47]wFMCommunicate OK [22:02:47]wFMCommunicate request_size=4 [22:02:47]MH_SAM_APDU [22:02:47]CAPDU: 80 0D 03 02 [22:02:47]Write to MH i2c: E2 08 00 9D 0B 80 0D 03 02 00 00 00 00 23 [22:02:47]Write i2c OK [22:02:47]MH_I2C_Read... [22:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:47]Read from MH i2c: E2 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 0B 00 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 0B 00 9D 0B 00 13 6F D4 1D 7D F9 08 CE 90 00 E3 [22:02:47]RAPDU: 13 6F D4 1D 7D F9 08 CE 90 00 [22:02:47]wFMCommunicate OK [22:02:47]SAM_PROTO_SignData done [22:02:47]FM_MakeSignedData done [22:02:47]CreateOFDProtocolMessage [22:02:47]wFMCommunicate request_size=4 [22:02:47]MH_SAM_APDU [22:02:47]CAPDU: 80 11 00 00 [22:02:47]Write to MH i2c: E2 08 00 9E 0B 80 11 00 00 00 00 00 00 23 [22:02:47]Write i2c OK [22:02:47]MH_I2C_Read... [22:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:47]Read from MH i2c: E2 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 17 00 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: E2 17 00 9E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 73 [22:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:02:47]wFMCommunicate OK [22:02:47]CreateOFDProtocolMessage done [22:02:47]OFDSenderStorePacket 2356 [22:02:47]StoreOFDPacket docnum=2356 [22:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 59 E6 07 01 D9 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 86 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 09 00 00 35 04 06 00 73 17 8F 9C 03 CD 13 6F D4 1D 7D F9 08 CE [22:02:47]CheckFolder [22:02:47]dirname=/storage/ofd_packets [22:02:47]CheckFolder done [22:02:47]ProducePacketName [22:02:47]name=ofd_packets/00002356 [22:02:47]NVStorageSaveData ofd_packets/00002356 [22:02:47]File name is /storage/ofd_packets/00002356 [22:02:47]Write 301 bytes [22:02:47]NVStorageSaveData done [22:02:47]OFDSenderStorePacket done [22:02:47]KKMCreateOFDPacket done [22:02:47]NVStorageSaveData kkm_last_timestamp [22:02:47]File name is /storage/kkm_last_timestamp [22:02:47]Write 4 bytes [22:02:47]NVStorageSaveData done [22:02:47]ExternCall_PrintAddStr [22:02:47]wPrintStart [22:02:47]Write to MH i2c: 01 00 00 9F 0B AA [22:02:47]Write i2c OK [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: 01 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: 01 07 00 [22:02:47]MH_I2C_Read... [22:02:47]Read from MH i2c: 01 07 00 9F 0B 00 00 00 00 00 FF 0F BF [22:02:47]RasterBufferAndPrint [22:02:47]line Счет N : (1)610200 [22:02:47]line ИНН: 02508201610067 [22:02:47]line Контрольно-Кассовый Чек [22:02:47]line ПРОДАЖА [22:02:47]line ТРК (МРК, ГНК) : 32 [22:02:47]line Товар: 2710124130 [22:02:47]line Аи-92-К-2 [22:02:47]line 2.950 * 67.80 [22:02:47]line = 200.01 [22:02:47]line НДС 12% НСП 1% [22:02:47]line > о реализуемом товаре [22:02:47]line ОКРУГЛЕНИЕ: -0.01 [22:02:47]line ИТОГО: 200.00 [22:02:47]line Внесено: 200.00 [22:02:47]line СДАЧА: 0.00 [22:02:47]line НСП 1% : 1.77 [22:02:47]line НДС 12% : 21.24 [22:02:47]line Наличными: 200.00 [22:02:47]line Безнал.: 0.00 [22:02:47]line Место: АЗС № 127 "Партнер Нефть" [22:02:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:02:47]line СНО: Общий режим [22:02:47]line Чек 205 29.07.2024 22:02 [22:02:47]line Смена: 15 ФФД: 1.0 [22:02:47]line ЗНМ: 0300000161 [22:02:47]line РНМ: 0000000000189667 [22:02:47]line Версия ККМ: v1.0 [22:02:47]line ФМ: 0000000002094248 [22:02:47]line ФД: 2356 [22:02:47]line ФПД: 126545030808525 [22:02:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220246&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2356&fm=126545030808525&tin=02508201610067®Number=0000000000189667&sum=20000 [22:02:48]OFD Sender: Processing packet 2356 [packets to send 1, broken 0] [22:02:48]ProducePacketName [22:02:48]name=ofd_packets/00002356 [22:02:48]OFD Sender: To server: pG, [22:02:48]CommunicateWithHost lk.salyk.kg:30040 [22:02:48]ConnectInit lk.salyk.kg [22:02:48]written 0, free lines is 4095 [22:02:48]Connected sock=10 [22:02:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 59 E6 07 01 D9 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 86 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 09 00 00 35 04 06 00 73 17 8F 9C 03 CD 13 6F D4 1D 7D F9 08 CE [22:02:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 09 54 47 00 B9 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 34 09 00 00 F4 03 04 00 F2 BC A7 66 B6 04 01 00 00 05 07 93 5D 6C E5 E3 40 [22:02:48]CommunicateWithHost err = 0 [22:02:48]CheckOFDResponse [22:02:48]1017 (14) - 77093643461234 [22:02:48]1041 (16) - 0000000002094248 [22:02:48]1040 (4) - 2356 [22:02:48]1012 (4) - 29.07.2024 16:01 [22:02:48]1206 (1) - 0 [22:02:48]OFD Sender: Remove packet 2356 [22:02:48]ProducePacketName [22:02:48]name=ofd_packets/00002356 [22:02:48]NVStorageDeleteData [22:02:48]Write to MH i2c: 01 00 00 CA 0B D5 [22:02:48]Write i2c OK [22:02:48]MH_I2C_Read... [22:02:48]Read from MH i2c: 01 [22:02:48]MH_I2C_Read... [22:02:48]Read from MH i2c: 01 07 00 [22:02:48]MH_I2C_Read... [22:02:48]Read from MH i2c: 01 07 00 CA 0B 00 00 00 00 00 EB 0C D3 [22:02:48]RasterBufferAndPrint [22:02:48]line [22:02:48]line [22:02:48]line [22:02:48]line [22:02:48]line [22:02:48]written 0, free lines is 3313 [22:02:48]MH_Cut [22:02:48]Write to MH i2c: D1 01 00 D1 0B 01 AE [22:02:48]Write i2c OK [22:02:48]MH_I2C_Read... [22:02:48]Read from MH i2c: D1 [22:02:48]MH_I2C_Read... [22:02:48]Read from MH i2c: D1 01 00 [22:02:48]MH_I2C_Read... [22:02:48]Read from MH i2c: D1 01 00 D1 0B 00 AD [22:02:48]Write to MH i2c: 01 00 00 D2 0B DD [22:02:48]Write i2c OK [22:02:48]MH_I2C_Read... [22:02:49]OFD Sender: No OFD packet to send [22:02:49]*** Cut start [22:02:49]*** Partial cut [22:02:49]*** CUTSNS_PIN = 1 [22:02:49]*** CUTSNS_PIN = 0 [22:02:49]*** Brake cut motor [22:02:50]Read from MH i2c: 01 [22:02:50]MH_I2C_Read... [22:02:50]*** Stop cut motor [22:02:50]*** Cut end [22:02:50]Read from MH i2c: 01 07 00 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: 01 07 00 D2 0B 00 00 00 00 00 FF 0F F2 [22:02:50]process_action close_receipt done [22:02:50]requested_data is exist [22:02:50]produce_requested_data [22:02:50]requested_item fm.sn is exist - process it [22:02:50]wFMCommunicate request_size=4 [22:02:50]MH_SAM_APDU [22:02:50]CAPDU: 80 11 00 00 [22:02:50]Write to MH i2c: E2 08 00 D3 0B 80 11 00 00 00 00 00 00 58 [22:02:50]Write i2c OK [22:02:50]MH_I2C_Read... [22:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:50]Read from MH i2c: E2 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 17 00 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 17 00 D3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A8 [22:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:02:50]wFMCommunicate OK [22:02:50]requested_item fd.num is exist - process it [22:02:50]SAM_PROTO_GetFieldsCounters [22:02:50]wFMCommunicate request_size=4 [22:02:50]MH_SAM_APDU [22:02:50]CAPDU: 80 13 00 00 [22:02:50]Write to MH i2c: E2 08 00 D4 0B 80 13 00 00 00 00 00 00 5B [22:02:50]Write i2c OK [22:02:50]MH_I2C_Read... [22:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:50]Read from MH i2c: E2 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 62 00 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 62 00 D4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 34 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [22:02:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 34 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:50]wFMCommunicate OK [22:02:50]SAM_PROTO_GetFieldsCounters done [22:02:50]requested_item shift.num is exist - process it [22:02:50]requested_item shift.opened is exist - process it [22:02:50]req_shift_opened [22:02:50]FM_GetShiftState [22:02:50]SAM_PROTO_GetShiftState [22:02:50]wFMCommunicate request_size=4 [22:02:50]MH_SAM_APDU [22:02:50]CAPDU: 80 13 01 00 [22:02:50]Write to MH i2c: E2 08 00 D5 0B 80 13 01 00 00 00 00 00 5D [22:02:50]Write i2c OK [22:02:50]MH_I2C_Read... [22:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:50]Read from MH i2c: E2 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 0E 00 [22:02:50]MH_I2C_Read... [22:02:50]Read from MH i2c: E2 0E 00 D5 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 56 [22:02:50]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:02:50]wFMCommunicate OK [22:02:50]SAM_PROTO_GetShiftState done [22:02:50]FM_GetShiftState done [22:02:50]req_shift_opened done [22:02:50]requested_item shift.open_date is exist - process it [22:02:50]req_shift_open_date [22:02:50]req_shift_open_date done [22:02:50]produce_requested_data done [22:02:50]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2356,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:02:50]process_action_free close_receipt [22:02:50]json_value_free [22:02:50]json_value_free done [22:02:50]process_json_proto returns [22:02:50]Send response to host [22:02:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2356,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:02:50]free response buf [22:02:50]execute_script done [22:02:50]execute_script returns [22:02:50]free content buf [22:02:50]Sock 7.Close socket [22:02:50]Sock 7.Thread stoped [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:21]accept exits with 9 [22:04:21]New connection [22:04:21]New thread 3067420004 created [22:04:21]Thread 3067276644 joined [22:04:21]Waiting for new connection... [22:04:21] Sock 9.Parse request [22:04:21]Sock 9.Check first char [22:04:21]Sock 9.First char is OK [22:04:21]request: POST /json_proto HTTP/1.0 [22:04:21]Method: POST [22:04:21]URL: /json_proto [22:04:21]Method is POST - this is cgi request [22:04:21]url: /json_proto [22:04:21]query_string will be loaded in cgi processing [22:04:21]execute_cgi json_proto POST (null) [22:04:21]execute_cgi path=json_proto method=POST [22:04:21]POST find Content-Length [22:04:21]Host: 172.17.45.132:8080 [22:04:21]Content-Length: 677 [22:04:21]Content-Type: application/json [22:04:21] [22:04:21]POST finish read [22:04:21]Found Content-Length = 677 [22:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:21]execute_script... [22:04: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)610202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:21]POST & json_proto [22:04:21]process_json_proto [22:04:21]json parsed OK: [22:04:21]protocol is kg_v1.0 [22:04:21]action value=close_receipt [22:04:21]process_action close_receipt [22:04:21]cmd_close_receipt [22:04:21]MH_GetDate [22:04:21]Write to MH i2c: F0 00 00 D6 0B D0 [22:04:21]Write i2c OK [22:04:21]MH_I2C_Read... [22:04:21]Read from MH i2c: F0 [22:04:21]MH_I2C_Read... [22:04:21]Read from MH i2c: F0 09 00 [22:04:21]MH_I2C_Read... [22:04:21]Read from MH i2c: F0 09 00 D6 0B 00 E6 11 A8 66 E3 0B 90 66 C2 [22:04:21]GetLastDocTimeStamp 1722290566 [22:04:21]current date 1722290662 [22:04:21]FM_GetShiftState [22:04:21]SAM_PROTO_GetShiftState [22:04:21]wFMCommunicate request_size=4 [22:04:21]MH_SAM_APDU [22:04:21]CAPDU: 80 13 01 00 [22:04:21]Write to MH i2c: E2 08 00 D7 0B 80 13 01 00 00 00 00 00 5F [22:04:21]Write i2c OK [22:04:21]MH_I2C_Read... [22:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:21]Read from MH i2c: E2 [22:04:21]MH_I2C_Read... [22:04:21]Read from MH i2c: E2 0E 00 [22:04:21]MH_I2C_Read... [22:04:21]Read from MH i2c: E2 0E 00 D7 0B 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 58 [22:04:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:04:21]wFMCommunicate OK [22:04:21]SAM_PROTO_GetShiftState done [22:04:21]FM_GetShiftState done [22:04:21]opened in 1722213119 [22:04:21]opened+sec_in_day 1722299519 [22:04:21]quantity*price = 20001 [22:04:21]sum+1 = 20002 [22:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 206 29.07.2024 22:04 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2357 ФПД: 256176482367050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220422&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2357&fm=256176482367050&tin=02508201610067®Number=0000000000189667&sum=20000 [22:04:22]StoreToDocumentArchive [22:04:22]shift 15 fd 2357 [22:04:22]save to /storage/0015/doc_00002357 [22:04:22]save last doc name /storage/0015/doc_00002357 to /storage/kkm_last_doc_name [22:04:22]save OK [22:04:22]Clear old archive folders... [22:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:22]tlvbuf is 010DC900 [22:04:22]SAM_PROTO_ClearQueue [22:04:22]wFMCommunicate request_size=4 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 09 00 00 [22:04:22]Write to MH i2c: E2 08 00 E4 0B 80 09 00 00 00 00 00 00 61 [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [22:04:22]RAPDU: 90 00 [22:04:22]wFMCommunicate OK [22:04:22]SAM_PROTO_ClearQueue done [22:04:22]KKMCreateOFDPacket [22:04:22]OFDProtocolAddRootSTLVToBuf [22:04:22]FM_MakeSignedData [22:04:22]FM_MakeSignedData [22:04:22]SAM_PROTO_SignData [22:04:22]wFMCommunicate request_size=4 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 0D 01 02 [22:04:22]Write to MH i2c: E2 08 00 E5 0B 80 0D 01 02 00 00 00 00 69 [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [22:04:22]RAPDU: 90 00 [22:04:22]wFMCommunicate OK [22:04:22]wFMCommunicate request_size=255 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 09 00 00 35 04 06 00 E8 [22:04:22]Write to MH i2c: E2 02 01 E6 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 09 00 00 35 04 06 00 E8 00 00 F8 [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [22:04:22]RAPDU: 90 00 [22:04:22]wFMCommunicate OK [22:04:22]wFMCommunicate request_size=10 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 0D 02 02 05 FD BC 3B 36 4A [22:04:22]Write to MH i2c: E2 0D 00 E7 0B 80 0D 02 02 05 00 FD BC 3B 36 4A 00 00 EA [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [22:04:22]RAPDU: 90 00 [22:04:22]wFMCommunicate OK [22:04:22]wFMCommunicate request_size=4 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 0D 03 02 [22:04:22]Write to MH i2c: E2 08 00 E8 0B 80 0D 03 02 00 00 00 00 6E [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:22]Read from MH i2c: E2 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 0B 00 [22:04:22]MH_I2C_Read... [22:04:22]Read from MH i2c: E2 0B 00 E8 0B 00 26 90 AB 61 CF 26 D2 6E 90 00 66 [22:04:22]RAPDU: 26 90 AB 61 CF 26 D2 6E 90 00 [22:04:22]wFMCommunicate OK [22:04:22]SAM_PROTO_SignData done [22:04:22]FM_MakeSignedData done [22:04:22]CreateOFDProtocolMessage [22:04:22]wFMCommunicate request_size=4 [22:04:22]MH_SAM_APDU [22:04:22]CAPDU: 80 11 00 00 [22:04:22]Write to MH i2c: E2 08 00 E9 0B 80 11 00 00 00 00 00 00 6E [22:04:22]Write i2c OK [22:04:22]MH_I2C_Read... [22:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:23]Read from MH i2c: E2 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: E2 17 00 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: E2 17 00 E9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 BE [22:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:04:23]wFMCommunicate OK [22:04:23]CreateOFDProtocolMessage done [22:04:23]OFDSenderStorePacket 2357 [22:04:23]StoreOFDPacket docnum=2357 [22:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 93 76 07 01 85 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 09 00 00 35 04 06 00 E8 FD BC 3B 36 4A 26 90 AB 61 CF 26 D2 6E [22:04:23]CheckFolder [22:04:23]dirname=/storage/ofd_packets [22:04:23]CheckFolder done [22:04:23]ProducePacketName [22:04:23]name=ofd_packets/00002357 [22:04:23]NVStorageSaveData ofd_packets/00002357 [22:04:23]File name is /storage/ofd_packets/00002357 [22:04:23]Write 301 bytes [22:04:23]NVStorageSaveData done [22:04:23]OFDSenderStorePacket done [22:04:23]KKMCreateOFDPacket done [22:04:23]NVStorageSaveData kkm_last_timestamp [22:04:23]File name is /storage/kkm_last_timestamp [22:04:23]Write 4 bytes [22:04:23]NVStorageSaveData done [22:04:23]ExternCall_PrintAddStr [22:04:23]wPrintStart [22:04:23]Write to MH i2c: 01 00 00 EA 0B F5 [22:04:23]Write i2c OK [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: 01 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: 01 07 00 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: 01 07 00 EA 0B 00 00 00 00 00 FF 0F 0A [22:04:23]RasterBufferAndPrint [22:04:23]line Счет N : (1)610202 [22:04:23]line ИНН: 02508201610067 [22:04:23]line Контрольно-Кассовый Чек [22:04:23]line ПРОДАЖА [22:04:23]line ТРК (МРК, ГНК) : 42 [22:04:23]line Товар: 2710124130 [22:04:23]line Аи-92-К-2 [22:04:23]line 2.950 * 67.80 [22:04:23]line = 200.01 [22:04:23]line НДС 12% НСП 1% [22:04:23]line > о реализуемом товаре [22:04:23]line ОКРУГЛЕНИЕ: -0.01 [22:04:23]line ИТОГО: 200.00 [22:04:23]line Внесено: 200.00 [22:04:23]line СДАЧА: 0.00 [22:04:23]line НСП 1% : 1.77 [22:04:23]line НДС 12% : 21.24 [22:04:23]line Наличными: 200.00 [22:04:23]line Безнал.: 0.00 [22:04:23]line Место: АЗС № 127 "Партнер Нефть" [22:04:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:04:23]line СНО: Общий режим [22:04:23]line Чек 206 29.07.2024 22:04 [22:04:23]line Смена: 15 ФФД: 1.0 [22:04:23]line ЗНМ: 0300000161 [22:04:23]line РНМ: 0000000000189667 [22:04:23]line Версия ККМ: v1.0 [22:04:23]line ФМ: 0000000002094248 [22:04:23]line ФД: 2357 [22:04:23]line ФПД: 256176482367050 [22:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220422&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2357&fm=256176482367050&tin=02508201610067®Number=0000000000189667&sum=20000 [22:04:23]OFD Sender: Processing packet 2357 [packets to send 1, broken 0] [22:04:23]ProducePacketName [22:04:23]name=ofd_packets/00002357 [22:04:23]OFD Sender: To server: pG, [22:04:23]CommunicateWithHost lk.salyk.kg:30040 [22:04:23]ConnectInit lk.salyk.kg [22:04:23]written 0, free lines is 4095 [22:04:23]Connected sock=10 [22:04:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 93 76 07 01 85 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E6 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 35 09 00 00 35 04 06 00 E8 FD BC 3B 36 4A 26 90 AB 61 CF 26 D2 6E [22:04:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 74 3B 47 00 53 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 32 30 39 34 32 34 38 10 04 04 00 35 09 00 00 F4 03 04 00 51 BD A7 66 B6 04 01 00 00 32 3B EF 07 C1 C8 0B C3 [22:04:23]CommunicateWithHost err = 0 [22:04:23]CheckOFDResponse [22:04:23]1017 (14) - 77093643461234 [22:04:23]1041 (16) - 0000000002094248 [22:04:23]1040 (4) - 2357 [22:04:23]1012 (4) - 29.07.2024 16:03 [22:04:23]1206 (1) - 0 [22:04:23]OFD Sender: Remove packet 2357 [22:04:23]ProducePacketName [22:04:23]name=ofd_packets/00002357 [22:04:23]NVStorageDeleteData [22:04:23]Write to MH i2c: 01 00 00 15 0C 21 [22:04:23]Write i2c OK [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: 01 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: 01 07 00 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 EC 0C 20 [22:04:23]RasterBufferAndPrint [22:04:23]line [22:04:23]line [22:04:23]line [22:04:23]line [22:04:23]line [22:04:23]written 0, free lines is 3314 [22:04:23]MH_Cut [22:04:23]Write to MH i2c: D1 01 00 1C 0C 01 FA [22:04:23]Write i2c OK [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: D1 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: D1 01 00 [22:04:23]MH_I2C_Read... [22:04:23]Read from MH i2c: D1 01 00 1C 0C 00 F9 [22:04:23]Write to MH i2c: 01 00 00 1D 0C 29 [22:04:23]Write i2c OK [22:04:23]MH_I2C_Read... [22:04:24]OFD Sender: No OFD packet to send [22:04:24]*** Cut start [22:04:24]*** Partial cut [22:04:24]*** CUTSNS_PIN = 1 [22:04:24]*** CUTSNS_PIN = 0 [22:04:24]*** Brake cut motor [22:04:25]Read from MH i2c: 01 [22:04:25]MH_I2C_Read... [22:04:25]*** Stop cut motor [22:04:25]*** Cut end [22:04:25]Read from MH i2c: 01 07 00 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: 01 07 00 1D 0C 00 00 00 00 00 FF 0F 3E [22:04:25]process_action close_receipt done [22:04:25]requested_data is exist [22:04:25]produce_requested_data [22:04:25]requested_item fm.sn is exist - process it [22:04:25]wFMCommunicate request_size=4 [22:04:25]MH_SAM_APDU [22:04:25]CAPDU: 80 11 00 00 [22:04:25]Write to MH i2c: E2 08 00 1E 0C 80 11 00 00 00 00 00 00 A4 [22:04:25]Write i2c OK [22:04:25]MH_I2C_Read... [22:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:25]Read from MH i2c: E2 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 17 00 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 17 00 1E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F4 [22:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:04:25]wFMCommunicate OK [22:04:25]requested_item fd.num is exist - process it [22:04:25]SAM_PROTO_GetFieldsCounters [22:04:25]wFMCommunicate request_size=4 [22:04:25]MH_SAM_APDU [22:04:25]CAPDU: 80 13 00 00 [22:04:25]Write to MH i2c: E2 08 00 1F 0C 80 13 00 00 00 00 00 00 A7 [22:04:25]Write i2c OK [22:04:25]MH_I2C_Read... [22:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:25]Read from MH i2c: E2 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 62 00 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 62 00 1F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:04:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 35 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:25]wFMCommunicate OK [22:04:25]SAM_PROTO_GetFieldsCounters done [22:04:25]requested_item shift.num is exist - process it [22:04:25]requested_item shift.opened is exist - process it [22:04:25]req_shift_opened [22:04:25]FM_GetShiftState [22:04:25]SAM_PROTO_GetShiftState [22:04:25]wFMCommunicate request_size=4 [22:04:25]MH_SAM_APDU [22:04:25]CAPDU: 80 13 01 00 [22:04:25]Write to MH i2c: E2 08 00 20 0C 80 13 01 00 00 00 00 00 A9 [22:04:25]Write i2c OK [22:04:25]MH_I2C_Read... [22:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:25]Read from MH i2c: E2 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 0E 00 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 0E 00 20 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A2 [22:04:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:04:25]wFMCommunicate OK [22:04:25]SAM_PROTO_GetShiftState done [22:04:25]FM_GetShiftState done [22:04:25]req_shift_opened done [22:04:25]requested_item shift.open_date is exist - process it [22:04:25]req_shift_open_date [22:04:25]req_shift_open_date done [22:04:25]produce_requested_data done [22:04:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2357,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:04:25]process_action_free close_receipt [22:04:25]json_value_free [22:04:25]json_value_free done [22:04:25]process_json_proto returns [22:04:25]Send response to host [22:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2357,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:04:25]free response buf [22:04:25]execute_script done [22:04:25]execute_script returns [22:04:25]free content buf [22:04:25]Sock 9.Close socket [22:04:25]Sock 9.Thread stoped [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:41]accept exits with 7 [22:04:41]New connection [22:04:41]New thread 3067276644 created [22:04:41]Thread 3067420004 joined [22:04:41]Waiting for new connection... [22:04:41] Sock 7.Parse request [22:04:41]Sock 7.Check first char [22:04:41]Sock 7.First char is OK [22:04:41]request: POST /json_proto HTTP/1.0 [22:04:41]Method: POST [22:04:41]URL: /json_proto [22:04:41]Method is POST - this is cgi request [22:04:41]url: /json_proto [22:04:41]query_string will be loaded in cgi processing [22:04:41]execute_cgi json_proto POST (null) [22:04:41]execute_cgi path=json_proto method=POST [22:04:41]POST find Content-Length [22:04:41]Host: 172.17.45.132:8080 [22:04:41]Content-Length: 800 [22:04:41]Content-Type: application/json [22:04:41] [22:04:41]POST finish read [22:04:41]Found Content-Length = 800 [22:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:41]execute_script... [22:04:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:41]POST & json_proto [22:04:41]process_json_proto [22:04:41]json parsed OK: [22:04:41]protocol is kg_v1.0 [22:04:41]action value=close_receipt [22:04:41]process_action close_receipt [22:04:41]cmd_close_receipt [22:04:41]MH_GetDate [22:04:41]Write to MH i2c: F0 00 00 21 0C 1C [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: F0 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: F0 09 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: F0 09 00 21 0C 00 FA 11 A8 66 E3 0B 90 66 22 [22:04:41]GetLastDocTimeStamp 1722290662 [22:04:41]current date 1722290682 [22:04:41]FM_GetShiftState [22:04:41]SAM_PROTO_GetShiftState [22:04:41]wFMCommunicate request_size=4 [22:04:41]MH_SAM_APDU [22:04:41]CAPDU: 80 13 01 00 [22:04:41]Write to MH i2c: E2 08 00 22 0C 80 13 01 00 00 00 00 00 AB [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:41]Read from MH i2c: E2 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 0E 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: E2 0E 00 22 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A4 [22:04:41]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:04:41]wFMCommunicate OK [22:04:41]SAM_PROTO_GetShiftState done [22:04:41]FM_GetShiftState done [22:04:41]opened in 1722213119 [22:04:41]opened+sec_in_day 1722299519 [22:04:41]quantity*price = 50036 [22:04:41]sum+1 = 50037 [22:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 207 29.07.2024 22:04 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2358 ФПД: 206746258776848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220442&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2358&fm=206746258776848&tin=02508201610067®Number=0000000000189667&sum=50036 [22:04:42]StoreToDocumentArchive [22:04:42]shift 15 fd 2358 [22:04:42]save to /storage/0015/doc_00002358 [22:04:42]save last doc name /storage/0015/doc_00002358 to /storage/kkm_last_doc_name [22:04:42]save OK [22:04:42]Clear old archive folders... [22:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:42]tlvbuf is 0112BB00 [22:04:42]SAM_PROTO_ClearQueue [22:04:42]wFMCommunicate request_size=4 [22:04:42]MH_SAM_APDU [22:04:42]CAPDU: 80 09 00 00 [22:04:42]Write to MH i2c: E2 08 00 2F 0C 80 09 00 00 00 00 00 00 AD [22:04:42]Write i2c OK [22:04:42]MH_I2C_Read... [22:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:42]Read from MH i2c: E2 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: E2 03 00 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [22:04:42]RAPDU: 90 00 [22:04:42]wFMCommunicate OK [22:04:42]SAM_PROTO_ClearQueue done [22:04:42]KKMCreateOFDPacket [22:04:42]OFDProtocolAddRootSTLVToBuf [22:04:42]FM_MakeSignedData [22:04:42]FM_MakeSignedData [22:04:42]SAM_PROTO_SignData [22:04:42]wFMCommunicate request_size=4 [22:04:42]MH_SAM_APDU [22:04:42]CAPDU: 80 0D 01 02 [22:04:42]Write to MH i2c: E2 08 00 30 0C 80 0D 01 02 00 00 00 00 B5 [22:04:42]Write i2c OK [22:04:42]MH_I2C_Read... [22:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:42]Read from MH i2c: E2 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: E2 03 00 [22:04:42]MH_I2C_Read... [22:04:42]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [22:04:42]RAPDU: 90 00 [22:04:42]wFMCommunicate OK [22:04:42]wFMCommunicate request_size=255 [22:04:42]MH_SAM_APDU [22:04:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 FA 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 09 00 00 35 04 06 00 BC [22:04:42]Write to MH i2c: E2 02 01 31 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 FA 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 09 00 00 35 04 06 00 BC 00 00 74 [22:04:42]Write i2c OK [22:04:42]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 03 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [22:04:43]RAPDU: 90 00 [22:04:43]wFMCommunicate OK [22:04:43]wFMCommunicate request_size=10 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 0D 02 02 05 08 DD 50 23 10 [22:04:43]Write to MH i2c: E2 0D 00 32 0C 80 0D 02 02 05 00 08 DD 50 23 10 00 00 2A [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 03 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [22:04:43]RAPDU: 90 00 [22:04:43]wFMCommunicate OK [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 0D 03 02 [22:04:43]Write to MH i2c: E2 08 00 33 0C 80 0D 03 02 00 00 00 00 BA [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 0B 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 0B 00 33 0C 00 9F A0 BF 99 9E 05 57 DC 90 00 28 [22:04:43]RAPDU: 9F A0 BF 99 9E 05 57 DC 90 00 [22:04:43]wFMCommunicate OK [22:04:43]SAM_PROTO_SignData done [22:04:43]FM_MakeSignedData done [22:04:43]CreateOFDProtocolMessage [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 11 00 00 [22:04:43]Write to MH i2c: E2 08 00 34 0C 80 11 00 00 00 00 00 00 BA [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 17 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 17 00 34 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0A [22:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:04:43]wFMCommunicate OK [22:04:43]CreateOFDProtocolMessage done [22:04:43]OFDSenderStorePacket 2358 [22:04:43]StoreOFDPacket docnum=2358 [22:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 51 F0 07 01 FC 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 FA 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 09 00 00 35 04 06 00 BC 08 DD 50 23 10 9F A0 BF 99 9E 05 57 DC [22:04:43]CheckFolder [22:04:43]dirname=/storage/ofd_packets [22:04:43]CheckFolder done [22:04:43]ProducePacketName [22:04:43]name=ofd_packets/00002358 [22:04:43]NVStorageSaveData ofd_packets/00002358 [22:04:43]File name is /storage/ofd_packets/00002358 [22:04:43]Write 301 bytes [22:04:43]NVStorageSaveData done [22:04:43]OFDSenderStorePacket done [22:04:43]KKMCreateOFDPacket done [22:04:43]NVStorageSaveData kkm_last_timestamp [22:04:43]File name is /storage/kkm_last_timestamp [22:04:43]Write 4 bytes [22:04:43]NVStorageSaveData done [22:04:43]ExternCall_PrintAddStr [22:04:43]wPrintStart [22:04:43]Write to MH i2c: 01 00 00 35 0C 41 [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: 01 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: 01 07 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 FF 0F 56 [22:04:43]RasterBufferAndPrint [22:04:43]line Счет N : (1)610203 [22:04:43]line ИНН: 02508201610067 [22:04:43]line Контрольно-Кассовый Чек [22:04:43]line ПРОДАЖА [22:04:43]line ТРК (МРК, ГНК) : 52 [22:04:43]line Товар: 2710124130 [22:04:43]line Аи-92-К-2 [22:04:43]line 7.380 * 67.80 [22:04:43]line = 500.36 [22:04:43]line НДС 12% НСП 1% [22:04:43]line > о реализуемом товаре [22:04:43]line ИТОГО: 500.36 [22:04:43]line НСП 1% : 4.43 [22:04:43]line НДС 12% : 53.14 [22:04:43]line Наличными: 0.00 [22:04:43]line Безнал.: 500.36 [22:04:43]line Место: АЗС № 127 "Партнер Нефть" [22:04:43]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:04:43]line СНО: Общий режим [22:04:43]line Чек 207 29.07.2024 22:04 [22:04:43]line Смена: 15 ФФД: 1.0 [22:04:43]line ЗНМ: 0300000161 [22:04:43]line РНМ: 0000000000189667 [22:04:43]line Версия ККМ: v1.0 [22:04:43]line Платежная система: O! деньги [22:04:43]line ФМ: 0000000002094248 [22:04:43]line ФД: 2358 [22:04:43]line ФПД: 206746258776848 [22:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220442&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2358&fm=206746258776848&tin=02508201610067®Number=0000000000189667&sum=50036 [22:04:43]OFD Sender: Processing packet 2358 [packets to send 1, broken 0] [22:04:43]ProducePacketName [22:04:43]name=ofd_packets/00002358 [22:04:43]OFD Sender: To server: pG, [22:04:43]CommunicateWithHost lk.salyk.kg:30040 [22:04:43]ConnectInit lk.salyk.kg [22:04:43]written 0, free lines is 4095 [22:04:43]Connected sock=10 [22:04:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 51 F0 07 01 FC 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 FA 11 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 09 00 00 35 04 06 00 BC 08 DD 50 23 10 9F A0 BF 99 9E 05 57 DC [22:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4D 97 47 00 20 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 36 09 00 00 F4 03 04 00 65 BD A7 66 B6 04 01 00 00 FA 59 8D 44 14 00 B3 C3 [22:04:44]CommunicateWithHost err = 0 [22:04:44]CheckOFDResponse [22:04:44]1017 (14) - 77093643461234 [22:04:44]1041 (16) - 0000000002094248 [22:04:44]1040 (4) - 2358 [22:04:44]1012 (4) - 29.07.2024 16:03 [22:04:44]1206 (1) - 0 [22:04:44]OFD Sender: Remove packet 2358 [22:04:44]ProducePacketName [22:04:44]name=ofd_packets/00002358 [22:04:44]NVStorageDeleteData [22:04:44]Write to MH i2c: 01 00 00 5F 0C 6B [22:04:44]Write i2c OK [22:04:44]MH_I2C_Read... [22:04:44]Read from MH i2c: 01 [22:04:44]MH_I2C_Read... [22:04:44]Read from MH i2c: 01 07 00 [22:04:44]MH_I2C_Read... [22:04:44]Read from MH i2c: 01 07 00 5F 0C 00 00 00 00 00 FF 0C 7D [22:04:44]RasterBufferAndPrint [22:04:44]line [22:04:44]line [22:04:44]line [22:04:44]line [22:04:44]line [22:04:44]written 0, free lines is 3333 [22:04:44]MH_Cut [22:04:44]Write to MH i2c: D1 01 00 66 0C 01 44 [22:04:44]Write i2c OK [22:04:44]MH_I2C_Read... [22:04:44]Read from MH i2c: D1 [22:04:44]MH_I2C_Read... [22:04:44]Read from MH i2c: D1 01 00 [22:04:44]MH_I2C_Read... [22:04:44]Read from MH i2c: D1 01 00 66 0C 00 43 [22:04:44]Write to MH i2c: 01 00 00 67 0C 73 [22:04:44]Write i2c OK [22:04:44]MH_I2C_Read... [22:04:44]OFD Sender: No OFD packet to send [22:04:44]*** Cut start [22:04:44]*** Partial cut [22:04:44]*** CUTSNS_PIN = 1 [22:04:44]*** CUTSNS_PIN = 0 [22:04:45]*** Brake cut motor [22:04:45]Read from MH i2c: 01 [22:04:45]MH_I2C_Read... [22:04:45]*** Stop cut motor [22:04:45]*** Cut end [22:04:45]Read from MH i2c: 01 07 00 [22:04:45]MH_I2C_Read... [22:04:45]Read from MH i2c: 01 07 00 67 0C 00 00 00 00 00 FF 0F 88 [22:04:45]process_action close_receipt done [22:04:45]requested_data is exist [22:04:45]produce_requested_data [22:04:45]requested_item fm.sn is exist - process it [22:04:45]wFMCommunicate request_size=4 [22:04:45]MH_SAM_APDU [22:04:45]CAPDU: 80 11 00 00 [22:04:45]Write to MH i2c: E2 08 00 68 0C 80 11 00 00 00 00 00 00 EE [22:04:45]Write i2c OK [22:04:45]MH_I2C_Read... [22:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:45]Read from MH i2c: E2 [22:04:45]MH_I2C_Read... [22:04:45]Read from MH i2c: E2 17 00 [22:04:45]MH_I2C_Read... [22:04:45]Read from MH i2c: E2 17 00 68 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [22:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:04:45]wFMCommunicate OK [22:04:45]requested_item fd.num is exist - process it [22:04:45]SAM_PROTO_GetFieldsCounters [22:04:45]wFMCommunicate request_size=4 [22:04:45]MH_SAM_APDU [22:04:45]CAPDU: 80 13 00 00 [22:04:45]Write to MH i2c: E2 08 00 69 0C 80 13 00 00 00 00 00 00 F1 [22:04:45]Write i2c OK [22:04:45]MH_I2C_Read... [22:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:45]Read from MH i2c: E2 [22:04:45]MH_I2C_Read... [22:04:45]Read from MH i2c: E2 62 00 [22:04:45]MH_I2C_Read... [22:04:45]Read from MH i2c: E2 62 00 69 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 36 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [22:04:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 36 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:45]wFMCommunicate OK [22:04:45]SAM_PROTO_GetFieldsCounters done [22:04:45]requested_item shift.num is exist - process it [22:04:45]requested_item shift.opened is exist - process it [22:04:45]req_shift_opened [22:04:45]FM_GetShiftState [22:04:45]SAM_PROTO_GetShiftState [22:04:45]wFMCommunicate request_size=4 [22:04:45]MH_SAM_APDU [22:04:45]CAPDU: 80 13 01 00 [22:04:45]Write to MH i2c: E2 08 00 6A 0C 80 13 01 00 00 00 00 00 F3 [22:04:45]Write i2c OK [22:04:45]MH_I2C_Read... [22:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:45]Read from MH i2c: E2 [22:04:45]MH_I2C_Read... [22:04:45]Read from MH i2c: E2 0E 00 [22:04:45]MH_I2C_Read... [22:04:45]Read from MH i2c: E2 0E 00 6A 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EC [22:04:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:04:45]wFMCommunicate OK [22:04:45]SAM_PROTO_GetShiftState done [22:04:45]FM_GetShiftState done [22:04:45]req_shift_opened done [22:04:45]requested_item shift.open_date is exist - process it [22:04:45]req_shift_open_date [22:04:45]req_shift_open_date done [22:04:45]produce_requested_data done [22:04:45]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2358,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:04:45]process_action_free close_receipt [22:04:45]json_value_free [22:04:45]json_value_free done [22:04:45]process_json_proto returns [22:04:45]Send response to host [22:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2358,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:04:45]free response buf [22:04:45]execute_script done [22:04:45]execute_script returns [22:04:45]free content buf [22:04:45]Sock 7.Close socket [22:04:45]Sock 7.Thread stoped [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:05]accept exits with 9 [22:06:05]New connection [22:06:05]New thread 3067420004 created [22:06:05]Thread 3067276644 joined [22:06:05]Waiting for new connection... [22:06:05] Sock 9.Parse request [22:06:05]Sock 9.Check first char [22:06:05]Sock 9.First char is OK [22:06:05]request: POST /json_proto HTTP/1.0 [22:06:05]Method: POST [22:06:05]URL: /json_proto [22:06:05]Method is POST - this is cgi request [22:06:05]url: /json_proto [22:06:05]query_string will be loaded in cgi processing [22:06:05]execute_cgi json_proto POST (null) [22:06:05]execute_cgi path=json_proto method=POST [22:06:05]POST find Content-Length [22:06:05]Host: 172.17.45.132:8080 [22:06:05]Content-Length: 677 [22:06:05]Content-Type: application/json [22:06:05] [22:06:05]POST finish read [22:06:05]Found Content-Length = 677 [22:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:05]execute_script... [22:06:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:05]POST & json_proto [22:06:05]process_json_proto [22:06:05]json parsed OK: [22:06:05]protocol is kg_v1.0 [22:06:05]action value=close_receipt [22:06:05]process_action close_receipt [22:06:05]cmd_close_receipt [22:06:05]MH_GetDate [22:06:05]Write to MH i2c: F0 00 00 6B 0C 66 [22:06:05]Write i2c OK [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: F0 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: F0 09 00 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: F0 09 00 6B 0C 00 4E 12 A8 66 E3 0B 90 66 C1 [22:06:05]GetLastDocTimeStamp 1722290682 [22:06:05]current date 1722290766 [22:06:05]FM_GetShiftState [22:06:05]SAM_PROTO_GetShiftState [22:06:05]wFMCommunicate request_size=4 [22:06:05]MH_SAM_APDU [22:06:05]CAPDU: 80 13 01 00 [22:06:05]Write to MH i2c: E2 08 00 6C 0C 80 13 01 00 00 00 00 00 F5 [22:06:05]Write i2c OK [22:06:05]MH_I2C_Read... [22:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:05]Read from MH i2c: E2 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 0E 00 [22:06:05]MH_I2C_Read... [22:06:05]Read from MH i2c: E2 0E 00 6C 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EE [22:06:05]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:06:05]wFMCommunicate OK [22:06:05]SAM_PROTO_GetShiftState done [22:06:05]FM_GetShiftState done [22:06:05]opened in 1722213119 [22:06:05]opened+sec_in_day 1722299519 [22:06:05]quantity*price = 55053 [22:06:05]sum+1 = 55055 [22:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 208 29.07.2024 22:06 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2359 ФПД: 129161574002154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220606&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2359&fm=129161574002154&tin=02508201610067®Number=0000000000189667&sum=55000 [22:06:06]StoreToDocumentArchive [22:06:06]shift 15 fd 2359 [22:06:06]save to /storage/0015/doc_00002359 [22:06:06]save last doc name /storage/0015/doc_00002359 to /storage/kkm_last_doc_name [22:06:06]save OK [22:06:06]Clear old archive folders... [22:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:06]tlvbuf is 0112BB00 [22:06:06]SAM_PROTO_ClearQueue [22:06:06]wFMCommunicate request_size=4 [22:06:06]MH_SAM_APDU [22:06:06]CAPDU: 80 09 00 00 [22:06:06]Write to MH i2c: E2 08 00 79 0C 80 09 00 00 00 00 00 00 F7 [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:06]Read from MH i2c: E2 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [22:06:06]RAPDU: 90 00 [22:06:06]wFMCommunicate OK [22:06:06]SAM_PROTO_ClearQueue done [22:06:06]KKMCreateOFDPacket [22:06:06]OFDProtocolAddRootSTLVToBuf [22:06:06]FM_MakeSignedData [22:06:06]FM_MakeSignedData [22:06:06]SAM_PROTO_SignData [22:06:06]wFMCommunicate request_size=4 [22:06:06]MH_SAM_APDU [22:06:06]CAPDU: 80 0D 01 02 [22:06:06]Write to MH i2c: E2 08 00 7A 0C 80 0D 01 02 00 00 00 00 FF [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:06]Read from MH i2c: E2 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [22:06:06]RAPDU: 90 00 [22:06:06]wFMCommunicate OK [22:06:06]wFMCommunicate request_size=255 [22:06:06]MH_SAM_APDU [22:06:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4E 12 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 09 00 00 35 04 06 00 75 [22:06:06]Write to MH i2c: E2 02 01 7B 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4E 12 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 09 00 00 35 04 06 00 75 00 00 93 [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [22:06:07]RAPDU: 90 00 [22:06:07]wFMCommunicate OK [22:06:07]wFMCommunicate request_size=10 [22:06:07]MH_SAM_APDU [22:06:07]CAPDU: 80 0D 02 02 05 78 C5 BC AD EA [22:06:07]Write to MH i2c: E2 0D 00 7C 0C 80 0D 02 02 05 00 78 C5 BC AD EA 00 00 9C [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [22:06:07]RAPDU: 90 00 [22:06:07]wFMCommunicate OK [22:06:07]wFMCommunicate request_size=4 [22:06:07]MH_SAM_APDU [22:06:07]CAPDU: 80 0D 03 02 [22:06:07]Write to MH i2c: E2 08 00 7D 0C 80 0D 03 02 00 00 00 00 04 [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 0B 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 0B 00 7D 0C 00 65 16 54 69 D9 0B 2A 24 90 00 6F [22:06:07]RAPDU: 65 16 54 69 D9 0B 2A 24 90 00 [22:06:07]wFMCommunicate OK [22:06:07]SAM_PROTO_SignData done [22:06:07]FM_MakeSignedData done [22:06:07]CreateOFDProtocolMessage [22:06:07]wFMCommunicate request_size=4 [22:06:07]MH_SAM_APDU [22:06:07]CAPDU: 80 11 00 00 [22:06:07]Write to MH i2c: E2 08 00 7E 0C 80 11 00 00 00 00 00 00 04 [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 17 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 17 00 7E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 54 [22:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:06:07]wFMCommunicate OK [22:06:07]CreateOFDProtocolMessage done [22:06:07]OFDSenderStorePacket 2359 [22:06:07]StoreOFDPacket docnum=2359 [22:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 81 C4 07 01 4C B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4E 12 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 09 00 00 35 04 06 00 75 78 C5 BC AD EA 65 16 54 69 D9 0B 2A 24 [22:06:07]CheckFolder [22:06:07]dirname=/storage/ofd_packets [22:06:07]CheckFolder done [22:06:07]ProducePacketName [22:06:07]name=ofd_packets/00002359 [22:06:07]NVStorageSaveData ofd_packets/00002359 [22:06:07]File name is /storage/ofd_packets/00002359 [22:06:07]Write 301 bytes [22:06:07]NVStorageSaveData done [22:06:07]OFDSenderStorePacket done [22:06:07]KKMCreateOFDPacket done [22:06:07]NVStorageSaveData kkm_last_timestamp [22:06:07]File name is /storage/kkm_last_timestamp [22:06:07]Write 4 bytes [22:06:07]NVStorageSaveData done [22:06:07]ExternCall_PrintAddStr [22:06:07]wPrintStart [22:06:07]Write to MH i2c: 01 00 00 7F 0C 8B [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 07 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 FF 0F A0 [22:06:07]RasterBufferAndPrint [22:06:07]line Счет N : (1)610204 [22:06:07]line ИНН: 02508201610067 [22:06:07]line Контрольно-Кассовый Чек [22:06:07]line ПРОДАЖА [22:06:07]line ТРК (МРК, ГНК) : 62 [22:06:07]line Товар: 2710124130 [22:06:07]line Аи-92-К-2 [22:06:07]line 8.120 * 67.80 [22:06:07]line = 550.54 [22:06:07]line НДС 12% НСП 1% [22:06:07]line > о реализуемом товаре [22:06:07]line ОКРУГЛЕНИЕ: -0.54 [22:06:07]line ИТОГО: 550.00 [22:06:07]line Внесено: 550.00 [22:06:07]line СДАЧА: 0.00 [22:06:07]line НСП 1% : 4.87 [22:06:07]line НДС 12% : 58.46 [22:06:07]line Наличными: 550.00 [22:06:07]line Безнал.: 0.00 [22:06:07]line Место: АЗС № 127 "Партнер Нефть" [22:06:07]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:06:07]line СНО: Общий режим [22:06:07]line Чек 208 29.07.2024 22:06 [22:06:07]line Смена: 15 ФФД: 1.0 [22:06:07]line ЗНМ: 0300000161 [22:06:07]line РНМ: 0000000000189667 [22:06:07]line Версия ККМ: v1.0 [22:06:07]line ФМ: 0000000002094248 [22:06:07]line ФД: 2359 [22:06:07]line ФПД: 129161574002154 [22:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220606&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2359&fm=129161574002154&tin=02508201610067®Number=0000000000189667&sum=55000 [22:06:07]OFD Sender: Processing packet 2359 [packets to send 1, broken 0] [22:06:07]ProducePacketName [22:06:07]name=ofd_packets/00002359 [22:06:07]OFD Sender: To server: pG, [22:06:07]CommunicateWithHost lk.salyk.kg:30040 [22:06:07]ConnectInit lk.salyk.kg [22:06:07]written 0, free lines is 4095 [22:06:07]Connected sock=10 [22:06:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 81 C4 07 01 4C B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 4E 12 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 09 00 00 35 04 06 00 75 78 C5 BC AD EA 65 16 54 69 D9 0B 2A 24 [22:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4C AA 47 00 67 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 37 09 00 00 F4 03 04 00 B9 BD A7 66 B6 04 01 00 00 25 02 F1 E1 53 B4 7E 95 [22:06:08]CommunicateWithHost err = 0 [22:06:08]CheckOFDResponse [22:06:08]1017 (14) - 77093643461234 [22:06:08]1041 (16) - 0000000002094248 [22:06:08]1040 (4) - 2359 [22:06:08]1012 (4) - 29.07.2024 16:05 [22:06:08]1206 (1) - 0 [22:06:08]OFD Sender: Remove packet 2359 [22:06:08]ProducePacketName [22:06:08]name=ofd_packets/00002359 [22:06:08]NVStorageDeleteData [22:06:08]Write to MH i2c: 01 00 00 AA 0C B6 [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: 01 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: 01 07 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 F0 0C B9 [22:06:08]RasterBufferAndPrint [22:06:08]line [22:06:08]line [22:06:08]line [22:06:08]line [22:06:08]line [22:06:08]written 0, free lines is 3319 [22:06:08]MH_Cut [22:06:08]Write to MH i2c: D1 01 00 B1 0C 01 8F [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: D1 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: D1 01 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: D1 01 00 B1 0C 00 8E [22:06:08]Write to MH i2c: 01 00 00 B2 0C BE [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]OFD Sender: No OFD packet to send [22:06:08]*** Cut start [22:06:08]*** Partial cut [22:06:08]*** CUTSNS_PIN = 1 [22:06:08]*** CUTSNS_PIN = 0 [22:06:09]*** Brake cut motor [22:06:09]Read from MH i2c: 01 [22:06:09]MH_I2C_Read... [22:06:09]*** Stop cut motor [22:06:09]*** Cut end [22:06:09]Read from MH i2c: 01 07 00 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [22:06:09]process_action close_receipt done [22:06:09]requested_data is exist [22:06:09]produce_requested_data [22:06:09]requested_item fm.sn is exist - process it [22:06:09]wFMCommunicate request_size=4 [22:06:09]MH_SAM_APDU [22:06:09]CAPDU: 80 11 00 00 [22:06:09]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [22:06:09]Write i2c OK [22:06:09]MH_I2C_Read... [22:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:09]Read from MH i2c: E2 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 17 00 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 89 [22:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:06:09]wFMCommunicate OK [22:06:09]requested_item fd.num is exist - process it [22:06:09]SAM_PROTO_GetFieldsCounters [22:06:09]wFMCommunicate request_size=4 [22:06:09]MH_SAM_APDU [22:06:09]CAPDU: 80 13 00 00 [22:06:09]Write to MH i2c: E2 08 00 B4 0C 80 13 00 00 00 00 00 00 3C [22:06:09]Write i2c OK [22:06:09]MH_I2C_Read... [22:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:09]Read from MH i2c: E2 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 62 00 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 62 00 B4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 37 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [22:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 37 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:09]wFMCommunicate OK [22:06:09]SAM_PROTO_GetFieldsCounters done [22:06:09]requested_item shift.num is exist - process it [22:06:09]requested_item shift.opened is exist - process it [22:06:09]req_shift_opened [22:06:09]FM_GetShiftState [22:06:09]SAM_PROTO_GetShiftState [22:06:09]wFMCommunicate request_size=4 [22:06:09]MH_SAM_APDU [22:06:09]CAPDU: 80 13 01 00 [22:06:09]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [22:06:09]Write i2c OK [22:06:09]MH_I2C_Read... [22:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:09]Read from MH i2c: E2 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 0E 00 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 37 [22:06:09]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:06:09]wFMCommunicate OK [22:06:09]SAM_PROTO_GetShiftState done [22:06:09]FM_GetShiftState done [22:06:09]req_shift_opened done [22:06:09]requested_item shift.open_date is exist - process it [22:06:09]req_shift_open_date [22:06:09]req_shift_open_date done [22:06:09]produce_requested_data done [22:06:09]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2359,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:06:09]process_action_free close_receipt [22:06:09]json_value_free [22:06:09]json_value_free done [22:06:09]process_json_proto returns [22:06:09]Send response to host [22:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2359,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:06:09]free response buf [22:06:09]execute_script done [22:06:09]execute_script returns [22:06:09]free content buf [22:06:09]Sock 9.Close socket [22:06:09]Sock 9.Thread stoped [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:21]accept exits with 7 [22:11:21]New connection [22:11:21]New thread 3067276644 created [22:11:21]Thread 3067420004 joined [22:11:21]Waiting for new connection... [22:11:21] Sock 7.Parse request [22:11:21]Sock 7.Check first char [22:11:21]Sock 7.First char is OK [22:11:21]request: POST /json_proto HTTP/1.0 [22:11:21]Method: POST [22:11:21]URL: /json_proto [22:11:21]Method is POST - this is cgi request [22:11:21]url: /json_proto [22:11:21]query_string will be loaded in cgi processing [22:11:21]execute_cgi json_proto POST (null) [22:11:21]execute_cgi path=json_proto method=POST [22:11:21]POST find Content-Length [22:11:21]Host: 172.17.45.132:8080 [22:11:21]Content-Length: 800 [22:11:21]Content-Type: application/json [22:11:21] [22:11:21]POST finish read [22:11:21]Found Content-Length = 800 [22:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:21]execute_script... [22:11: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)610206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:21]POST & json_proto [22:11:21]process_json_proto [22:11:21]json parsed OK: [22:11:21]protocol is kg_v1.0 [22:11:21]action value=close_receipt [22:11:21]process_action close_receipt [22:11:21]cmd_close_receipt [22:11:21]MH_GetDate [22:11:21]Write to MH i2c: F0 00 00 B6 0C B1 [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: F0 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: F0 09 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: F0 09 00 B6 0C 00 8A 13 A8 66 E3 0B 90 66 49 [22:11:21]GetLastDocTimeStamp 1722290766 [22:11:21]current date 1722291082 [22:11:21]FM_GetShiftState [22:11:21]SAM_PROTO_GetShiftState [22:11:21]wFMCommunicate request_size=4 [22:11:21]MH_SAM_APDU [22:11:21]CAPDU: 80 13 01 00 [22:11:21]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [22:11:21]Write i2c OK [22:11:21]MH_I2C_Read... [22:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:21]Read from MH i2c: E2 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 [22:11:21]MH_I2C_Read... [22:11:21]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 39 [22:11:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:11:21]wFMCommunicate OK [22:11:21]SAM_PROTO_GetShiftState done [22:11:21]FM_GetShiftState done [22:11:21]opened in 1722213119 [22:11:21]opened+sec_in_day 1722299519 [22:11:21]quantity*price = 40002 [22:11:21]sum+1 = 40003 [22:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 209 29.07.2024 22:11 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2360 ФПД: 117435102604669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221122&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2360&fm=117435102604669&tin=02508201610067®Number=0000000000189667&sum=40002 [22:11:22]StoreToDocumentArchive [22:11:22]shift 15 fd 2360 [22:11:22]save to /storage/0015/doc_00002360 [22:11:22]save last doc name /storage/0015/doc_00002360 to /storage/kkm_last_doc_name [22:11:22]save OK [22:11:22]Clear old archive folders... [22:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:22]tlvbuf is 010FBAD0 [22:11:22]SAM_PROTO_ClearQueue [22:11:22]wFMCommunicate request_size=4 [22:11:22]MH_SAM_APDU [22:11:22]CAPDU: 80 09 00 00 [22:11:22]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [22:11:22]Write i2c OK [22:11:22]MH_I2C_Read... [22:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:22]Read from MH i2c: E2 [22:11:22]MH_I2C_Read... [22:11:22]Read from MH i2c: E2 03 00 [22:11:22]MH_I2C_Read... [22:11:22]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [22:11:22]RAPDU: 90 00 [22:11:22]wFMCommunicate OK [22:11:22]SAM_PROTO_ClearQueue done [22:11:22]KKMCreateOFDPacket [22:11:22]OFDProtocolAddRootSTLVToBuf [22:11:22]FM_MakeSignedData [22:11:22]FM_MakeSignedData [22:11:22]SAM_PROTO_SignData [22:11:22]wFMCommunicate request_size=4 [22:11:22]MH_SAM_APDU [22:11:22]CAPDU: 80 0D 01 02 [22:11:22]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [22:11:22]Write i2c OK [22:11:22]MH_I2C_Read... [22:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:22]Read from MH i2c: E2 [22:11:22]MH_I2C_Read... [22:11:22]Read from MH i2c: E2 03 00 [22:11:22]MH_I2C_Read... [22:11:22]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [22:11:22]RAPDU: 90 00 [22:11:22]wFMCommunicate OK [22:11:22]wFMCommunicate request_size=255 [22:11:22]MH_SAM_APDU [22:11:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 8A 13 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 09 00 00 35 04 06 00 6A [22:11:22]Write to MH i2c: E2 02 01 C6 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 8A 13 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 09 00 00 35 04 06 00 6A 00 00 EE [22:11:22]Write i2c OK [22:11:22]MH_I2C_Read... [22:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:22]Read from MH i2c: E2 [22:11:22]MH_I2C_Read... [22:11:22]Read from MH i2c: E2 03 00 [22:11:22]MH_I2C_Read... [22:11:22]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [22:11:22]RAPDU: 90 00 [22:11:22]wFMCommunicate OK [22:11:22]wFMCommunicate request_size=10 [22:11:22]MH_SAM_APDU [22:11:22]CAPDU: 80 0D 02 02 05 CE 7D 93 2D 7D [22:11:22]Write to MH i2c: E2 0D 00 C7 0C 80 0D 02 02 05 00 CE 7D 93 2D 7D 00 00 DF [22:11:22]Write i2c OK [22:11:22]MH_I2C_Read... [22:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:23]Read from MH i2c: E2 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: E2 03 00 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [22:11:23]RAPDU: 90 00 [22:11:23]wFMCommunicate OK [22:11:23]wFMCommunicate request_size=4 [22:11:23]MH_SAM_APDU [22:11:23]CAPDU: 80 0D 03 02 [22:11:23]Write to MH i2c: E2 08 00 C8 0C 80 0D 03 02 00 00 00 00 4F [22:11:23]Write i2c OK [22:11:23]MH_I2C_Read... [22:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:23]Read from MH i2c: E2 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: E2 0B 00 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: E2 0B 00 C8 0C 00 89 1E 66 3B 19 EF FC EB 90 00 87 [22:11:23]RAPDU: 89 1E 66 3B 19 EF FC EB 90 00 [22:11:23]wFMCommunicate OK [22:11:23]SAM_PROTO_SignData done [22:11:23]FM_MakeSignedData done [22:11:23]CreateOFDProtocolMessage [22:11:23]wFMCommunicate request_size=4 [22:11:23]MH_SAM_APDU [22:11:23]CAPDU: 80 11 00 00 [22:11:23]Write to MH i2c: E2 08 00 C9 0C 80 11 00 00 00 00 00 00 4F [22:11:23]Write i2c OK [22:11:23]MH_I2C_Read... [22:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:23]Read from MH i2c: E2 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: E2 17 00 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: E2 17 00 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9F [22:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:11:23]wFMCommunicate OK [22:11:23]CreateOFDProtocolMessage done [22:11:23]OFDSenderStorePacket 2360 [22:11:23]StoreOFDPacket docnum=2360 [22:11:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1F D4 07 01 10 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 8A 13 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 09 00 00 35 04 06 00 6A CE 7D 93 2D 7D 89 1E 66 3B 19 EF FC EB [22:11:23]CheckFolder [22:11:23]dirname=/storage/ofd_packets [22:11:23]CheckFolder done [22:11:23]ProducePacketName [22:11:23]name=ofd_packets/00002360 [22:11:23]NVStorageSaveData ofd_packets/00002360 [22:11:23]File name is /storage/ofd_packets/00002360 [22:11:23]Write 301 bytes [22:11:23]NVStorageSaveData done [22:11:23]OFDSenderStorePacket done [22:11:23]KKMCreateOFDPacket done [22:11:23]NVStorageSaveData kkm_last_timestamp [22:11:23]File name is /storage/kkm_last_timestamp [22:11:23]Write 4 bytes [22:11:23]NVStorageSaveData done [22:11:23]ExternCall_PrintAddStr [22:11:23]wPrintStart [22:11:23]Write to MH i2c: 01 00 00 CA 0C D6 [22:11:23]Write i2c OK [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: 01 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: 01 07 00 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: 01 07 00 CA 0C 00 00 00 00 00 FF 0F EB [22:11:23]RasterBufferAndPrint [22:11:23]line Счет N : (1)610206 [22:11:23]line ИНН: 02508201610067 [22:11:23]line Контрольно-Кассовый Чек [22:11:23]line ПРОДАЖА [22:11:23]line ТРК (МРК, ГНК) : 42 [22:11:23]line Товар: 2710124130 [22:11:23]line Аи-92-К-2 [22:11:23]line 5.900 * 67.80 [22:11:23]line = 400.02 [22:11:23]line НДС 12% НСП 1% [22:11:23]line > о реализуемом товаре [22:11:23]line ИТОГО: 400.02 [22:11:23]line НСП 1% : 3.54 [22:11:23]line НДС 12% : 42.48 [22:11:23]line Наличными: 0.00 [22:11:23]line Безнал.: 400.02 [22:11:23]line Место: АЗС № 127 "Партнер Нефть" [22:11:23]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:11:23]line СНО: Общий режим [22:11:23]line Чек 209 29.07.2024 22:11 [22:11:23]line Смена: 15 ФФД: 1.0 [22:11:23]line ЗНМ: 0300000161 [22:11:23]line РНМ: 0000000000189667 [22:11:23]line Версия ККМ: v1.0 [22:11:23]line Платежная система: O! деньги [22:11:23]line ФМ: 0000000002094248 [22:11:23]line ФД: 2360 [22:11:23]line ФПД: 117435102604669 [22:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221122&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2360&fm=117435102604669&tin=02508201610067®Number=0000000000189667&sum=40002 [22:11:23]OFD Sender: Processing packet 2360 [packets to send 1, broken 0] [22:11:23]ProducePacketName [22:11:23]name=ofd_packets/00002360 [22:11:23]OFD Sender: To server: pG, [22:11:23]CommunicateWithHost lk.salyk.kg:30040 [22:11:23]ConnectInit lk.salyk.kg [22:11:23]written 0, free lines is 4095 [22:11:23]Connected sock=10 [22:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1F D4 07 01 10 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 8A 13 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 38 09 00 00 35 04 06 00 6A CE 7D 93 2D 7D 89 1E 66 3B 19 EF FC EB [22:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6D 6A 47 00 1D 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 32 30 39 34 32 34 38 10 04 04 00 38 09 00 00 F4 03 04 00 F5 BE A7 66 B6 04 01 00 00 0F 55 F5 1F 1D 01 0B 27 [22:11:23]CommunicateWithHost err = 0 [22:11:23]CheckOFDResponse [22:11:23]1017 (14) - 77093643461234 [22:11:23]1041 (16) - 0000000002094248 [22:11:23]1040 (4) - 2360 [22:11:23]1012 (4) - 29.07.2024 16:10 [22:11:23]1206 (1) - 0 [22:11:23]OFD Sender: Remove packet 2360 [22:11:23]ProducePacketName [22:11:23]name=ofd_packets/00002360 [22:11:23]NVStorageDeleteData [22:11:23]Write to MH i2c: 01 00 00 F4 0C 00 [22:11:23]Write i2c OK [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: 01 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: 01 07 00 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 01 0D 15 [22:11:23]RasterBufferAndPrint [22:11:23]line [22:11:23]line [22:11:23]line [22:11:23]line [22:11:23]line [22:11:23]written 0, free lines is 3335 [22:11:23]MH_Cut [22:11:23]Write to MH i2c: D1 01 00 FB 0C 01 D9 [22:11:23]Write i2c OK [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: D1 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: D1 01 00 [22:11:23]MH_I2C_Read... [22:11:23]Read from MH i2c: D1 01 00 FB 0C 00 D8 [22:11:23]Write to MH i2c: 01 00 00 FC 0C 08 [22:11:23]Write i2c OK [22:11:23]MH_I2C_Read... [22:11:24]OFD Sender: No OFD packet to send [22:11:24]*** Cut start [22:11:24]*** Partial cut [22:11:24]*** CUTSNS_PIN = 1 [22:11:24]*** CUTSNS_PIN = 0 [22:11:24]*** Brake cut motor [22:11:25]Read from MH i2c: 01 [22:11:25]MH_I2C_Read... [22:11:25]*** Stop cut motor [22:11:25]*** Cut end [22:11:25]Read from MH i2c: 01 07 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: 01 07 00 FC 0C 00 00 00 00 00 FF 0F 1D [22:11:25]process_action close_receipt done [22:11:25]requested_data is exist [22:11:25]produce_requested_data [22:11:25]requested_item fm.sn is exist - process it [22:11:25]wFMCommunicate request_size=4 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 11 00 00 [22:11:25]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 17 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D3 [22:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:11:25]wFMCommunicate OK [22:11:25]requested_item fd.num is exist - process it [22:11:25]SAM_PROTO_GetFieldsCounters [22:11:25]wFMCommunicate request_size=4 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 13 00 00 [22:11:25]Write to MH i2c: E2 08 00 FE 0C 80 13 00 00 00 00 00 00 86 [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 62 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 62 00 FE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 38 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [22:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 38 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:25]wFMCommunicate OK [22:11:25]SAM_PROTO_GetFieldsCounters done [22:11:25]requested_item shift.num is exist - process it [22:11:25]requested_item shift.opened is exist - process it [22:11:25]req_shift_opened [22:11:25]FM_GetShiftState [22:11:25]SAM_PROTO_GetShiftState [22:11:25]wFMCommunicate request_size=4 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 13 01 00 [22:11:25]Write to MH i2c: E2 08 00 FF 0C 80 13 01 00 00 00 00 00 88 [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 0E 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 0E 00 FF 0C 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 81 [22:11:25]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:11:25]wFMCommunicate OK [22:11:25]SAM_PROTO_GetShiftState done [22:11:25]FM_GetShiftState done [22:11:25]req_shift_opened done [22:11:25]requested_item shift.open_date is exist - process it [22:11:25]req_shift_open_date [22:11:25]req_shift_open_date done [22:11:25]produce_requested_data done [22:11:25]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2360,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:11:25]process_action_free close_receipt [22:11:25]json_value_free [22:11:25]json_value_free done [22:11:25]process_json_proto returns [22:11:25]Send response to host [22:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2360,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:11:25]free response buf [22:11:25]execute_script done [22:11:25]execute_script returns [22:11:25]free content buf [22:11:25]Sock 7.Close socket [22:11:25]Sock 7.Thread stoped [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:10]accept exits with 9 [22:15:10]New connection [22:15:10]New thread 3067420004 created [22:15:10]Thread 3067276644 joined [22:15:10]Waiting for new connection... [22:15:10] Sock 9.Parse request [22:15:10]Sock 9.Check first char [22:15:10]Sock 9.First char is OK [22:15:10]request: POST /json_proto HTTP/1.0 [22:15:10]Method: POST [22:15:10]URL: /json_proto [22:15:10]Method is POST - this is cgi request [22:15:10]url: /json_proto [22:15:10]query_string will be loaded in cgi processing [22:15:10]execute_cgi json_proto POST (null) [22:15:10]execute_cgi path=json_proto method=POST [22:15:10]POST find Content-Length [22:15:10]Host: 172.17.45.132:8080 [22:15:10]Content-Length: 805 [22:15:10]Content-Type: application/json [22:15:10] [22:15:10]POST finish read [22:15:10]Found Content-Length = 805 [22:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 54.060, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]execute_script... [22:15:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 54.060, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:10]POST & json_proto [22:15:10]process_json_proto [22:15:10]json parsed OK: [22:15:10]protocol is kg_v1.0 [22:15:10]action value=close_receipt [22:15:10]process_action close_receipt [22:15:10]cmd_close_receipt [22:15:10]MH_GetDate [22:15:10]Write to MH i2c: F0 00 00 00 0D FC [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: F0 09 00 00 0D 00 6F 14 A8 66 E3 0B 90 66 7A [22:15:10]GetLastDocTimeStamp 1722291082 [22:15:10]current date 1722291311 [22:15:10]FM_GetShiftState [22:15:10]SAM_PROTO_GetShiftState [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 13 01 00 [22:15:10]Write to MH i2c: E2 08 00 01 0D 80 13 01 00 00 00 00 00 8B [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0E 00 01 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 84 [22:15:10]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:15:10]wFMCommunicate OK [22:15:10]SAM_PROTO_GetShiftState done [22:15:10]FM_GetShiftState done [22:15:10]opened in 1722213119 [22:15:10]opened+sec_in_day 1722299519 [22:15:10]quantity*price = 200022 [22:15:10]sum+1 = 200023 [22:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.22 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.22 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 210 29.07.2024 22:15 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2361 ФПД: 22450414175191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221511&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2361&fm=22450414175191&tin=02508201610067®Number=0000000000189667&sum=200022 [22:15:11]StoreToDocumentArchive [22:15:11]shift 15 fd 2361 [22:15:11]save to /storage/0015/doc_00002361 [22:15:11]save last doc name /storage/0015/doc_00002361 to /storage/kkm_last_doc_name [22:15:11]save OK [22:15:11]Clear old archive folders... [22:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:15:11]tlvbuf is 0110E8C0 [22:15:11]SAM_PROTO_ClearQueue [22:15:11]wFMCommunicate request_size=4 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 09 00 00 [22:15:11]Write to MH i2c: E2 08 00 0E 0D 80 09 00 00 00 00 00 00 8D [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]SAM_PROTO_ClearQueue done [22:15:11]KKMCreateOFDPacket [22:15:11]OFDProtocolAddRootSTLVToBuf [22:15:11]FM_MakeSignedData [22:15:11]FM_MakeSignedData [22:15:11]SAM_PROTO_SignData [22:15:11]wFMCommunicate request_size=4 [22:15:11]MH_SAM_APDU [22:15:11]CAPDU: 80 0D 01 02 [22:15:11]Write to MH i2c: E2 08 00 0F 0D 80 0D 01 02 00 00 00 00 95 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:11]Read from MH i2c: E2 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [22:15:11]RAPDU: 90 00 [22:15:11]wFMCommunicate OK [22:15:11]wFMCommunicate request_size=255 [22:15:11]MH_SAM_APDU [22:15:11]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 33 FF 03 08 00 03 2C D3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 14 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 09 00 00 35 04 06 00 14 6B [22:15:11]Write to MH i2c: E2 02 01 10 0D 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 33 FF 03 08 00 03 2C D3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 14 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 09 00 00 35 04 06 00 14 6B 00 00 6E [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]wFMCommunicate request_size=9 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 0D 02 02 04 24 F6 43 D7 [22:15:12]Write to MH i2c: E2 0C 00 11 0D 80 0D 02 02 04 00 24 F6 43 D7 00 00 D4 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [22:15:12]RAPDU: 90 00 [22:15:12]wFMCommunicate OK [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 0D 03 02 [22:15:12]Write to MH i2c: E2 08 00 12 0D 80 0D 03 02 00 00 00 00 9A [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 0B 00 12 0D 00 03 0B 99 0F F2 7E AF DA 90 00 4A [22:15:12]RAPDU: 03 0B 99 0F F2 7E AF DA 90 00 [22:15:12]wFMCommunicate OK [22:15:12]SAM_PROTO_SignData done [22:15:12]FM_MakeSignedData done [22:15:12]CreateOFDProtocolMessage [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 11 00 00 [22:15:12]Write to MH i2c: E2 08 00 13 0D 80 11 00 00 00 00 00 00 9A [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 13 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [22:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:15:12]wFMCommunicate OK [22:15:12]CreateOFDProtocolMessage done [22:15:12]OFDSenderStorePacket 2361 [22:15:12]StoreOFDPacket docnum=2361 [22:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 33 A5 06 01 32 6A 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 33 FF 03 08 00 03 2C D3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 14 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 09 00 00 35 04 06 00 14 6B 24 F6 43 D7 03 0B 99 0F F2 7E AF DA [22:15:12]CheckFolder [22:15:12]dirname=/storage/ofd_packets [22:15:12]CheckFolder done [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00002361 [22:15:12]NVStorageSaveData ofd_packets/00002361 [22:15:12]File name is /storage/ofd_packets/00002361 [22:15:12]Write 300 bytes [22:15:12]NVStorageSaveData done [22:15:12]OFDSenderStorePacket done [22:15:12]KKMCreateOFDPacket done [22:15:12]NVStorageSaveData kkm_last_timestamp [22:15:12]File name is /storage/kkm_last_timestamp [22:15:12]Write 4 bytes [22:15:12]NVStorageSaveData done [22:15:12]ExternCall_PrintAddStr [22:15:12]wPrintStart [22:15:12]Write to MH i2c: 01 00 00 14 0D 21 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 14 0D 00 00 00 00 00 FF 0F 36 [22:15:12]RasterBufferAndPrint [22:15:12]line Счет N : (1)610208 [22:15:12]line ИНН: 02508201610067 [22:15:12]line Контрольно-Кассовый Чек [22:15:12]line ПРОДАЖА [22:15:12]line ТРК (МРК, ГНК) : 7 [22:15:12]line Товар: 2711190000 [22:15:12]line ГАЗ-К-3 [22:15:12]line 54.060 * 37.00 [22:15:12]line = 2000.22 [22:15:12]line НДС 12% НСП 1% [22:15:12]line > о реализуемом товаре [22:15:12]line ИТОГО: 2000.22 [22:15:12]line НСП 1% : 17.70 [22:15:12]line НДС 12% : 212.41 [22:15:12]line Наличными: 0.00 [22:15:12]line Безнал.: 2000.22 [22:15:12]line Место: АЗС № 127 "Партнер Нефть" [22:15:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:15:12]line СНО: Общий режим [22:15:12]line Чек 210 29.07.2024 22:15 [22:15:12]line Смена: 15 ФФД: 1.0 [22:15:12]line ЗНМ: 0300000161 [22:15:12]line РНМ: 0000000000189667 [22:15:12]line Версия ККМ: v1.0 [22:15:12]line Платежная система: O! деньги [22:15:12]line ФМ: 0000000002094248 [22:15:12]line ФД: 2361 [22:15:12]line ФПД: 22450414175191 [22:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221511&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2361&fm=22450414175191&tin=02508201610067®Number=0000000000189667&sum=200022 [22:15:12]OFD Sender: Processing packet 2361 [packets to send 1, broken 0] [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00002361 [22:15:12]OFD Sender: To server: pG, [22:15:12]CommunicateWithHost lk.salyk.kg:30040 [22:15:12]ConnectInit lk.salyk.kg [22:15:12]written 0, free lines is 4095 [22:15:12]Connected sock=10 [22:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 33 A5 06 01 32 6A 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 33 FF 03 08 00 03 2C D3 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 14 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 09 00 00 35 04 06 00 14 6B 24 F6 43 D7 03 0B 99 0F F2 7E AF DA [22:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 4F AA 47 00 A6 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 39 09 00 00 F4 03 04 00 DA BF A7 66 B6 04 01 00 00 20 AB 02 50 72 C0 BE 25 [22:15:12]CommunicateWithHost err = 0 [22:15:12]CheckOFDResponse [22:15:12]1017 (14) - 77093643461234 [22:15:12]1041 (16) - 0000000002094248 [22:15:12]1040 (4) - 2361 [22:15:12]1012 (4) - 29.07.2024 16:14 [22:15:12]1206 (1) - 0 [22:15:12]OFD Sender: Remove packet 2361 [22:15:12]ProducePacketName [22:15:12]name=ofd_packets/00002361 [22:15:12]NVStorageDeleteData [22:15:13]Write to MH i2c: 01 00 00 3E 0D 4B [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 07 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 00 0D 5F [22:15:13]RasterBufferAndPrint [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]line [22:15:13]written 0, free lines is 3336 [22:15:13]MH_Cut [22:15:13]Write to MH i2c: D1 01 00 45 0D 01 24 [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 01 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: D1 01 00 45 0D 00 23 [22:15:13]Write to MH i2c: 01 00 00 46 0D 53 [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]OFD Sender: No OFD packet to send [22:15:13]*** Cut start [22:15:13]*** Partial cut [22:15:13]*** CUTSNS_PIN = 1 [22:15:13]*** CUTSNS_PIN = 0 [22:15:14]*** Brake cut motor [22:15:14]Read from MH i2c: 01 [22:15:14]MH_I2C_Read... [22:15:14]*** Stop cut motor [22:15:14]*** Cut end [22:15:14]Read from MH i2c: 01 07 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [22:15:14]process_action close_receipt done [22:15:14]requested_data is exist [22:15:14]produce_requested_data [22:15:14]requested_item fm.sn is exist - process it [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 11 00 00 [22:15:14]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1E [22:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:15:14]wFMCommunicate OK [22:15:14]requested_item fd.num is exist - process it [22:15:14]SAM_PROTO_GetFieldsCounters [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 00 00 [22:15:14]Write to MH i2c: E2 08 00 48 0D 80 13 00 00 00 00 00 00 D1 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 62 00 48 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 39 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [22:15:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 39 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:14]wFMCommunicate OK [22:15:14]SAM_PROTO_GetFieldsCounters done [22:15:14]requested_item shift.num is exist - process it [22:15:14]requested_item shift.opened is exist - process it [22:15:14]req_shift_opened [22:15:14]FM_GetShiftState [22:15:14]SAM_PROTO_GetShiftState [22:15:14]wFMCommunicate request_size=4 [22:15:14]MH_SAM_APDU [22:15:14]CAPDU: 80 13 01 00 [22:15:14]Write to MH i2c: E2 08 00 49 0D 80 13 01 00 00 00 00 00 D3 [22:15:14]Write i2c OK [22:15:14]MH_I2C_Read... [22:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:14]Read from MH i2c: E2 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 0E 00 [22:15:14]MH_I2C_Read... [22:15:14]Read from MH i2c: E2 0E 00 49 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CC [22:15:14]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:15:14]wFMCommunicate OK [22:15:14]SAM_PROTO_GetShiftState done [22:15:14]FM_GetShiftState done [22:15:14]req_shift_opened done [22:15:14]requested_item shift.open_date is exist - process it [22:15:14]req_shift_open_date [22:15:14]req_shift_open_date done [22:15:14]produce_requested_data done [22:15:14]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2361,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:15:14]process_action_free close_receipt [22:15:14]json_value_free [22:15:14]json_value_free done [22:15:14]process_json_proto returns [22:15:14]Send response to host [22:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2361,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:15:14]free response buf [22:15:14]execute_script done [22:15:14]execute_script returns [22:15:14]free content buf [22:15:14]Sock 9.Close socket [22:15:14]Sock 9.Thread stoped [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:16]accept exits with 7 [22:21:16]New connection [22:21:16]New thread 3067276644 created [22:21:16]Thread 3067420004 joined [22:21:16]Waiting for new connection... [22:21:16] Sock 7.Parse request [22:21:16]Sock 7.Check first char [22:21:16]Sock 7.First char is OK [22:21:16]request: POST /json_proto HTTP/1.0 [22:21:16]Method: POST [22:21:16]URL: /json_proto [22:21:16]Method is POST - this is cgi request [22:21:16]url: /json_proto [22:21:16]query_string will be loaded in cgi processing [22:21:16]execute_cgi json_proto POST (null) [22:21:16]execute_cgi path=json_proto method=POST [22:21:16]POST find Content-Length [22:21:16]Host: 172.17.45.132:8080 [22:21:16]Content-Length: 728 [22:21:16]Content-Type: application/json [22:21:16] [22:21:16]POST finish read [22:21:16]Found Content-Length = 728 [22:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126579", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:16]execute_script... [22:21: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)126579", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:16]POST & json_proto [22:21:16]process_json_proto [22:21:16]json parsed OK: [22:21:16]protocol is kg_v1.0 [22:21:16]action value=close_receipt [22:21:16]process_action close_receipt [22:21:16]cmd_close_receipt [22:21:16]MH_GetDate [22:21:16]Write to MH i2c: F0 00 00 4A 0D 46 [22:21:16]Write i2c OK [22:21:16]MH_I2C_Read... [22:21:16]Read from MH i2c: F0 [22:21:16]MH_I2C_Read... [22:21:16]Read from MH i2c: F0 09 00 [22:21:16]MH_I2C_Read... [22:21:16]Read from MH i2c: F0 09 00 4A 0D 00 DD 15 A8 66 E3 0B 90 66 33 [22:21:16]GetLastDocTimeStamp 1722291311 [22:21:16]current date 1722291677 [22:21:16]FM_GetShiftState [22:21:16]SAM_PROTO_GetShiftState [22:21:16]wFMCommunicate request_size=4 [22:21:16]MH_SAM_APDU [22:21:16]CAPDU: 80 13 01 00 [22:21:16]Write to MH i2c: E2 08 00 4B 0D 80 13 01 00 00 00 00 00 D5 [22:21:16]Write i2c OK [22:21:16]MH_I2C_Read... [22:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:17]Read from MH i2c: E2 [22:21:17]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 0E 00 [22:21:17]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 0E 00 4B 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CE [22:21:17]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:21:17]wFMCommunicate OK [22:21:17]SAM_PROTO_GetShiftState done [22:21:17]FM_GetShiftState done [22:21:17]opened in 1722213119 [22:21:17]opened+sec_in_day 1722299519 [22:21:17]quantity*price = 10700 [22:21:17]sum+1 = 10701 [22:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 211 29.07.2024 22:21 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2362 ФПД: 264022222076028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222117&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2362&fm=264022222076028&tin=02508201610067®Number=0000000000189667&sum=10700 0 [22:21:18]StoreToDocumentArchive [22:21:18]shift 15 fd 2362 [22:21:18]save to /storage/0015/doc_00002362 [22:21:18]save last doc name /storage/0015/doc_00002362 to /storage/kkm_last_doc_name [22:21:18]save OK [22:21:18]Clear old archive folders... [22:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=308 [22:21:18]tlvbuf is B6F333E0 [22:21:18]SAM_PROTO_ClearQueue [22:21:18]wFMCommunicate request_size=4 [22:21:18]MH_SAM_APDU [22:21:18]CAPDU: 80 09 00 00 [22:21:18]Write to MH i2c: E2 08 00 58 0D 80 09 00 00 00 00 00 00 D7 [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:18]Read from MH i2c: E2 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [22:21:18]RAPDU: 90 00 [22:21:18]wFMCommunicate OK [22:21:18]SAM_PROTO_ClearQueue done [22:21:18]KKMCreateOFDPacket [22:21:18]OFDProtocolAddRootSTLVToBuf [22:21:18]FM_MakeSignedData [22:21:18]FM_MakeSignedData [22:21:18]SAM_PROTO_SignData [22:21:18]wFMCommunicate request_size=4 [22:21:18]MH_SAM_APDU [22:21:18]CAPDU: 80 0D 01 02 [22:21:18]Write to MH i2c: E2 08 00 59 0D 80 0D 01 02 00 00 00 00 DF [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:18]Read from MH i2c: E2 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [22:21:18]RAPDU: 90 00 [22:21:18]wFMCommunicate OK [22:21:18]wFMCommunicate request_size=255 [22:21:18]MH_SAM_APDU [22:21:18]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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 D3 00 00 00 F4 03 04 00 DD 15 A8 66 0E 04 04 00 0F 00 00 00 B9 [22:21:18]Write to MH i2c: E2 02 01 5A 0D 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 D3 00 00 00 F4 03 04 00 DD 15 A8 66 0E 04 04 00 0F 00 00 00 B9 00 00 F8 [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:18]Read from MH i2c: E2 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [22:21:18]RAPDU: 90 00 [22:21:18]wFMCommunicate OK [22:21:18]wFMCommunicate request_size=67 [22:21:18]MH_SAM_APDU [22:21:18]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 09 00 00 35 04 06 00 F0 20 76 C2 78 7C [22:21:18]Write to MH i2c: E2 46 00 5B 0D 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 09 00 00 35 04 06 00 F0 20 76 C2 78 7C 00 00 C2 [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:18]Read from MH i2c: E2 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [22:21:18]RAPDU: 90 00 [22:21:18]wFMCommunicate OK [22:21:18]wFMCommunicate request_size=4 [22:21:18]MH_SAM_APDU [22:21:18]CAPDU: 80 0D 03 02 [22:21:18]Write to MH i2c: E2 08 00 5C 0D 80 0D 03 02 00 00 00 00 E4 [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:18]Read from MH i2c: E2 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 0B 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 0B 00 5C 0D 00 82 BA 9C 98 3D A0 97 43 90 00 0C [22:21:18]RAPDU: 82 BA 9C 98 3D A0 97 43 90 00 [22:21:18]wFMCommunicate OK [22:21:18]SAM_PROTO_SignData done [22:21:18]FM_MakeSignedData done [22:21:18]CreateOFDProtocolMessage [22:21:18]wFMCommunicate request_size=4 [22:21:18]MH_SAM_APDU [22:21:18]CAPDU: 80 11 00 00 [22:21:18]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:18]Read from MH i2c: E2 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 17 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 34 [22:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:21:18]wFMCommunicate OK [22:21:18]CreateOFDProtocolMessage done [22:21:18]OFDSenderStorePacket 2362 [22:21:18]StoreOFDPacket docnum=2362 [22:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 D6 B8 40 01 C5 47 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 D3 00 00 00 F4 03 04 00 DD 15 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 09 00 00 35 04 06 00 F0 20 76 C2 78 7C 82 BA 9C 98 3D A0 97 43 [22:21:18]CheckFolder [22:21:18]dirname=/storage/ofd_packets [22:21:18]CheckFolder done [22:21:18]ProducePacketName [22:21:18]name=ofd_packets/00002362 [22:21:18]NVStorageSaveData ofd_packets/00002362 [22:21:18]File name is /storage/ofd_packets/00002362 [22:21:18]Write 358 bytes [22:21:18]NVStorageSaveData done [22:21:18]OFDSenderStorePacket done [22:21:18]KKMCreateOFDPacket done [22:21:18]NVStorageSaveData kkm_last_timestamp [22:21:18]File name is /storage/kkm_last_timestamp [22:21:18]Write 4 bytes [22:21:18]NVStorageSaveData done [22:21:18]ExternCall_PrintAddStr [22:21:18]wPrintStart [22:21:18]Write to MH i2c: 01 00 00 5E 0D 6B [22:21:18]Write i2c OK [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: 01 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: 01 07 00 [22:21:18]MH_I2C_Read... [22:21:18]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 FF 0F 80 [22:21:18]RasterBufferAndPrint [22:21:18]line Счет N : (3)126579 [22:21:18]line ИНН: 02508201610067 [22:21:18]line Контрольно-Кассовый Чек [22:21:18]line ПРОДАЖА [22:21:18]line Товар: 5449000027474 [22:21:18]line Напиток FuzeTea зел чай манго,ромашка 1л [22:21:18]line 1.000 * 107.00 [22:21:18]line = 107.00 [22:21:18]line НДС 12% НСП 1% [22:21:18]line > о реализуемом товаре [22:21:18]line ИТОГО: 107.00 [22:21:18]line НСП 1% : 0.95 [22:21:18]line НДС 12% : 11.36 [22:21:18]line Наличными: 107.00 [22:21:18]line Безнал.: 0.00 [22:21:18]line Место: АЗС № 127 "Партнер Нефть" [22:21:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:21:18]line СНО: Общий режим [22:21:18]line Чек 211 29.07.2024 22:21 [22:21:18]line Смена: 15 ФФД: 1.0 [22:21:18]line ЗНМ: 0300000161 [22:21:18]line РНМ: 0000000000189667 [22:21:19]line Версия ККМ: v1.0 [22:21:19]line ФМ: 0000000002094248 [22:21:19]line ФД: 2362 [22:21:19]line ФПД: 264022222076028 [22:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222117&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2362&fm=264022222076028&tin=02508201610067®Number=0000000000189667&sum=10700 [22:21:19]line 0 [22:21:19]OFD Sender: Processing packet 2362 [packets to send 1, broken 0] [22:21:19]ProducePacketName [22:21:19]name=ofd_packets/00002362 [22:21:19]OFD Sender: To server: pG, [22:21:19]CommunicateWithHost lk.salyk.kg:30040 [22:21:19]ConnectInit lk.salyk.kg [22:21:19]written 0, free lines is 4095 [22:21:19]Connected sock=10 [22:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 D6 B8 40 01 C5 47 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 D3 00 00 00 F4 03 04 00 DD 15 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 09 00 00 35 04 06 00 F0 20 76 C2 78 7C 82 BA 9C 98 3D A0 97 43 [22:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 F9 32 47 00 EA FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3A 09 00 00 F4 03 04 00 49 C1 A7 66 B6 04 01 00 00 33 C5 9B E6 EB E4 AD 11 [22:21:19]CommunicateWithHost err = 0 [22:21:19]CheckOFDResponse [22:21:19]1017 (14) - 77093643461234 [22:21:19]1041 (16) - 0000000002094248 [22:21:19]1040 (4) - 2362 [22:21:19]1012 (4) - 29.07.2024 16:20 [22:21:19]1206 (1) - 0 [22:21:19]OFD Sender: Remove packet 2362 [22:21:19]ProducePacketName [22:21:19]name=ofd_packets/00002362 [22:21:19]NVStorageDeleteData [22:21:19]Write to MH i2c: 01 00 00 87 0D 94 [22:21:19]Write i2c OK [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: 01 [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: 01 07 00 [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 04 0D AC [22:21:19]RasterBufferAndPrint [22:21:19]line [22:21:19]line [22:21:19]line [22:21:19]line [22:21:19]line [22:21:19]written 0, free lines is 3338 [22:21:19]MH_Cut [22:21:19]Write to MH i2c: D1 01 00 8E 0D 01 6D [22:21:19]Write i2c OK [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: D1 [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: D1 01 00 [22:21:19]MH_I2C_Read... [22:21:19]Read from MH i2c: D1 01 00 8E 0D 00 6C [22:21:19]Write to MH i2c: 01 00 00 8F 0D 9C [22:21:19]Write i2c OK [22:21:19]MH_I2C_Read... [22:21:19]OFD Sender: No OFD packet to send [22:21:20]*** Cut start [22:21:20]*** Partial cut [22:21:20]*** CUTSNS_PIN = 1 [22:21:20]*** CUTSNS_PIN = 0 [22:21:20]*** Brake cut motor [22:21:20]Read from MH i2c: 01 [22:21:20]MH_I2C_Read... [22:21:20]*** Stop cut motor [22:21:20]*** Cut end [22:21:20]Read from MH i2c: 01 07 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [22:21:20]process_action close_receipt done [22:21:20]requested_data is exist [22:21:20]produce_requested_data [22:21:20]requested_item fm.sn is exist - process it [22:21:20]wFMCommunicate request_size=4 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 11 00 00 [22:21:20]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 17 00 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 67 [22:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:21:20]wFMCommunicate OK [22:21:20]requested_item fd.num is exist - process it [22:21:20]SAM_PROTO_GetFieldsCounters [22:21:20]wFMCommunicate request_size=4 [22:21:20]MH_SAM_APDU [22:21:20]CAPDU: 80 13 00 00 [22:21:20]Write to MH i2c: E2 08 00 91 0D 80 13 00 00 00 00 00 00 1A [22:21:20]Write i2c OK [22:21:20]MH_I2C_Read... [22:21:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:20]Read from MH i2c: E2 [22:21:20]MH_I2C_Read... [22:21:20]Read from MH i2c: E2 62 00 [22:21:20]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 62 00 91 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [22:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:21]wFMCommunicate OK [22:21:21]SAM_PROTO_GetFieldsCounters done [22:21:21]requested_item shift.num is exist - process it [22:21:21]requested_item shift.opened is exist - process it [22:21:21]req_shift_opened [22:21:21]FM_GetShiftState [22:21:21]SAM_PROTO_GetShiftState [22:21:21]wFMCommunicate request_size=4 [22:21:21]MH_SAM_APDU [22:21:21]CAPDU: 80 13 01 00 [22:21:21]Write to MH i2c: E2 08 00 92 0D 80 13 01 00 00 00 00 00 1C [22:21:21]Write i2c OK [22:21:21]MH_I2C_Read... [22:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:21]Read from MH i2c: E2 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 0E 00 [22:21:21]MH_I2C_Read... [22:21:21]Read from MH i2c: E2 0E 00 92 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 15 [22:21:21]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:21:21]wFMCommunicate OK [22:21:21]SAM_PROTO_GetShiftState done [22:21:21]FM_GetShiftState done [22:21:21]req_shift_opened done [22:21:21]requested_item shift.open_date is exist - process it [22:21:21]req_shift_open_date [22:21:21]req_shift_open_date done [22:21:21]produce_requested_data done [22:21:21]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2362,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:21:21]process_action_free close_receipt [22:21:21]json_value_free [22:21:21]json_value_free done [22:21:21]process_json_proto returns [22:21:21]Send response to host [22:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2362,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:21:21]free response buf [22:21:21]execute_script done [22:21:21]execute_script returns [22:21:21]free content buf [22:21:21]Sock 7.Close socket [22:21:21]Sock 7.Thread stoped [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:07]accept exits with 9 [22:24:07]New connection [22:24:07]New thread 3067420004 created [22:24:07]Thread 3067276644 joined [22:24:07]Waiting for new connection... [22:24:07] Sock 9.Parse request [22:24:07]Sock 9.Check first char [22:24:07]Sock 9.First char is OK [22:24:07]request: POST /json_proto HTTP/1.0 [22:24:07]Method: POST [22:24:07]URL: /json_proto [22:24:07]Method is POST - this is cgi request [22:24:07]url: /json_proto [22:24:07]query_string will be loaded in cgi processing [22:24:07]execute_cgi json_proto POST (null) [22:24:07]execute_cgi path=json_proto method=POST [22:24:07]POST find Content-Length [22:24:07]Host: 172.17.45.132:8080 [22:24:07]Content-Length: 612 [22:24:07]Content-Type: application/json [22:24:07] [22:24:07]POST finish read [22:24:07]Found Content-Length = 612 [22:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126580", "tax_sys" : 0, "items" : [ { "code": "46230812", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Kiss Brown", "price" : 118.00, "quantity" : 1.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:07]execute_script... [22:24: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)126580", "tax_sys" : 0, "items" : [ { "code": "46230812", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Kiss Brown", "price" : 118.00, "quantity" : 1.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 118.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:07]POST & json_proto [22:24:07]process_json_proto [22:24:07]json parsed OK: [22:24:07]protocol is kg_v1.0 [22:24:07]action value=close_receipt [22:24:07]process_action close_receipt [22:24:07]cmd_close_receipt [22:24:07]MH_GetDate [22:24:07]Write to MH i2c: F0 00 00 93 0D 8F [22:24:07]Write i2c OK [22:24:07]MH_I2C_Read... [22:24:07]Read from MH i2c: F0 [22:24:07]MH_I2C_Read... [22:24:07]Read from MH i2c: F0 09 00 [22:24:07]MH_I2C_Read... [22:24:07]Read from MH i2c: F0 09 00 93 0D 00 88 16 A8 66 E3 0B 90 66 28 [22:24:07]GetLastDocTimeStamp 1722291677 [22:24:07]current date 1722291848 [22:24:07]FM_GetShiftState [22:24:07]SAM_PROTO_GetShiftState [22:24:07]wFMCommunicate request_size=4 [22:24:07]MH_SAM_APDU [22:24:07]CAPDU: 80 13 01 00 [22:24:07]Write to MH i2c: E2 08 00 94 0D 80 13 01 00 00 00 00 00 1E [22:24:07]Write i2c OK [22:24:07]MH_I2C_Read... [22:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:07]Read from MH i2c: E2 [22:24:07]MH_I2C_Read... [22:24:07]Read from MH i2c: E2 0E 00 [22:24:07]MH_I2C_Read... [22:24:07]Read from MH i2c: E2 0E 00 94 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 17 [22:24:07]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:24:07]wFMCommunicate OK [22:24:07]SAM_PROTO_GetShiftState done [22:24:07]FM_GetShiftState done [22:24:07]opened in 1722213119 [22:24:07]opened+sec_in_day 1722299519 [22:24:07]quantity*price = 11800 [22:24:07]sum+1 = 11801 [22:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 212 29.07.2024 22:24 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2363 ФПД: 191241041421684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222408&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2363&fm=191241041421684&tin=02508201610067®Number=0000000000189667&sum=11800 0 [22:24:09]StoreToDocumentArchive [22:24:09]shift 15 fd 2363 [22:24:09]save to /storage/0015/doc_00002363 [22:24:09]save last doc name /storage/0015/doc_00002363 to /storage/kkm_last_doc_name [22:24:09]save OK [22:24:09]Clear old archive folders... [22:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=264 [22:24:09]tlvbuf is B6F4C610 [22:24:09]SAM_PROTO_ClearQueue [22:24:09]wFMCommunicate request_size=4 [22:24:09]MH_SAM_APDU [22:24:09]CAPDU: 80 09 00 00 [22:24:09]Write to MH i2c: E2 08 00 A1 0D 80 09 00 00 00 00 00 00 20 [22:24:09]Write i2c OK [22:24:09]MH_I2C_Read... [22:24:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:09]Read from MH i2c: E2 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [22:24:09]RAPDU: 90 00 [22:24:09]wFMCommunicate OK [22:24:09]SAM_PROTO_ClearQueue done [22:24:09]KKMCreateOFDPacket [22:24:09]OFDProtocolAddRootSTLVToBuf [22:24:09]FM_MakeSignedData [22:24:09]FM_MakeSignedData [22:24:09]SAM_PROTO_SignData [22:24:09]wFMCommunicate request_size=4 [22:24:09]MH_SAM_APDU [22:24:09]CAPDU: 80 0D 01 02 [22:24:09]Write to MH i2c: E2 08 00 A2 0D 80 0D 01 02 00 00 00 00 28 [22:24:09]Write i2c OK [22:24:09]MH_I2C_Read... [22:24:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:09]Read from MH i2c: E2 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [22:24:09]RAPDU: 90 00 [22:24:09]wFMCommunicate OK [22:24:09]wFMCommunicate request_size=255 [22:24:09]MH_SAM_APDU [22:24:09]CAPDU: 80 0D 02 02 FA 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 38 31 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 42 72 6F 77 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 88 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 [22:24:09]Write to MH i2c: E2 02 01 A3 0D 80 0D 02 02 FA 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 38 31 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 42 72 6F 77 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 88 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 00 00 7E [22:24:09]Write i2c OK [22:24:09]MH_I2C_Read... [22:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:09]Read from MH i2c: E2 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [22:24:09]RAPDU: 90 00 [22:24:09]wFMCommunicate OK [22:24:09]wFMCommunicate request_size=23 [22:24:09]MH_SAM_APDU [22:24:09]CAPDU: 80 0D 02 02 12 10 04 04 00 3B 09 00 00 35 04 06 00 AD EE C6 57 25 74 [22:24:09]Write to MH i2c: E2 1A 00 A4 0D 80 0D 02 02 12 00 10 04 04 00 3B 09 00 00 35 04 06 00 AD EE C6 57 25 74 00 00 3B [22:24:09]Write i2c OK [22:24:09]MH_I2C_Read... [22:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:09]Read from MH i2c: E2 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [22:24:09]RAPDU: 90 00 [22:24:09]wFMCommunicate OK [22:24:09]wFMCommunicate request_size=4 [22:24:09]MH_SAM_APDU [22:24:09]CAPDU: 80 0D 03 02 [22:24:09]Write to MH i2c: E2 08 00 A5 0D 80 0D 03 02 00 00 00 00 2D [22:24:09]Write i2c OK [22:24:09]MH_I2C_Read... [22:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:09]Read from MH i2c: E2 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 0B 00 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 0B 00 A5 0D 00 B2 77 05 54 BD 53 A0 81 90 00 E1 [22:24:09]RAPDU: B2 77 05 54 BD 53 A0 81 90 00 [22:24:09]wFMCommunicate OK [22:24:09]SAM_PROTO_SignData done [22:24:09]FM_MakeSignedData done [22:24:09]CreateOFDProtocolMessage [22:24:09]wFMCommunicate request_size=4 [22:24:09]MH_SAM_APDU [22:24:09]CAPDU: 80 11 00 00 [22:24:09]Write to MH i2c: E2 08 00 A6 0D 80 11 00 00 00 00 00 00 2D [22:24:09]Write i2c OK [22:24:09]MH_I2C_Read... [22:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:09]Read from MH i2c: E2 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 17 00 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: E2 17 00 A6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7D [22:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:24:09]wFMCommunicate OK [22:24:09]CreateOFDProtocolMessage done [22:24:09]OFDSenderStorePacket 2363 [22:24:09]StoreOFDPacket docnum=2363 [22:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1C 01 00 00 3A F3 14 01 66 A9 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 38 31 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 42 72 6F 77 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 88 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 09 00 00 35 04 06 00 AD EE C6 57 25 74 B2 77 05 54 BD 53 A0 81 [22:24:09]CheckFolder [22:24:09]dirname=/storage/ofd_packets [22:24:09]CheckFolder done [22:24:09]ProducePacketName [22:24:09]name=ofd_packets/00002363 [22:24:09]NVStorageSaveData ofd_packets/00002363 [22:24:09]File name is /storage/ofd_packets/00002363 [22:24:09]Write 314 bytes [22:24:09]NVStorageSaveData done [22:24:09]OFDSenderStorePacket done [22:24:09]KKMCreateOFDPacket done [22:24:09]NVStorageSaveData kkm_last_timestamp [22:24:09]File name is /storage/kkm_last_timestamp [22:24:09]Write 4 bytes [22:24:09]NVStorageSaveData done [22:24:09]ExternCall_PrintAddStr [22:24:09]wPrintStart [22:24:09]Write to MH i2c: 01 00 00 A7 0D B4 [22:24:09]Write i2c OK [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: 01 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: 01 07 00 [22:24:09]MH_I2C_Read... [22:24:09]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [22:24:09]RasterBufferAndPrint [22:24:09]line Счет N : (3)126580 [22:24:09]line ИНН: 02508201610067 [22:24:09]line Контрольно-Кассовый Чек [22:24:09]line ПРОДАЖА [22:24:09]line Товар: 46230812 [22:24:09]line Сигареты Kiss Brown [22:24:09]line 1.000 * 118.00 [22:24:09]line = 118.00 [22:24:09]line НДС 12% НСП 1% [22:24:09]line > о реализуемом товаре [22:24:09]line ИТОГО: 118.00 [22:24:09]line НСП 1% : 1.04 [22:24:09]line НДС 12% : 12.53 [22:24:09]line Наличными: 118.00 [22:24:09]line Безнал.: 0.00 [22:24:09]line Место: АЗС № 127 "Партнер Нефть" [22:24:09]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:24:09]line СНО: Общий режим [22:24:09]line Чек 212 29.07.2024 22:24 [22:24:09]line Смена: 15 ФФД: 1.0 [22:24:09]line ЗНМ: 0300000161 [22:24:09]line РНМ: 0000000000189667 [22:24:09]line Версия ККМ: v1.0 [22:24:09]line ФМ: 0000000002094248 [22:24:09]line ФД: 2363 [22:24:09]line ФПД: 191241041421684 [22:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222408&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2363&fm=191241041421684&tin=02508201610067®Number=0000000000189667&sum=11800 [22:24:09]line 0 [22:24:09]OFD Sender: Processing packet 2363 [packets to send 1, broken 0] [22:24:09]ProducePacketName [22:24:09]name=ofd_packets/00002363 [22:24:09]OFD Sender: To server: pG, [22:24:09]CommunicateWithHost lk.salyk.kg:30040 [22:24:09]ConnectInit lk.salyk.kg [22:24:09]written 0, free lines is 4095 [22:24:10]Write to MH i2c: 01 00 00 CF 0D DC [22:24:10]Write i2c OK [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: 01 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: 01 07 00 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: 01 07 00 CF 0D 00 00 00 00 00 07 0D F7 [22:24:10]RasterBufferAndPrint [22:24:10]line [22:24:10]line [22:24:10]line [22:24:10]line [22:24:10]line [22:24:10]written 0, free lines is 3341 [22:24:10]MH_Cut [22:24:10]Write to MH i2c: D1 01 00 D6 0D 01 B5 [22:24:10]Write i2c OK [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: D1 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: D1 01 00 [22:24:10]MH_I2C_Read... [22:24:10]Read from MH i2c: D1 01 00 D6 0D 00 B4 [22:24:10]Write to MH i2c: 01 00 00 D7 0D E4 [22:24:10]Write i2c OK [22:24:10]MH_I2C_Read... [22:24:10]Connected sock=10 [22:24:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 1C 01 00 00 3A F3 14 01 66 A9 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 38 31 32 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 42 72 6F 77 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 04 00 00 00 00 07 04 06 00 18 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 88 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3B 09 00 00 35 04 06 00 AD EE C6 57 25 74 B2 77 05 54 BD 53 A0 81 [22:24:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6F E5 47 00 53 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 32 30 39 34 32 34 38 10 04 04 00 3B 09 00 00 F4 03 04 00 F4 C1 A7 66 B6 04 01 00 00 DA 0E 67 43 22 49 A8 CD [22:24:10]CommunicateWithHost err = 0 [22:24:10]CheckOFDResponse [22:24:10]1017 (14) - 77093643461234 [22:24:10]1041 (16) - 0000000002094248 [22:24:10]1040 (4) - 2363 [22:24:10]1012 (4) - 29.07.2024 16:23 [22:24:10]1206 (1) - 0 [22:24:10]OFD Sender: Remove packet 2363 [22:24:10]ProducePacketName [22:24:10]name=ofd_packets/00002363 [22:24:10]NVStorageDeleteData [22:24:10]*** Cut start [22:24:10]*** Partial cut [22:24:10]*** CUTSNS_PIN = 1 [22:24:10]*** CUTSNS_PIN = 0 [22:24:11]OFD Sender: No OFD packet to send [22:24:11]*** Brake cut motor [22:24:11]Read from MH i2c: 01 [22:24:11]MH_I2C_Read... [22:24:11]*** Stop cut motor [22:24:11]*** Cut end [22:24:11]Read from MH i2c: 01 07 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 FF 0F F9 [22:24:11]process_action close_receipt done [22:24:11]requested_data is exist [22:24:11]produce_requested_data [22:24:11]requested_item fm.sn is exist - process it [22:24:11]wFMCommunicate request_size=4 [22:24:11]MH_SAM_APDU [22:24:11]CAPDU: 80 11 00 00 [22:24:11]Write to MH i2c: E2 08 00 D8 0D 80 11 00 00 00 00 00 00 5F [22:24:11]Write i2c OK [22:24:11]MH_I2C_Read... [22:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:11]Read from MH i2c: E2 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 17 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 17 00 D8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AF [22:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:24:11]wFMCommunicate OK [22:24:11]requested_item fd.num is exist - process it [22:24:11]SAM_PROTO_GetFieldsCounters [22:24:11]wFMCommunicate request_size=4 [22:24:11]MH_SAM_APDU [22:24:11]CAPDU: 80 13 00 00 [22:24:11]Write to MH i2c: E2 08 00 D9 0D 80 13 00 00 00 00 00 00 62 [22:24:11]Write i2c OK [22:24:11]MH_I2C_Read... [22:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:11]Read from MH i2c: E2 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 62 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 62 00 D9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [22:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:11]wFMCommunicate OK [22:24:11]SAM_PROTO_GetFieldsCounters done [22:24:11]requested_item shift.num is exist - process it [22:24:11]requested_item shift.opened is exist - process it [22:24:11]req_shift_opened [22:24:11]FM_GetShiftState [22:24:11]SAM_PROTO_GetShiftState [22:24:11]wFMCommunicate request_size=4 [22:24:11]MH_SAM_APDU [22:24:11]CAPDU: 80 13 01 00 [22:24:11]Write to MH i2c: E2 08 00 DA 0D 80 13 01 00 00 00 00 00 64 [22:24:11]Write i2c OK [22:24:11]MH_I2C_Read... [22:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:11]Read from MH i2c: E2 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 0E 00 [22:24:11]MH_I2C_Read... [22:24:11]Read from MH i2c: E2 0E 00 DA 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5D [22:24:11]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:24:11]wFMCommunicate OK [22:24:11]SAM_PROTO_GetShiftState done [22:24:11]FM_GetShiftState done [22:24:11]req_shift_opened done [22:24:11]requested_item shift.open_date is exist - process it [22:24:11]req_shift_open_date [22:24:11]req_shift_open_date done [22:24:11]produce_requested_data done [22:24:11]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2363,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:24:11]process_action_free close_receipt [22:24:11]json_value_free [22:24:11]json_value_free done [22:24:11]process_json_proto returns [22:24:11]Send response to host [22:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2363,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:24:11]free response buf [22:24:11]execute_script done [22:24:11]execute_script returns [22:24:11]free content buf [22:24:11]Sock 9.Close socket [22:24:11]Sock 9.Thread stoped [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]accept exits with 7 [22:25:31]New connection [22:25:31]New thread 3067276644 created [22:25:31]Thread 3067420004 joined [22:25:31]Waiting for new connection... [22:25:31] Sock 7.Parse request [22:25:31]Sock 7.Check first char [22:25:31]Sock 7.First char is OK [22:25:31]request: POST /json_proto HTTP/1.0 [22:25:31]Method: POST [22:25:31]URL: /json_proto [22:25:31]Method is POST - this is cgi request [22:25:31]url: /json_proto [22:25:31]query_string will be loaded in cgi processing [22:25:31]execute_cgi json_proto POST (null) [22:25:31]execute_cgi path=json_proto method=POST [22:25:31]POST find Content-Length [22:25:31]Host: 172.17.45.132:8080 [22:25:31]Content-Length: 728 [22:25:31]Content-Type: application/json [22:25:31] [22:25:31]POST finish read [22:25:31]Found Content-Length = 728 [22:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126581", "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" ] } } [22:25:31]execute_script... [22:25: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)126581", "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" ] } } [22:25:31]POST & json_proto [22:25:31]process_json_proto [22:25:31]json parsed OK: [22:25:31]protocol is kg_v1.0 [22:25:31]action value=close_receipt [22:25:31]process_action close_receipt [22:25:31]cmd_close_receipt [22:25:31]MH_GetDate [22:25:31]Write to MH i2c: F0 00 00 DB 0D D7 [22:25:31]Write i2c OK [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: F0 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: F0 09 00 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: F0 09 00 DB 0D 00 DB 16 A8 66 E3 0B 90 66 C3 [22:25:31]GetLastDocTimeStamp 1722291848 [22:25:31]current date 1722291931 [22:25:31]FM_GetShiftState [22:25:31]SAM_PROTO_GetShiftState [22:25:31]wFMCommunicate request_size=4 [22:25:31]MH_SAM_APDU [22:25:31]CAPDU: 80 13 01 00 [22:25:31]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [22:25:31]Write i2c OK [22:25:31]MH_I2C_Read... [22:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:31]Read from MH i2c: E2 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 0E 00 [22:25:31]MH_I2C_Read... [22:25:31]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 5F [22:25:31]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:25:31]wFMCommunicate OK [22:25:31]SAM_PROTO_GetShiftState done [22:25:31]FM_GetShiftState done [22:25:31]opened in 1722213119 [22:25:31]opened+sec_in_day 1722299519 [22:25:31]quantity*price = 6000 [22:25:31]sum+1 = 6001 [22:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 213 29.07.2024 22:25 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2364 ФПД: 173591804208966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222531&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2364&fm=173591804208966&tin=02508201610067®Number=0000000000189667&sum=6000 0 [22:25:32]StoreToDocumentArchive [22:25:32]shift 15 fd 2364 [22:25:32]save to /storage/0015/doc_00002364 [22:25:32]save last doc name /storage/0015/doc_00002364 to /storage/kkm_last_doc_name [22:25:32]save OK [22:25:32]Clear old archive folders... [22:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=303 [22:25:32]tlvbuf is 0111D4B0 [22:25:32]SAM_PROTO_ClearQueue [22:25:32]wFMCommunicate request_size=4 [22:25:32]MH_SAM_APDU [22:25:32]CAPDU: 80 09 00 00 [22:25:32]Write to MH i2c: E2 08 00 E9 0D 80 09 00 00 00 00 00 00 68 [22:25:32]Write i2c OK [22:25:32]MH_I2C_Read... [22:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:32]Read from MH i2c: E2 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [22:25:32]RAPDU: 90 00 [22:25:32]wFMCommunicate OK [22:25:32]SAM_PROTO_ClearQueue done [22:25:32]KKMCreateOFDPacket [22:25:32]OFDProtocolAddRootSTLVToBuf [22:25:32]FM_MakeSignedData [22:25:32]FM_MakeSignedData [22:25:32]SAM_PROTO_SignData [22:25:32]wFMCommunicate request_size=4 [22:25:32]MH_SAM_APDU [22:25:32]CAPDU: 80 0D 01 02 [22:25:32]Write to MH i2c: E2 08 00 EA 0D 80 0D 01 02 00 00 00 00 70 [22:25:32]Write i2c OK [22:25:32]MH_I2C_Read... [22:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:32]Read from MH i2c: E2 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 EA 0D 00 90 00 6B [22:25:32]RAPDU: 90 00 [22:25:32]wFMCommunicate OK [22:25:32]wFMCommunicate request_size=255 [22:25:32]MH_SAM_APDU [22:25:32]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 D5 00 00 00 F4 03 04 00 DB 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D [22:25:32]Write to MH i2c: E2 02 01 EB 0D 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 D5 00 00 00 F4 03 04 00 DB 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 00 00 33 [22:25:32]Write i2c OK [22:25:32]MH_I2C_Read... [22:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:32]Read from MH i2c: E2 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [22:25:32]RAPDU: 90 00 [22:25:32]wFMCommunicate OK [22:25:32]wFMCommunicate request_size=62 [22:25:32]MH_SAM_APDU [22:25:32]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 09 00 00 35 04 06 00 9D E1 7D D3 67 46 [22:25:32]Write to MH i2c: E2 41 00 EC 0D 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 09 00 00 35 04 06 00 9D E1 7D D3 67 46 00 00 77 [22:25:32]Write i2c OK [22:25:32]MH_I2C_Read... [22:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:32]Read from MH i2c: E2 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [22:25:32]RAPDU: 90 00 [22:25:32]wFMCommunicate OK [22:25:32]wFMCommunicate request_size=4 [22:25:32]MH_SAM_APDU [22:25:32]CAPDU: 80 0D 03 02 [22:25:32]Write to MH i2c: E2 08 00 ED 0D 80 0D 03 02 00 00 00 00 75 [22:25:32]Write i2c OK [22:25:32]MH_I2C_Read... [22:25:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:32]Read from MH i2c: E2 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 0B 00 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 0B 00 ED 0D 00 79 68 9F 2F 47 E3 A8 9C 90 00 93 [22:25:32]RAPDU: 79 68 9F 2F 47 E3 A8 9C 90 00 [22:25:32]wFMCommunicate OK [22:25:32]SAM_PROTO_SignData done [22:25:32]FM_MakeSignedData done [22:25:32]CreateOFDProtocolMessage [22:25:32]wFMCommunicate request_size=4 [22:25:32]MH_SAM_APDU [22:25:32]CAPDU: 80 11 00 00 [22:25:32]Write to MH i2c: E2 08 00 EE 0D 80 11 00 00 00 00 00 00 75 [22:25:32]Write i2c OK [22:25:32]MH_I2C_Read... [22:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:32]Read from MH i2c: E2 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 17 00 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: E2 17 00 EE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C5 [22:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:25:32]wFMCommunicate OK [22:25:32]CreateOFDProtocolMessage done [22:25:32]OFDSenderStorePacket 2364 [22:25:32]StoreOFDPacket docnum=2364 [22:25:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 F7 49 3B 01 3A AB 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 D5 00 00 00 F4 03 04 00 DB 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 09 00 00 35 04 06 00 9D E1 7D D3 67 46 79 68 9F 2F 47 E3 A8 9C [22:25:32]CheckFolder [22:25:32]dirname=/storage/ofd_packets [22:25:32]CheckFolder done [22:25:32]ProducePacketName [22:25:32]name=ofd_packets/00002364 [22:25:32]NVStorageSaveData ofd_packets/00002364 [22:25:32]File name is /storage/ofd_packets/00002364 [22:25:32]Write 353 bytes [22:25:32]NVStorageSaveData done [22:25:32]OFDSenderStorePacket done [22:25:32]KKMCreateOFDPacket done [22:25:32]NVStorageSaveData kkm_last_timestamp [22:25:32]File name is /storage/kkm_last_timestamp [22:25:32]Write 4 bytes [22:25:32]NVStorageSaveData done [22:25:32]ExternCall_PrintAddStr [22:25:32]wPrintStart [22:25:32]Write to MH i2c: 01 00 00 EF 0D FC [22:25:32]Write i2c OK [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: 01 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: 01 07 00 [22:25:32]MH_I2C_Read... [22:25:32]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 FF 0F 11 [22:25:32]RasterBufferAndPrint [22:25:32]line Счет N : (3)126581 [22:25:32]line ИНН: 02508201610067 [22:25:32]line Контрольно-Кассовый Чек [22:25:32]line ПРОДАЖА [22:25:32]line Товар: 4700000160792 [22:25:32]line Снек Курут классический (круглый) [22:25:32]line 1.000 * 60.00 [22:25:32]line = 60.00 [22:25:32]line НДС 12% НСП 1% [22:25:32]line > о реализуемом товаре [22:25:32]line ИТОГО: 60.00 [22:25:32]line НСП 1% : 0.53 [22:25:32]line НДС 12% : 6.37 [22:25:32]line Наличными: 60.00 [22:25:32]line Безнал.: 0.00 [22:25:32]line Место: АЗС № 127 "Партнер Нефть" [22:25:32]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:25:32]line СНО: Общий режим [22:25:32]line Чек 213 29.07.2024 22:25 [22:25:32]line Смена: 15 ФФД: 1.0 [22:25:32]line ЗНМ: 0300000161 [22:25:32]line РНМ: 0000000000189667 [22:25:32]line Версия ККМ: v1.0 [22:25:32]line ФМ: 0000000002094248 [22:25:32]line ФД: 2364 [22:25:33]line ФПД: 173591804208966 [22:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222531&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2364&fm=173591804208966&tin=02508201610067®Number=0000000000189667&sum=6000 [22:25:33]line 0 [22:25:33]OFD Sender: Processing packet 2364 [packets to send 1, broken 0] [22:25:33]ProducePacketName [22:25:33]name=ofd_packets/00002364 [22:25:33]OFD Sender: To server: pG, [22:25:33]CommunicateWithHost lk.salyk.kg:30040 [22:25:33]ConnectInit lk.salyk.kg [22:25:33]written 0, free lines is 4095 [22:25:33]Connected sock=10 [22:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 43 01 00 00 F7 49 3B 01 3A AB 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 D5 00 00 00 F4 03 04 00 DB 16 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 09 00 00 35 04 06 00 9D E1 7D D3 67 46 79 68 9F 2F 47 E3 A8 9C [22:25:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 43 DB 47 00 98 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3C 09 00 00 F4 03 04 00 47 C2 A7 66 B6 04 01 00 00 98 85 1E B5 B7 E4 22 E0 [22:25:33]CommunicateWithHost err = 0 [22:25:33]CheckOFDResponse [22:25:33]1017 (14) - 77093643461234 [22:25:33]1041 (16) - 0000000002094248 [22:25:33]1040 (4) - 2364 [22:25:33]1012 (4) - 29.07.2024 16:24 [22:25:33]1206 (1) - 0 [22:25:33]OFD Sender: Remove packet 2364 [22:25:33]ProducePacketName [22:25:33]name=ofd_packets/00002364 [22:25:33]NVStorageDeleteData [22:25:33]Write to MH i2c: 01 00 00 18 0E 26 [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 07 00 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: 01 07 00 18 0E 00 00 00 00 00 09 0D 43 [22:25:33]RasterBufferAndPrint [22:25:33]line [22:25:33]line [22:25:33]line [22:25:33]line [22:25:33]line [22:25:33]written 0, free lines is 3346 [22:25:33]MH_Cut [22:25:33]Write to MH i2c: D1 01 00 1F 0E 01 FF [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: D1 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: D1 01 00 [22:25:33]MH_I2C_Read... [22:25:33]Read from MH i2c: D1 01 00 1F 0E 00 FE [22:25:33]Write to MH i2c: 01 00 00 20 0E 2E [22:25:33]Write i2c OK [22:25:33]MH_I2C_Read... [22:25:34]OFD Sender: No OFD packet to send [22:25:34]*** Cut start [22:25:34]*** Partial cut [22:25:34]*** CUTSNS_PIN = 1 [22:25:34]*** CUTSNS_PIN = 0 [22:25:34]*** Brake cut motor [22:25:34]Read from MH i2c: 01 [22:25:34]MH_I2C_Read... [22:25:34]*** Stop cut motor [22:25:34]*** Cut end [22:25:34]Read from MH i2c: 01 07 00 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: 01 07 00 20 0E 00 00 00 00 00 FF 0F 43 [22:25:34]process_action close_receipt done [22:25:34]requested_data is exist [22:25:34]produce_requested_data [22:25:34]requested_item fm.sn is exist - process it [22:25:34]wFMCommunicate request_size=4 [22:25:34]MH_SAM_APDU [22:25:34]CAPDU: 80 11 00 00 [22:25:34]Write to MH i2c: E2 08 00 21 0E 80 11 00 00 00 00 00 00 A9 [22:25:34]Write i2c OK [22:25:34]MH_I2C_Read... [22:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:34]Read from MH i2c: E2 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 17 00 [22:25:34]MH_I2C_Read... [22:25:34]Read from MH i2c: E2 17 00 21 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F9 [22:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:25:34]wFMCommunicate OK [22:25:34]requested_item fd.num is exist - process it [22:25:34]SAM_PROTO_GetFieldsCounters [22:25:34]wFMCommunicate request_size=4 [22:25:34]MH_SAM_APDU [22:25:34]CAPDU: 80 13 00 00 [22:25:34]Write to MH i2c: E2 08 00 22 0E 80 13 00 00 00 00 00 00 AC [22:25:34]Write i2c OK [22:25:34]MH_I2C_Read... [22:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:35]Read from MH i2c: E2 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 62 00 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 62 00 22 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [22:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:35]wFMCommunicate OK [22:25:35]SAM_PROTO_GetFieldsCounters done [22:25:35]requested_item shift.num is exist - process it [22:25:35]requested_item shift.opened is exist - process it [22:25:35]req_shift_opened [22:25:35]FM_GetShiftState [22:25:35]SAM_PROTO_GetShiftState [22:25:35]wFMCommunicate request_size=4 [22:25:35]MH_SAM_APDU [22:25:35]CAPDU: 80 13 01 00 [22:25:35]Write to MH i2c: E2 08 00 23 0E 80 13 01 00 00 00 00 00 AE [22:25:35]Write i2c OK [22:25:35]MH_I2C_Read... [22:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:35]Read from MH i2c: E2 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 0E 00 [22:25:35]MH_I2C_Read... [22:25:35]Read from MH i2c: E2 0E 00 23 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A7 [22:25:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:25:35]wFMCommunicate OK [22:25:35]SAM_PROTO_GetShiftState done [22:25:35]FM_GetShiftState done [22:25:35]req_shift_opened done [22:25:35]requested_item shift.open_date is exist - process it [22:25:35]req_shift_open_date [22:25:35]req_shift_open_date done [22:25:35]produce_requested_data done [22:25:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2364,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:25:35]process_action_free close_receipt [22:25:35]json_value_free [22:25:35]json_value_free done [22:25:35]process_json_proto returns [22:25:35]Send response to host [22:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2364,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:25:35]free response buf [22:25:35]execute_script done [22:25:35]execute_script returns [22:25:35]free content buf [22:25:35]Sock 7.Close socket [22:25:35]Sock 7.Thread stoped [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:12]accept exits with 9 [22:28:12]New connection [22:28:12]New thread 3067420004 created [22:28:12]Thread 3067276644 joined [22:28:12]Waiting for new connection... [22:28:12] Sock 9.Parse request [22:28:12]Sock 9.Check first char [22:28:12]Sock 9.First char is OK [22:28:12]request: POST /json_proto HTTP/1.0 [22:28:12]Method: POST [22:28:12]URL: /json_proto [22:28:12]Method is POST - this is cgi request [22:28:12]url: /json_proto [22:28:12]query_string will be loaded in cgi processing [22:28:12]execute_cgi json_proto POST (null) [22:28:12]execute_cgi path=json_proto method=POST [22:28:12]POST find Content-Length [22:28:12]Host: 172.17.45.132:8080 [22:28:12]Content-Length: 1246 [22:28:12]Content-Type: application/json [22:28:12] [22:28:12]POST finish read [22:28:12]Found Content-Length = 1246 [22:28:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126582", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:12]execute_script... [22:28: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)126582", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:12]POST & json_proto [22:28:12]process_json_proto [22:28:12]json parsed OK: [22:28:12]protocol is kg_v1.0 [22:28:12]action value=close_receipt [22:28:12]process_action close_receipt [22:28:12]cmd_close_receipt [22:28:12]MH_GetDate [22:28:12]Write to MH i2c: F0 00 00 24 0E 21 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: F0 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: F0 09 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: F0 09 00 24 0E 00 7D 17 A8 66 E3 0B 90 66 B0 [22:28:12]GetLastDocTimeStamp 1722291931 [22:28:12]current date 1722292093 [22:28:12]FM_GetShiftState [22:28:12]SAM_PROTO_GetShiftState [22:28:12]wFMCommunicate request_size=4 [22:28:12]MH_SAM_APDU [22:28:12]CAPDU: 80 13 01 00 [22:28:12]Write to MH i2c: E2 08 00 25 0E 80 13 01 00 00 00 00 00 B0 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:12]Read from MH i2c: E2 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0E 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0E 00 25 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A9 [22:28:12]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:28:12]wFMCommunicate OK [22:28:12]SAM_PROTO_GetShiftState done [22:28:12]FM_GetShiftState done [22:28:12]opened in 1722213119 [22:28:12]opened+sec_in_day 1722299519 [22:28:12]quantity*price = 17000 [22:28:12]sum+1 = 17001 [22:28:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521285 Напиток Сок березовый негаз 0,45л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480814 Пиво Живое 0,5 ст 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.00 НДС 12% : 36.10 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 214 29.07.2024 22:28 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2365 ФПД: 274894753304188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222813&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2365&fm=274894753304188&tin=02508201610067®Number=0000000000189667&sum=34000 0 [22:28:13]StoreToDocumentArchive [22:28:13]shift 15 fd 2365 [22:28:13]save to /storage/0015/doc_00002365 [22:28:13]save last doc name /storage/0015/doc_00002365 to /storage/kkm_last_doc_name [22:28:13]save OK [22:28:13]Clear old archive folders... [22:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=512 [22:28:13]tlvbuf is 0110F9E0 [22:28:13]SAM_PROTO_ClearQueue [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 09 00 00 [22:28:13]Write to MH i2c: E2 08 00 32 0E 80 09 00 00 00 00 00 00 B2 [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [22:28:13]RAPDU: 90 00 [22:28:13]wFMCommunicate OK [22:28:13]SAM_PROTO_ClearQueue done [22:28:13]KKMCreateOFDPacket [22:28:13]OFDProtocolAddRootSTLVToBuf [22:28:13]FM_MakeSignedData [22:28:13]FM_MakeSignedData [22:28:13]SAM_PROTO_SignData [22:28:13]wFMCommunicate request_size=4 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 0D 01 02 [22:28:13]Write to MH i2c: E2 08 00 33 0E 80 0D 01 02 00 00 00 00 BA [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:13]Read from MH i2c: E2 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 [22:28:13]MH_I2C_Read... [22:28:13]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [22:28:13]RAPDU: 90 00 [22:28:13]wFMCommunicate OK [22:28:13]wFMCommunicate request_size=255 [22:28:13]MH_SAM_APDU [22:28:13]CAPDU: 80 0D 02 02 FA 03 00 00 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 [22:28:13]Write to MH i2c: E2 02 01 34 0E 80 0D 02 02 FA 00 03 00 00 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 00 00 C3 [22:28:13]Write i2c OK [22:28:13]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [22:28:14]RAPDU: 90 00 [22:28:14]wFMCommunicate OK [22:28:14]wFMCommunicate request_size=255 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 0D 02 02 FA 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 7D 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 [22:28:14]Write to MH i2c: E2 02 01 35 0E 80 0D 02 02 FA 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 7D 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 00 00 B3 [22:28:14]OFD Sender: No OFD packet to send [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [22:28:14]RAPDU: 90 00 [22:28:14]wFMCommunicate OK [22:28:14]wFMCommunicate request_size=21 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 0D 02 02 10 04 00 3D 09 00 00 35 04 06 00 FA 03 EC 1F 0E 7C [22:28:14]Write to MH i2c: E2 18 00 36 0E 80 0D 02 02 10 00 04 00 3D 09 00 00 35 04 06 00 FA 03 EC 1F 0E 7C 00 00 F9 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [22:28:14]RAPDU: 90 00 [22:28:14]wFMCommunicate OK [22:28:14]wFMCommunicate request_size=4 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 0D 03 02 [22:28:14]Write to MH i2c: E2 08 00 37 0E 80 0D 03 02 00 00 00 00 C0 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0B 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0B 00 37 0E 00 FC 04 BD D3 FF C0 BA D7 90 00 A1 [22:28:14]RAPDU: FC 04 BD D3 FF C0 BA D7 90 00 [22:28:14]wFMCommunicate OK [22:28:14]SAM_PROTO_SignData done [22:28:14]FM_MakeSignedData done [22:28:14]CreateOFDProtocolMessage [22:28:14]wFMCommunicate request_size=4 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 11 00 00 [22:28:14]Write to MH i2c: E2 08 00 38 0E 80 11 00 00 00 00 00 00 C0 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 17 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 17 00 38 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [22:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:28:14]wFMCommunicate OK [22:28:14]CreateOFDProtocolMessage done [22:28:14]OFDSenderStorePacket 2365 [22:28:14]StoreOFDPacket docnum=2365 [22:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 14 02 00 00 42 EC 0C 02 25 2E 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 7D 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 09 00 00 35 04 06 00 FA 03 EC 1F 0E 7C FC 04 BD D3 FF C0 BA D7 [22:28:14]CheckFolder [22:28:14]dirname=/storage/ofd_packets [22:28:14]CheckFolder done [22:28:14]ProducePacketName [22:28:14]name=ofd_packets/00002365 [22:28:14]NVStorageSaveData ofd_packets/00002365 [22:28:14]File name is /storage/ofd_packets/00002365 [22:28:14]Write 562 bytes [22:28:14]NVStorageSaveData done [22:28:14]OFDSenderStorePacket done [22:28:14]KKMCreateOFDPacket done [22:28:14]NVStorageSaveData kkm_last_timestamp [22:28:14]File name is /storage/kkm_last_timestamp [22:28:14]Write 4 bytes [22:28:14]NVStorageSaveData done [22:28:14]ExternCall_PrintAddStr [22:28:14]wPrintStart [22:28:14]Write to MH i2c: 01 00 00 39 0E 47 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: 01 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: 01 07 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 FF 0F 5C [22:28:14]RasterBufferAndPrint [22:28:14]line Счет N : (3)126582 [22:28:14]line ИНН: 02508201610067 [22:28:14]line Контрольно-Кассовый Чек [22:28:14]line ПРОДАЖА [22:28:14]line Товар: 4700000480357 [22:28:14]line Пиво шахтерское 1л ПЭТ [22:28:14]line 1.000 * 170.00 [22:28:14]line = 170.00 [22:28:14]line НДС 12% НСП 1% [22:28:14]line > о реализуемом товаре [22:28:14]line Товар: 4870202521285 [22:28:14]line Напиток Сок березовый негаз 0,45л [22:28:14]line 1.000 * 70.00 [22:28:14]line = 70.00 [22:28:14]line НДС 12% НСП 1% [22:28:14]line > о реализуемом товаре [22:28:14]line Товар: 4700000480814 [22:28:14]line Пиво Живое 0,5 ст [22:28:14]line 1.000 * 100.00 [22:28:14]line = 100.00 [22:28:14]line НДС 12% НСП 1% [22:28:14]line > о реализуемом товаре [22:28:14]line ИТОГО: 340.00 [22:28:14]line НСП 1% : 3.00 [22:28:14]line НДС 12% : 36.10 [22:28:14]line Наличными: 340.00 [22:28:14]line Безнал.: 0.00 [22:28:14]line Место: АЗС № 127 "Партнер Нефть" [22:28:14]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:28:14]line СНО: Общий режим [22:28:14]line Чек 214 29.07.2024 22:28 [22:28:14]line Смена: 15 ФФД: 1.0 [22:28:14]line ЗНМ: 0300000161 [22:28:14]line РНМ: 0000000000189667 [22:28:14]line Версия ККМ: v1.0 [22:28:14]line ФМ: 0000000002094248 [22:28:14]line ФД: 2365 [22:28:14]line ФПД: 274894753304188 [22:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222813&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2365&fm=274894753304188&tin=02508201610067®Number=0000000000189667&sum=34000 [22:28:14]line 0 [22:28:14]OFD Sender: Processing packet 2365 [packets to send 1, broken 0] [22:28:14]ProducePacketName [22:28:14]name=ofd_packets/00002365 [22:28:14]OFD Sender: To server: pG, [22:28:14]CommunicateWithHost lk.salyk.kg:30040 [22:28:14]ConnectInit lk.salyk.kg [22:28:14]written 0, free lines is 4095 [22:28:15]Connected sock=10 [22:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 14 02 00 00 42 EC 0C 02 25 2E 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 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 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 7D 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3D 09 00 00 35 04 06 00 FA 03 EC 1F 0E 7C FC 04 BD D3 FF C0 BA D7 [22:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 A5 F1 47 00 FF 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 32 30 39 34 32 34 38 10 04 04 00 3D 09 00 00 F4 03 04 00 E9 C2 A7 66 B6 04 01 00 00 32 70 60 3A B5 1F 58 86 [22:28:15]CommunicateWithHost err = 0 [22:28:15]CheckOFDResponse [22:28:15]1017 (14) - 77093643461234 [22:28:15]1041 (16) - 0000000002094248 [22:28:15]1040 (4) - 2365 [22:28:15]1012 (4) - 29.07.2024 16:27 [22:28:15]1206 (1) - 0 [22:28:15]OFD Sender: Remove packet 2365 [22:28:15]ProducePacketName [22:28:15]name=ofd_packets/00002365 [22:28:15]NVStorageDeleteData [22:28:15]Write to MH i2c: 01 00 00 6E 0E 7C [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 07 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 07 00 6E 0E 00 00 00 00 00 65 0C F4 [22:28:15]RasterBufferAndPrint [22:28:15]line [22:28:15]line [22:28:15]line [22:28:15]line [22:28:15]line [22:28:15]written 0, free lines is 3182 [22:28:15]MH_Cut [22:28:15]Write to MH i2c: D1 01 00 75 0E 01 55 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: D1 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: D1 01 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: D1 01 00 75 0E 00 54 [22:28:15]Write to MH i2c: 01 00 00 76 0E 84 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]OFD Sender: No OFD packet to send [22:28:16]*** Cut start [22:28:16]*** Partial cut [22:28:16]*** CUTSNS_PIN = 1 [22:28:16]*** CUTSNS_PIN = 0 [22:28:16]*** Brake cut motor [22:28:16]Read from MH i2c: 01 [22:28:16]MH_I2C_Read... [22:28:16]*** Stop cut motor [22:28:16]*** Cut end [22:28:16]Read from MH i2c: 01 07 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 FF 0F 99 [22:28:16]process_action close_receipt done [22:28:16]requested_data is exist [22:28:16]produce_requested_data [22:28:16]requested_item fm.sn is exist - process it [22:28:16]wFMCommunicate request_size=4 [22:28:16]MH_SAM_APDU [22:28:16]CAPDU: 80 11 00 00 [22:28:16]Write to MH i2c: E2 08 00 77 0E 80 11 00 00 00 00 00 00 FF [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 17 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 17 00 77 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 4F [22:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:28:17]wFMCommunicate OK [22:28:17]requested_item fd.num is exist - process it [22:28:17]SAM_PROTO_GetFieldsCounters [22:28:17]wFMCommunicate request_size=4 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 13 00 00 [22:28:17]Write to MH i2c: E2 08 00 78 0E 80 13 00 00 00 00 00 00 02 [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 62 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 62 00 78 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [22:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:17]wFMCommunicate OK [22:28:17]SAM_PROTO_GetFieldsCounters done [22:28:17]requested_item shift.num is exist - process it [22:28:17]requested_item shift.opened is exist - process it [22:28:17]req_shift_opened [22:28:17]FM_GetShiftState [22:28:17]SAM_PROTO_GetShiftState [22:28:17]wFMCommunicate request_size=4 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 13 01 00 [22:28:17]Write to MH i2c: E2 08 00 79 0E 80 13 01 00 00 00 00 00 04 [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 0E 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 0E 00 79 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FD [22:28:17]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:28:17]wFMCommunicate OK [22:28:17]SAM_PROTO_GetShiftState done [22:28:17]FM_GetShiftState done [22:28:17]req_shift_opened done [22:28:17]requested_item shift.open_date is exist - process it [22:28:17]req_shift_open_date [22:28:17]req_shift_open_date done [22:28:17]produce_requested_data done [22:28:17]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2365,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:28:17]process_action_free close_receipt [22:28:17]json_value_free [22:28:17]json_value_free done [22:28:17]process_json_proto returns [22:28:17]Send response to host [22:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2365,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:28:17]free response buf [22:28:17]execute_script done [22:28:17]execute_script returns [22:28:17]free content buf [22:28:17]Sock 9.Close socket [22:28:17]Sock 9.Thread stoped [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]accept exits with 7 [22:28:40]New connection [22:28:40]New thread 3067276644 created [22:28:40]Thread 3067420004 joined [22:28:40]Waiting for new connection... [22:28:40] Sock 7.Parse request [22:28:40]Sock 7.Check first char [22:28:40]Sock 7.First char is OK [22:28:40]request: POST /json_proto HTTP/1.0 [22:28:40]Method: POST [22:28:40]URL: /json_proto [22:28:40]Method is POST - this is cgi request [22:28:40]url: /json_proto [22:28:40]query_string will be loaded in cgi processing [22:28:40]execute_cgi json_proto POST (null) [22:28:40]execute_cgi path=json_proto method=POST [22:28:40]POST find Content-Length [22:28:40]Host: 172.17.45.132:8080 [22:28:40]Content-Length: 675 [22:28:40]Content-Type: application/json [22:28:40] [22:28:40]POST finish read [22:28:40]Found Content-Length = 675 [22:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126583", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 3.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:40]execute_script... [22:28:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126583", "tax_sys" : 0, "items" : [ { "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 3.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:40]POST & json_proto [22:28:40]process_json_proto [22:28:40]json parsed OK: [22:28:40]protocol is kg_v1.0 [22:28:40]action value=close_receipt [22:28:40]process_action close_receipt [22:28:40]cmd_close_receipt [22:28:40]MH_GetDate [22:28:40]Write to MH i2c: F0 00 00 7A 0E 77 [22:28:40]OFD Sender: No OFD packet to send [22:28:40]Write i2c OK [22:28:40]MH_I2C_Read... [22:28:40]Read from MH i2c: F0 [22:28:40]MH_I2C_Read... [22:28:40]Read from MH i2c: F0 09 00 [22:28:40]MH_I2C_Read... [22:28:40]Read from MH i2c: F0 09 00 7A 0E 00 99 17 A8 66 E3 0B 90 66 22 [22:28:40]GetLastDocTimeStamp 1722292093 [22:28:40]current date 1722292121 [22:28:40]FM_GetShiftState [22:28:40]SAM_PROTO_GetShiftState [22:28:40]wFMCommunicate request_size=4 [22:28:40]MH_SAM_APDU [22:28:40]CAPDU: 80 13 01 00 [22:28:40]Write to MH i2c: E2 08 00 7B 0E 80 13 01 00 00 00 00 00 06 [22:28:40]Write i2c OK [22:28:40]MH_I2C_Read... [22:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:40]Read from MH i2c: E2 [22:28:40]MH_I2C_Read... [22:28:40]Read from MH i2c: E2 0E 00 [22:28:40]MH_I2C_Read... [22:28:40]Read from MH i2c: E2 0E 00 7B 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 FF [22:28:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:28:40]wFMCommunicate OK [22:28:40]SAM_PROTO_GetShiftState done [22:28:40]FM_GetShiftState done [22:28:40]opened in 1722213119 [22:28:40]opened+sec_in_day 1722299519 [22:28:40]quantity*price = 5100 [22:28:40]sum+1 = 5101 [22:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 215 29.07.2024 22:28 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2366 ФПД: 161682692600186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222841&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2366&fm=161682692600186&tin=02508201610067®Number=0000000000189667&sum=5100 0 [22:28:42]StoreToDocumentArchive [22:28:42]shift 15 fd 2366 [22:28:42]save to /storage/0015/doc_00002366 [22:28:42]save last doc name /storage/0015/doc_00002366 to /storage/kkm_last_doc_name [22:28:42]save OK [22:28:42]Clear old archive folders... [22:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=290 [22:28:42]tlvbuf is 010E49D0 [22:28:42]SAM_PROTO_ClearQueue [22:28:42]wFMCommunicate request_size=4 [22:28:42]MH_SAM_APDU [22:28:42]CAPDU: 80 09 00 00 [22:28:42]Write to MH i2c: E2 08 00 88 0E 80 09 00 00 00 00 00 00 08 [22:28:42]Write i2c OK [22:28:42]MH_I2C_Read... [22:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:42]Read from MH i2c: E2 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [22:28:42]RAPDU: 90 00 [22:28:42]wFMCommunicate OK [22:28:42]SAM_PROTO_ClearQueue done [22:28:42]KKMCreateOFDPacket [22:28:42]OFDProtocolAddRootSTLVToBuf [22:28:42]FM_MakeSignedData [22:28:42]FM_MakeSignedData [22:28:42]SAM_PROTO_SignData [22:28:42]wFMCommunicate request_size=4 [22:28:42]MH_SAM_APDU [22:28:42]CAPDU: 80 0D 01 02 [22:28:42]Write to MH i2c: E2 08 00 89 0E 80 0D 01 02 00 00 00 00 10 [22:28:42]Write i2c OK [22:28:42]MH_I2C_Read... [22:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:42]Read from MH i2c: E2 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [22:28:42]RAPDU: 90 00 [22:28:42]wFMCommunicate OK [22:28:42]wFMCommunicate request_size=255 [22:28:42]MH_SAM_APDU [22:28:42]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 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 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 D7 00 00 00 F4 03 04 00 99 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [22:28:42]Write to MH i2c: E2 02 01 8A 0E 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 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 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 D7 00 00 00 F4 03 04 00 99 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 9C [22:28:42]Write i2c OK [22:28:42]MH_I2C_Read... [22:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:42]Read from MH i2c: E2 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [22:28:42]RAPDU: 90 00 [22:28:42]wFMCommunicate OK [22:28:42]wFMCommunicate request_size=49 [22:28:42]MH_SAM_APDU [22:28:42]CAPDU: 80 0D 02 02 2C 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 09 00 00 35 04 06 00 93 0C AF 75 71 7A [22:28:42]Write to MH i2c: E2 34 00 8B 0E 80 0D 02 02 2C 00 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 09 00 00 35 04 06 00 93 0C AF 75 71 7A 00 00 3E [22:28:42]Write i2c OK [22:28:42]MH_I2C_Read... [22:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:42]Read from MH i2c: E2 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [22:28:42]RAPDU: 90 00 [22:28:42]wFMCommunicate OK [22:28:42]wFMCommunicate request_size=4 [22:28:42]MH_SAM_APDU [22:28:42]CAPDU: 80 0D 03 02 [22:28:42]Write to MH i2c: E2 08 00 8C 0E 80 0D 03 02 00 00 00 00 15 [22:28:42]Write i2c OK [22:28:42]MH_I2C_Read... [22:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:42]Read from MH i2c: E2 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 0B 00 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 0B 00 8C 0E 00 47 90 42 5B 6D CC 07 EF 90 00 B9 [22:28:42]RAPDU: 47 90 42 5B 6D CC 07 EF 90 00 [22:28:42]wFMCommunicate OK [22:28:42]SAM_PROTO_SignData done [22:28:42]FM_MakeSignedData done [22:28:42]CreateOFDProtocolMessage [22:28:42]wFMCommunicate request_size=4 [22:28:42]MH_SAM_APDU [22:28:42]CAPDU: 80 11 00 00 [22:28:42]Write to MH i2c: E2 08 00 8D 0E 80 11 00 00 00 00 00 00 15 [22:28:42]Write i2c OK [22:28:42]MH_I2C_Read... [22:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:42]Read from MH i2c: E2 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 17 00 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: E2 17 00 8D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [22:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:28:42]wFMCommunicate OK [22:28:42]CreateOFDProtocolMessage done [22:28:42]OFDSenderStorePacket 2366 [22:28:42]StoreOFDPacket docnum=2366 [22:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 98 C6 2E 01 71 79 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 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 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 D7 00 00 00 F4 03 04 00 99 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 09 00 00 35 04 06 00 93 0C AF 75 71 7A 47 90 42 5B 6D CC 07 EF [22:28:42]CheckFolder [22:28:42]dirname=/storage/ofd_packets [22:28:42]CheckFolder done [22:28:42]ProducePacketName [22:28:42]name=ofd_packets/00002366 [22:28:42]NVStorageSaveData ofd_packets/00002366 [22:28:42]File name is /storage/ofd_packets/00002366 [22:28:42]Write 340 bytes [22:28:42]NVStorageSaveData done [22:28:42]OFDSenderStorePacket done [22:28:42]KKMCreateOFDPacket done [22:28:42]NVStorageSaveData kkm_last_timestamp [22:28:42]File name is /storage/kkm_last_timestamp [22:28:42]Write 4 bytes [22:28:42]NVStorageSaveData done [22:28:42]ExternCall_PrintAddStr [22:28:42]wPrintStart [22:28:42]Write to MH i2c: 01 00 00 8E 0E 9C [22:28:42]Write i2c OK [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: 01 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: 01 07 00 [22:28:42]MH_I2C_Read... [22:28:42]Read from MH i2c: 01 07 00 8E 0E 00 00 00 00 00 FF 0F B1 [22:28:42]RasterBufferAndPrint [22:28:42]line Счет N : (3)126583 [22:28:42]line ИНН: 02508201610067 [22:28:42]line Контрольно-Кассовый Чек [22:28:42]line ПРОДАЖА [22:28:42]line Товар: 4620017451303 [22:28:42]line Кар.с жев.конф.Страйк 11.3г/50 [22:28:42]line 3.000 * 17.00 [22:28:42]line = 51.00 [22:28:42]line НДС 12% НСП 1% [22:28:42]line > о реализуемом товаре [22:28:42]line ИТОГО: 51.00 [22:28:42]line НСП 1% : 0.45 [22:28:42]line НДС 12% : 5.42 [22:28:42]line Наличными: 51.00 [22:28:42]line Безнал.: 0.00 [22:28:42]line Место: АЗС № 127 "Партнер Нефть" [22:28:42]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:28:42]line СНО: Общий режим [22:28:42]line Чек 215 29.07.2024 22:28 [22:28:42]line Смена: 15 ФФД: 1.0 [22:28:42]line ЗНМ: 0300000161 [22:28:42]line РНМ: 0000000000189667 [22:28:42]line Версия ККМ: v1.0 [22:28:42]line ФМ: 0000000002094248 [22:28:42]line ФД: 2366 [22:28:42]line ФПД: 161682692600186 [22:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222841&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2366&fm=161682692600186&tin=02508201610067®Number=0000000000189667&sum=5100 [22:28:42]line 0 [22:28:42]OFD Sender: Processing packet 2366 [packets to send 1, broken 0] [22:28:42]ProducePacketName [22:28:42]name=ofd_packets/00002366 [22:28:42]OFD Sender: To server: pG, [22:28:42]CommunicateWithHost lk.salyk.kg:30040 [22:28:42]ConnectInit lk.salyk.kg [22:28:42]written 0, free lines is 4095 [22:28:43]Connected sock=10 [22:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 36 01 00 00 98 C6 2E 01 71 79 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 EC 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 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 D7 00 00 00 F4 03 04 00 99 17 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 09 00 00 35 04 06 00 93 0C AF 75 71 7A 47 90 42 5B 6D CC 07 EF [22:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 6C E5 47 00 F7 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3E 09 00 00 F4 03 04 00 05 C3 A7 66 B6 04 01 00 00 7C D2 C1 06 57 14 35 E3 [22:28:43]CommunicateWithHost err = 0 [22:28:43]CheckOFDResponse [22:28:43]1017 (14) - 77093643461234 [22:28:43]1041 (16) - 0000000002094248 [22:28:43]1040 (4) - 2366 [22:28:43]1012 (4) - 29.07.2024 16:27 [22:28:43]1206 (1) - 0 [22:28:43]OFD Sender: Remove packet 2366 [22:28:43]ProducePacketName [22:28:43]name=ofd_packets/00002366 [22:28:43]NVStorageDeleteData [22:28:43]Write to MH i2c: 01 00 00 B7 0E C5 [22:28:43]Write i2c OK [22:28:43]MH_I2C_Read... [22:28:43]Read from MH i2c: 01 [22:28:43]MH_I2C_Read... [22:28:43]Read from MH i2c: 01 07 00 [22:28:43]MH_I2C_Read... [22:28:43]Read from MH i2c: 01 07 00 B7 0E 00 00 00 00 00 01 0D DA [22:28:43]RasterBufferAndPrint [22:28:43]line [22:28:43]line [22:28:43]line [22:28:43]line [22:28:43]line [22:28:43]written 0, free lines is 3335 [22:28:43]MH_Cut [22:28:43]Write to MH i2c: D1 01 00 BE 0E 01 9E [22:28:43]Write i2c OK [22:28:43]MH_I2C_Read... [22:28:43]Read from MH i2c: D1 [22:28:43]MH_I2C_Read... [22:28:43]Read from MH i2c: D1 01 00 [22:28:43]MH_I2C_Read... [22:28:43]Read from MH i2c: D1 01 00 BE 0E 00 9D [22:28:43]Write to MH i2c: 01 00 00 BF 0E CD [22:28:43]Write i2c OK [22:28:43]MH_I2C_Read... [22:28:43]OFD Sender: No OFD packet to send [22:28:44]*** Cut start [22:28:44]*** Partial cut [22:28:44]*** CUTSNS_PIN = 1 [22:28:44]*** CUTSNS_PIN = 0 [22:28:44]*** Brake cut motor [22:28:44]Read from MH i2c: 01 [22:28:44]MH_I2C_Read... [22:28:44]*** Stop cut motor [22:28:44]*** Cut end [22:28:44]Read from MH i2c: 01 07 00 [22:28:44]MH_I2C_Read... [22:28:44]Read from MH i2c: 01 07 00 BF 0E 00 00 00 00 00 FF 0F E2 [22:28:44]process_action close_receipt done [22:28:44]requested_data is exist [22:28:44]produce_requested_data [22:28:44]requested_item fm.sn is exist - process it [22:28:44]wFMCommunicate request_size=4 [22:28:44]MH_SAM_APDU [22:28:44]CAPDU: 80 11 00 00 [22:28:44]Write to MH i2c: E2 08 00 C0 0E 80 11 00 00 00 00 00 00 48 [22:28:44]Write i2c OK [22:28:44]MH_I2C_Read... [22:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:44]Read from MH i2c: E2 [22:28:44]MH_I2C_Read... [22:28:44]Read from MH i2c: E2 17 00 [22:28:44]MH_I2C_Read... [22:28:44]Read from MH i2c: E2 17 00 C0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 98 [22:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:28:44]wFMCommunicate OK [22:28:44]requested_item fd.num is exist - process it [22:28:44]SAM_PROTO_GetFieldsCounters [22:28:44]wFMCommunicate request_size=4 [22:28:44]MH_SAM_APDU [22:28:44]CAPDU: 80 13 00 00 [22:28:44]Write to MH i2c: E2 08 00 C1 0E 80 13 00 00 00 00 00 00 4B [22:28:44]Write i2c OK [22:28:44]MH_I2C_Read... [22:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:44]Read from MH i2c: E2 [22:28:44]MH_I2C_Read... [22:28:44]Read from MH i2c: E2 62 00 [22:28:44]MH_I2C_Read... [22:28:44]Read from MH i2c: E2 62 00 C1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [22:28:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:44]wFMCommunicate OK [22:28:44]SAM_PROTO_GetFieldsCounters done [22:28:44]requested_item shift.num is exist - process it [22:28:44]requested_item shift.opened is exist - process it [22:28:44]req_shift_opened [22:28:44]FM_GetShiftState [22:28:44]SAM_PROTO_GetShiftState [22:28:44]wFMCommunicate request_size=4 [22:28:44]MH_SAM_APDU [22:28:44]CAPDU: 80 13 01 00 [22:28:44]Write to MH i2c: E2 08 00 C2 0E 80 13 01 00 00 00 00 00 4D [22:28:44]Write i2c OK [22:28:44]MH_I2C_Read... [22:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:44]Read from MH i2c: E2 [22:28:44]MH_I2C_Read... [22:28:44]Read from MH i2c: E2 0E 00 [22:28:44]MH_I2C_Read... [22:28:44]Read from MH i2c: E2 0E 00 C2 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 46 [22:28:44]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:28:44]wFMCommunicate OK [22:28:44]SAM_PROTO_GetShiftState done [22:28:44]FM_GetShiftState done [22:28:44]req_shift_opened done [22:28:44]requested_item shift.open_date is exist - process it [22:28:44]req_shift_open_date [22:28:44]req_shift_open_date done [22:28:44]produce_requested_data done [22:28:44]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2366,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:28:44]process_action_free close_receipt [22:28:44]json_value_free [22:28:44]json_value_free done [22:28:44]process_json_proto returns [22:28:44]Send response to host [22:28:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2366,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:28:44]free response buf [22:28:44]execute_script done [22:28:44]execute_script returns [22:28:44]free content buf [22:28:44]Sock 7.Close socket [22:28:44]Sock 7.Thread stoped [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:35]accept exits with 9 [22:41:35]New connection [22:41:35]New thread 3067420004 created [22:41:35]Thread 3067276644 joined [22:41:35]Waiting for new connection... [22:41:35] Sock 9.Parse request [22:41:35]Sock 9.Check first char [22:41:35]Sock 9.First char is OK [22:41:35]request: POST /json_proto HTTP/1.0 [22:41:35]Method: POST [22:41:35]URL: /json_proto [22:41:35]Method is POST - this is cgi request [22:41:35]url: /json_proto [22:41:35]query_string will be loaded in cgi processing [22:41:35]execute_cgi json_proto POST (null) [22:41:35]execute_cgi path=json_proto method=POST [22:41:35]POST find Content-Length [22:41:35]Host: 172.17.45.132:8080 [22:41:35]Content-Length: 1632 [22:41:35]Content-Type: application/json [22:41:35] [22:41:35]POST finish read [22:41:35]Found Content-Length = 1632 [22:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126584", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060077", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,2\u043B", "price" : 400.00, "quantity" : 1.000, "sum" : 400.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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 769.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:35]execute_script... [22:41: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)126584", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060077", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,2\u043B", "price" : 400.00, "quantity" : 1.000, "sum" : 400.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" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 769.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:35]POST & json_proto [22:41:35]process_json_proto [22:41:35]json parsed OK: [22:41:35]protocol is kg_v1.0 [22:41:35]action value=close_receipt [22:41:35]process_action close_receipt [22:41:35]cmd_close_receipt [22:41:35]MH_GetDate [22:41:35]Write to MH i2c: F0 00 00 C3 0E C0 [22:41:35]Write i2c OK [22:41:35]MH_I2C_Read... [22:41:35]Read from MH i2c: F0 [22:41:35]MH_I2C_Read... [22:41:35]Read from MH i2c: F0 09 00 [22:41:35]MH_I2C_Read... [22:41:35]Read from MH i2c: F0 09 00 C3 0E 00 A0 1A A8 66 E3 0B 90 66 75 [22:41:35]GetLastDocTimeStamp 1722292121 [22:41:35]current date 1722292896 [22:41:35]FM_GetShiftState [22:41:35]SAM_PROTO_GetShiftState [22:41:35]wFMCommunicate request_size=4 [22:41:35]MH_SAM_APDU [22:41:35]CAPDU: 80 13 01 00 [22:41:35]Write to MH i2c: E2 08 00 C4 0E 80 13 01 00 00 00 00 00 4F [22:41:35]Write i2c OK [22:41:35]MH_I2C_Read... [22:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:35]Read from MH i2c: E2 [22:41:35]MH_I2C_Read... [22:41:35]Read from MH i2c: E2 0E 00 [22:41:35]MH_I2C_Read... [22:41:35]Read from MH i2c: E2 0E 00 C4 0E 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 48 [22:41:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:41:35]wFMCommunicate OK [22:41:35]SAM_PROTO_GetShiftState done [22:41:35]FM_GetShiftState done [22:41:35]opened in 1722213119 [22:41:35]opened+sec_in_day 1722299519 [22:41:35]quantity*price = 24000 [22:41:35]sum+1 = 24001 [22:41:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001060077 Коньяк КВ Кыргызстан 0,2л 1.000 * 400.00 = 400.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 769.00 НСП 1% : 6.80 НДС 12% : 81.66 Наличными: 0.00 Безнал.: 769.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 216 29.07.2024 22:41 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2367 ФПД: 44400547586558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224136&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2367&fm=44400547586558&tin=02508201610067®Number=0000000000189667&sum=76900 0 [22:41:36]StoreToDocumentArchive [22:41:36]shift 15 fd 2367 [22:41:36]save to /storage/0015/doc_00002367 [22:41:36]save last doc name /storage/0015/doc_00002367 to /storage/kkm_last_doc_name [22:41:36]save OK [22:41:36]Clear old archive folders... [22:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=601 [22:41:36]tlvbuf is 0112BFD0 [22:41:36]SAM_PROTO_ClearQueue [22:41:36]wFMCommunicate request_size=4 [22:41:36]MH_SAM_APDU [22:41:36]CAPDU: 80 09 00 00 [22:41:36]Write to MH i2c: E2 08 00 D1 0E 80 09 00 00 00 00 00 00 51 [22:41:36]Write i2c OK [22:41:36]MH_I2C_Read... [22:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:36]Read from MH i2c: E2 [22:41:36]MH_I2C_Read... [22:41:36]Read from MH i2c: E2 03 00 [22:41:36]MH_I2C_Read... [22:41:36]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [22:41:36]RAPDU: 90 00 [22:41:36]wFMCommunicate OK [22:41:36]SAM_PROTO_ClearQueue done [22:41:36]KKMCreateOFDPacket [22:41:36]OFDProtocolAddRootSTLVToBuf [22:41:36]FM_MakeSignedData [22:41:36]FM_MakeSignedData [22:41:36]SAM_PROTO_SignData [22:41:36]wFMCommunicate request_size=4 [22:41:36]MH_SAM_APDU [22:41:36]CAPDU: 80 0D 01 02 [22:41:36]Write to MH i2c: E2 08 00 D2 0E 80 0D 01 02 00 00 00 00 59 [22:41:36]Write i2c OK [22:41:36]MH_I2C_Read... [22:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:36]Read from MH i2c: E2 [22:41:36]MH_I2C_Read... [22:41:36]Read from MH i2c: E2 03 00 [22:41:36]MH_I2C_Read... [22:41:36]Read from MH i2c: E2 03 00 D2 0E 00 90 00 54 [22:41:36]RAPDU: 90 00 [22:41:36]wFMCommunicate OK [22:41:36]wFMCommunicate request_size=255 [22:41:36]MH_SAM_APDU [22:41:36]CAPDU: 80 0D 02 02 FA 03 00 59 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 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 [22:41:36]Write to MH i2c: E2 02 01 D3 0E 80 0D 02 02 FA 00 03 00 59 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 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 00 00 FA [22:41:36]Write i2c OK [22:41:36]MH_I2C_Read... [22:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:37]Read from MH i2c: E2 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 03 00 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [22:41:37]RAPDU: 90 00 [22:41:37]wFMCommunicate OK [22:41:37]wFMCommunicate request_size=255 [22:41:37]MH_SAM_APDU [22:41:37]CAPDU: 80 0D 02 02 FA 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1F 00 00 00 00 07 04 06 00 00 00 00 00 [22:41:37]Write to MH i2c: E2 02 01 D4 0E 80 0D 02 02 FA 00 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 17 [22:41:37]Write i2c OK [22:41:37]MH_I2C_Read... [22:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:37]Read from MH i2c: E2 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 03 00 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 03 00 D4 0E 00 90 00 56 [22:41:37]RAPDU: 90 00 [22:41:37]wFMCommunicate OK [22:41:37]wFMCommunicate request_size=110 [22:41:37]MH_SAM_APDU [22:41:37]CAPDU: 80 0D 02 02 69 00 00 39 04 06 00 64 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A0 1A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 09 00 00 35 04 06 00 28 61 CE DD E1 FE [22:41:37]Write to MH i2c: E2 71 00 D5 0E 80 0D 02 02 69 00 00 00 39 04 06 00 64 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A0 1A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 09 00 00 35 04 06 00 28 61 CE DD E1 FE 00 00 FC [22:41:37]Write i2c OK [22:41:37]MH_I2C_Read... [22:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:37]Read from MH i2c: E2 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 03 00 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [22:41:37]RAPDU: 90 00 [22:41:37]wFMCommunicate OK [22:41:37]wFMCommunicate request_size=4 [22:41:37]MH_SAM_APDU [22:41:37]CAPDU: 80 0D 03 02 [22:41:37]Write to MH i2c: E2 08 00 D6 0E 80 0D 03 02 00 00 00 00 5F [22:41:37]Write i2c OK [22:41:37]MH_I2C_Read... [22:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:37]Read from MH i2c: E2 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 0B 00 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 0B 00 D6 0E 00 1F 07 09 B6 7D 0F 60 0D 90 00 3E [22:41:37]RAPDU: 1F 07 09 B6 7D 0F 60 0D 90 00 [22:41:37]wFMCommunicate OK [22:41:37]SAM_PROTO_SignData done [22:41:37]FM_MakeSignedData done [22:41:37]CreateOFDProtocolMessage [22:41:37]wFMCommunicate request_size=4 [22:41:37]MH_SAM_APDU [22:41:37]CAPDU: 80 11 00 00 [22:41:37]Write to MH i2c: E2 08 00 D7 0E 80 11 00 00 00 00 00 00 5F [22:41:37]Write i2c OK [22:41:37]MH_I2C_Read... [22:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:37]Read from MH i2c: E2 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 17 00 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: E2 17 00 D7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 AF [22:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:41:37]wFMCommunicate OK [22:41:37]CreateOFDProtocolMessage done [22:41:37]OFDSenderStorePacket 2367 [22:41:37]StoreOFDPacket docnum=2367 [22:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 6D 02 00 00 11 DB 65 02 2E E8 5A 03 01 00 03 00 59 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A0 1A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 09 00 00 35 04 06 00 28 61 CE DD E1 FE 1F 07 09 B6 7D 0F 60 0D [22:41:37]CheckFolder [22:41:37]dirname=/storage/ofd_packets [22:41:37]CheckFolder done [22:41:37]ProducePacketName [22:41:37]name=ofd_packets/00002367 [22:41:37]NVStorageSaveData ofd_packets/00002367 [22:41:37]File name is /storage/ofd_packets/00002367 [22:41:37]Write 651 bytes [22:41:37]NVStorageSaveData done [22:41:37]OFDSenderStorePacket done [22:41:37]KKMCreateOFDPacket done [22:41:37]NVStorageSaveData kkm_last_timestamp [22:41:37]File name is /storage/kkm_last_timestamp [22:41:37]Write 4 bytes [22:41:37]NVStorageSaveData done [22:41:37]ExternCall_PrintAddStr [22:41:37]wPrintStart [22:41:37]Write to MH i2c: 01 00 00 D8 0E E6 [22:41:37]Write i2c OK [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: 01 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: 01 07 00 [22:41:37]MH_I2C_Read... [22:41:37]Read from MH i2c: 01 07 00 D8 0E 00 00 00 00 00 FF 0F FB [22:41:37]RasterBufferAndPrint [22:41:37]line Счет N : (3)126584 [22:41:37]line ИНН: 02508201610067 [22:41:37]line Контрольно-Кассовый Чек [22:41:37]line ПРОДАЖА [22:41:37]line Товар: 4620006996716 [22:41:37]line Водка Талка 0,1л [22:41:37]line 2.000 * 120.00 [22:41:37]line = 240.00 [22:41:37]line НДС 12% НСП 1% [22:41:38]line > о реализуемом товаре [22:41:38]line Товар: 4700001060077 [22:41:38]line Коньяк КВ Кыргызстан 0,2л [22:41:38]line 1.000 * 400.00 [22:41:38]line = 400.00 [22:41:38]line НДС 12% НСП 1% [22:41:38]line > о реализуемом товаре [22:41:38]line Товар: 5449000054227 [22:41:38]line Напиток Кока-Кола 1л [22:41:38]line 1.000 * 125.00 [22:41:38]line = 125.00 [22:41:38]line НДС 12% НСП 1% [22:41:38]line > о реализуемом товаре [22:41:38]line Товар: 2000031750019 [22:41:38]line Пакет Партнер Нефть [22:41:38]line 1.000 * 4.00 [22:41:38]line = 4.00 [22:41:38]line НДС 12% НСП 1% [22:41:38]line > о реализуемом товаре [22:41:38]line ИТОГО: 769.00 [22:41:38]line НСП 1% : 6.80 [22:41:38]line НДС 12% : 81.66 [22:41:38]line Наличными: 0.00 [22:41:38]line Безнал.: 769.00 [22:41:38]line Место: АЗС № 127 "Партнер Нефть" [22:41:38]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:41:38]line СНО: Общий режим [22:41:38]line Чек 216 29.07.2024 22:41 [22:41:38]line Смена: 15 ФФД: 1.0 [22:41:38]line ЗНМ: 0300000161 [22:41:38]line РНМ: 0000000000189667 [22:41:38]line Версия ККМ: v1.0 [22:41:38]line Платежная система: O! деньги [22:41:38]line ФМ: 0000000002094248 [22:41:38]line ФД: 2367 [22:41:38]line ФПД: 44400547586558 [22:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224136&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2367&fm=44400547586558&tin=02508201610067®Number=0000000000189667&sum=76900 [22:41:38]line 0 [22:41:38]OFD Sender: Processing packet 2367 [packets to send 1, broken 0] [22:41:38]ProducePacketName [22:41:38]name=ofd_packets/00002367 [22:41:38]OFD Sender: To server: pG, [22:41:38]CommunicateWithHost lk.salyk.kg:30040 [22:41:38]ConnectInit lk.salyk.kg [22:41:38]written 0, free lines is 4095 [22:41:38]Connected sock=10 [22:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 6D 02 00 00 11 DB 65 02 2E E8 5A 03 01 00 03 00 59 02 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 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 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 2C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A0 1A A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 3F 09 00 00 35 04 06 00 28 61 CE DD E1 FE 1F 07 09 B6 7D 0F 60 0D [22:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 24 20 47 00 34 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 32 30 39 34 32 34 38 10 04 04 00 3F 09 00 00 F4 03 04 00 0C C6 A7 66 B6 04 01 00 00 08 7A 31 E4 3D F4 53 4E [22:41:38]CommunicateWithHost err = 0 [22:41:38]CheckOFDResponse [22:41:38]1017 (14) - 77093643461234 [22:41:38]1041 (16) - 0000000002094248 [22:41:38]1040 (4) - 2367 [22:41:38]1012 (4) - 29.07.2024 16:40 [22:41:38]1206 (1) - 0 [22:41:38]OFD Sender: Remove packet 2367 [22:41:38]ProducePacketName [22:41:38]name=ofd_packets/00002367 [22:41:38]NVStorageDeleteData [22:41:38]Write to MH i2c: 01 00 00 14 0F 23 [22:41:38]Write i2c OK [22:41:38]MH_I2C_Read... [22:41:38]Read from MH i2c: 01 [22:41:38]MH_I2C_Read... [22:41:38]Read from MH i2c: 01 07 00 [22:41:38]MH_I2C_Read... [22:41:38]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 21 0C 57 [22:41:38]RasterBufferAndPrint [22:41:38]line [22:41:38]line [22:41:38]line [22:41:38]line [22:41:38]line [22:41:38]written 0, free lines is 3114 [22:41:38]MH_Cut [22:41:38]Write to MH i2c: D1 01 00 1B 0F 01 FC [22:41:38]Write i2c OK [22:41:38]MH_I2C_Read... [22:41:38]Read from MH i2c: D1 [22:41:38]MH_I2C_Read... [22:41:38]Read from MH i2c: D1 01 00 [22:41:38]MH_I2C_Read... [22:41:38]Read from MH i2c: D1 01 00 1B 0F 00 FB [22:41:38]Write to MH i2c: 01 00 00 1C 0F 2B [22:41:38]Write i2c OK [22:41:38]MH_I2C_Read... [22:41:38]OFD Sender: No OFD packet to send [22:41:39]*** Cut start [22:41:39]*** Partial cut [22:41:39]*** CUTSNS_PIN = 1 [22:41:39]*** CUTSNS_PIN = 0 [22:41:39]*** Brake cut motor [22:41:40]Read from MH i2c: 01 [22:41:40]MH_I2C_Read... [22:41:40]*** Stop cut motor [22:41:40]*** Cut end [22:41:40]Read from MH i2c: 01 07 00 [22:41:40]MH_I2C_Read... [22:41:40]Read from MH i2c: 01 07 00 1C 0F 00 00 00 00 00 FF 0F 40 [22:41:40]process_action close_receipt done [22:41:40]requested_data is exist [22:41:40]produce_requested_data [22:41:40]requested_item fm.sn is exist - process it [22:41:40]wFMCommunicate request_size=4 [22:41:40]MH_SAM_APDU [22:41:40]CAPDU: 80 11 00 00 [22:41:40]Write to MH i2c: E2 08 00 1D 0F 80 11 00 00 00 00 00 00 A6 [22:41:40]Write i2c OK [22:41:40]MH_I2C_Read... [22:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:40]Read from MH i2c: E2 [22:41:40]MH_I2C_Read... [22:41:40]Read from MH i2c: E2 17 00 [22:41:40]MH_I2C_Read... [22:41:40]Read from MH i2c: E2 17 00 1D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F6 [22:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:41:40]wFMCommunicate OK [22:41:40]requested_item fd.num is exist - process it [22:41:40]SAM_PROTO_GetFieldsCounters [22:41:40]wFMCommunicate request_size=4 [22:41:40]MH_SAM_APDU [22:41:40]CAPDU: 80 13 00 00 [22:41:40]Write to MH i2c: E2 08 00 1E 0F 80 13 00 00 00 00 00 00 A9 [22:41:40]Write i2c OK [22:41:40]MH_I2C_Read... [22:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:40]Read from MH i2c: E2 [22:41:40]MH_I2C_Read... [22:41:40]Read from MH i2c: E2 62 00 [22:41:40]MH_I2C_Read... [22:41:40]Read from MH i2c: E2 62 00 1E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [22:41:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 3F 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:40]wFMCommunicate OK [22:41:40]SAM_PROTO_GetFieldsCounters done [22:41:40]requested_item shift.num is exist - process it [22:41:40]requested_item shift.opened is exist - process it [22:41:40]req_shift_opened [22:41:40]FM_GetShiftState [22:41:40]SAM_PROTO_GetShiftState [22:41:40]wFMCommunicate request_size=4 [22:41:40]MH_SAM_APDU [22:41:40]CAPDU: 80 13 01 00 [22:41:40]Write to MH i2c: E2 08 00 1F 0F 80 13 01 00 00 00 00 00 AB [22:41:40]Write i2c OK [22:41:40]MH_I2C_Read... [22:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:40]Read from MH i2c: E2 [22:41:40]MH_I2C_Read... [22:41:40]Read from MH i2c: E2 0E 00 [22:41:40]MH_I2C_Read... [22:41:40]Read from MH i2c: E2 0E 00 1F 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A4 [22:41:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:41:40]wFMCommunicate OK [22:41:40]SAM_PROTO_GetShiftState done [22:41:40]FM_GetShiftState done [22:41:40]req_shift_opened done [22:41:40]requested_item shift.open_date is exist - process it [22:41:40]req_shift_open_date [22:41:40]req_shift_open_date done [22:41:40]produce_requested_data done [22:41:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2367,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:41:40]process_action_free close_receipt [22:41:40]json_value_free [22:41:40]json_value_free done [22:41:40]process_json_proto returns [22:41:40]Send response to host [22:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2367,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:41:40]free response buf [22:41:40]execute_script done [22:41:40]execute_script returns [22:41:40]free content buf [22:41:40]Sock 9.Close socket [22:41:40]Sock 9.Thread stoped [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:17]accept exits with 7 [22:53:17]New connection [22:53:17]New thread 3067276644 created [22:53:17]Thread 3067420004 joined [22:53:17]Waiting for new connection... [22:53:17] Sock 7.Parse request [22:53:17]Sock 7.Check first char [22:53:17]Sock 7.First char is OK [22:53:17]request: POST /json_proto HTTP/1.0 [22:53:17]Method: POST [22:53:17]URL: /json_proto [22:53:17]Method is POST - this is cgi request [22:53:17]url: /json_proto [22:53:17]query_string will be loaded in cgi processing [22:53:17]execute_cgi json_proto POST (null) [22:53:17]execute_cgi path=json_proto method=POST [22:53:17]POST find Content-Length [22:53:17]Host: 172.17.45.132:8080 [22:53:17]Content-Length: 634 [22:53:17]Content-Type: application/json [22:53:17] [22:53:17]POST finish read [22:53:17]Found Content-Length = 634 [22:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126585", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 4.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:17]execute_script... [22:53: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)126585", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 4.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:17]POST & json_proto [22:53:17]process_json_proto [22:53:17]json parsed OK: [22:53:17]protocol is kg_v1.0 [22:53:17]action value=close_receipt [22:53:17]process_action close_receipt [22:53:17]cmd_close_receipt [22:53:17]MH_GetDate [22:53:17]Write to MH i2c: F0 00 00 20 0F 1E [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: F0 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: F0 09 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: F0 09 00 20 0F 00 5E 1D A8 66 E3 0B 90 66 94 [22:53:17]GetLastDocTimeStamp 1722292896 [22:53:17]current date 1722293598 [22:53:17]FM_GetShiftState [22:53:17]SAM_PROTO_GetShiftState [22:53:17]wFMCommunicate request_size=4 [22:53:17]MH_SAM_APDU [22:53:17]CAPDU: 80 13 01 00 [22:53:17]Write to MH i2c: E2 08 00 21 0F 80 13 01 00 00 00 00 00 AD [22:53:17]Write i2c OK [22:53:17]MH_I2C_Read... [22:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:17]Read from MH i2c: E2 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 0E 00 [22:53:17]MH_I2C_Read... [22:53:17]Read from MH i2c: E2 0E 00 21 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 A6 [22:53:17]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:53:18]wFMCommunicate OK [22:53:18]SAM_PROTO_GetShiftState done [22:53:18]FM_GetShiftState done [22:53:18]opened in 1722213119 [22:53:18]opened+sec_in_day 1722299519 [22:53:18]quantity*price = 24000 [22:53:18]sum+1 = 24001 [22:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 217 29.07.2024 22:53 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2368 ФПД: 226295866016783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2368&fm=226295866016783&tin=02508201610067®Number=0000000000189667&sum=24000 0 [22:53:19]StoreToDocumentArchive [22:53:19]shift 15 fd 2368 [22:53:19]save to /storage/0015/doc_00002368 [22:53:19]save last doc name /storage/0015/doc_00002368 to /storage/kkm_last_doc_name [22:53:19]save OK [22:53:19]Clear old archive folders... [22:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:53:19]tlvbuf is 010F2CD0 [22:53:19]SAM_PROTO_ClearQueue [22:53:19]wFMCommunicate request_size=4 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 09 00 00 [22:53:19]Write to MH i2c: E2 08 00 2E 0F 80 09 00 00 00 00 00 00 AF [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [22:53:19]RAPDU: 90 00 [22:53:19]wFMCommunicate OK [22:53:19]SAM_PROTO_ClearQueue done [22:53:19]KKMCreateOFDPacket [22:53:19]OFDProtocolAddRootSTLVToBuf [22:53:19]FM_MakeSignedData [22:53:19]FM_MakeSignedData [22:53:19]SAM_PROTO_SignData [22:53:19]wFMCommunicate request_size=4 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 0D 01 02 [22:53:19]Write to MH i2c: E2 08 00 2F 0F 80 0D 01 02 00 00 00 00 B7 [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [22:53:19]RAPDU: 90 00 [22:53:19]wFMCommunicate OK [22:53:19]wFMCommunicate request_size=255 [22:53:19]MH_SAM_APDU [22:53:19]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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 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 D9 00 00 00 F4 03 04 00 5E 1D A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:53:19]Write to MH i2c: E2 02 01 30 0F 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 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 D9 00 00 00 F4 03 04 00 5E 1D A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 2E [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:19]OFD Sender: No OFD packet to send [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [22:53:19]RAPDU: 90 00 [22:53:19]wFMCommunicate OK [22:53:19]wFMCommunicate request_size=30 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 0D 02 02 19 32 30 39 34 32 34 38 10 04 04 00 40 09 00 00 35 04 06 00 CD D0 9C B5 44 0F [22:53:19]Write to MH i2c: E2 21 00 31 0F 80 0D 02 02 19 00 32 30 39 34 32 34 38 10 04 04 00 40 09 00 00 35 04 06 00 CD D0 9C B5 44 0F 00 00 3A [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [22:53:19]RAPDU: 90 00 [22:53:19]wFMCommunicate OK [22:53:19]wFMCommunicate request_size=4 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 0D 03 02 [22:53:19]Write to MH i2c: E2 08 00 32 0F 80 0D 03 02 00 00 00 00 BC [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 0B 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 0B 00 32 0F 00 4C 79 0C E8 92 BB F4 DA 90 00 91 [22:53:19]RAPDU: 4C 79 0C E8 92 BB F4 DA 90 00 [22:53:19]wFMCommunicate OK [22:53:19]SAM_PROTO_SignData done [22:53:19]FM_MakeSignedData done [22:53:19]CreateOFDProtocolMessage [22:53:19]wFMCommunicate request_size=4 [22:53:19]MH_SAM_APDU [22:53:19]CAPDU: 80 11 00 00 [22:53:19]Write to MH i2c: E2 08 00 33 0F 80 11 00 00 00 00 00 00 BC [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:19]Read from MH i2c: E2 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 17 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: E2 17 00 33 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 0C [22:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:53:19]wFMCommunicate OK [22:53:19]CreateOFDProtocolMessage done [22:53:19]OFDSenderStorePacket 2368 [22:53:19]StoreOFDPacket docnum=2368 [22:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 0A 8D 1B 01 62 5D 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 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 D9 00 00 00 F4 03 04 00 5E 1D A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 09 00 00 35 04 06 00 CD D0 9C B5 44 0F 4C 79 0C E8 92 BB F4 DA [22:53:19]CheckFolder [22:53:19]dirname=/storage/ofd_packets [22:53:19]CheckFolder done [22:53:19]ProducePacketName [22:53:19]name=ofd_packets/00002368 [22:53:19]NVStorageSaveData ofd_packets/00002368 [22:53:19]File name is /storage/ofd_packets/00002368 [22:53:19]Write 321 bytes [22:53:19]NVStorageSaveData done [22:53:19]OFDSenderStorePacket done [22:53:19]KKMCreateOFDPacket done [22:53:19]NVStorageSaveData kkm_last_timestamp [22:53:19]File name is /storage/kkm_last_timestamp [22:53:19]Write 4 bytes [22:53:19]NVStorageSaveData done [22:53:19]ExternCall_PrintAddStr [22:53:19]wPrintStart [22:53:19]Write to MH i2c: 01 00 00 34 0F 43 [22:53:19]Write i2c OK [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 07 00 [22:53:19]MH_I2C_Read... [22:53:19]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 FF 0F 58 [22:53:19]RasterBufferAndPrint [22:53:19]line Счет N : (3)126585 [22:53:19]line ИНН: 02508201610067 [22:53:19]line Контрольно-Кассовый Чек [22:53:19]line ПРОДАЖА [22:53:19]line Товар: 4700025313937 [22:53:19]line ВОДКА МЯГКАЯ 0,1л [22:53:19]line 4.000 * 60.00 [22:53:19]line = 240.00 [22:53:19]line НДС 12% НСП 1% [22:53:19]line > о реализуемом товаре [22:53:19]line ИТОГО: 240.00 [22:53:19]line НСП 1% : 2.12 [22:53:19]line НДС 12% : 25.49 [22:53:19]line Наличными: 240.00 [22:53:19]line Безнал.: 0.00 [22:53:19]line Место: АЗС № 127 "Партнер Нефть" [22:53:19]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [22:53:19]line СНО: Общий режим [22:53:19]line Чек 217 29.07.2024 22:53 [22:53:19]line Смена: 15 ФФД: 1.0 [22:53:19]line ЗНМ: 0300000161 [22:53:19]line РНМ: 0000000000189667 [22:53:19]line Версия ККМ: v1.0 [22:53:19]line ФМ: 0000000002094248 [22:53:19]line ФД: 2368 [22:53:19]line ФПД: 226295866016783 [22:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225318&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2368&fm=226295866016783&tin=02508201610067®Number=0000000000189667&sum=24000 [22:53:20]line 0 [22:53:20]OFD Sender: Processing packet 2368 [packets to send 1, broken 0] [22:53:20]ProducePacketName [22:53:20]name=ofd_packets/00002368 [22:53:20]OFD Sender: To server: pG, [22:53:20]CommunicateWithHost lk.salyk.kg:30040 [22:53:20]ConnectInit lk.salyk.kg [22:53:20]written 0, free lines is 4095 [22:53:20]Connected sock=9 [22:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 23 01 00 00 0A 8D 1B 01 62 5D 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 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 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 D9 00 00 00 F4 03 04 00 5E 1D A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 40 09 00 00 35 04 06 00 CD D0 9C B5 44 0F 4C 79 0C E8 92 BB F4 DA [22:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C0 08 47 00 10 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 32 30 39 34 32 34 38 10 04 04 00 40 09 00 00 F4 03 04 00 CA C8 A7 66 B6 04 01 00 00 BF B7 CB 6F 03 7E 19 CB [22:53:20]CommunicateWithHost err = 0 [22:53:20]CheckOFDResponse [22:53:20]1017 (14) - 77093643461234 [22:53:20]1041 (16) - 0000000002094248 [22:53:20]1040 (4) - 2368 [22:53:20]1012 (4) - 29.07.2024 16:52 [22:53:20]1206 (1) - 0 [22:53:20]OFD Sender: Remove packet 2368 [22:53:20]ProducePacketName [22:53:20]name=ofd_packets/00002368 [22:53:20]NVStorageDeleteData [22:53:20]Write to MH i2c: 01 00 00 5C 0F 6B [22:53:20]Write i2c OK [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: 01 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: 01 07 00 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: 01 07 00 5C 0F 00 00 00 00 00 27 0D A6 [22:53:20]RasterBufferAndPrint [22:53:20]line [22:53:20]line [22:53:20]line [22:53:20]line [22:53:20]line [22:53:20]written 0, free lines is 3377 [22:53:20]MH_Cut [22:53:20]Write to MH i2c: D1 01 00 63 0F 01 44 [22:53:20]Write i2c OK [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: D1 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: D1 01 00 [22:53:20]MH_I2C_Read... [22:53:20]Read from MH i2c: D1 01 00 63 0F 00 43 [22:53:20]Write to MH i2c: 01 00 00 64 0F 73 [22:53:20]Write i2c OK [22:53:20]MH_I2C_Read... [22:53:20]OFD Sender: No OFD packet to send [22:53:21]*** Cut start [22:53:21]*** Partial cut [22:53:21]*** CUTSNS_PIN = 1 [22:53:21]*** CUTSNS_PIN = 0 [22:53:21]*** Brake cut motor [22:53:21]Read from MH i2c: 01 [22:53:21]MH_I2C_Read... [22:53:21]*** Stop cut motor [22:53:21]*** Cut end [22:53:21]Read from MH i2c: 01 07 00 [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 FF 0F 88 [22:53:21]process_action close_receipt done [22:53:21]requested_data is exist [22:53:21]produce_requested_data [22:53:21]requested_item fm.sn is exist - process it [22:53:21]wFMCommunicate request_size=4 [22:53:21]MH_SAM_APDU [22:53:21]CAPDU: 80 11 00 00 [22:53:21]Write to MH i2c: E2 08 00 65 0F 80 11 00 00 00 00 00 00 EE [22:53:21]Write i2c OK [22:53:21]MH_I2C_Read... [22:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:21]Read from MH i2c: E2 [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: E2 17 00 [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: E2 17 00 65 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3E [22:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [22:53:21]wFMCommunicate OK [22:53:21]requested_item fd.num is exist - process it [22:53:21]SAM_PROTO_GetFieldsCounters [22:53:21]wFMCommunicate request_size=4 [22:53:21]MH_SAM_APDU [22:53:21]CAPDU: 80 13 00 00 [22:53:21]Write to MH i2c: E2 08 00 66 0F 80 13 00 00 00 00 00 00 F1 [22:53:21]Write i2c OK [22:53:21]MH_I2C_Read... [22:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:21]Read from MH i2c: E2 [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: E2 62 00 [22:53:21]MH_I2C_Read... [22:53:21]Read from MH i2c: E2 62 00 66 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 40 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [22:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 40 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:21]wFMCommunicate OK [22:53:21]SAM_PROTO_GetFieldsCounters done [22:53:21]requested_item shift.num is exist - process it [22:53:21]requested_item shift.opened is exist - process it [22:53:21]req_shift_opened [22:53:21]FM_GetShiftState [22:53:21]SAM_PROTO_GetShiftState [22:53:21]wFMCommunicate request_size=4 [22:53:21]MH_SAM_APDU [22:53:21]CAPDU: 80 13 01 00 [22:53:21]Write to MH i2c: E2 08 00 67 0F 80 13 01 00 00 00 00 00 F3 [22:53:21]Write i2c OK [22:53:21]MH_I2C_Read... [22:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:22]Read from MH i2c: E2 [22:53:22]MH_I2C_Read... [22:53:22]Read from MH i2c: E2 0E 00 [22:53:22]MH_I2C_Read... [22:53:22]Read from MH i2c: E2 0E 00 67 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EC [22:53:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [22:53:22]wFMCommunicate OK [22:53:22]SAM_PROTO_GetShiftState done [22:53:22]FM_GetShiftState done [22:53:22]req_shift_opened done [22:53:22]requested_item shift.open_date is exist - process it [22:53:22]req_shift_open_date [22:53:22]req_shift_open_date done [22:53:22]produce_requested_data done [22:53:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2368,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [22:53:22]process_action_free close_receipt [22:53:22]json_value_free [22:53:22]json_value_free done [22:53:22]process_json_proto returns [22:53:22]Send response to host [22:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2368,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [22:53:22]free response buf [22:53:22]execute_script done [22:53:22]execute_script returns [22:53:22]free content buf [22:53:22]Sock 7.Close socket [22:53:22]Sock 7.Thread stoped [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:49]accept exits with 10 [23:07:49]New connection [23:07:49]New thread 3067420004 created [23:07:49]Thread 3067276644 joined [23:07:49]Waiting for new connection... [23:07:49] Sock 10.Parse request [23:07:49]Sock 10.Check first char [23:07:49]Sock 10.First char is OK [23:07:49]request: POST /json_proto HTTP/1.0 [23:07:49]Method: POST [23:07:49]URL: /json_proto [23:07:49]Method is POST - this is cgi request [23:07:49]url: /json_proto [23:07:49]query_string will be loaded in cgi processing [23:07:49]execute_cgi json_proto POST (null) [23:07:49]execute_cgi path=json_proto method=POST [23:07:49]POST find Content-Length [23:07:49]Host: 172.17.45.132:8080 [23:07:49]Content-Length: 622 [23:07:49]Content-Type: application/json [23:07:49] [23:07:49]POST finish read [23:07:49]Found Content-Length = 622 [23:07:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126586", "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:07:49]execute_script... [23:07:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126586", "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:07:49]POST & json_proto [23:07:49]process_json_proto [23:07:49]json parsed OK: [23:07:49]protocol is kg_v1.0 [23:07:49]action value=close_receipt [23:07:49]process_action close_receipt [23:07:49]cmd_close_receipt [23:07:49]MH_GetDate [23:07:49]Write to MH i2c: F0 00 00 68 0F 66 [23:07:50]Write i2c OK [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: F0 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: F0 09 00 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: F0 09 00 68 0F 00 C6 20 A8 66 E3 0B 90 66 47 [23:07:50]GetLastDocTimeStamp 1722293598 [23:07:50]current date 1722294470 [23:07:50]FM_GetShiftState [23:07:50]SAM_PROTO_GetShiftState [23:07:50]wFMCommunicate request_size=4 [23:07:50]MH_SAM_APDU [23:07:50]CAPDU: 80 13 01 00 [23:07:50]Write to MH i2c: E2 08 00 69 0F 80 13 01 00 00 00 00 00 F5 [23:07:50]Write i2c OK [23:07:50]MH_I2C_Read... [23:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:50]Read from MH i2c: E2 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: E2 0E 00 [23:07:50]MH_I2C_Read... [23:07:50]Read from MH i2c: E2 0E 00 69 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 EE [23:07:50]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:07:50]wFMCommunicate OK [23:07:50]SAM_PROTO_GetShiftState done [23:07:50]FM_GetShiftState done [23:07:50]opened in 1722213119 [23:07:50]opened+sec_in_day 1722299519 [23:07:50]quantity*price = 15000 [23:07:50]sum+1 = 15001 [23:07:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 218 29.07.2024 23:07 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2369 ФПД: 162192261144494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230751&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2369&fm=162192261144494&tin=02508201610067®Number=0000000000189667&sum=15000 0 [23:07:51]StoreToDocumentArchive [23:07:51]shift 15 fd 2369 [23:07:51]save to /storage/0015/doc_00002369 [23:07:51]save last doc name /storage/0015/doc_00002369 to /storage/kkm_last_doc_name [23:07:51]save OK [23:07:51]Clear old archive folders... [23:07:51]ProcessDocumentItem done err = 0, tmpTLVsize=274 [23:07:51]tlvbuf is 01127460 [23:07:51]SAM_PROTO_ClearQueue [23:07:51]wFMCommunicate request_size=4 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 09 00 00 [23:07:51]Write to MH i2c: E2 08 00 76 0F 80 09 00 00 00 00 00 00 F7 [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [23:07:51]RAPDU: 90 00 [23:07:51]wFMCommunicate OK [23:07:51]SAM_PROTO_ClearQueue done [23:07:51]KKMCreateOFDPacket [23:07:51]OFDProtocolAddRootSTLVToBuf [23:07:51]FM_MakeSignedData [23:07:51]FM_MakeSignedData [23:07:51]SAM_PROTO_SignData [23:07:51]wFMCommunicate request_size=4 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 0D 01 02 [23:07:51]Write to MH i2c: E2 08 00 77 0F 80 0D 01 02 00 00 00 00 FF [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 77 0F 00 90 00 FA [23:07:51]RAPDU: 90 00 [23:07:51]wFMCommunicate OK [23:07:51]wFMCommunicate request_size=255 [23:07:51]MH_SAM_APDU [23:07:51]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 DA 00 00 00 F4 03 04 00 C7 20 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 [23:07:51]Write to MH i2c: E2 02 01 78 0F 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 DA 00 00 00 F4 03 04 00 C7 20 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 00 00 86 [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 78 0F 00 90 00 FB [23:07:51]RAPDU: 90 00 [23:07:51]wFMCommunicate OK [23:07:51]wFMCommunicate request_size=33 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 0D 02 02 1C 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 09 00 00 35 04 06 00 93 83 54 1C 5F AE [23:07:51]Write to MH i2c: E2 24 00 79 0F 80 0D 02 02 1C 00 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 09 00 00 35 04 06 00 93 83 54 1C 5F AE 00 00 6B [23:07:51]OFD Sender: No OFD packet to send [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 03 00 79 0F 00 90 00 FC [23:07:51]RAPDU: 90 00 [23:07:51]wFMCommunicate OK [23:07:51]wFMCommunicate request_size=4 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 0D 03 02 [23:07:51]Write to MH i2c: E2 08 00 7A 0F 80 0D 03 02 00 00 00 00 04 [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 0B 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 0B 00 7A 0F 00 79 E1 6C 25 2F 04 C0 56 90 00 39 [23:07:51]RAPDU: 79 E1 6C 25 2F 04 C0 56 90 00 [23:07:51]wFMCommunicate OK [23:07:51]SAM_PROTO_SignData done [23:07:51]FM_MakeSignedData done [23:07:51]CreateOFDProtocolMessage [23:07:51]wFMCommunicate request_size=4 [23:07:51]MH_SAM_APDU [23:07:51]CAPDU: 80 11 00 00 [23:07:51]Write to MH i2c: E2 08 00 7B 0F 80 11 00 00 00 00 00 00 04 [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:51]Read from MH i2c: E2 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 17 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: E2 17 00 7B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 54 [23:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:07:51]wFMCommunicate OK [23:07:51]CreateOFDProtocolMessage done [23:07:51]OFDSenderStorePacket 2369 [23:07:51]StoreOFDPacket docnum=2369 [23:07:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 B5 26 1E 01 0E F7 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 DA 00 00 00 F4 03 04 00 C7 20 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 09 00 00 35 04 06 00 93 83 54 1C 5F AE 79 E1 6C 25 2F 04 C0 56 [23:07:51]CheckFolder [23:07:51]dirname=/storage/ofd_packets [23:07:51]CheckFolder done [23:07:51]ProducePacketName [23:07:51]name=ofd_packets/00002369 [23:07:51]NVStorageSaveData ofd_packets/00002369 [23:07:51]File name is /storage/ofd_packets/00002369 [23:07:51]Write 324 bytes [23:07:51]NVStorageSaveData done [23:07:51]OFDSenderStorePacket done [23:07:51]KKMCreateOFDPacket done [23:07:51]NVStorageSaveData kkm_last_timestamp [23:07:51]File name is /storage/kkm_last_timestamp [23:07:51]Write 4 bytes [23:07:51]NVStorageSaveData done [23:07:51]ExternCall_PrintAddStr [23:07:51]wPrintStart [23:07:51]Write to MH i2c: 01 00 00 7C 0F 8B [23:07:51]Write i2c OK [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: 01 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: 01 07 00 [23:07:51]MH_I2C_Read... [23:07:51]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 FF 0F A0 [23:07:51]RasterBufferAndPrint [23:07:51]line Счет N : (3)126586 [23:07:51]line ИНН: 02508201610067 [23:07:51]line Контрольно-Кассовый Чек [23:07:51]line ПРОДАЖА [23:07:51]line Товар: 4640030091645 [23:07:51]line Сигареты ESSE Exchange M [23:07:51]line 1.000 * 150.00 [23:07:51]line = 150.00 [23:07:51]line НДС 12% НСП 1% [23:07:51]line > о реализуемом товаре [23:07:51]line ИТОГО: 150.00 [23:07:51]line НСП 1% : 1.33 [23:07:51]line НДС 12% : 15.93 [23:07:51]line Наличными: 150.00 [23:07:51]line Безнал.: 0.00 [23:07:51]line Место: АЗС № 127 "Партнер Нефть" [23:07:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:07:51]line СНО: Общий режим [23:07:51]line Чек 218 29.07.2024 23:07 [23:07:51]line Смена: 15 ФФД: 1.0 [23:07:51]line ЗНМ: 0300000161 [23:07:51]line РНМ: 0000000000189667 [23:07:51]line Версия ККМ: v1.0 [23:07:51]line ФМ: 0000000002094248 [23:07:51]line ФД: 2369 [23:07:51]line ФПД: 162192261144494 [23:07:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230751&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2369&fm=162192261144494&tin=02508201610067®Number=0000000000189667&sum=15000 [23:07:52]line 0 [23:07:52]OFD Sender: Processing packet 2369 [packets to send 1, broken 0] [23:07:52]ProducePacketName [23:07:52]name=ofd_packets/00002369 [23:07:52]OFD Sender: To server: pG, [23:07:52]CommunicateWithHost lk.salyk.kg:30040 [23:07:52]ConnectInit lk.salyk.kg [23:07:52]written 0, free lines is 4095 [23:07:52]Connected sock=9 [23:07:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 26 01 00 00 B5 26 1E 01 0E F7 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 DA 00 00 00 F4 03 04 00 C7 20 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 09 00 00 35 04 06 00 93 83 54 1C 5F AE 79 E1 6C 25 2F 04 C0 56 [23:07:52]Write to MH i2c: 01 00 00 A4 0F B3 [23:07:52]Write i2c OK [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: 01 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: 01 07 00 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 1D 0D E4 [23:07:52]RasterBufferAndPrint [23:07:52]line [23:07:52]line [23:07:52]line [23:07:52]line [23:07:52]line [23:07:52]written 0, free lines is 3365 [23:07:52]MH_Cut [23:07:52]Write to MH i2c: D1 01 00 AB 0F 01 8C [23:07:52]Write i2c OK [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: D1 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: D1 01 00 [23:07:52]MH_I2C_Read... [23:07:52]Read from MH i2c: D1 01 00 AB 0F 00 8B [23:07:52]Write to MH i2c: 01 00 00 AC 0F BB [23:07:52]Write i2c OK [23:07:52]MH_I2C_Read... [23:07:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 C7 03 47 00 9B 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 41 09 00 00 F4 03 04 00 32 CC A7 66 B6 04 01 00 00 56 32 94 BD 05 BE DE EE [23:07:52]CommunicateWithHost err = 0 [23:07:52]CheckOFDResponse [23:07:52]1017 (14) - 77093643461234 [23:07:52]1041 (16) - 0000000002094248 [23:07:52]1040 (4) - 2369 [23:07:52]1012 (4) - 29.07.2024 17:06 [23:07:52]1206 (1) - 0 [23:07:52]OFD Sender: Remove packet 2369 [23:07:52]ProducePacketName [23:07:52]name=ofd_packets/00002369 [23:07:52]NVStorageDeleteData [23:07:53]OFD Sender: No OFD packet to send [23:07:53]*** Cut start [23:07:53]*** Partial cut [23:07:53]*** CUTSNS_PIN = 1 [23:07:53]*** CUTSNS_PIN = 0 [23:07:53]*** Brake cut motor [23:07:53]Read from MH i2c: 01 [23:07:53]MH_I2C_Read... [23:07:53]*** Stop cut motor [23:07:53]*** Cut end [23:07:53]Read from MH i2c: 01 07 00 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [23:07:53]process_action close_receipt done [23:07:53]requested_data is exist [23:07:53]produce_requested_data [23:07:53]requested_item fm.sn is exist - process it [23:07:53]wFMCommunicate request_size=4 [23:07:53]MH_SAM_APDU [23:07:53]CAPDU: 80 11 00 00 [23:07:53]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [23:07:53]Write i2c OK [23:07:53]MH_I2C_Read... [23:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:53]Read from MH i2c: E2 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 17 00 [23:07:53]MH_I2C_Read... [23:07:53]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 86 [23:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:07:53]wFMCommunicate OK [23:07:53]requested_item fd.num is exist - process it [23:07:53]SAM_PROTO_GetFieldsCounters [23:07:53]wFMCommunicate request_size=4 [23:07:53]MH_SAM_APDU [23:07:53]CAPDU: 80 13 00 00 [23:07:53]Write to MH i2c: E2 08 00 AE 0F 80 13 00 00 00 00 00 00 39 [23:07:53]Write i2c OK [23:07:53]MH_I2C_Read... [23:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:54]Read from MH i2c: E2 [23:07:54]MH_I2C_Read... [23:07:54]Read from MH i2c: E2 62 00 [23:07:54]MH_I2C_Read... [23:07:54]Read from MH i2c: E2 62 00 AE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 41 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [23:07:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 41 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:54]wFMCommunicate OK [23:07:54]SAM_PROTO_GetFieldsCounters done [23:07:54]requested_item shift.num is exist - process it [23:07:54]requested_item shift.opened is exist - process it [23:07:54]req_shift_opened [23:07:54]FM_GetShiftState [23:07:54]SAM_PROTO_GetShiftState [23:07:54]wFMCommunicate request_size=4 [23:07:54]MH_SAM_APDU [23:07:54]CAPDU: 80 13 01 00 [23:07:54]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [23:07:54]Write i2c OK [23:07:54]MH_I2C_Read... [23:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:54]Read from MH i2c: E2 [23:07:54]MH_I2C_Read... [23:07:54]Read from MH i2c: E2 0E 00 [23:07:54]MH_I2C_Read... [23:07:54]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 34 [23:07:54]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:07:54]wFMCommunicate OK [23:07:54]SAM_PROTO_GetShiftState done [23:07:54]FM_GetShiftState done [23:07:54]req_shift_opened done [23:07:54]requested_item shift.open_date is exist - process it [23:07:54]req_shift_open_date [23:07:54]req_shift_open_date done [23:07:54]produce_requested_data done [23:07:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2369,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:07:54]process_action_free close_receipt [23:07:54]json_value_free [23:07:54]json_value_free done [23:07:54]process_json_proto returns [23:07:54]Send response to host [23:07:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2369,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:07:54]free response buf [23:07:54]execute_script done [23:07:54]execute_script returns [23:07:54]free content buf [23:07:54]Sock 10.Close socket [23:07:54]Sock 10.Thread stoped [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]accept exits with 7 [23:18:38]New connection [23:18:38]New thread 3067276644 created [23:18:38]Thread 3067420004 joined [23:18:38]Waiting for new connection... [23:18:38] Sock 7.Parse request [23:18:38]Sock 7.Check first char [23:18:38]Sock 7.First char is OK [23:18:38]request: POST /json_proto HTTP/1.0 [23:18:38]Method: POST [23:18:38]URL: /json_proto [23:18:38]Method is POST - this is cgi request [23:18:38]url: /json_proto [23:18:38]query_string will be loaded in cgi processing [23:18:38]execute_cgi json_proto POST (null) [23:18:38]execute_cgi path=json_proto method=POST [23:18:38]POST find Content-Length [23:18:38]Host: 172.17.45.132:8080 [23:18:38]Content-Length: 801 [23:18:38]Content-Type: application/json [23:18:38] [23:18:38]POST finish read [23:18:38]Found Content-Length = 801 [23:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 11.280, "sum" : 764.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 764.78 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:38]execute_script... [23:18:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 11.280, "sum" : 764.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 764.78 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:38]POST & json_proto [23:18:38]process_json_proto [23:18:38]json parsed OK: [23:18:38]protocol is kg_v1.0 [23:18:38]action value=close_receipt [23:18:38]process_action close_receipt [23:18:38]cmd_close_receipt [23:18:38]MH_GetDate [23:18:38]Write to MH i2c: F0 00 00 B0 0F AE [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: F0 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: F0 09 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: F0 09 00 B0 0F 00 4F 23 A8 66 E3 0B 90 66 1B [23:18:38]GetLastDocTimeStamp 1722294471 [23:18:38]current date 1722295119 [23:18:38]FM_GetShiftState [23:18:38]SAM_PROTO_GetShiftState [23:18:38]wFMCommunicate request_size=4 [23:18:38]MH_SAM_APDU [23:18:38]CAPDU: 80 13 01 00 [23:18:38]Write to MH i2c: E2 08 00 B1 0F 80 13 01 00 00 00 00 00 3D [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:38]Read from MH i2c: E2 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 0E 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 0E 00 B1 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 36 [23:18:38]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:18:38]wFMCommunicate OK [23:18:38]SAM_PROTO_GetShiftState done [23:18:38]FM_GetShiftState done [23:18:38]opened in 1722213119 [23:18:38]opened+sec_in_day 1722299519 [23:18:38]quantity*price = 76478 [23:18:38]sum+1 = 76479 [23:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 764.78 НСП 1% : 6.77 НДС 12% : 81.22 Наличными: 0.00 Безнал.: 764.78 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 219 29.07.2024 23:18 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2370 ФПД: 172904102731594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231839&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2370&fm=172904102731594&tin=02508201610067®Number=0000000000189667&sum=76478 [23:18:39]StoreToDocumentArchive [23:18:39]shift 15 fd 2370 [23:18:39]save to /storage/0015/doc_00002370 [23:18:39]save last doc name /storage/0015/doc_00002370 to /storage/kkm_last_doc_name [23:18:39]save OK [23:18:39]Clear old archive folders... [23:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:18:39]tlvbuf is B6F33B30 [23:18:39]SAM_PROTO_ClearQueue [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 09 00 00 [23:18:39]Write to MH i2c: E2 08 00 BE 0F 80 09 00 00 00 00 00 00 3F [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [23:18:39]RAPDU: 90 00 [23:18:39]wFMCommunicate OK [23:18:39]SAM_PROTO_ClearQueue done [23:18:39]KKMCreateOFDPacket [23:18:39]OFDProtocolAddRootSTLVToBuf [23:18:39]FM_MakeSignedData [23:18:39]FM_MakeSignedData [23:18:39]SAM_PROTO_SignData [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 0D 01 02 [23:18:39]Write to MH i2c: E2 08 00 BF 0F 80 0D 01 02 00 00 00 00 47 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [23:18:39]RAPDU: 90 00 [23:18:39]wFMCommunicate OK [23:18:39]wFMCommunicate request_size=255 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 09 00 00 35 04 06 00 9D [23:18:39]Write to MH i2c: E2 02 01 C0 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 09 00 00 35 04 06 00 9D 00 00 B6 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [23:18:39]RAPDU: 90 00 [23:18:39]wFMCommunicate OK [23:18:39]wFMCommunicate request_size=10 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 0D 02 02 05 41 5F 9F 9F 4A [23:18:39]Write to MH i2c: E2 0D 00 C1 0F 80 0D 02 02 05 00 41 5F 9F 9F 4A 00 00 7C [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [23:18:39]RAPDU: 90 00 [23:18:39]wFMCommunicate OK [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 0D 03 02 [23:18:39]Write to MH i2c: E2 08 00 C2 0F 80 0D 03 02 00 00 00 00 4C [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 0B 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 0B 00 C2 0F 00 6D 10 36 38 A3 25 4B 1A 90 00 65 [23:18:39]RAPDU: 6D 10 36 38 A3 25 4B 1A 90 00 [23:18:39]wFMCommunicate OK [23:18:39]SAM_PROTO_SignData done [23:18:39]FM_MakeSignedData done [23:18:39]CreateOFDProtocolMessage [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 11 00 00 [23:18:39]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 17 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 17 00 C3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9C [23:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:18:39]wFMCommunicate OK [23:18:39]CreateOFDProtocolMessage done [23:18:39]OFDSenderStorePacket 2370 [23:18:39]StoreOFDPacket docnum=2370 [23:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1E E9 07 01 8B 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 09 00 00 35 04 06 00 9D 41 5F 9F 9F 4A 6D 10 36 38 A3 25 4B 1A [23:18:39]CheckFolder [23:18:39]dirname=/storage/ofd_packets [23:18:39]CheckFolder done [23:18:39]ProducePacketName [23:18:39]name=ofd_packets/00002370 [23:18:39]NVStorageSaveData ofd_packets/00002370 [23:18:39]File name is /storage/ofd_packets/00002370 [23:18:39]Write 301 bytes [23:18:39]NVStorageSaveData done [23:18:39]OFDSenderStorePacket done [23:18:39]KKMCreateOFDPacket done [23:18:39]NVStorageSaveData kkm_last_timestamp [23:18:39]File name is /storage/kkm_last_timestamp [23:18:39]Write 4 bytes [23:18:39]NVStorageSaveData done [23:18:39]ExternCall_PrintAddStr [23:18:39]wPrintStart [23:18:39]Write to MH i2c: 01 00 00 C4 0F D3 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 07 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 FF 0F E8 [23:18:39]RasterBufferAndPrint [23:18:39]line Счет N : (1)610230 [23:18:39]line ИНН: 02508201610067 [23:18:39]line Контрольно-Кассовый Чек [23:18:39]line ПРОДАЖА [23:18:39]line ТРК (МРК, ГНК) : 32 [23:18:39]line Товар: 2710124130 [23:18:39]line Аи-92-К-2 [23:18:39]line 11.280 * 67.80 [23:18:39]line = 764.78 [23:18:39]line НДС 12% НСП 1% [23:18:39]line > о реализуемом товаре [23:18:39]line ИТОГО: 764.78 [23:18:39]line НСП 1% : 6.77 [23:18:39]line НДС 12% : 81.22 [23:18:39]line Наличными: 0.00 [23:18:39]line Безнал.: 764.78 [23:18:39]line Место: АЗС № 127 "Партнер Нефть" [23:18:39]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:18:39]line СНО: Общий режим [23:18:39]line Чек 219 29.07.2024 23:18 [23:18:39]line Смена: 15 ФФД: 1.0 [23:18:39]line ЗНМ: 0300000161 [23:18:39]line РНМ: 0000000000189667 [23:18:39]line Версия ККМ: v1.0 [23:18:39]line Платежная система: O! деньги [23:18:39]line ФМ: 0000000002094248 [23:18:39]line ФД: 2370 [23:18:39]line ФПД: 172904102731594 [23:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231839&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2370&fm=172904102731594&tin=02508201610067®Number=0000000000189667&sum=76478 [23:18:40]OFD Sender: Processing packet 2370 [packets to send 1, broken 0] [23:18:40]ProducePacketName [23:18:40]name=ofd_packets/00002370 [23:18:40]OFD Sender: To server: pG, [23:18:40]CommunicateWithHost lk.salyk.kg:30040 [23:18:40]ConnectInit lk.salyk.kg [23:18:40]written 0, free lines is 4095 [23:18:40]Connected sock=10 [23:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 1E E9 07 01 8B 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 2C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 2A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 2A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 09 00 00 35 04 06 00 9D 41 5F 9F 9F 4A 6D 10 36 38 A3 25 4B 1A [23:18:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 9C B3 47 00 AD FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 42 09 00 00 F4 03 04 00 BA CE A7 66 B6 04 01 00 00 CE 0D 0D AD 9E AA 6D BA [23:18:40]CommunicateWithHost err = 0 [23:18:40]CheckOFDResponse [23:18:40]1017 (14) - 77093643461234 [23:18:40]1041 (16) - 0000000002094248 [23:18:40]1040 (4) - 2370 [23:18:40]1012 (4) - 29.07.2024 17:17 [23:18:40]1206 (1) - 0 [23:18:40]OFD Sender: Remove packet 2370 [23:18:40]ProducePacketName [23:18:40]name=ofd_packets/00002370 [23:18:40]NVStorageDeleteData [23:18:40]Write to MH i2c: 01 00 00 EE 0F FD [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: 01 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: 01 07 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: 01 07 00 EE 0F 00 00 00 00 00 0E 0D 1F [23:18:40]RasterBufferAndPrint [23:18:40]line [23:18:40]line [23:18:40]line [23:18:40]line [23:18:40]line [23:18:40]written 0, free lines is 3350 [23:18:40]MH_Cut [23:18:40]Write to MH i2c: D1 01 00 F5 0F 01 D6 [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: D1 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: D1 01 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: D1 01 00 F5 0F 00 D5 [23:18:40]Write to MH i2c: 01 00 00 F6 0F 05 [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]OFD Sender: No OFD packet to send [23:18:41]*** Cut start [23:18:41]*** Partial cut [23:18:41]*** CUTSNS_PIN = 1 [23:18:41]*** CUTSNS_PIN = 0 [23:18:41]*** Brake cut motor [23:18:41]Read from MH i2c: 01 [23:18:41]MH_I2C_Read... [23:18:41]*** Stop cut motor [23:18:41]*** Cut end [23:18:41]Read from MH i2c: 01 07 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: 01 07 00 F6 0F 00 00 00 00 00 FF 0F 1A [23:18:41]process_action close_receipt done [23:18:41]requested_data is exist [23:18:41]produce_requested_data [23:18:41]requested_item fm.sn is exist - process it [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 11 00 00 [23:18:41]Write to MH i2c: E2 08 00 F7 0F 80 11 00 00 00 00 00 00 80 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 17 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 17 00 F7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D0 [23:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:18:41]wFMCommunicate OK [23:18:41]requested_item fd.num is exist - process it [23:18:41]SAM_PROTO_GetFieldsCounters [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 13 00 00 [23:18:41]Write to MH i2c: E2 08 00 F8 0F 80 13 00 00 00 00 00 00 83 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:42]Read from MH i2c: E2 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 62 00 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 62 00 F8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 42 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [23:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 42 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:42]wFMCommunicate OK [23:18:42]SAM_PROTO_GetFieldsCounters done [23:18:42]requested_item shift.num is exist - process it [23:18:42]requested_item shift.opened is exist - process it [23:18:42]req_shift_opened [23:18:42]FM_GetShiftState [23:18:42]SAM_PROTO_GetShiftState [23:18:42]wFMCommunicate request_size=4 [23:18:42]MH_SAM_APDU [23:18:42]CAPDU: 80 13 01 00 [23:18:42]Write to MH i2c: E2 08 00 F9 0F 80 13 01 00 00 00 00 00 85 [23:18:42]Write i2c OK [23:18:42]MH_I2C_Read... [23:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:42]Read from MH i2c: E2 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 0E 00 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 0E 00 F9 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 7E [23:18:42]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:18:42]wFMCommunicate OK [23:18:42]SAM_PROTO_GetShiftState done [23:18:42]FM_GetShiftState done [23:18:42]req_shift_opened done [23:18:42]requested_item shift.open_date is exist - process it [23:18:42]req_shift_open_date [23:18:42]req_shift_open_date done [23:18:42]produce_requested_data done [23:18:42]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2370,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:18:42]process_action_free close_receipt [23:18:42]json_value_free [23:18:42]json_value_free done [23:18:42]process_json_proto returns [23:18:42]Send response to host [23:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2370,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:18:42]free response buf [23:18:42]execute_script done [23:18:42]execute_script returns [23:18:42]free content buf [23:18:42]Sock 7.Close socket [23:18:42]Sock 7.Thread stoped [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:18]accept exits with 9 [23:19:18]New connection [23:19:18]New thread 3067420004 created [23:19:18]Thread 3067276644 joined [23:19:18]Waiting for new connection... [23:19:18] Sock 9.Parse request [23:19:18]Sock 9.Check first char [23:19:18]Sock 9.First char is OK [23:19:18]request: POST /json_proto HTTP/1.0 [23:19:18]Method: POST [23:19:18]URL: /json_proto [23:19:18]Method is POST - this is cgi request [23:19:18]url: /json_proto [23:19:18]query_string will be loaded in cgi processing [23:19:18]execute_cgi json_proto POST (null) [23:19:18]execute_cgi path=json_proto method=POST [23:19:18]POST find Content-Length [23:19:18]Host: 172.17.45.132:8080 [23:19:18]Content-Length: 682 [23:19:18]Content-Type: application/json [23:19:18] [23:19:18]POST finish read [23:19:18]Found Content-Length = 682 [23:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:18]execute_script... [23:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:18]POST & json_proto [23:19:18]process_json_proto [23:19:18]json parsed OK: [23:19:18]protocol is kg_v1.0 [23:19:18]action value=close_receipt [23:19:18]process_action close_receipt [23:19:18]cmd_close_receipt [23:19:18]MH_GetDate [23:19:18]Write to MH i2c: F0 00 00 FA 0F F8 [23:19:18]Write i2c OK [23:19:18]MH_I2C_Read... [23:19:18]Read from MH i2c: F0 [23:19:18]MH_I2C_Read... [23:19:18]Read from MH i2c: F0 09 00 [23:19:18]MH_I2C_Read... [23:19:18]Read from MH i2c: F0 09 00 FA 0F 00 77 23 A8 66 E3 0B 90 66 8D [23:19:18]GetLastDocTimeStamp 1722295119 [23:19:18]current date 1722295159 [23:19:18]FM_GetShiftState [23:19:18]SAM_PROTO_GetShiftState [23:19:18]wFMCommunicate request_size=4 [23:19:18]MH_SAM_APDU [23:19:18]CAPDU: 80 13 01 00 [23:19:18]Write to MH i2c: E2 08 00 FB 0F 80 13 01 00 00 00 00 00 87 [23:19:18]Write i2c OK [23:19:18]MH_I2C_Read... [23:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:18]Read from MH i2c: E2 [23:19:18]MH_I2C_Read... [23:19:18]Read from MH i2c: E2 0E 00 [23:19:18]MH_I2C_Read... [23:19:18]Read from MH i2c: E2 0E 00 FB 0F 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 80 [23:19:18]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:19:18]wFMCommunicate OK [23:19:18]SAM_PROTO_GetShiftState done [23:19:18]FM_GetShiftState done [23:19:18]opened in 1722213119 [23:19:18]opened+sec_in_day 1722299519 [23:19:18]quantity*price = 200010 [23:19:18]sum+1 = 200011 [23:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 220 29.07.2024 23:19 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2371 ФПД: 62968989954336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231919&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2371&fm=62968989954336&tin=02508201610067®Number=0000000000189667&sum=200000 [23:19:19]StoreToDocumentArchive [23:19:19]shift 15 fd 2371 [23:19:19]save to /storage/0015/doc_00002371 [23:19:19]save last doc name /storage/0015/doc_00002371 to /storage/kkm_last_doc_name [23:19:19]save OK [23:19:19]Clear old archive folders... [23:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:19]tlvbuf is 01127C10 [23:19:19]SAM_PROTO_ClearQueue [23:19:19]wFMCommunicate request_size=4 [23:19:19]MH_SAM_APDU [23:19:19]CAPDU: 80 09 00 00 [23:19:19]Write to MH i2c: E2 08 00 08 10 80 09 00 00 00 00 00 00 8A [23:19:19]Write i2c OK [23:19:19]MH_I2C_Read... [23:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:19]Read from MH i2c: E2 [23:19:19]MH_I2C_Read... [23:19:19]Read from MH i2c: E2 03 00 [23:19:19]MH_I2C_Read... [23:19:19]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [23:19:19]RAPDU: 90 00 [23:19:19]wFMCommunicate OK [23:19:19]SAM_PROTO_ClearQueue done [23:19:19]KKMCreateOFDPacket [23:19:19]OFDProtocolAddRootSTLVToBuf [23:19:19]FM_MakeSignedData [23:19:19]FM_MakeSignedData [23:19:19]SAM_PROTO_SignData [23:19:19]wFMCommunicate request_size=4 [23:19:19]MH_SAM_APDU [23:19:19]CAPDU: 80 0D 01 02 [23:19:19]Write to MH i2c: E2 08 00 09 10 80 0D 01 02 00 00 00 00 92 [23:19:19]Write i2c OK [23:19:19]MH_I2C_Read... [23:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:19]Read from MH i2c: E2 [23:19:19]MH_I2C_Read... [23:19:19]Read from MH i2c: E2 03 00 [23:19:19]MH_I2C_Read... [23:19:19]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [23:19:19]RAPDU: 90 00 [23:19:19]wFMCommunicate OK [23:19:19]wFMCommunicate request_size=255 [23:19:19]MH_SAM_APDU [23:19:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 09 00 00 35 04 06 00 39 [23:19:19]Write to MH i2c: E2 02 01 0A 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 09 00 00 35 04 06 00 39 00 00 33 [23:19:19]Write i2c OK [23:19:19]MH_I2C_Read... [23:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:20]Read from MH i2c: E2 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 03 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [23:19:20]RAPDU: 90 00 [23:19:20]wFMCommunicate OK [23:19:20]wFMCommunicate request_size=10 [23:19:20]MH_SAM_APDU [23:19:20]CAPDU: 80 0D 02 02 05 45 1C 47 31 20 [23:19:20]Write to MH i2c: E2 0D 00 0B 10 80 0D 02 02 05 00 45 1C 47 31 20 00 00 98 [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:20]Read from MH i2c: E2 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 03 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 03 00 0B 10 00 90 00 8F [23:19:20]RAPDU: 90 00 [23:19:20]wFMCommunicate OK [23:19:20]wFMCommunicate request_size=4 [23:19:20]MH_SAM_APDU [23:19:20]CAPDU: 80 0D 03 02 [23:19:20]Write to MH i2c: E2 08 00 0C 10 80 0D 03 02 00 00 00 00 97 [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:20]Read from MH i2c: E2 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 0B 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 0B 00 0C 10 00 4C 15 52 58 CE 21 01 3F 90 00 D2 [23:19:20]RAPDU: 4C 15 52 58 CE 21 01 3F 90 00 [23:19:20]wFMCommunicate OK [23:19:20]SAM_PROTO_SignData done [23:19:20]FM_MakeSignedData done [23:19:20]CreateOFDProtocolMessage [23:19:20]wFMCommunicate request_size=4 [23:19:20]MH_SAM_APDU [23:19:20]CAPDU: 80 11 00 00 [23:19:20]Write to MH i2c: E2 08 00 0D 10 80 11 00 00 00 00 00 00 97 [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:20]Read from MH i2c: E2 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 17 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 17 00 0D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E7 [23:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:19:20]wFMCommunicate OK [23:19:20]CreateOFDProtocolMessage done [23:19:20]OFDSenderStorePacket 2371 [23:19:20]StoreOFDPacket docnum=2371 [23:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C2 B2 07 01 47 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 09 00 00 35 04 06 00 39 45 1C 47 31 20 4C 15 52 58 CE 21 01 3F [23:19:20]CheckFolder [23:19:20]dirname=/storage/ofd_packets [23:19:20]CheckFolder done [23:19:20]ProducePacketName [23:19:20]name=ofd_packets/00002371 [23:19:20]NVStorageSaveData ofd_packets/00002371 [23:19:20]File name is /storage/ofd_packets/00002371 [23:19:20]Write 301 bytes [23:19:20]NVStorageSaveData done [23:19:20]OFDSenderStorePacket done [23:19:20]KKMCreateOFDPacket done [23:19:20]NVStorageSaveData kkm_last_timestamp [23:19:20]File name is /storage/kkm_last_timestamp [23:19:20]Write 4 bytes [23:19:20]NVStorageSaveData done [23:19:20]ExternCall_PrintAddStr [23:19:20]wPrintStart [23:19:20]Write to MH i2c: 01 00 00 0E 10 1E [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: 01 07 00 0E 10 00 00 00 00 00 FF 0F 33 [23:19:20]RasterBufferAndPrint [23:19:20]line Счет N : (1)610231 [23:19:20]line ИНН: 02508201610067 [23:19:20]line Контрольно-Кассовый Чек [23:19:20]line ПРОДАЖА [23:19:20]line ТРК (МРК, ГНК) : 62 [23:19:20]line Товар: 2710124130 [23:19:20]line Аи-92-К-2 [23:19:20]line 29.500 * 67.80 [23:19:20]line = 2000.10 [23:19:20]line НДС 12% НСП 1% [23:19:20]line > о реализуемом товаре [23:19:20]line ОКРУГЛЕНИЕ: -0.10 [23:19:20]line ИТОГО: 2000.00 [23:19:20]line Внесено: 2000.00 [23:19:20]line СДАЧА: 0.00 [23:19:20]line НСП 1% : 17.70 [23:19:20]line НДС 12% : 212.40 [23:19:20]line Наличными: 2000.00 [23:19:20]line Безнал.: 0.00 [23:19:20]line Место: АЗС № 127 "Партнер Нефть" [23:19:20]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:19:20]line СНО: Общий режим [23:19:20]line Чек 220 29.07.2024 23:19 [23:19:20]line Смена: 15 ФФД: 1.0 [23:19:20]line ЗНМ: 0300000161 [23:19:20]line РНМ: 0000000000189667 [23:19:20]line Версия ККМ: v1.0 [23:19:20]line ФМ: 0000000002094248 [23:19:20]line ФД: 2371 [23:19:20]line ФПД: 62968989954336 [23:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231919&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2371&fm=62968989954336&tin=02508201610067®Number=0000000000189667&sum=200000 [23:19:20]OFD Sender: Processing packet 2371 [packets to send 1, broken 0] [23:19:20]ProducePacketName [23:19:20]name=ofd_packets/00002371 [23:19:20]OFD Sender: To server: pG, [23:19:20]CommunicateWithHost lk.salyk.kg:30040 [23:19:20]ConnectInit lk.salyk.kg [23:19:20]written 0, free lines is 4095 [23:19:20]Connected sock=10 [23:19:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C2 B2 07 01 47 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 43 09 00 00 35 04 06 00 39 45 1C 47 31 20 4C 15 52 58 CE 21 01 3F [23:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D0 0A 47 00 25 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 32 30 39 34 32 34 38 10 04 04 00 43 09 00 00 F4 03 04 00 E2 CE A7 66 B6 04 01 00 00 B1 7D C8 70 7B 95 88 8A [23:19:20]CommunicateWithHost err = 0 [23:19:20]CheckOFDResponse [23:19:20]1017 (14) - 77093643461234 [23:19:20]1041 (16) - 0000000002094248 [23:19:20]1040 (4) - 2371 [23:19:20]1012 (4) - 29.07.2024 17:18 [23:19:20]1206 (1) - 0 [23:19:20]OFD Sender: Remove packet 2371 [23:19:20]ProducePacketName [23:19:20]name=ofd_packets/00002371 [23:19:20]NVStorageDeleteData [23:19:21]Write to MH i2c: 01 00 00 39 10 49 [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: 01 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: 01 07 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: 01 07 00 39 10 00 00 00 00 00 FB 0C 57 [23:19:21]RasterBufferAndPrint [23:19:21]line [23:19:21]line [23:19:21]line [23:19:21]line [23:19:21]line [23:19:21]written 0, free lines is 3329 [23:19:21]MH_Cut [23:19:21]Write to MH i2c: D1 01 00 40 10 01 22 [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: D1 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: D1 01 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: D1 01 00 40 10 00 21 [23:19:21]Write to MH i2c: 01 00 00 41 10 51 [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]OFD Sender: No OFD packet to send [23:19:21]*** Cut start [23:19:21]*** Partial cut [23:19:21]*** CUTSNS_PIN = 1 [23:19:21]*** CUTSNS_PIN = 0 [23:19:22]*** Brake cut motor [23:19:22]Read from MH i2c: 01 [23:19:22]MH_I2C_Read... [23:19:22]*** Stop cut motor [23:19:22]*** Cut end [23:19:22]Read from MH i2c: 01 07 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: 01 07 00 41 10 00 00 00 00 00 FF 0F 66 [23:19:22]process_action close_receipt done [23:19:22]requested_data is exist [23:19:22]produce_requested_data [23:19:22]requested_item fm.sn is exist - process it [23:19:22]wFMCommunicate request_size=4 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 11 00 00 [23:19:22]Write to MH i2c: E2 08 00 42 10 80 11 00 00 00 00 00 00 CC [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 17 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 17 00 42 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1C [23:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:19:22]wFMCommunicate OK [23:19:22]requested_item fd.num is exist - process it [23:19:22]SAM_PROTO_GetFieldsCounters [23:19:22]wFMCommunicate request_size=4 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 13 00 00 [23:19:22]Write to MH i2c: E2 08 00 43 10 80 13 00 00 00 00 00 00 CF [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 62 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 62 00 43 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 43 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [23:19:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 43 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:22]wFMCommunicate OK [23:19:22]SAM_PROTO_GetFieldsCounters done [23:19:22]requested_item shift.num is exist - process it [23:19:22]requested_item shift.opened is exist - process it [23:19:22]req_shift_opened [23:19:22]FM_GetShiftState [23:19:22]SAM_PROTO_GetShiftState [23:19:22]wFMCommunicate request_size=4 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 13 01 00 [23:19:22]Write to MH i2c: E2 08 00 44 10 80 13 01 00 00 00 00 00 D1 [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 0E 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 0E 00 44 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CA [23:19:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:19:22]wFMCommunicate OK [23:19:22]SAM_PROTO_GetShiftState done [23:19:22]FM_GetShiftState done [23:19:22]req_shift_opened done [23:19:22]requested_item shift.open_date is exist - process it [23:19:22]req_shift_open_date [23:19:22]req_shift_open_date done [23:19:22]produce_requested_data done [23:19:22]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2371,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:19:22]process_action_free close_receipt [23:19:22]json_value_free [23:19:22]json_value_free done [23:19:22]process_json_proto returns [23:19:22]Send response to host [23:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2371,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:19:22]free response buf [23:19:22]execute_script done [23:19:22]execute_script returns [23:19:22]free content buf [23:19:22]Sock 9.Close socket [23:19:22]Sock 9.Thread stoped [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:19]accept exits with 7 [23:21:19]New connection [23:21:19]New thread 3067276644 created [23:21:19]Thread 3067420004 joined [23:21:19]Waiting for new connection... [23:21:19] Sock 7.Parse request [23:21:19]Sock 7.Check first char [23:21:19]Sock 7.First char is OK [23:21:19]request: POST /json_proto HTTP/1.0 [23:21:19]Method: POST [23:21:19]URL: /json_proto [23:21:19]Method is POST - this is cgi request [23:21:19]url: /json_proto [23:21:19]query_string will be loaded in cgi processing [23:21:19]execute_cgi json_proto POST (null) [23:21:19]execute_cgi path=json_proto method=POST [23:21:19]POST find Content-Length [23:21:19]Host: 172.17.45.132:8080 [23:21:19]Content-Length: 1534 [23:21:19]Content-Type: application/json [23:21:19] [23:21:19]POST finish read [23:21:19]Found Content-Length = 1534 [23:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126587", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 738.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:19]execute_script... [23:21: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)126587", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 738.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:19]POST & json_proto [23:21:19]process_json_proto [23:21:19]json parsed OK: [23:21:19]protocol is kg_v1.0 [23:21:19]action value=close_receipt [23:21:19]process_action close_receipt [23:21:19]cmd_close_receipt [23:21:19]MH_GetDate [23:21:19]Write to MH i2c: F0 00 00 45 10 44 [23:21:19]Write i2c OK [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: F0 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: F0 09 00 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: F0 09 00 45 10 00 F0 23 A8 66 E3 0B 90 66 52 [23:21:19]GetLastDocTimeStamp 1722295159 [23:21:19]current date 1722295280 [23:21:19]FM_GetShiftState [23:21:19]SAM_PROTO_GetShiftState [23:21:19]wFMCommunicate request_size=4 [23:21:19]MH_SAM_APDU [23:21:19]CAPDU: 80 13 01 00 [23:21:19]Write to MH i2c: E2 08 00 46 10 80 13 01 00 00 00 00 00 D3 [23:21:19]Write i2c OK [23:21:19]MH_I2C_Read... [23:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:19]Read from MH i2c: E2 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: E2 0E 00 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: E2 0E 00 46 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CC [23:21:19]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:21:19]wFMCommunicate OK [23:21:19]SAM_PROTO_GetShiftState done [23:21:19]FM_GetShiftState done [23:21:19]opened in 1722213119 [23:21:19]opened+sec_in_day 1722299519 [23:21:19]quantity*price = 12900 [23:21:19]sum+1 = 12901 [23:21:19]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700002083266 Водка Атилла Гунн 0,5л 1.000 * 450.00 = 450.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 738.00 НСП 1% : 6.52 НДС 12% : 78.37 Наличными: 738.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 221 29.07.2024 23:21 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2372 ФПД: 18156405951782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232121&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2372&fm=18156405951782&tin=02508201610067®Number=0000000000189667&sum=73800 0 [23:21:21]StoreToDocumentArchive [23:21:21]shift 15 fd 2372 [23:21:21]save to /storage/0015/doc_00002372 [23:21:21]save last doc name /storage/0015/doc_00002372 to /storage/kkm_last_doc_name [23:21:21]save OK [23:21:21]Clear old archive folders... [23:21:21]ProcessDocumentItem done err = 0, tmpTLVsize=624 [23:21:21]tlvbuf is B6F4C350 [23:21:21]SAM_PROTO_ClearQueue [23:21:21]wFMCommunicate request_size=4 [23:21:21]MH_SAM_APDU [23:21:21]CAPDU: 80 09 00 00 [23:21:21]Write to MH i2c: E2 08 00 53 10 80 09 00 00 00 00 00 00 D5 [23:21:21]Write i2c OK [23:21:21]MH_I2C_Read... [23:21:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:21]Read from MH i2c: E2 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 53 10 00 90 00 D7 [23:21:21]RAPDU: 90 00 [23:21:21]wFMCommunicate OK [23:21:21]SAM_PROTO_ClearQueue done [23:21:21]KKMCreateOFDPacket [23:21:21]OFDProtocolAddRootSTLVToBuf [23:21:21]FM_MakeSignedData [23:21:21]FM_MakeSignedData [23:21:21]SAM_PROTO_SignData [23:21:21]wFMCommunicate request_size=4 [23:21:21]MH_SAM_APDU [23:21:21]CAPDU: 80 0D 01 02 [23:21:21]Write to MH i2c: E2 08 00 54 10 80 0D 01 02 00 00 00 00 DD [23:21:21]Write i2c OK [23:21:21]MH_I2C_Read... [23:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:21]Read from MH i2c: E2 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 54 10 00 90 00 D8 [23:21:21]RAPDU: 90 00 [23:21:21]wFMCommunicate OK [23:21:21]wFMCommunicate request_size=255 [23:21:21]MH_SAM_APDU [23:21:21]CAPDU: 80 0D 02 02 FA 03 00 70 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 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 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB 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 6A 00 8A [23:21:21]Write to MH i2c: E2 02 01 55 10 80 0D 02 02 FA 00 03 00 70 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 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 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB 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 6A 00 8A 00 00 1D [23:21:21]Write i2c OK [23:21:21]MH_I2C_Read... [23:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:21]Read from MH i2c: E2 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 55 10 00 90 00 D9 [23:21:21]RAPDU: 90 00 [23:21:21]wFMCommunicate OK [23:21:21]wFMCommunicate request_size=255 [23:21:21]MH_SAM_APDU [23:21:21]CAPDU: 80 0D 02 02 FA 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 02 00 00 00 00 EE 03 0F 00 [23:21:21]Write to MH i2c: E2 02 01 56 10 80 0D 02 02 FA 00 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 02 00 00 00 00 EE 03 0F 00 00 00 DA [23:21:21]Write i2c OK [23:21:21]MH_I2C_Read... [23:21:21]OFD Sender: No OFD packet to send [23:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:21]Read from MH i2c: E2 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 56 10 00 90 00 DA [23:21:21]RAPDU: 90 00 [23:21:21]wFMCommunicate OK [23:21:21]wFMCommunicate request_size=133 [23:21:21]MH_SAM_APDU [23:21:21]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 9D 1E 00 00 00 00 07 04 06 00 48 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F1 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 09 00 00 35 04 06 00 10 83 5E 20 8D 26 [23:21:21]Write to MH i2c: E2 88 00 57 10 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 9D 1E 00 00 00 00 07 04 06 00 48 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F1 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 09 00 00 35 04 06 00 10 83 5E 20 8D 26 00 00 5A [23:21:21]Write i2c OK [23:21:21]MH_I2C_Read... [23:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:21]Read from MH i2c: E2 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [23:21:21]RAPDU: 90 00 [23:21:21]wFMCommunicate OK [23:21:21]wFMCommunicate request_size=4 [23:21:21]MH_SAM_APDU [23:21:21]CAPDU: 80 0D 03 02 [23:21:21]Write to MH i2c: E2 08 00 58 10 80 0D 03 02 00 00 00 00 E3 [23:21:21]Write i2c OK [23:21:21]MH_I2C_Read... [23:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:21]Read from MH i2c: E2 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 0B 00 [23:21:21]MH_I2C_Read... [23:21:21]Read from MH i2c: E2 0B 00 58 10 00 84 AB 33 64 D8 5C 07 83 90 00 68 [23:21:21]RAPDU: 84 AB 33 64 D8 5C 07 83 90 00 [23:21:21]wFMCommunicate OK [23:21:21]SAM_PROTO_SignData done [23:21:21]FM_MakeSignedData done [23:21:21]CreateOFDProtocolMessage [23:21:21]wFMCommunicate request_size=4 [23:21:21]MH_SAM_APDU [23:21:21]CAPDU: 80 11 00 00 [23:21:21]Write to MH i2c: E2 08 00 59 10 80 11 00 00 00 00 00 00 E3 [23:21:21]Write i2c OK [23:21:21]MH_I2C_Read... [23:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:22]Read from MH i2c: E2 [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: E2 17 00 [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: E2 17 00 59 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 33 [23:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:21:22]wFMCommunicate OK [23:21:22]CreateOFDProtocolMessage done [23:21:22]OFDSenderStorePacket 2372 [23:21:22]StoreOFDPacket docnum=2372 [23:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 84 02 00 00 FB D4 7C 02 D6 BE 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 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 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB 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 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1E 00 00 00 00 07 04 06 00 48 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F1 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 09 00 00 35 04 06 00 10 83 5E 20 8D 26 84 AB 33 64 D8 5C 07 83 [23:21:22]CheckFolder [23:21:22]dirname=/storage/ofd_packets [23:21:22]CheckFolder done [23:21:22]ProducePacketName [23:21:22]name=ofd_packets/00002372 [23:21:22]NVStorageSaveData ofd_packets/00002372 [23:21:22]File name is /storage/ofd_packets/00002372 [23:21:22]Write 674 bytes [23:21:22]NVStorageSaveData done [23:21:22]OFDSenderStorePacket done [23:21:22]KKMCreateOFDPacket done [23:21:22]NVStorageSaveData kkm_last_timestamp [23:21:22]File name is /storage/kkm_last_timestamp [23:21:22]Write 4 bytes [23:21:22]NVStorageSaveData done [23:21:22]ExternCall_PrintAddStr [23:21:22]wPrintStart [23:21:22]Write to MH i2c: 01 00 00 5A 10 6A [23:21:22]Write i2c OK [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: 01 [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: 01 07 00 [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: 01 07 00 5A 10 00 00 00 00 00 FF 0F 7F [23:21:22]RasterBufferAndPrint [23:21:22]line Счет N : (3)126587 [23:21:22]line ИНН: 02508201610067 [23:21:22]line Контрольно-Кассовый Чек [23:21:22]line ПРОДАЖА [23:21:22]line Товар: 4607015235401 [23:21:22]line Пряники Яшкино шоколадные 350г [23:21:22]line 1.000 * 129.00 [23:21:22]line = 129.00 [23:21:22]line НДС 12% НСП 1% [23:21:22]line > о реализуемом товаре [23:21:22]line Товар: 5449000000439 [23:21:22]line Напиток Кока-Кола 1,5л [23:21:22]line 1.000 * 155.00 [23:21:22]line = 155.00 [23:21:22]line НДС 12% НСП 1% [23:21:22]line > о реализуемом товаре [23:21:22]line Товар: 4700002083266 [23:21:22]line Водка Атилла Гунн 0,5л [23:21:22]line 1.000 * 450.00 [23:21:22]line = 450.00 [23:21:22]line НДС 12% НСП 1% [23:21:22]line > о реализуемом товаре [23:21:22]line Товар: 2000031750019 [23:21:22]line Пакет Партнер Нефть [23:21:22]line 1.000 * 4.00 [23:21:22]line = 4.00 [23:21:22]line НДС 12% НСП 1% [23:21:22]line > о реализуемом товаре [23:21:22]line ИТОГО: 738.00 [23:21:22]line НСП 1% : 6.52 [23:21:22]line НДС 12% : 78.37 [23:21:22]line Наличными: 738.00 [23:21:22]line Безнал.: 0.00 [23:21:22]line Место: АЗС № 127 "Партнер Нефть" [23:21:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:21:22]line СНО: Общий режим [23:21:22]line Чек 221 29.07.2024 23:21 [23:21:22]line Смена: 15 ФФД: 1.0 [23:21:22]line ЗНМ: 0300000161 [23:21:22]line РНМ: 0000000000189667 [23:21:22]line Версия ККМ: v1.0 [23:21:22]line ФМ: 0000000002094248 [23:21:22]line ФД: 2372 [23:21:22]line ФПД: 18156405951782 [23:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232121&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2372&fm=18156405951782&tin=02508201610067®Number=0000000000189667&sum=73800 [23:21:22]OFD Sender: Processing packet 2372 [packets to send 1, broken 0] [23:21:22]ProducePacketName [23:21:22]name=ofd_packets/00002372 [23:21:22]OFD Sender: To server: pG, [23:21:22]CommunicateWithHost lk.salyk.kg:30040 [23:21:22]ConnectInit lk.salyk.kg [23:21:22]line 0 [23:21:22]written 0, free lines is 4095 [23:21:22]Connected sock=11 [23:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 84 02 00 00 FB D4 7C 02 D6 BE 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 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 35 34 34 39 30 30 30 30 30 30 34 33 39 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 31 2C 35 D0 BB 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 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1E 00 00 00 00 07 04 06 00 48 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F1 23 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 09 00 00 35 04 06 00 10 83 5E 20 8D 26 84 AB 33 64 D8 5C 07 83 [23:21:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CA 58 47 00 3B 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 44 09 00 00 F4 03 04 00 5C CF A7 66 B6 04 01 00 00 1A C3 97 E4 BE 26 34 A7 [23:21:22]CommunicateWithHost err = 0 [23:21:22]CheckOFDResponse [23:21:22]1017 (14) - 77093643461234 [23:21:22]1041 (16) - 0000000002094248 [23:21:22]1040 (4) - 2372 [23:21:22]1012 (4) - 29.07.2024 17:20 [23:21:22]1206 (1) - 0 [23:21:22]OFD Sender: Remove packet 2372 [23:21:22]ProducePacketName [23:21:22]name=ofd_packets/00002372 [23:21:22]NVStorageDeleteData [23:21:22]Write to MH i2c: 01 00 00 95 10 A5 [23:21:22]Write i2c OK [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: 01 [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: 01 07 00 [23:21:22]MH_I2C_Read... [23:21:22]Read from MH i2c: 01 07 00 95 10 00 00 00 00 00 23 0C DB [23:21:23]RasterBufferAndPrint [23:21:23]line [23:21:23]line [23:21:23]line [23:21:23]line [23:21:23]line [23:21:23]written 0, free lines is 3118 [23:21:23]MH_Cut [23:21:23]Write to MH i2c: D1 01 00 9C 10 01 7E [23:21:23]Write i2c OK [23:21:23]MH_I2C_Read... [23:21:23]Read from MH i2c: D1 [23:21:23]MH_I2C_Read... [23:21:23]Read from MH i2c: D1 01 00 [23:21:23]MH_I2C_Read... [23:21:23]Read from MH i2c: D1 01 00 9C 10 00 7D [23:21:23]Write to MH i2c: 01 00 00 9D 10 AD [23:21:23]Write i2c OK [23:21:23]MH_I2C_Read... [23:21:23]OFD Sender: No OFD packet to send [23:21:23]*** Cut start [23:21:23]*** Partial cut [23:21:23]*** CUTSNS_PIN = 1 [23:21:23]*** CUTSNS_PIN = 0 [23:21:24]*** Brake cut motor [23:21:24]Read from MH i2c: 01 [23:21:24]MH_I2C_Read... [23:21:24]*** Stop cut motor [23:21:24]*** Cut end [23:21:24]Read from MH i2c: 01 07 00 [23:21:24]MH_I2C_Read... [23:21:24]Read from MH i2c: 01 07 00 9D 10 00 00 00 00 00 FF 0F C2 [23:21:24]process_action close_receipt done [23:21:24]requested_data is exist [23:21:24]produce_requested_data [23:21:24]requested_item fm.sn is exist - process it [23:21:24]wFMCommunicate request_size=4 [23:21:24]MH_SAM_APDU [23:21:24]CAPDU: 80 11 00 00 [23:21:24]Write to MH i2c: E2 08 00 9E 10 80 11 00 00 00 00 00 00 28 [23:21:24]Write i2c OK [23:21:24]MH_I2C_Read... [23:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:24]Read from MH i2c: E2 [23:21:24]MH_I2C_Read... [23:21:24]Read from MH i2c: E2 17 00 [23:21:24]MH_I2C_Read... [23:21:24]Read from MH i2c: E2 17 00 9E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 78 [23:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:21:24]wFMCommunicate OK [23:21:24]requested_item fd.num is exist - process it [23:21:24]SAM_PROTO_GetFieldsCounters [23:21:24]wFMCommunicate request_size=4 [23:21:24]MH_SAM_APDU [23:21:24]CAPDU: 80 13 00 00 [23:21:24]Write to MH i2c: E2 08 00 9F 10 80 13 00 00 00 00 00 00 2B [23:21:24]Write i2c OK [23:21:24]MH_I2C_Read... [23:21:24]Read from MH i2c: E2 [23:21:24]MH_I2C_Read... [23:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:24]Read from MH i2c: E2 62 00 [23:21:24]MH_I2C_Read... [23:21:24]Read from MH i2c: E2 62 00 9F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 44 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [23:21:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 44 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:24]wFMCommunicate OK [23:21:24]SAM_PROTO_GetFieldsCounters done [23:21:24]requested_item shift.num is exist - process it [23:21:24]requested_item shift.opened is exist - process it [23:21:24]req_shift_opened [23:21:24]FM_GetShiftState [23:21:24]SAM_PROTO_GetShiftState [23:21:24]wFMCommunicate request_size=4 [23:21:24]MH_SAM_APDU [23:21:24]CAPDU: 80 13 01 00 [23:21:24]Write to MH i2c: E2 08 00 A0 10 80 13 01 00 00 00 00 00 2D [23:21:24]Write i2c OK [23:21:24]MH_I2C_Read... [23:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:24]Read from MH i2c: E2 [23:21:24]MH_I2C_Read... [23:21:24]Read from MH i2c: E2 0E 00 [23:21:24]MH_I2C_Read... [23:21:24]Read from MH i2c: E2 0E 00 A0 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 26 [23:21:24]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:21:24]wFMCommunicate OK [23:21:24]SAM_PROTO_GetShiftState done [23:21:24]FM_GetShiftState done [23:21:24]req_shift_opened done [23:21:24]requested_item shift.open_date is exist - process it [23:21:24]req_shift_open_date [23:21:24]req_shift_open_date done [23:21:24]produce_requested_data done [23:21:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2372,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:21:24]process_action_free close_receipt [23:21:24]json_value_free [23:21:24]json_value_free done [23:21:24]process_json_proto returns [23:21:24]Send response to host [23:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2372,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:21:24]free response buf [23:21:24]execute_script done [23:21:24]execute_script returns [23:21:24]free content buf [23:21:24]Sock 7.Close socket [23:21:24]Sock 7.Thread stoped [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:49]accept exits with 9 [23:21:49]New connection [23:21:49]New thread 3067420004 created [23:21:49]Thread 3067276644 joined [23:21:49]Waiting for new connection... [23:21:49] Sock 9.Parse request [23:21:49]Sock 9.Check first char [23:21:49]Sock 9.First char is OK [23:21:49]request: POST /json_proto HTTP/1.0 [23:21:49]Method: POST [23:21:49]URL: /json_proto [23:21:49]Method is POST - this is cgi request [23:21:49]url: /json_proto [23:21:49]query_string will be loaded in cgi processing [23:21:49]execute_cgi json_proto POST (null) [23:21:49]execute_cgi path=json_proto method=POST [23:21:49]POST find Content-Length [23:21:49]Host: 172.17.45.132:8080 [23:21:49]Content-Length: 646 [23:21:49]Content-Type: application/json [23:21:49] [23:21:49]POST finish read [23:21:49]Found Content-Length = 646 [23:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126588", "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" ] } } [23:21:49]execute_script... [23:21: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)126588", "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" ] } } [23:21:49]POST & json_proto [23:21:49]process_json_proto [23:21:49]json parsed OK: [23:21:49]protocol is kg_v1.0 [23:21:49]action value=close_receipt [23:21:49]process_action close_receipt [23:21:49]cmd_close_receipt [23:21:49]MH_GetDate [23:21:49]Write to MH i2c: F0 00 00 A1 10 A0 [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: F0 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: F0 09 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: F0 09 00 A1 10 00 0E 24 A8 66 E3 0B 90 66 CD [23:21:49]GetLastDocTimeStamp 1722295281 [23:21:49]current date 1722295310 [23:21:49]FM_GetShiftState [23:21:49]SAM_PROTO_GetShiftState [23:21:49]wFMCommunicate request_size=4 [23:21:49]MH_SAM_APDU [23:21:49]CAPDU: 80 13 01 00 [23:21:49]Write to MH i2c: E2 08 00 A2 10 80 13 01 00 00 00 00 00 2F [23:21:49]Write i2c OK [23:21:49]MH_I2C_Read... [23:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:49]Read from MH i2c: E2 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 0E 00 [23:21:49]MH_I2C_Read... [23:21:49]Read from MH i2c: E2 0E 00 A2 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 28 [23:21:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:21:49]wFMCommunicate OK [23:21:49]SAM_PROTO_GetShiftState done [23:21:49]FM_GetShiftState done [23:21:49]opened in 1722213119 [23:21:49]opened+sec_in_day 1722299519 [23:21:49]quantity*price = 13000 [23:21:49]sum+1 = 13001 [23:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 222 29.07.2024 23:21 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2373 ФПД: 227047909960090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2373&fm=227047909960090&tin=02508201610067®Number=0000000000189667&sum=13000 0 [23:21:51]StoreToDocumentArchive [23:21:51]shift 15 fd 2373 [23:21:51]save to /storage/0015/doc_00002373 [23:21:51]save last doc name /storage/0015/doc_00002373 to /storage/kkm_last_doc_name [23:21:51]save OK [23:21:51]Clear old archive folders... [23:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=282 [23:21:51]tlvbuf is B6F33180 [23:21:51]SAM_PROTO_ClearQueue [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 09 00 00 [23:21:51]Write to MH i2c: E2 08 00 AF 10 80 09 00 00 00 00 00 00 31 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [23:21:51]RAPDU: 90 00 [23:21:51]wFMCommunicate OK [23:21:51]SAM_PROTO_ClearQueue done [23:21:51]KKMCreateOFDPacket [23:21:51]OFDProtocolAddRootSTLVToBuf [23:21:51]FM_MakeSignedData [23:21:51]FM_MakeSignedData [23:21:51]SAM_PROTO_SignData [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 0D 01 02 [23:21:51]Write to MH i2c: E2 08 00 B0 10 80 0D 01 02 00 00 00 00 39 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 B0 10 00 90 00 34 [23:21:51]RAPDU: 90 00 [23:21:51]wFMCommunicate OK [23:21:51]wFMCommunicate request_size=255 [23:21:51]MH_SAM_APDU [23:21:51]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 DE 00 00 00 F4 03 04 00 0E 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [23:21:51]Write to MH i2c: E2 02 01 B1 10 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 DE 00 00 00 F4 03 04 00 0E 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 81 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 B1 10 00 90 00 35 [23:21:51]RAPDU: 90 00 [23:21:51]wFMCommunicate OK [23:21:51]wFMCommunicate request_size=41 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 09 00 00 35 04 06 00 CE 7F B6 05 29 9A [23:21:51]Write to MH i2c: E2 2C 00 B2 10 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 09 00 00 35 04 06 00 CE 7F B6 05 29 9A 00 00 21 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 03 00 B2 10 00 90 00 36 [23:21:51]RAPDU: 90 00 [23:21:51]wFMCommunicate OK [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 0D 03 02 [23:21:51]Write to MH i2c: E2 08 00 B3 10 80 0D 03 02 00 00 00 00 3E [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 0B 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 0B 00 B3 10 00 DA B8 B2 CE 9E 4E 5E E8 90 00 83 [23:21:51]RAPDU: DA B8 B2 CE 9E 4E 5E E8 90 00 [23:21:51]wFMCommunicate OK [23:21:51]SAM_PROTO_SignData done [23:21:51]FM_MakeSignedData done [23:21:51]CreateOFDProtocolMessage [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 11 00 00 [23:21:51]Write to MH i2c: E2 08 00 B4 10 80 11 00 00 00 00 00 00 3E [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 17 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 17 00 B4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 8E [23:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:21:51]wFMCommunicate OK [23:21:51]CreateOFDProtocolMessage done [23:21:51]OFDSenderStorePacket 2373 [23:21:51]StoreOFDPacket docnum=2373 [23:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 01 77 26 01 DC DB 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 DE 00 00 00 F4 03 04 00 0E 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 09 00 00 35 04 06 00 CE 7F B6 05 29 9A DA B8 B2 CE 9E 4E 5E E8 [23:21:51]CheckFolder [23:21:51]dirname=/storage/ofd_packets [23:21:51]CheckFolder done [23:21:51]ProducePacketName [23:21:51]name=ofd_packets/00002373 [23:21:51]NVStorageSaveData ofd_packets/00002373 [23:21:51]File name is /storage/ofd_packets/00002373 [23:21:51]Write 332 bytes [23:21:51]NVStorageSaveData done [23:21:51]OFDSenderStorePacket done [23:21:51]KKMCreateOFDPacket done [23:21:51]NVStorageSaveData kkm_last_timestamp [23:21:51]File name is /storage/kkm_last_timestamp [23:21:51]Write 4 bytes [23:21:51]NVStorageSaveData done [23:21:51]ExternCall_PrintAddStr [23:21:51]wPrintStart [23:21:51]Write to MH i2c: 01 00 00 B5 10 C5 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: 01 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: 01 07 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: 01 07 00 B5 10 00 00 00 00 00 FF 0F DA [23:21:51]RasterBufferAndPrint [23:21:51]line Счет N : (3)126588 [23:21:51]line ИНН: 02508201610067 [23:21:51]line Контрольно-Кассовый Чек [23:21:51]line ПРОДАЖА [23:21:51]line Товар: 2000036220012 [23:21:51]line Кофе Капучино XL(GABB TRADE) [23:21:51]line 1.000 * 130.00 [23:21:51]line = 130.00 [23:21:51]line НДС 12% НСП 1% [23:21:51]line > о реализуемом товаре [23:21:51]line ИТОГО: 130.00 [23:21:51]line НСП 1% : 1.15 [23:21:51]line НДС 12% : 13.80 [23:21:51]line Наличными: 130.00 [23:21:51]line Безнал.: 0.00 [23:21:51]line Место: АЗС № 127 "Партнер Нефть" [23:21:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:21:51]line СНО: Общий режим [23:21:51]line Чек 222 29.07.2024 23:21 [23:21:51]line Смена: 15 ФФД: 1.0 [23:21:51]line ЗНМ: 0300000161 [23:21:51]line РНМ: 0000000000189667 [23:21:51]line Версия ККМ: v1.0 [23:21:51]line ФМ: 0000000002094248 [23:21:51]line ФД: 2373 [23:21:51]line ФПД: 227047909960090 [23:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232150&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2373&fm=227047909960090&tin=02508201610067®Number=0000000000189667&sum=13000 [23:21:51]line 0 [23:21:51]OFD Sender: Processing packet 2373 [packets to send 1, broken 0] [23:21:51]ProducePacketName [23:21:51]name=ofd_packets/00002373 [23:21:51]OFD Sender: To server: pG, [23:21:51]CommunicateWithHost lk.salyk.kg:30040 [23:21:51]ConnectInit lk.salyk.kg [23:21:51]written 0, free lines is 4095 [23:21:52]Connected sock=10 [23:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 01 77 26 01 DC DB 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 DE 00 00 00 F4 03 04 00 0E 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 09 00 00 35 04 06 00 CE 7F B6 05 29 9A DA B8 B2 CE 9E 4E 5E E8 [23:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 FE 22 47 00 C6 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 45 09 00 00 F4 03 04 00 7A CF A7 66 B6 04 01 00 00 EA 81 26 4E FB 28 34 53 [23:21:52]CommunicateWithHost err = 0 [23:21:52]CheckOFDResponse [23:21:52]1017 (14) - 77093643461234 [23:21:52]1041 (16) - 0000000002094248 [23:21:52]1040 (4) - 2373 [23:21:52]1012 (4) - 29.07.2024 17:20 [23:21:52]1206 (1) - 0 [23:21:52]OFD Sender: Remove packet 2373 [23:21:52]ProducePacketName [23:21:52]name=ofd_packets/00002373 [23:21:52]NVStorageDeleteData [23:21:52]Write to MH i2c: 01 00 00 DE 10 EE [23:21:52]Write i2c OK [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: 01 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: 01 07 00 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: 01 07 00 DE 10 00 00 00 00 00 0D 0D 0F [23:21:52]RasterBufferAndPrint [23:21:52]line [23:21:52]line [23:21:52]line [23:21:52]line [23:21:52]line [23:21:52]written 0, free lines is 3350 [23:21:52]MH_Cut [23:21:52]Write to MH i2c: D1 01 00 E5 10 01 C7 [23:21:52]Write i2c OK [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: D1 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: D1 01 00 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: D1 01 00 E5 10 00 C6 [23:21:52]Write to MH i2c: 01 00 00 E6 10 F6 [23:21:52]Write i2c OK [23:21:52]MH_I2C_Read... [23:21:52]OFD Sender: No OFD packet to send [23:21:52]*** Cut start [23:21:52]*** Partial cut [23:21:52]*** CUTSNS_PIN = 1 [23:21:53]*** CUTSNS_PIN = 0 [23:21:53]*** Brake cut motor [23:21:53]Read from MH i2c: 01 [23:21:53]MH_I2C_Read... [23:21:53]*** Stop cut motor [23:21:53]*** Cut end [23:21:53]Read from MH i2c: 01 07 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: 01 07 00 E6 10 00 00 00 00 00 FF 0F 0B [23:21:53]process_action close_receipt done [23:21:53]requested_data is exist [23:21:53]produce_requested_data [23:21:53]requested_item fm.sn is exist - process it [23:21:53]wFMCommunicate request_size=4 [23:21:53]MH_SAM_APDU [23:21:53]CAPDU: 80 11 00 00 [23:21:53]Write to MH i2c: E2 08 00 E7 10 80 11 00 00 00 00 00 00 71 [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:53]Read from MH i2c: E2 17 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 17 00 E7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C1 [23:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:21:53]wFMCommunicate OK [23:21:53]requested_item fd.num is exist - process it [23:21:53]SAM_PROTO_GetFieldsCounters [23:21:53]wFMCommunicate request_size=4 [23:21:53]MH_SAM_APDU [23:21:53]CAPDU: 80 13 00 00 [23:21:53]Write to MH i2c: E2 08 00 E8 10 80 13 00 00 00 00 00 00 74 [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 62 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 62 00 E8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 45 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [23:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 45 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:53]wFMCommunicate OK [23:21:53]SAM_PROTO_GetFieldsCounters done [23:21:53]requested_item shift.num is exist - process it [23:21:53]requested_item shift.opened is exist - process it [23:21:53]req_shift_opened [23:21:53]FM_GetShiftState [23:21:53]SAM_PROTO_GetShiftState [23:21:53]wFMCommunicate request_size=4 [23:21:53]MH_SAM_APDU [23:21:53]CAPDU: 80 13 01 00 [23:21:53]Write to MH i2c: E2 08 00 E9 10 80 13 01 00 00 00 00 00 76 [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 0E 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 0E 00 E9 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 6F [23:21:53]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:21:53]wFMCommunicate OK [23:21:53]SAM_PROTO_GetShiftState done [23:21:53]FM_GetShiftState done [23:21:53]req_shift_opened done [23:21:53]requested_item shift.open_date is exist - process it [23:21:53]req_shift_open_date [23:21:53]req_shift_open_date done [23:21:53]produce_requested_data done [23:21:53]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2373,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:21:53]process_action_free close_receipt [23:21:53]json_value_free [23:21:53]json_value_free done [23:21:53]process_json_proto returns [23:21:53]Send response to host [23:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2373,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:21:53]free response buf [23:21:53]execute_script done [23:21:53]execute_script returns [23:21:53]free content buf [23:21:53]Sock 9.Close socket [23:21:53]Sock 9.Thread stoped [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:45]accept exits with 7 [23:22:45]New connection [23:22:45]New thread 3067276644 created [23:22:45]Thread 3067420004 joined [23:22:45]Waiting for new connection... [23:22:45] Sock 7.Parse request [23:22:45]Sock 7.Check first char [23:22:45]Sock 7.First char is OK [23:22:45]request: POST /json_proto HTTP/1.0 [23:22:45]Method: POST [23:22:45]URL: /json_proto [23:22:45]Method is POST - this is cgi request [23:22:45]url: /json_proto [23:22:45]query_string will be loaded in cgi processing [23:22:45]execute_cgi json_proto POST (null) [23:22:45]execute_cgi path=json_proto method=POST [23:22:45]POST find Content-Length [23:22:45]Host: 172.17.45.132:8080 [23:22:45]Content-Length: 887 [23:22:45]Content-Type: application/json [23:22:45] [23:22:45]POST finish read [23:22:45]Found Content-Length = 887 [23:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126589", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" ] } } [23:22:45]execute_script... [23:22: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)126589", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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" ] } } [23:22:45]POST & json_proto [23:22:45]process_json_proto [23:22:45]json parsed OK: [23:22:45]protocol is kg_v1.0 [23:22:45]action value=close_receipt [23:22:45]process_action close_receipt [23:22:45]cmd_close_receipt [23:22:45]MH_GetDate [23:22:45]Write to MH i2c: F0 00 00 EA 10 E9 [23:22:45]Write i2c OK [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: F0 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: F0 09 00 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: F0 09 00 EA 10 00 46 24 A8 66 E3 0B 90 66 4E [23:22:45]GetLastDocTimeStamp 1722295310 [23:22:45]current date 1722295366 [23:22:45]FM_GetShiftState [23:22:45]SAM_PROTO_GetShiftState [23:22:45]wFMCommunicate request_size=4 [23:22:45]MH_SAM_APDU [23:22:45]CAPDU: 80 13 01 00 [23:22:45]Write to MH i2c: E2 08 00 EB 10 80 13 01 00 00 00 00 00 78 [23:22:45]Write i2c OK [23:22:45]MH_I2C_Read... [23:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:45]Read from MH i2c: E2 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 0E 00 [23:22:45]MH_I2C_Read... [23:22:45]Read from MH i2c: E2 0E 00 EB 10 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 71 [23:22:45]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:22:45]wFMCommunicate OK [23:22:45]SAM_PROTO_GetShiftState done [23:22:45]FM_GetShiftState done [23:22:45]opened in 1722213119 [23:22:45]opened+sec_in_day 1722299519 [23:22:45]quantity*price = 8500 [23:22:45]sum+1 = 8501 [23:22:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.81 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 223 29.07.2024 23:22 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2374 ФПД: 78687253522175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232246&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2374&fm=78687253522175&tin=02508201610067®Number=0000000000189667&sum=13000 0 [23:22:46]StoreToDocumentArchive [23:22:46]shift 15 fd 2374 [23:22:46]save to /storage/0015/doc_00002374 [23:22:46]save last doc name /storage/0015/doc_00002374 to /storage/kkm_last_doc_name [23:22:46]save OK [23:22:46]Clear old archive folders... [23:22:46]ProcessDocumentItem done err = 0, tmpTLVsize=373 [23:22:46]tlvbuf is 010DBDB0 [23:22:46]SAM_PROTO_ClearQueue [23:22:46]wFMCommunicate request_size=4 [23:22:46]MH_SAM_APDU [23:22:46]CAPDU: 80 09 00 00 [23:22:46]Write to MH i2c: E2 08 00 F8 10 80 09 00 00 00 00 00 00 7A [23:22:46]Write i2c OK [23:22:46]MH_I2C_Read... [23:22:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:46]Read from MH i2c: E2 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [23:22:46]RAPDU: 90 00 [23:22:46]wFMCommunicate OK [23:22:46]SAM_PROTO_ClearQueue done [23:22:46]KKMCreateOFDPacket [23:22:46]OFDProtocolAddRootSTLVToBuf [23:22:46]FM_MakeSignedData [23:22:46]FM_MakeSignedData [23:22:46]SAM_PROTO_SignData [23:22:46]wFMCommunicate request_size=4 [23:22:46]MH_SAM_APDU [23:22:46]CAPDU: 80 0D 01 02 [23:22:46]Write to MH i2c: E2 08 00 F9 10 80 0D 01 02 00 00 00 00 82 [23:22:46]Write i2c OK [23:22:46]MH_I2C_Read... [23:22:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:46]Read from MH i2c: E2 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 F9 10 00 90 00 7D [23:22:46]RAPDU: 90 00 [23:22:46]wFMCommunicate OK [23:22:46]wFMCommunicate request_size=255 [23:22:46]MH_SAM_APDU [23:22:46]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 [23:22:46]Write to MH i2c: E2 02 01 FA 10 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 00 00 26 [23:22:46]Write i2c OK [23:22:46]MH_I2C_Read... [23:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:46]Read from MH i2c: E2 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 FA 10 00 90 00 7E [23:22:46]RAPDU: 90 00 [23:22:46]wFMCommunicate OK [23:22:46]wFMCommunicate request_size=132 [23:22:46]MH_SAM_APDU [23:22:46]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 65 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 DF 00 00 00 F4 03 04 00 46 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 09 00 00 35 04 06 00 47 90 CD CB 66 FF [23:22:46]Write to MH i2c: E2 87 00 FB 10 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 65 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 DF 00 00 00 F4 03 04 00 46 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 09 00 00 35 04 06 00 47 90 CD CB 66 FF 00 00 B4 [23:22:46]Write i2c OK [23:22:46]MH_I2C_Read... [23:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:46]Read from MH i2c: E2 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 03 00 FB 10 00 90 00 7F [23:22:46]RAPDU: 90 00 [23:22:46]wFMCommunicate OK [23:22:46]wFMCommunicate request_size=4 [23:22:46]MH_SAM_APDU [23:22:46]CAPDU: 80 0D 03 02 [23:22:46]Write to MH i2c: E2 08 00 FC 10 80 0D 03 02 00 00 00 00 87 [23:22:46]Write i2c OK [23:22:46]MH_I2C_Read... [23:22:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:46]Read from MH i2c: E2 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 0B 00 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 0B 00 FC 10 00 D7 9E E8 DF A1 06 72 5F 90 00 3C [23:22:46]RAPDU: D7 9E E8 DF A1 06 72 5F 90 00 [23:22:46]wFMCommunicate OK [23:22:46]SAM_PROTO_SignData done [23:22:46]FM_MakeSignedData done [23:22:46]CreateOFDProtocolMessage [23:22:46]wFMCommunicate request_size=4 [23:22:46]MH_SAM_APDU [23:22:46]CAPDU: 80 11 00 00 [23:22:46]Write to MH i2c: E2 08 00 FD 10 80 11 00 00 00 00 00 00 87 [23:22:46]Write i2c OK [23:22:46]MH_I2C_Read... [23:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:46]Read from MH i2c: E2 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 17 00 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: E2 17 00 FD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D7 [23:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:22:46]wFMCommunicate OK [23:22:46]CreateOFDProtocolMessage done [23:22:46]OFDSenderStorePacket 2374 [23:22:46]StoreOFDPacket docnum=2374 [23:22:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 89 01 00 00 50 56 81 01 C9 07 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 65 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 DF 00 00 00 F4 03 04 00 46 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 09 00 00 35 04 06 00 47 90 CD CB 66 FF D7 9E E8 DF A1 06 72 5F [23:22:46]CheckFolder [23:22:46]dirname=/storage/ofd_packets [23:22:46]CheckFolder done [23:22:46]ProducePacketName [23:22:46]name=ofd_packets/00002374 [23:22:46]NVStorageSaveData ofd_packets/00002374 [23:22:46]File name is /storage/ofd_packets/00002374 [23:22:46]Write 423 bytes [23:22:46]NVStorageSaveData done [23:22:46]OFDSenderStorePacket done [23:22:46]KKMCreateOFDPacket done [23:22:46]NVStorageSaveData kkm_last_timestamp [23:22:46]File name is /storage/kkm_last_timestamp [23:22:46]Write 4 bytes [23:22:46]NVStorageSaveData done [23:22:46]ExternCall_PrintAddStr [23:22:46]wPrintStart [23:22:46]Write to MH i2c: 01 00 00 FE 10 0E [23:22:46]Write i2c OK [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: 01 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: 01 07 00 [23:22:46]MH_I2C_Read... [23:22:46]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 FF 0F 23 [23:22:46]RasterBufferAndPrint [23:22:46]line Счет N : (3)126589 [23:22:46]line ИНН: 02508201610067 [23:22:46]line Контрольно-Кассовый Чек [23:22:46]line ПРОДАЖА [23:22:46]line Товар: 4700003010803 [23:22:47]line Чай Летс Гоу Малина 0,9л [23:22:47]line 1.000 * 85.00 [23:22:47]line = 85.00 [23:22:47]line НДС 12% НСП 1% [23:22:47]line > о реализуемом товаре [23:22:47]line Товар: 42113270 [23:22:47]line Жев Orbit арбуз [23:22:47]line 1.000 * 45.00 [23:22:47]line = 45.00 [23:22:47]line НДС 12% НСП 1% [23:22:47]line > о реализуемом товаре [23:22:47]line ИТОГО: 130.00 [23:22:47]line НСП 1% : 1.15 [23:22:47]line НДС 12% : 13.81 [23:22:47]line Наличными: 130.00 [23:22:47]line Безнал.: 0.00 [23:22:47]line Место: АЗС № 127 "Партнер Нефть" [23:22:47]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:22:47]line СНО: Общий режим [23:22:47]line Чек 223 29.07.2024 23:22 [23:22:47]line Смена: 15 ФФД: 1.0 [23:22:47]line ЗНМ: 0300000161 [23:22:47]line РНМ: 0000000000189667 [23:22:47]line Версия ККМ: v1.0 [23:22:47]line ФМ: 0000000002094248 [23:22:47]line ФД: 2374 [23:22:47]line ФПД: 78687253522175 [23:22:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232246&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2374&fm=78687253522175&tin=02508201610067®Number=0000000000189667&sum=13000 [23:22:47]line 0 [23:22:47]OFD Sender: Processing packet 2374 [packets to send 1, broken 0] [23:22:47]ProducePacketName [23:22:47]name=ofd_packets/00002374 [23:22:47]OFD Sender: To server: pG, [23:22:47]CommunicateWithHost lk.salyk.kg:30040 [23:22:47]ConnectInit lk.salyk.kg [23:22:47]written 0, free lines is 4095 [23:22:47]Connected sock=10 [23:22:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 89 01 00 00 50 56 81 01 C9 07 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 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 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 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 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 65 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 DF 00 00 00 F4 03 04 00 46 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 09 00 00 35 04 06 00 47 90 CD CB 66 FF D7 9E E8 DF A1 06 72 5F [23:22:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 83 B8 47 00 AA 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 46 09 00 00 F4 03 04 00 B1 CF A7 66 B6 04 01 00 00 02 0D E5 C2 07 C8 00 7E [23:22:47]CommunicateWithHost err = 0 [23:22:47]CheckOFDResponse [23:22:47]1017 (14) - 77093643461234 [23:22:47]1041 (16) - 0000000002094248 [23:22:47]1040 (4) - 2374 [23:22:47]1012 (4) - 29.07.2024 17:21 [23:22:47]1206 (1) - 0 [23:22:47]OFD Sender: Remove packet 2374 [23:22:47]ProducePacketName [23:22:47]name=ofd_packets/00002374 [23:22:47]NVStorageDeleteData [23:22:47]Write to MH i2c: 01 00 00 2C 11 3D [23:22:47]Write i2c OK [23:22:47]MH_I2C_Read... [23:22:47]Read from MH i2c: 01 [23:22:47]MH_I2C_Read... [23:22:47]Read from MH i2c: 01 07 00 [23:22:47]MH_I2C_Read... [23:22:47]Read from MH i2c: 01 07 00 2C 11 00 00 00 00 00 D6 0C 26 [23:22:47]RasterBufferAndPrint [23:22:47]line [23:22:47]line [23:22:47]line [23:22:47]line [23:22:47]line [23:22:47]written 0, free lines is 3295 [23:22:47]MH_Cut [23:22:47]Write to MH i2c: D1 01 00 33 11 01 16 [23:22:47]Write i2c OK [23:22:47]MH_I2C_Read... [23:22:47]Read from MH i2c: D1 [23:22:47]MH_I2C_Read... [23:22:47]Read from MH i2c: D1 01 00 [23:22:47]MH_I2C_Read... [23:22:47]Read from MH i2c: D1 01 00 33 11 00 15 [23:22:47]Write to MH i2c: 01 00 00 34 11 45 [23:22:47]Write i2c OK [23:22:47]MH_I2C_Read... [23:22:48]OFD Sender: No OFD packet to send [23:22:48]*** Cut start [23:22:48]*** Partial cut [23:22:48]*** CUTSNS_PIN = 1 [23:22:48]*** CUTSNS_PIN = 0 [23:22:48]*** Brake cut motor [23:22:49]Read from MH i2c: 01 [23:22:49]MH_I2C_Read... [23:22:49]*** Stop cut motor [23:22:49]*** Cut end [23:22:49]Read from MH i2c: 01 07 00 [23:22:49]MH_I2C_Read... [23:22:49]Read from MH i2c: 01 07 00 34 11 00 00 00 00 00 FF 0F 5A [23:22:49]process_action close_receipt done [23:22:49]requested_data is exist [23:22:49]produce_requested_data [23:22:49]requested_item fm.sn is exist - process it [23:22:49]wFMCommunicate request_size=4 [23:22:49]MH_SAM_APDU [23:22:49]CAPDU: 80 11 00 00 [23:22:49]Write to MH i2c: E2 08 00 35 11 80 11 00 00 00 00 00 00 C0 [23:22:49]Write i2c OK [23:22:49]MH_I2C_Read... [23:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:49]Read from MH i2c: E2 [23:22:49]MH_I2C_Read... [23:22:49]Read from MH i2c: E2 17 00 [23:22:49]MH_I2C_Read... [23:22:49]Read from MH i2c: E2 17 00 35 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 10 [23:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:22:49]wFMCommunicate OK [23:22:49]requested_item fd.num is exist - process it [23:22:49]SAM_PROTO_GetFieldsCounters [23:22:49]wFMCommunicate request_size=4 [23:22:49]MH_SAM_APDU [23:22:49]CAPDU: 80 13 00 00 [23:22:49]Write to MH i2c: E2 08 00 36 11 80 13 00 00 00 00 00 00 C3 [23:22:49]Write i2c OK [23:22:49]MH_I2C_Read... [23:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:49]Read from MH i2c: E2 [23:22:49]MH_I2C_Read... [23:22:49]Read from MH i2c: E2 62 00 [23:22:49]MH_I2C_Read... [23:22:49]Read from MH i2c: E2 62 00 36 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 46 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [23:22:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 46 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:49]wFMCommunicate OK [23:22:49]SAM_PROTO_GetFieldsCounters done [23:22:49]requested_item shift.num is exist - process it [23:22:49]requested_item shift.opened is exist - process it [23:22:49]req_shift_opened [23:22:49]FM_GetShiftState [23:22:49]SAM_PROTO_GetShiftState [23:22:49]wFMCommunicate request_size=4 [23:22:49]MH_SAM_APDU [23:22:49]CAPDU: 80 13 01 00 [23:22:49]Write to MH i2c: E2 08 00 37 11 80 13 01 00 00 00 00 00 C5 [23:22:49]Write i2c OK [23:22:49]MH_I2C_Read... [23:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:49]Read from MH i2c: E2 [23:22:49]MH_I2C_Read... [23:22:49]Read from MH i2c: E2 0E 00 [23:22:49]MH_I2C_Read... [23:22:49]Read from MH i2c: E2 0E 00 37 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 BE [23:22:49]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:22:49]wFMCommunicate OK [23:22:49]SAM_PROTO_GetShiftState done [23:22:49]FM_GetShiftState done [23:22:49]req_shift_opened done [23:22:49]requested_item shift.open_date is exist - process it [23:22:49]req_shift_open_date [23:22:49]req_shift_open_date done [23:22:49]produce_requested_data done [23:22:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2374,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:22:49]process_action_free close_receipt [23:22:49]json_value_free [23:22:49]json_value_free done [23:22:49]process_json_proto returns [23:22:49]Send response to host [23:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2374,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:22:49]free response buf [23:22:49]execute_script done [23:22:49]execute_script returns [23:22:49]free content buf [23:22:49]Sock 7.Close socket [23:22:49]Sock 7.Thread stoped [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:55]accept exits with 9 [23:23:55]New connection [23:23:55]New thread 3067420004 created [23:23:55]Thread 3067276644 joined [23:23:55]Waiting for new connection... [23:23:55] Sock 9.Parse request [23:23:55]Sock 9.Check first char [23:23:55]Sock 9.First char is OK [23:23:55]request: POST /json_proto HTTP/1.0 [23:23:55]Method: POST [23:23:55]URL: /json_proto [23:23:55]Method is POST - this is cgi request [23:23:55]url: /json_proto [23:23:55]query_string will be loaded in cgi processing [23:23:55]execute_cgi json_proto POST (null) [23:23:55]execute_cgi path=json_proto method=POST [23:23:55]POST find Content-Length [23:23:55]Host: 172.17.45.132:8080 [23:23:55]Content-Length: 682 [23:23:55]Content-Type: application/json [23:23:55] [23:23:55]POST finish read [23:23:55]Found Content-Length = 682 [23:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:55]execute_script... [23:23: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)610232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:55]POST & json_proto [23:23:55]process_json_proto [23:23:55]json parsed OK: [23:23:55]protocol is kg_v1.0 [23:23:55]action value=close_receipt [23:23:55]process_action close_receipt [23:23:55]cmd_close_receipt [23:23:55]MH_GetDate [23:23:55]Write to MH i2c: F0 00 00 38 11 38 [23:23:55]Write i2c OK [23:23:55]MH_I2C_Read... [23:23:55]Read from MH i2c: F0 [23:23:55]MH_I2C_Read... [23:23:55]Read from MH i2c: F0 09 00 [23:23:55]MH_I2C_Read... [23:23:55]Read from MH i2c: F0 09 00 38 11 00 8C 24 A8 66 E3 0B 90 66 E3 [23:23:55]GetLastDocTimeStamp 1722295366 [23:23:55]current date 1722295436 [23:23:55]FM_GetShiftState [23:23:55]SAM_PROTO_GetShiftState [23:23:55]wFMCommunicate request_size=4 [23:23:55]MH_SAM_APDU [23:23:55]CAPDU: 80 13 01 00 [23:23:55]Write to MH i2c: E2 08 00 39 11 80 13 01 00 00 00 00 00 C7 [23:23:55]Write i2c OK [23:23:55]MH_I2C_Read... [23:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:55]Read from MH i2c: E2 [23:23:55]MH_I2C_Read... [23:23:55]Read from MH i2c: E2 0E 00 [23:23:55]MH_I2C_Read... [23:23:55]Read from MH i2c: E2 0E 00 39 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 C0 [23:23:55]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:23:55]wFMCommunicate OK [23:23:55]SAM_PROTO_GetShiftState done [23:23:55]FM_GetShiftState done [23:23:55]opened in 1722213119 [23:23:55]opened+sec_in_day 1722299519 [23:23:55]quantity*price = 100023 [23:23:55]sum+1 = 100024 [23:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 224 29.07.2024 23:23 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2375 ФПД: 20055084308198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2375&fm=20055084308198&tin=02508201610067®Number=0000000000189667&sum=100000 [23:23:56]StoreToDocumentArchive [23:23:56]shift 15 fd 2375 [23:23:56]save to /storage/0015/doc_00002375 [23:23:56]save last doc name /storage/0015/doc_00002375 to /storage/kkm_last_doc_name [23:23:56]save OK [23:23:56]Clear old archive folders... [23:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:56]tlvbuf is B6F1AB30 [23:23:56]SAM_PROTO_ClearQueue [23:23:56]wFMCommunicate request_size=4 [23:23:56]MH_SAM_APDU [23:23:56]CAPDU: 80 09 00 00 [23:23:56]Write to MH i2c: E2 08 00 46 11 80 09 00 00 00 00 00 00 C9 [23:23:56]Write i2c OK [23:23:56]MH_I2C_Read... [23:23:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:57]Read from MH i2c: E2 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 46 11 00 90 00 CB [23:23:57]RAPDU: 90 00 [23:23:57]wFMCommunicate OK [23:23:57]SAM_PROTO_ClearQueue done [23:23:57]KKMCreateOFDPacket [23:23:57]OFDProtocolAddRootSTLVToBuf [23:23:57]FM_MakeSignedData [23:23:57]FM_MakeSignedData [23:23:57]SAM_PROTO_SignData [23:23:57]wFMCommunicate request_size=4 [23:23:57]MH_SAM_APDU [23:23:57]CAPDU: 80 0D 01 02 [23:23:57]Write to MH i2c: E2 08 00 47 11 80 0D 01 02 00 00 00 00 D1 [23:23:57]Write i2c OK [23:23:57]MH_I2C_Read... [23:23:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:57]Read from MH i2c: E2 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 47 11 00 90 00 CC [23:23:57]RAPDU: 90 00 [23:23:57]wFMCommunicate OK [23:23:57]wFMCommunicate request_size=255 [23:23:57]MH_SAM_APDU [23:23:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8C 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 09 00 00 35 04 06 00 12 [23:23:57]Write to MH i2c: E2 02 01 48 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8C 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 09 00 00 35 04 06 00 12 00 00 6D [23:23:57]Write i2c OK [23:23:57]MH_I2C_Read... [23:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:57]Read from MH i2c: E2 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 48 11 00 90 00 CD [23:23:57]RAPDU: 90 00 [23:23:57]wFMCommunicate OK [23:23:57]wFMCommunicate request_size=10 [23:23:57]MH_SAM_APDU [23:23:57]CAPDU: 80 0D 02 02 05 3D 70 2D 16 E6 [23:23:57]Write to MH i2c: E2 0D 00 49 11 80 0D 02 02 05 00 3D 70 2D 16 E6 00 00 B4 [23:23:57]Write i2c OK [23:23:57]MH_I2C_Read... [23:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:57]Read from MH i2c: E2 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 03 00 49 11 00 90 00 CE [23:23:57]RAPDU: 90 00 [23:23:57]wFMCommunicate OK [23:23:57]wFMCommunicate request_size=4 [23:23:57]MH_SAM_APDU [23:23:57]CAPDU: 80 0D 03 02 [23:23:57]Write to MH i2c: E2 08 00 4A 11 80 0D 03 02 00 00 00 00 D6 [23:23:57]Write i2c OK [23:23:57]MH_I2C_Read... [23:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:57]Read from MH i2c: E2 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 0B 00 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 0B 00 4A 11 00 43 E2 70 01 01 03 D2 E5 90 00 28 [23:23:57]RAPDU: 43 E2 70 01 01 03 D2 E5 90 00 [23:23:57]wFMCommunicate OK [23:23:57]SAM_PROTO_SignData done [23:23:57]FM_MakeSignedData done [23:23:57]CreateOFDProtocolMessage [23:23:57]wFMCommunicate request_size=4 [23:23:57]MH_SAM_APDU [23:23:57]CAPDU: 80 11 00 00 [23:23:57]Write to MH i2c: E2 08 00 4B 11 80 11 00 00 00 00 00 00 D6 [23:23:57]Write i2c OK [23:23:57]MH_I2C_Read... [23:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:57]Read from MH i2c: E2 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 17 00 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: E2 17 00 4B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 26 [23:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:23:57]wFMCommunicate OK [23:23:57]CreateOFDProtocolMessage done [23:23:57]OFDSenderStorePacket 2375 [23:23:57]StoreOFDPacket docnum=2375 [23:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C4 D7 07 01 D2 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8C 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 09 00 00 35 04 06 00 12 3D 70 2D 16 E6 43 E2 70 01 01 03 D2 E5 [23:23:57]CheckFolder [23:23:57]dirname=/storage/ofd_packets [23:23:57]CheckFolder done [23:23:57]ProducePacketName [23:23:57]name=ofd_packets/00002375 [23:23:57]NVStorageSaveData ofd_packets/00002375 [23:23:57]File name is /storage/ofd_packets/00002375 [23:23:57]Write 301 bytes [23:23:57]NVStorageSaveData done [23:23:57]OFDSenderStorePacket done [23:23:57]KKMCreateOFDPacket done [23:23:57]NVStorageSaveData kkm_last_timestamp [23:23:57]File name is /storage/kkm_last_timestamp [23:23:57]Write 4 bytes [23:23:57]NVStorageSaveData done [23:23:57]ExternCall_PrintAddStr [23:23:57]wPrintStart [23:23:57]Write to MH i2c: 01 00 00 4C 11 5D [23:23:57]Write i2c OK [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: 01 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: 01 07 00 [23:23:57]MH_I2C_Read... [23:23:57]Read from MH i2c: 01 07 00 4C 11 00 00 00 00 00 FF 0F 72 [23:23:57]RasterBufferAndPrint [23:23:57]line Счет N : (1)610232 [23:23:57]line ИНН: 02508201610067 [23:23:57]line Контрольно-Кассовый Чек [23:23:57]line ПРОДАЖА [23:23:57]line ТРК (МРК, ГНК) : 63 [23:23:57]line Товар: 2710124500 [23:23:57]line Аи-95-К-3 [23:23:57]line 13.390 * 74.70 [23:23:57]line = 1000.23 [23:23:57]line НДС 12% НСП 1% [23:23:57]line > о реализуемом товаре [23:23:57]line ОКРУГЛЕНИЕ: -0.23 [23:23:57]line ИТОГО: 1000.00 [23:23:57]line Внесено: 1000.00 [23:23:57]line СДАЧА: 0.00 [23:23:57]line НСП 1% : 8.85 [23:23:57]line НДС 12% : 106.22 [23:23:57]line Наличными: 1000.00 [23:23:57]line Безнал.: 0.00 [23:23:57]line Место: АЗС № 127 "Партнер Нефть" [23:23:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:23:57]line СНО: Общий режим [23:23:57]line Чек 224 29.07.2024 23:23 [23:23:57]line Смена: 15 ФФД: 1.0 [23:23:57]line ЗНМ: 0300000161 [23:23:57]line РНМ: 0000000000189667 [23:23:57]line Версия ККМ: v1.0 [23:23:57]line ФМ: 0000000002094248 [23:23:57]line ФД: 2375 [23:23:57]line ФПД: 20055084308198 [23:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232356&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2375&fm=20055084308198&tin=02508201610067®Number=0000000000189667&sum=100000 [23:23:57]OFD Sender: Processing packet 2375 [packets to send 1, broken 0] [23:23:57]ProducePacketName [23:23:57]name=ofd_packets/00002375 [23:23:57]OFD Sender: To server: pG, [23:23:57]CommunicateWithHost lk.salyk.kg:30040 [23:23:57]ConnectInit lk.salyk.kg [23:23:57]written 0, free lines is 4095 [23:23:58]Write to MH i2c: 01 00 00 77 11 88 [23:23:58]Write i2c OK [23:23:58]MH_I2C_Read... [23:23:58]Read from MH i2c: 01 [23:23:58]MH_I2C_Read... [23:23:58]Read from MH i2c: 01 07 00 [23:23:58]MH_I2C_Read... [23:23:58]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 E6 0C 81 [23:23:58]RasterBufferAndPrint [23:23:58]line [23:23:58]line [23:23:58]line [23:23:58]line [23:23:58]line [23:23:58]written 0, free lines is 3306 [23:23:58]MH_Cut [23:23:58]Write to MH i2c: D1 01 00 7E 11 01 61 [23:23:58]Write i2c OK [23:23:58]MH_I2C_Read... [23:23:58]Read from MH i2c: D1 [23:23:58]MH_I2C_Read... [23:23:58]Read from MH i2c: D1 01 00 [23:23:58]MH_I2C_Read... [23:23:58]Read from MH i2c: D1 01 00 7E 11 00 60 [23:23:58]Write to MH i2c: 01 00 00 7F 11 90 [23:23:58]Write i2c OK [23:23:58]MH_I2C_Read... [23:23:58]*** Cut start [23:23:58]*** Partial cut [23:23:58]*** CUTSNS_PIN = 1 [23:23:59]*** CUTSNS_PIN = 0 [23:23:59]*** Brake cut motor [23:23:59]Read from MH i2c: 01 [23:23:59]MH_I2C_Read... [23:23:59]*** Stop cut motor [23:23:59]*** Cut end [23:23:59]Read from MH i2c: 01 07 00 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: 01 07 00 7F 11 00 00 00 00 00 FF 0F A5 [23:23:59]process_action close_receipt done [23:23:59]requested_data is exist [23:23:59]produce_requested_data [23:23:59]requested_item fm.sn is exist - process it [23:23:59]wFMCommunicate request_size=4 [23:23:59]MH_SAM_APDU [23:23:59]CAPDU: 80 11 00 00 [23:23:59]Write to MH i2c: E2 08 00 80 11 80 11 00 00 00 00 00 00 0B [23:23:59]Write i2c OK [23:23:59]MH_I2C_Read... [23:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:59]Read from MH i2c: E2 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 17 00 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 17 00 80 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 5B [23:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:23:59]wFMCommunicate OK [23:23:59]requested_item fd.num is exist - process it [23:23:59]SAM_PROTO_GetFieldsCounters [23:23:59]wFMCommunicate request_size=4 [23:23:59]MH_SAM_APDU [23:23:59]CAPDU: 80 13 00 00 [23:23:59]Write to MH i2c: E2 08 00 81 11 80 13 00 00 00 00 00 00 0E [23:23:59]Write i2c OK [23:23:59]MH_I2C_Read... [23:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:59]Read from MH i2c: E2 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 62 00 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 62 00 81 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 47 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [23:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 47 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:59]wFMCommunicate OK [23:23:59]SAM_PROTO_GetFieldsCounters done [23:23:59]requested_item shift.num is exist - process it [23:23:59]requested_item shift.opened is exist - process it [23:23:59]req_shift_opened [23:23:59]FM_GetShiftState [23:23:59]SAM_PROTO_GetShiftState [23:23:59]wFMCommunicate request_size=4 [23:23:59]MH_SAM_APDU [23:23:59]CAPDU: 80 13 01 00 [23:23:59]Write to MH i2c: E2 08 00 82 11 80 13 01 00 00 00 00 00 10 [23:23:59]Write i2c OK [23:23:59]MH_I2C_Read... [23:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:59]Read from MH i2c: E2 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 0E 00 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 0E 00 82 11 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 09 [23:23:59]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:23:59]wFMCommunicate OK [23:23:59]SAM_PROTO_GetShiftState done [23:23:59]FM_GetShiftState done [23:23:59]req_shift_opened done [23:23:59]requested_item shift.open_date is exist - process it [23:23:59]req_shift_open_date [23:23:59]req_shift_open_date done [23:23:59]produce_requested_data done [23:23:59]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2375,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:23:59]process_action_free close_receipt [23:23:59]json_value_free [23:23:59]json_value_free done [23:23:59]process_json_proto returns [23:23:59]Send response to host [23:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2375,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:23:59]free response buf [23:23:59]execute_script done [23:23:59]execute_script returns [23:23:59]free content buf [23:23:59]Sock 9.Close socket [23:23:59]Sock 9.Thread stoped [23:26:08]ConnectInit Can't connect to host [23:26:08]CommunicateWithHost connect error [23:26:08]CommunicateWithHost err = -1 [23:26:08]OFD Sender: Server communicate error [23:26:13]OFD Sender: Processing packet 2375 [packets to send 1, broken 0] [23:26:13]ProducePacketName [23:26:13]name=ofd_packets/00002375 [23:26:13]OFD Sender: To server: pG, [23:26:13]CommunicateWithHost lk.salyk.kg:30040 [23:26:13]ConnectInit lk.salyk.kg [23:26:14]Connected sock=9 [23:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 C4 D7 07 01 D2 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8C 24 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 47 09 00 00 35 04 06 00 12 3D 70 2D 16 E6 43 E2 70 01 01 03 D2 E5 [23:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BD C2 47 00 AD 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 32 30 39 34 32 34 38 10 04 04 00 47 09 00 00 F4 03 04 00 80 D0 A7 66 B6 04 01 00 00 1A 63 C4 CD 95 86 34 3F [23:26:14]CommunicateWithHost err = 0 [23:26:14]CheckOFDResponse [23:26:14]1017 (14) - 77093643461234 [23:26:14]1041 (16) - 0000000002094248 [23:26:14]1040 (4) - 2375 [23:26:14]1012 (4) - 29.07.2024 17:25 [23:26:14]1206 (1) - 0 [23:26:14]OFD Sender: Remove packet 2375 [23:26:14]ProducePacketName [23:26:14]name=ofd_packets/00002375 [23:26:14]NVStorageDeleteData [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 ED FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 92 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725ED (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 1579358+1720716259=1722295617 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570625 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 ED FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 93 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 42 25 A8 66 E3 0B 90 66 58 [23:26:58]Current date/time: 29.07.2024 23:26 [23:26:58]FM_Init [23:26:58]wFMConnect [23:26:58]MH_SAM_On [23:26:58]Write to MH i2c: E0 00 00 08 00 E7 [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_init finished! [23:26:58]*** atr: [23:26:58]*** 0F 3B D5 18 FF 81 91 FE [23:26:58]*** 1F C3 80 73 C8 21 10 0A [23:26:58]*** 00 00 00 00 00 00 00 00 [23:26:58]*** 00 00 00 00 00 00 00 00 [23:26:58]*** 00 00 00 00 00 00 00 00 [23:26:58]*** 00 00 00 00 00 00 00 00 [23:26:58]*** 00 00 00 00 00 00 00 00 [23:26:58]*** 00 00 00 00 00 00 00 00 [23:26:58]Read from MH i2c: E0 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E0 10 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:26:58]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:26:58]wFMCommunicate request_size=10 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:26:58]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:26:58]RAPDU: 90 00 [23:26:58]wFMCommunicate OK [23:26:58]wFMCommunicate request_size=4 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 80 11 00 00 [23:26:58]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 17 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D4 [23:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:26:58]wFMCommunicate OK [23:26:58]Detected FM SN is 0000000002094248 [23:26:58]Stored FM SN is 0000000002094248 [23:26:58]wFMCommunicate request_size=9 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 80 16 00 00 04 96 B7 00 00 [23:26:58]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 96 B7 00 00 00 00 DF [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:26:58]RAPDU: 90 00 [23:26:58]wFMCommunicate OK [23:26:58]FM PIN OK [23:26:58]wFMCommunicate request_size=8 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 80 14 04 00 03 02 00 01 [23:26:58]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:26:58]RAPDU: 90 00 [23:26:58]wFMCommunicate OK [23:26:58]wFMCommunicate request_size=13 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:26:58]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:26:58]RAPDU: 90 00 [23:26:58]wFMCommunicate OK [23:26:58]wFMCommunicate request_size=4 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 80 11 00 00 [23:26:58]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 17 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D8 [23:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:26:58]wFMCommunicate OK [23:26:58]DocumentArchiveInit [23:26:58]Start Httpd... [23:26:58]Httpd thread 3067911524 created [23:26:58]Write to MH i2c: 01 00 00 0F 00 0F [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: 01 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: 01 07 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:26:58]MH Int Process started [23:26:58]Allocated Socket 8 [23:26:58]Bind OK [23:26:58]Listen OK [23:26:58]httpd running on port 8080 [23:26:58]Waiting for new connection... [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:52]accept exits with 9 [23:29:52]New connection [23:29:52]New thread 3067624804 created [23:29:52]Waiting for new connection... [23:29:52] Sock 9.Parse request [23:29:52]Sock 9.Check first char [23:29:52]Sock 9.First char is OK [23:29:52]request: POST /json_proto HTTP/1.0 [23:29:52]Method: POST [23:29:52]URL: /json_proto [23:29:52]Method is POST - this is cgi request [23:29:52]url: /json_proto [23:29:52]query_string will be loaded in cgi processing [23:29:52]execute_cgi json_proto POST (null) [23:29:52]execute_cgi path=json_proto method=POST [23:29:52]POST find Content-Length [23:29:52]Host: 172.17.45.132:8080 [23:29:52]Content-Length: 836 [23:29:52]Content-Type: application/json [23:29:52] [23:29:52]POST finish read [23:29:52]Found Content-Length = 836 [23:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126590", "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" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:52]execute_script... [23:29:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126590", "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" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:52]POST & json_proto [23:29:52]process_json_proto [23:29:52]json parsed OK: [23:29:52]protocol is kg_v1.0 [23:29:52]action value=close_receipt [23:29:52]process_action close_receipt [23:29:52]cmd_close_receipt [23:29:52]MH_GetDate [23:29:52]Write to MH i2c: F0 00 00 10 00 FF [23:29:52]Write i2c OK [23:29:52]MH_I2C_Read... [23:29:52]Read from MH i2c: F0 [23:29:52]MH_I2C_Read... [23:29:52]Read from MH i2c: F0 09 00 [23:29:52]MH_I2C_Read... [23:29:52]Read from MH i2c: F0 09 00 10 00 00 F1 25 A8 66 E3 0B 90 66 10 [23:29:52]GetLastDocTimeStamp 1722295436 [23:29:52]current date 1722295793 [23:29:52]FM_GetShiftState [23:29:52]SAM_PROTO_GetShiftState [23:29:52]wFMCommunicate request_size=4 [23:29:52]MH_SAM_APDU [23:29:52]CAPDU: 80 13 01 00 [23:29:52]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [23:29:52]Write i2c OK [23:29:52]MH_I2C_Read... [23:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:52]Read from MH i2c: E2 [23:29:52]MH_I2C_Read... [23:29:52]Read from MH i2c: E2 0E 00 [23:29:52]MH_I2C_Read... [23:29:52]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 87 [23:29:52]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:29:52]wFMCommunicate OK [23:29:52]SAM_PROTO_GetShiftState done [23:29:52]FM_GetShiftState done [23:29:52]opened in 1722213119 [23:29:52]opened+sec_in_day 1722299519 [23:29:52]quantity*price = 2100 [23:29:52]sum+1 = 2101 [23:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 0.00 Безнал.: 21.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 225 29.07.2024 23:29 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2376 ФПД: 158741858795197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232953&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2376&fm=158741858795197&tin=02508201610067®Number=0000000000189667&sum=2100 0 [23:29:53]StoreToDocumentArchive [23:29:53]shift 15 fd 2376 [23:29:53]save to /storage/0015/doc_00002376 [23:29:53]save last doc name /storage/0015/doc_00002376 to /storage/kkm_last_doc_name [23:29:53]save OK [23:29:53]Clear old archive folders... [23:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=287 [23:29:53]tlvbuf is 00840480 [23:29:53]SAM_PROTO_ClearQueue [23:29:53]wFMCommunicate request_size=4 [23:29:53]MH_SAM_APDU [23:29:53]CAPDU: 80 09 00 00 [23:29:53]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [23:29:53]Write i2c OK [23:29:53]MH_I2C_Read... [23:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:53]Read from MH i2c: E2 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 03 00 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [23:29:53]RAPDU: 90 00 [23:29:53]wFMCommunicate OK [23:29:53]SAM_PROTO_ClearQueue done [23:29:53]KKMCreateOFDPacket [23:29:53]OFDProtocolAddRootSTLVToBuf [23:29:53]FM_MakeSignedData [23:29:53]FM_MakeSignedData [23:29:53]SAM_PROTO_SignData [23:29:53]wFMCommunicate request_size=4 [23:29:53]MH_SAM_APDU [23:29:53]CAPDU: 80 0D 01 02 [23:29:53]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [23:29:53]Write i2c OK [23:29:53]MH_I2C_Read... [23:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:53]Read from MH i2c: E2 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 03 00 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [23:29:53]RAPDU: 90 00 [23:29:53]wFMCommunicate OK [23:29:53]wFMCommunicate request_size=255 [23:29:53]MH_SAM_APDU [23:29:53]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 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 08 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F1 25 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 [23:29:53]Write to MH i2c: E2 02 01 20 00 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 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 08 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F1 25 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 00 00 E3 [23:29:53]Write i2c OK [23:29:53]MH_I2C_Read... [23:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:53]Read from MH i2c: E2 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 03 00 [23:29:53]MH_I2C_Read... [23:29:53]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [23:29:53]RAPDU: 90 00 [23:29:53]wFMCommunicate OK [23:29:53]wFMCommunicate request_size=46 [23:29:53]MH_SAM_APDU [23:29:53]CAPDU: 80 0D 02 02 29 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 09 00 00 35 04 06 00 90 5F F8 1A BE BD [23:29:53]Write to MH i2c: E2 31 00 21 00 80 0D 02 02 29 00 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 09 00 00 35 04 06 00 90 5F F8 1A BE BD 00 00 F6 [23:29:53]Write i2c OK [23:29:53]MH_I2C_Read... [23:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:54]Read from MH i2c: E2 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: E2 03 00 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [23:29:54]RAPDU: 90 00 [23:29:54]wFMCommunicate OK [23:29:54]wFMCommunicate request_size=4 [23:29:54]MH_SAM_APDU [23:29:54]CAPDU: 80 0D 03 02 [23:29:54]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [23:29:54]Write i2c OK [23:29:54]MH_I2C_Read... [23:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:54]Read from MH i2c: E2 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: E2 0B 00 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: E2 0B 00 22 00 00 E5 9A EF E1 77 B0 04 4A 90 00 62 [23:29:54]RAPDU: E5 9A EF E1 77 B0 04 4A 90 00 [23:29:54]wFMCommunicate OK [23:29:54]SAM_PROTO_SignData done [23:29:54]FM_MakeSignedData done [23:29:54]CreateOFDProtocolMessage [23:29:54]wFMCommunicate request_size=4 [23:29:54]MH_SAM_APDU [23:29:54]CAPDU: 80 11 00 00 [23:29:54]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [23:29:54]Write i2c OK [23:29:54]MH_I2C_Read... [23:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:54]Read from MH i2c: E2 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: E2 17 00 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 ED [23:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:29:54]wFMCommunicate OK [23:29:54]CreateOFDProtocolMessage done [23:29:54]OFDSenderStorePacket 2376 [23:29:54]StoreOFDPacket docnum=2376 [23:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 33 01 00 00 F9 7F 2B 01 2D F2 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 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 08 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F1 25 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 09 00 00 35 04 06 00 90 5F F8 1A BE BD E5 9A EF E1 77 B0 04 4A [23:29:54]CheckFolder [23:29:54]dirname=/storage/ofd_packets [23:29:54]CheckFolder done [23:29:54]ProducePacketName [23:29:54]name=ofd_packets/00002376 [23:29:54]NVStorageSaveData ofd_packets/00002376 [23:29:54]File name is /storage/ofd_packets/00002376 [23:29:54]Write 337 bytes [23:29:54]NVStorageSaveData done [23:29:54]OFDSenderStorePacket done [23:29:54]KKMCreateOFDPacket done [23:29:54]NVStorageSaveData kkm_last_timestamp [23:29:54]File name is /storage/kkm_last_timestamp [23:29:54]Write 4 bytes [23:29:54]NVStorageSaveData done [23:29:54]ExternCall_PrintAddStr [23:29:54]wPrintStart [23:29:54]Write to MH i2c: 01 00 00 24 00 24 [23:29:54]Write i2c OK [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: 01 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: 01 07 00 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [23:29:54]RasterBufferAndPrint [23:29:54]line Счет N : (3)126590 [23:29:54]line ИНН: 02508201610067 [23:29:54]line Контрольно-Кассовый Чек [23:29:54]line ПРОДАЖА [23:29:54]line Товар: 2000053020015 [23:29:54]line Бумажные стаканы 250мл 1шт [23:29:54]line 3.000 * 7.00 [23:29:54]line = 21.00 [23:29:54]line НДС 12% НСП 1% [23:29:54]line > о реализуемом товаре [23:29:54]line ИТОГО: 21.00 [23:29:54]line НСП 1% : 0.19 [23:29:54]line НДС 12% : 2.23 [23:29:54]line Наличными: 0.00 [23:29:54]line Безнал.: 21.00 [23:29:54]line Место: АЗС № 127 "Партнер Нефть" [23:29:54]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:29:54]line СНО: Общий режим [23:29:54]line Чек 225 29.07.2024 23:29 [23:29:54]line Смена: 15 ФФД: 1.0 [23:29:54]line ЗНМ: 0300000161 [23:29:54]line РНМ: 0000000000189667 [23:29:54]line Версия ККМ: v1.0 [23:29:54]line Платежная система: O! деньги [23:29:54]line ФМ: 0000000002094248 [23:29:54]line ФД: 2376 [23:29:54]line ФПД: 158741858795197 [23:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232953&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2376&fm=158741858795197&tin=02508201610067®Number=0000000000189667&sum=2100 [23:29:54]OFD Sender: Processing packet 2376 [packets to send 1, broken 0] [23:29:54]ProducePacketName [23:29:54]name=ofd_packets/00002376 [23:29:54]OFD Sender: To server: pG, [23:29:54]CommunicateWithHost lk.salyk.kg:30040 [23:29:54]ConnectInit lk.salyk.kg [23:29:54]line 0 [23:29:54]written 0, free lines is 4095 [23:29:54]Connected sock=10 [23:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 33 01 00 00 F9 7F 2B 01 2D F2 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 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 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 08 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F1 25 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 09 00 00 35 04 06 00 90 5F F8 1A BE BD E5 9A EF E1 77 B0 04 4A [23:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BB A8 47 00 AB 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 48 09 00 00 F4 03 04 00 5C D1 A7 66 B6 04 01 00 00 89 49 CC 4A 45 8C 4F 7C [23:29:54]CommunicateWithHost err = 0 [23:29:54]CheckOFDResponse [23:29:54]1017 (14) - 77093643461234 [23:29:54]1041 (16) - 0000000002094248 [23:29:54]1040 (4) - 2376 [23:29:54]1012 (4) - 29.07.2024 17:29 [23:29:54]1206 (1) - 0 [23:29:54]OFD Sender: Remove packet 2376 [23:29:54]ProducePacketName [23:29:54]name=ofd_packets/00002376 [23:29:54]NVStorageDeleteData [23:29:54]Write to MH i2c: 01 00 00 4F 00 4F [23:29:54]Write i2c OK [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: 01 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: 01 07 00 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 EB 0C 4D [23:29:54]RasterBufferAndPrint [23:29:54]line [23:29:54]line [23:29:54]line [23:29:54]line [23:29:54]line [23:29:54]written 0, free lines is 3313 [23:29:54]MH_Cut [23:29:54]Write to MH i2c: D1 01 00 56 00 01 28 [23:29:54]Write i2c OK [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: D1 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: D1 01 00 [23:29:54]MH_I2C_Read... [23:29:54]Read from MH i2c: D1 01 00 56 00 00 27 [23:29:54]Write to MH i2c: 01 00 00 57 00 57 [23:29:54]Write i2c OK [23:29:54]MH_I2C_Read... [23:29:55]OFD Sender: No OFD packet to send [23:29:55]*** Cut start [23:29:55]*** Partial cut [23:29:55]*** CUTSNS_PIN = 1 [23:29:55]*** CUTSNS_PIN = 0 [23:29:55]*** Brake cut motor [23:29:56]Read from MH i2c: 01 [23:29:56]MH_I2C_Read... [23:29:56]*** Stop cut motor [23:29:56]*** Cut end [23:29:56]Read from MH i2c: 01 07 00 [23:29:56]MH_I2C_Read... [23:29:56]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [23:29:56]process_action close_receipt done [23:29:56]requested_data is exist [23:29:56]produce_requested_data [23:29:56]requested_item fm.sn is exist - process it [23:29:56]wFMCommunicate request_size=4 [23:29:56]MH_SAM_APDU [23:29:56]CAPDU: 80 11 00 00 [23:29:56]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [23:29:56]Write i2c OK [23:29:56]MH_I2C_Read... [23:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:56]Read from MH i2c: E2 [23:29:56]MH_I2C_Read... [23:29:56]Read from MH i2c: E2 17 00 [23:29:56]MH_I2C_Read... [23:29:56]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 22 [23:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:29:56]wFMCommunicate OK [23:29:56]requested_item fd.num is exist - process it [23:29:56]SAM_PROTO_GetFieldsCounters [23:29:56]wFMCommunicate request_size=4 [23:29:56]MH_SAM_APDU [23:29:56]CAPDU: 80 13 00 00 [23:29:56]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [23:29:56]Write i2c OK [23:29:56]MH_I2C_Read... [23:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:56]Read from MH i2c: E2 [23:29:56]MH_I2C_Read... [23:29:56]Read from MH i2c: E2 62 00 [23:29:56]MH_I2C_Read... [23:29:56]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 48 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [23:29:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 48 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:56]wFMCommunicate OK [23:29:56]SAM_PROTO_GetFieldsCounters done [23:29:56]requested_item shift.num is exist - process it [23:29:56]requested_item shift.opened is exist - process it [23:29:56]req_shift_opened [23:29:56]FM_GetShiftState [23:29:56]SAM_PROTO_GetShiftState [23:29:56]wFMCommunicate request_size=4 [23:29:56]MH_SAM_APDU [23:29:56]CAPDU: 80 13 01 00 [23:29:56]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [23:29:56]Write i2c OK [23:29:56]MH_I2C_Read... [23:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:56]Read from MH i2c: E2 [23:29:56]MH_I2C_Read... [23:29:56]Read from MH i2c: E2 0E 00 [23:29:56]MH_I2C_Read... [23:29:56]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D0 [23:29:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:29:56]wFMCommunicate OK [23:29:56]SAM_PROTO_GetShiftState done [23:29:56]FM_GetShiftState done [23:29:56]req_shift_opened done [23:29:56]requested_item shift.open_date is exist - process it [23:29:56]req_shift_open_date [23:29:56]req_shift_open_date done [23:29:56]produce_requested_data done [23:29:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2376,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:29:56]process_action_free close_receipt [23:29:56]json_value_free [23:29:56]json_value_free done [23:29:56]process_json_proto returns [23:29:56]Send response to host [23:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2376,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:29:56]free response buf [23:29:56]execute_script done [23:29:56]execute_script returns [23:29:56]free content buf [23:29:56]Sock 9.Close socket [23:29:56]Sock 9.Thread stoped [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:52]accept exits with 7 [23:34:52]New connection [23:34:52]New thread 3067481444 created [23:34:52]Thread 3067624804 joined [23:34:52]Waiting for new connection... [23:34:52] Sock 7.Parse request [23:34:52]Sock 7.Check first char [23:34:52]Sock 7.First char is OK [23:34:52]request: POST /json_proto HTTP/1.0 [23:34:52]Method: POST [23:34:52]URL: /json_proto [23:34:52]Method is POST - this is cgi request [23:34:52]url: /json_proto [23:34:52]query_string will be loaded in cgi processing [23:34:52]execute_cgi json_proto POST (null) [23:34:52]execute_cgi path=json_proto method=POST [23:34:52]POST find Content-Length [23:34:52]Host: 172.17.45.132:8080 [23:34:52]Content-Length: 682 [23:34:52]Content-Type: application/json [23:34:52] [23:34:52]POST finish read [23:34:52]Found Content-Length = 682 [23:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:52]execute_script... [23:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:52]POST & json_proto [23:34:52]process_json_proto [23:34:52]json parsed OK: [23:34:52]protocol is kg_v1.0 [23:34:52]action value=close_receipt [23:34:52]process_action close_receipt [23:34:52]cmd_close_receipt [23:34:52]MH_GetDate [23:34:52]Write to MH i2c: F0 00 00 5B 00 4A [23:34:52]Write i2c OK [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: F0 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: F0 09 00 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: F0 09 00 5B 00 00 1C 27 A8 66 E3 0B 90 66 88 [23:34:52]GetLastDocTimeStamp 1722295793 [23:34:52]current date 1722296092 [23:34:52]FM_GetShiftState [23:34:52]SAM_PROTO_GetShiftState [23:34:52]wFMCommunicate request_size=4 [23:34:52]MH_SAM_APDU [23:34:52]CAPDU: 80 13 01 00 [23:34:52]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [23:34:52]Write i2c OK [23:34:52]MH_I2C_Read... [23:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:52]Read from MH i2c: E2 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: E2 0E 00 [23:34:52]MH_I2C_Read... [23:34:52]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D2 [23:34:52]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:34:52]wFMCommunicate OK [23:34:52]SAM_PROTO_GetShiftState done [23:34:52]FM_GetShiftState done [23:34:52]opened in 1722213119 [23:34:52]opened+sec_in_day 1722299519 [23:34:52]quantity*price = 200046 [23:34:52]sum+1 = 200048 [23:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 226 29.07.2024 23:34 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2377 ФПД: 159409505403942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233452&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2377&fm=159409505403942&tin=02508201610067®Number=0000000000189667&sum=200000 [23:34:53]StoreToDocumentArchive [23:34:53]shift 15 fd 2377 [23:34:53]save to /storage/0015/doc_00002377 [23:34:53]save last doc name /storage/0015/doc_00002377 to /storage/kkm_last_doc_name [23:34:53]save OK [23:34:53]Clear old archive folders... [23:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:53]tlvbuf is 0084CD80 [23:34:53]SAM_PROTO_ClearQueue [23:34:53]wFMCommunicate request_size=4 [23:34:53]MH_SAM_APDU [23:34:53]CAPDU: 80 09 00 00 [23:34:53]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:53]Read from MH i2c: E2 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 03 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [23:34:53]RAPDU: 90 00 [23:34:53]wFMCommunicate OK [23:34:53]SAM_PROTO_ClearQueue done [23:34:53]KKMCreateOFDPacket [23:34:53]OFDProtocolAddRootSTLVToBuf [23:34:53]FM_MakeSignedData [23:34:53]FM_MakeSignedData [23:34:53]SAM_PROTO_SignData [23:34:53]wFMCommunicate request_size=4 [23:34:53]MH_SAM_APDU [23:34:53]CAPDU: 80 0D 01 02 [23:34:53]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:53]Read from MH i2c: E2 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 03 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [23:34:53]RAPDU: 90 00 [23:34:53]wFMCommunicate OK [23:34:53]wFMCommunicate request_size=255 [23:34:53]MH_SAM_APDU [23:34:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1C 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 09 00 00 35 04 06 00 90 [23:34:53]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1C 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 09 00 00 35 04 06 00 90 00 00 C8 [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 [23:34:53]MH_I2C_Read... [23:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:53]Read from MH i2c: E2 03 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [23:34:53]RAPDU: 90 00 [23:34:53]wFMCommunicate OK [23:34:53]wFMCommunicate request_size=10 [23:34:53]MH_SAM_APDU [23:34:53]CAPDU: 80 0D 02 02 05 FB 6A F1 84 26 [23:34:53]Write to MH i2c: E2 0D 00 6C 00 80 0D 02 02 05 00 FB 6A F1 84 26 00 00 F0 [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:53]Read from MH i2c: E2 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 03 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [23:34:53]RAPDU: 90 00 [23:34:53]wFMCommunicate OK [23:34:53]wFMCommunicate request_size=4 [23:34:53]MH_SAM_APDU [23:34:53]CAPDU: 80 0D 03 02 [23:34:53]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:53]Read from MH i2c: E2 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 0B 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 0B 00 6D 00 00 82 B4 55 0C 0F DF 7C 3C 90 00 26 [23:34:53]RAPDU: 82 B4 55 0C 0F DF 7C 3C 90 00 [23:34:53]wFMCommunicate OK [23:34:53]SAM_PROTO_SignData done [23:34:53]FM_MakeSignedData done [23:34:53]CreateOFDProtocolMessage [23:34:53]wFMCommunicate request_size=4 [23:34:53]MH_SAM_APDU [23:34:53]CAPDU: 80 11 00 00 [23:34:53]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:53]Read from MH i2c: E2 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 17 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 38 [23:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:34:53]wFMCommunicate OK [23:34:53]CreateOFDProtocolMessage done [23:34:53]OFDSenderStorePacket 2377 [23:34:53]StoreOFDPacket docnum=2377 [23:34:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 EF F9 07 01 FB A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1C 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 09 00 00 35 04 06 00 90 FB 6A F1 84 26 82 B4 55 0C 0F DF 7C 3C [23:34:53]CheckFolder [23:34:53]dirname=/storage/ofd_packets [23:34:53]CheckFolder done [23:34:53]ProducePacketName [23:34:53]name=ofd_packets/00002377 [23:34:53]NVStorageSaveData ofd_packets/00002377 [23:34:53]File name is /storage/ofd_packets/00002377 [23:34:53]Write 301 bytes [23:34:53]NVStorageSaveData done [23:34:53]OFDSenderStorePacket done [23:34:53]KKMCreateOFDPacket done [23:34:53]NVStorageSaveData kkm_last_timestamp [23:34:53]File name is /storage/kkm_last_timestamp [23:34:53]Write 4 bytes [23:34:53]NVStorageSaveData done [23:34:53]ExternCall_PrintAddStr [23:34:53]wPrintStart [23:34:53]Write to MH i2c: 01 00 00 6F 00 6F [23:34:53]Write i2c OK [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: 01 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: 01 07 00 [23:34:53]MH_I2C_Read... [23:34:53]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [23:34:53]RasterBufferAndPrint [23:34:53]line Счет N : (1)610236 [23:34:53]line ИНН: 02508201610067 [23:34:53]line Контрольно-Кассовый Чек [23:34:53]line ПРОДАЖА [23:34:53]line ТРК (МРК, ГНК) : 63 [23:34:53]line Товар: 2710124500 [23:34:53]line Аи-95-К-3 [23:34:53]line 26.780 * 74.70 [23:34:53]line = 2000.47 [23:34:53]line НДС 12% НСП 1% [23:34:53]line > о реализуемом товаре [23:34:53]line ОКРУГЛЕНИЕ: -0.47 [23:34:53]line ИТОГО: 2000.00 [23:34:53]line Внесено: 2000.00 [23:34:53]line СДАЧА: 0.00 [23:34:53]line НСП 1% : 17.70 [23:34:53]line НДС 12% : 212.44 [23:34:53]line Наличными: 2000.00 [23:34:53]line Безнал.: 0.00 [23:34:53]line Место: АЗС № 127 "Партнер Нефть" [23:34:53]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:34:53]line СНО: Общий режим [23:34:53]line Чек 226 29.07.2024 23:34 [23:34:53]line Смена: 15 ФФД: 1.0 [23:34:53]line ЗНМ: 0300000161 [23:34:53]line РНМ: 0000000000189667 [23:34:53]line Версия ККМ: v1.0 [23:34:53]line ФМ: 0000000002094248 [23:34:53]line ФД: 2377 [23:34:53]line ФПД: 159409505403942 [23:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233452&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2377&fm=159409505403942&tin=02508201610067®Number=0000000000189667&sum=200000 [23:34:54]OFD Sender: Processing packet 2377 [packets to send 1, broken 0] [23:34:54]ProducePacketName [23:34:54]name=ofd_packets/00002377 [23:34:54]OFD Sender: To server: pG, [23:34:54]CommunicateWithHost lk.salyk.kg:30040 [23:34:54]ConnectInit lk.salyk.kg [23:34:54]written 0, free lines is 4095 [23:34:54]Connected sock=10 [23:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 EF F9 07 01 FB A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1C 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 09 00 00 35 04 06 00 90 FB 6A F1 84 26 82 B4 55 0C 0F DF 7C 3C [23:34:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 61 E2 47 00 F8 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 49 09 00 00 F4 03 04 00 88 D2 A7 66 B6 04 01 00 00 E3 8D 16 77 5F 6C C9 46 [23:34:54]CommunicateWithHost err = 0 [23:34:54]CheckOFDResponse [23:34:54]1017 (14) - 77093643461234 [23:34:54]1041 (16) - 0000000002094248 [23:34:54]1040 (4) - 2377 [23:34:54]1012 (4) - 29.07.2024 17:34 [23:34:54]1206 (1) - 0 [23:34:54]OFD Sender: Remove packet 2377 [23:34:54]ProducePacketName [23:34:54]name=ofd_packets/00002377 [23:34:54]NVStorageDeleteData [23:34:54]Write to MH i2c: 01 00 00 9A 00 9A [23:34:54]Write i2c OK [23:34:54]MH_I2C_Read... [23:34:54]Read from MH i2c: 01 [23:34:54]MH_I2C_Read... [23:34:54]Read from MH i2c: 01 07 00 [23:34:54]MH_I2C_Read... [23:34:54]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 F9 0C A6 [23:34:54]RasterBufferAndPrint [23:34:54]line [23:34:54]line [23:34:54]line [23:34:54]line [23:34:54]line [23:34:54]written 0, free lines is 3327 [23:34:54]MH_Cut [23:34:54]Write to MH i2c: D1 01 00 A1 00 01 73 [23:34:54]Write i2c OK [23:34:54]MH_I2C_Read... [23:34:54]Read from MH i2c: D1 [23:34:54]MH_I2C_Read... [23:34:54]Read from MH i2c: D1 01 00 [23:34:54]MH_I2C_Read... [23:34:54]Read from MH i2c: D1 01 00 A1 00 00 72 [23:34:54]Write to MH i2c: 01 00 00 A2 00 A2 [23:34:54]Write i2c OK [23:34:54]MH_I2C_Read... [23:34:55]OFD Sender: No OFD packet to send [23:34:55]*** Cut start [23:34:55]*** Partial cut [23:34:55]*** CUTSNS_PIN = 1 [23:34:55]*** CUTSNS_PIN = 0 [23:34:55]*** Brake cut motor [23:34:56]Read from MH i2c: 01 [23:34:56]MH_I2C_Read... [23:34:56]*** Stop cut motor [23:34:56]*** Cut end [23:34:56]Read from MH i2c: 01 07 00 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [23:34:56]process_action close_receipt done [23:34:56]requested_data is exist [23:34:56]produce_requested_data [23:34:56]requested_item fm.sn is exist - process it [23:34:56]wFMCommunicate request_size=4 [23:34:56]MH_SAM_APDU [23:34:56]CAPDU: 80 11 00 00 [23:34:56]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [23:34:56]Write i2c OK [23:34:56]MH_I2C_Read... [23:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:56]Read from MH i2c: E2 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: E2 17 00 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6D [23:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:34:56]wFMCommunicate OK [23:34:56]requested_item fd.num is exist - process it [23:34:56]SAM_PROTO_GetFieldsCounters [23:34:56]wFMCommunicate request_size=4 [23:34:56]MH_SAM_APDU [23:34:56]CAPDU: 80 13 00 00 [23:34:56]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [23:34:56]Write i2c OK [23:34:56]MH_I2C_Read... [23:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:56]Read from MH i2c: E2 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: E2 62 00 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 49 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [23:34:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 49 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:56]wFMCommunicate OK [23:34:56]SAM_PROTO_GetFieldsCounters done [23:34:56]requested_item shift.num is exist - process it [23:34:56]requested_item shift.opened is exist - process it [23:34:56]req_shift_opened [23:34:56]FM_GetShiftState [23:34:56]SAM_PROTO_GetShiftState [23:34:56]wFMCommunicate request_size=4 [23:34:56]MH_SAM_APDU [23:34:56]CAPDU: 80 13 01 00 [23:34:56]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [23:34:56]Write i2c OK [23:34:56]MH_I2C_Read... [23:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:56]Read from MH i2c: E2 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: E2 0E 00 [23:34:56]MH_I2C_Read... [23:34:56]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1B [23:34:56]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:34:56]wFMCommunicate OK [23:34:56]SAM_PROTO_GetShiftState done [23:34:56]FM_GetShiftState done [23:34:56]req_shift_opened done [23:34:56]requested_item shift.open_date is exist - process it [23:34:56]req_shift_open_date [23:34:56]req_shift_open_date done [23:34:56]produce_requested_data done [23:34:56]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2377,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:34:56]process_action_free close_receipt [23:34:56]json_value_free [23:34:56]json_value_free done [23:34:56]process_json_proto returns [23:34:56]Send response to host [23:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2377,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:34:56]free response buf [23:34:56]execute_script done [23:34:56]execute_script returns [23:34:56]free content buf [23:34:56]Sock 7.Close socket [23:34:56]Sock 7.Thread stoped [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:16]accept exits with 9 [23:35:16]New connection [23:35:16]New thread 3067624804 created [23:35:16]Thread 3067481444 joined [23:35:16]Waiting for new connection... [23:35:16] Sock 9.Parse request [23:35:16]Sock 9.Check first char [23:35:16]Sock 9.First char is OK [23:35:16]request: POST /json_proto HTTP/1.0 [23:35:16]Method: POST [23:35:16]URL: /json_proto [23:35:16]Method is POST - this is cgi request [23:35:16]url: /json_proto [23:35:16]query_string will be loaded in cgi processing [23:35:16]execute_cgi json_proto POST (null) [23:35:16]execute_cgi path=json_proto method=POST [23:35:16]POST find Content-Length [23:35:16]Host: 172.17.45.132:8080 [23:35:16]Content-Length: 678 [23:35:16]Content-Type: application/json [23:35:16] [23:35:16]POST finish read [23:35:16]Found Content-Length = 678 [23:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:16]execute_script... [23:35:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:16]POST & json_proto [23:35:16]process_json_proto [23:35:16]json parsed OK: [23:35:16]protocol is kg_v1.0 [23:35:16]action value=close_receipt [23:35:16]process_action close_receipt [23:35:16]cmd_close_receipt [23:35:16]MH_GetDate [23:35:16]Write to MH i2c: F0 00 00 A6 00 95 [23:35:16]Write i2c OK [23:35:16]MH_I2C_Read... [23:35:16]Read from MH i2c: F0 [23:35:16]MH_I2C_Read... [23:35:16]Read from MH i2c: F0 09 00 [23:35:16]MH_I2C_Read... [23:35:16]Read from MH i2c: F0 09 00 A6 00 00 35 27 A8 66 E3 0B 90 66 EC [23:35:16]GetLastDocTimeStamp 1722296092 [23:35:16]current date 1722296117 [23:35:16]FM_GetShiftState [23:35:16]SAM_PROTO_GetShiftState [23:35:16]wFMCommunicate request_size=4 [23:35:16]MH_SAM_APDU [23:35:16]CAPDU: 80 13 01 00 [23:35:16]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [23:35:16]Write i2c OK [23:35:16]MH_I2C_Read... [23:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:16]Read from MH i2c: E2 [23:35:16]MH_I2C_Read... [23:35:16]Read from MH i2c: E2 0E 00 [23:35:16]MH_I2C_Read... [23:35:16]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 1D [23:35:16]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:35:16]wFMCommunicate OK [23:35:16]SAM_PROTO_GetShiftState done [23:35:16]FM_GetShiftState done [23:35:16]opened in 1722213119 [23:35:16]opened+sec_in_day 1722299519 [23:35:16]quantity*price = 70037 [23:35:16]sum+1 = 70038 [23:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 227 29.07.2024 23:35 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2378 ФПД: 234803607994319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233517&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2378&fm=234803607994319&tin=02508201610067®Number=0000000000189667&sum=70000 [23:35:17]StoreToDocumentArchive [23:35:17]shift 15 fd 2378 [23:35:17]save to /storage/0015/doc_00002378 [23:35:17]save last doc name /storage/0015/doc_00002378 to /storage/kkm_last_doc_name [23:35:17]save OK [23:35:17]Clear old archive folders... [23:35:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:17]tlvbuf is 00849560 [23:35:17]SAM_PROTO_ClearQueue [23:35:17]wFMCommunicate request_size=4 [23:35:17]MH_SAM_APDU [23:35:17]CAPDU: 80 09 00 00 [23:35:17]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [23:35:17]Write i2c OK [23:35:17]MH_I2C_Read... [23:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:17]Read from MH i2c: E2 [23:35:17]MH_I2C_Read... [23:35:17]Read from MH i2c: E2 03 00 [23:35:17]MH_I2C_Read... [23:35:17]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [23:35:17]RAPDU: 90 00 [23:35:17]wFMCommunicate OK [23:35:17]SAM_PROTO_ClearQueue done [23:35:17]KKMCreateOFDPacket [23:35:17]OFDProtocolAddRootSTLVToBuf [23:35:17]FM_MakeSignedData [23:35:17]FM_MakeSignedData [23:35:17]SAM_PROTO_SignData [23:35:17]wFMCommunicate request_size=4 [23:35:17]MH_SAM_APDU [23:35:17]CAPDU: 80 0D 01 02 [23:35:17]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [23:35:17]Write i2c OK [23:35:17]MH_I2C_Read... [23:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:17]Read from MH i2c: E2 [23:35:17]MH_I2C_Read... [23:35:17]Read from MH i2c: E2 03 00 [23:35:17]MH_I2C_Read... [23:35:17]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [23:35:17]RAPDU: 90 00 [23:35:17]wFMCommunicate OK [23:35:17]wFMCommunicate request_size=255 [23:35:17]MH_SAM_APDU [23:35:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 35 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 09 00 00 35 04 06 00 D5 [23:35:17]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 35 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 09 00 00 35 04 06 00 D5 00 00 1E [23:35:17]Write i2c OK [23:35:17]MH_I2C_Read... [23:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:18]Read from MH i2c: E2 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 03 00 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [23:35:18]RAPDU: 90 00 [23:35:18]wFMCommunicate OK [23:35:18]wFMCommunicate request_size=10 [23:35:18]MH_SAM_APDU [23:35:18]CAPDU: 80 0D 02 02 05 8D 79 A5 7F CF [23:35:18]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 8D 79 A5 7F CF 00 00 34 [23:35:18]Write i2c OK [23:35:18]MH_I2C_Read... [23:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:18]Read from MH i2c: E2 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 03 00 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [23:35:18]RAPDU: 90 00 [23:35:18]wFMCommunicate OK [23:35:18]wFMCommunicate request_size=4 [23:35:18]MH_SAM_APDU [23:35:18]CAPDU: 80 0D 03 02 [23:35:18]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [23:35:18]Write i2c OK [23:35:18]MH_I2C_Read... [23:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:18]Read from MH i2c: E2 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 0B 00 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 0B 00 B8 00 00 27 D8 60 B1 5E 6C A4 B6 90 00 68 [23:35:18]RAPDU: 27 D8 60 B1 5E 6C A4 B6 90 00 [23:35:18]wFMCommunicate OK [23:35:18]SAM_PROTO_SignData done [23:35:18]FM_MakeSignedData done [23:35:18]CreateOFDProtocolMessage [23:35:18]wFMCommunicate request_size=4 [23:35:18]MH_SAM_APDU [23:35:18]CAPDU: 80 11 00 00 [23:35:18]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [23:35:18]Write i2c OK [23:35:18]MH_I2C_Read... [23:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:18]Read from MH i2c: E2 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 17 00 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 83 [23:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:35:18]wFMCommunicate OK [23:35:18]CreateOFDProtocolMessage done [23:35:18]OFDSenderStorePacket 2378 [23:35:18]StoreOFDPacket docnum=2378 [23:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 E1 A8 07 01 F9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 35 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 09 00 00 35 04 06 00 D5 8D 79 A5 7F CF 27 D8 60 B1 5E 6C A4 B6 [23:35:18]CheckFolder [23:35:18]dirname=/storage/ofd_packets [23:35:18]CheckFolder done [23:35:18]ProducePacketName [23:35:18]name=ofd_packets/00002378 [23:35:18]NVStorageSaveData ofd_packets/00002378 [23:35:18]File name is /storage/ofd_packets/00002378 [23:35:18]Write 301 bytes [23:35:18]NVStorageSaveData done [23:35:18]OFDSenderStorePacket done [23:35:18]KKMCreateOFDPacket done [23:35:18]NVStorageSaveData kkm_last_timestamp [23:35:18]File name is /storage/kkm_last_timestamp [23:35:18]Write 4 bytes [23:35:18]NVStorageSaveData done [23:35:18]ExternCall_PrintAddStr [23:35:18]wPrintStart [23:35:18]Write to MH i2c: 01 00 00 BA 00 BA [23:35:18]OFD Sender: Processing packet 2378 [packets to send 1, broken 0] [23:35:18]ProducePacketName [23:35:18]name=ofd_packets/00002378 [23:35:18]OFD Sender: To server: pG, [23:35:18]CommunicateWithHost lk.salyk.kg:30040 [23:35:18]ConnectInit lk.salyk.kg [23:35:18]Write i2c OK [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: 01 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: 01 07 00 [23:35:18]MH_I2C_Read... [23:35:18]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [23:35:18]RasterBufferAndPrint [23:35:18]line Счет N : (1)610237 [23:35:18]line ИНН: 02508201610067 [23:35:18]line Контрольно-Кассовый Чек [23:35:18]line ПРОДАЖА [23:35:18]line ТРК (МРК, ГНК) : 42 [23:35:18]line Товар: 2710124130 [23:35:18]line Аи-92-К-2 [23:35:18]line 10.330 * 67.80 [23:35:18]line = 700.37 [23:35:18]line НДС 12% НСП 1% [23:35:18]line > о реализуемом товаре [23:35:18]line ОКРУГЛЕНИЕ: -0.37 [23:35:18]line ИТОГО: 700.00 [23:35:18]line Внесено: 700.00 [23:35:18]line СДАЧА: 0.00 [23:35:18]line НСП 1% : 6.20 [23:35:18]line НДС 12% : 74.38 [23:35:18]line Наличными: 700.00 [23:35:18]line Безнал.: 0.00 [23:35:18]line Место: АЗС № 127 "Партнер Нефть" [23:35:18]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:35:18]line СНО: Общий режим [23:35:18]line Чек 227 29.07.2024 23:35 [23:35:18]line Смена: 15 ФФД: 1.0 [23:35:18]line ЗНМ: 0300000161 [23:35:18]line РНМ: 0000000000189667 [23:35:18]line Версия ККМ: v1.0 [23:35:18]line ФМ: 0000000002094248 [23:35:18]line ФД: 2378 [23:35:18]line ФПД: 234803607994319 [23:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233517&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2378&fm=234803607994319&tin=02508201610067®Number=0000000000189667&sum=70000 [23:35:18]Connected sock=10 [23:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 E1 A8 07 01 F9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 35 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4A 09 00 00 35 04 06 00 D5 8D 79 A5 7F CF 27 D8 60 B1 5E 6C A4 B6 [23:35:18]written 0, free lines is 4095 [23:35:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 CD DE 47 00 D8 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 32 30 39 34 32 34 38 10 04 04 00 4A 09 00 00 F4 03 04 00 A0 D2 A7 66 B6 04 01 00 00 5A 4F D1 46 4F 7C 0A 21 [23:35:18]CommunicateWithHost err = 0 [23:35:18]CheckOFDResponse [23:35:18]1017 (14) - 77093643461234 [23:35:18]1041 (16) - 0000000002094248 [23:35:18]1040 (4) - 2378 [23:35:18]1012 (4) - 29.07.2024 17:34 [23:35:18]1206 (1) - 0 [23:35:18]OFD Sender: Remove packet 2378 [23:35:18]ProducePacketName [23:35:18]name=ofd_packets/00002378 [23:35:18]NVStorageDeleteData [23:35:19]Write to MH i2c: 01 00 00 E5 00 E5 [23:35:19]Write i2c OK [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: 01 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: 01 07 00 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 F3 0C EB [23:35:19]RasterBufferAndPrint [23:35:19]line [23:35:19]line [23:35:19]line [23:35:19]line [23:35:19]line [23:35:19]written 0, free lines is 3322 [23:35:19]MH_Cut [23:35:19]Write to MH i2c: D1 01 00 EC 00 01 BE [23:35:19]Write i2c OK [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: D1 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: D1 01 00 [23:35:19]MH_I2C_Read... [23:35:19]Read from MH i2c: D1 01 00 EC 00 00 BD [23:35:19]Write to MH i2c: 01 00 00 ED 00 ED [23:35:19]Write i2c OK [23:35:19]MH_I2C_Read... [23:35:19]OFD Sender: No OFD packet to send [23:35:19]*** Cut start [23:35:19]*** Partial cut [23:35:19]*** CUTSNS_PIN = 1 [23:35:19]*** CUTSNS_PIN = 0 [23:35:19]*** Brake cut motor [23:35:20]Read from MH i2c: 01 [23:35:20]MH_I2C_Read... [23:35:20]*** Stop cut motor [23:35:20]*** Cut end [23:35:20]Read from MH i2c: 01 07 00 [23:35:20]MH_I2C_Read... [23:35:20]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [23:35:20]process_action close_receipt done [23:35:20]requested_data is exist [23:35:20]produce_requested_data [23:35:20]requested_item fm.sn is exist - process it [23:35:20]wFMCommunicate request_size=4 [23:35:20]MH_SAM_APDU [23:35:20]CAPDU: 80 11 00 00 [23:35:20]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [23:35:20]Write i2c OK [23:35:20]MH_I2C_Read... [23:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:20]Read from MH i2c: E2 [23:35:20]MH_I2C_Read... [23:35:20]Read from MH i2c: E2 17 00 [23:35:20]MH_I2C_Read... [23:35:20]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B8 [23:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:35:20]wFMCommunicate OK [23:35:20]requested_item fd.num is exist - process it [23:35:20]SAM_PROTO_GetFieldsCounters [23:35:20]wFMCommunicate request_size=4 [23:35:20]MH_SAM_APDU [23:35:20]CAPDU: 80 13 00 00 [23:35:20]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [23:35:20]Write i2c OK [23:35:20]MH_I2C_Read... [23:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:20]Read from MH i2c: E2 [23:35:20]MH_I2C_Read... [23:35:20]Read from MH i2c: E2 62 00 [23:35:20]MH_I2C_Read... [23:35:20]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [23:35:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:20]wFMCommunicate OK [23:35:20]SAM_PROTO_GetFieldsCounters done [23:35:20]requested_item shift.num is exist - process it [23:35:20]requested_item shift.opened is exist - process it [23:35:20]req_shift_opened [23:35:20]FM_GetShiftState [23:35:20]SAM_PROTO_GetShiftState [23:35:20]wFMCommunicate request_size=4 [23:35:20]MH_SAM_APDU [23:35:20]CAPDU: 80 13 01 00 [23:35:20]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [23:35:20]Write i2c OK [23:35:20]MH_I2C_Read... [23:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:20]Read from MH i2c: E2 [23:35:20]MH_I2C_Read... [23:35:20]Read from MH i2c: E2 0E 00 [23:35:20]MH_I2C_Read... [23:35:20]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 66 [23:35:20]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:35:20]wFMCommunicate OK [23:35:20]SAM_PROTO_GetShiftState done [23:35:20]FM_GetShiftState done [23:35:20]req_shift_opened done [23:35:20]requested_item shift.open_date is exist - process it [23:35:20]req_shift_open_date [23:35:20]req_shift_open_date done [23:35:20]produce_requested_data done [23:35:20]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2378,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:35:20]process_action_free close_receipt [23:35:20]json_value_free [23:35:20]json_value_free done [23:35:20]process_json_proto returns [23:35:20]Send response to host [23:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2378,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:35:20]free response buf [23:35:20]execute_script done [23:35:20]execute_script returns [23:35:20]free content buf [23:35:20]Sock 9.Close socket [23:35:20]Sock 9.Thread stoped [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]accept exits with 7 [23:37:39]New connection [23:37:39]New thread 3067481444 created [23:37:39]Thread 3067624804 joined [23:37:39]Waiting for new connection... [23:37:39] Sock 7.Parse request [23:37:39]Sock 7.Check first char [23:37:39]Sock 7.First char is OK [23:37:39]request: POST /json_proto HTTP/1.0 [23:37:39]Method: POST [23:37:39]URL: /json_proto [23:37:39]Method is POST - this is cgi request [23:37:39]url: /json_proto [23:37:39]query_string will be loaded in cgi processing [23:37:39]execute_cgi json_proto POST (null) [23:37:39]execute_cgi path=json_proto method=POST [23:37:39]POST find Content-Length [23:37:39]Host: 172.17.45.132:8080 [23:37:39]Content-Length: 1192 [23:37:39]Content-Type: application/json [23:37:39] [23:37:39]POST finish read [23:37:39]Found Content-Length = 1192 [23:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610235\u000A29.07.2024 23:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 100.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 7570.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:39]execute_script... [23:37:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 127\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)610235\u000A29.07.2024 23:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-2\u000A 100.000 x 75.70\u000A\u0418\u0422\u041E\u0413: 7570.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03008\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:39]POST & json_proto [23:37:39]process_json_proto [23:37:39]json parsed OK: [23:37:39]protocol is kg_v1.0 [23:37:39]action value=print_text [23:37:39]process_action print_text [23:37:39]cmd_print_text [23:37:39]ExternCall_PrintAddStr [23:37:39]wPrintStart [23:37:39]Write to MH i2c: 01 00 00 F1 00 F1 [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 07 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FF 0F 06 [23:37:39]RasterBufferAndPrint [23:37:39]line *****ТОВАРНЫЙ ЧЕК***** [23:37:39]line АЗС 127 [23:37:39]line Партнер нефть [23:37:39]line 02508201610067 [23:37:39]line Кассир : Мансуров А. [23:37:39]line Счет N : (1)610235 [23:37:39]line 29.07.2024 23:26 [23:37:39]line ПРОДАЖА [23:37:39]line ТРК (МРК, ГНК): 2 [23:37:39]line Вид ГСМ : 2710194210 [23:37:39]line ДТ-К-2 [23:37:39]line 100.000 x 75.70 [23:37:39]line ИТОГ: 7570.00 [23:37:39]line Тип оплаты: Талоны: Топливная Карта [23:37:39]line 03008 [23:37:39]line ______________________ [23:37:39]line (подпись) [23:37:39]written 0, free lines is 4095 [23:37:39]Write to MH i2c: 01 00 00 05 01 06 [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 07 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 11 0E 2C [23:37:39]RasterBufferAndPrint [23:37:39]line [23:37:39]line [23:37:39]line [23:37:39]line [23:37:39]line [23:37:39]written 0, free lines is 3603 [23:37:39]MH_Cut [23:37:39]Write to MH i2c: D1 01 00 0C 01 01 DF [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: D1 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: D1 01 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: D1 01 00 0C 01 00 DE [23:37:39]Write to MH i2c: 01 00 00 0D 01 0E [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]OFD Sender: No OFD packet to send [23:37:39]*** Cut start [23:37:39]*** Partial cut [23:37:39]*** CUTSNS_PIN = 1 [23:37:39]*** CUTSNS_PIN = 0 [23:37:40]*** Brake cut motor [23:37:40]Read from MH i2c: 01 [23:37:40]MH_I2C_Read... [23:37:40]*** Stop cut motor [23:37:40]*** Cut end [23:37:40]Read from MH i2c: 01 07 00 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [23:37:40]process_action print_text done [23:37:40]requested_data is exist [23:37:40]produce_requested_data [23:37:40]requested_item fm.sn is exist - process it [23:37:40]wFMCommunicate request_size=4 [23:37:40]MH_SAM_APDU [23:37:40]CAPDU: 80 11 00 00 [23:37:40]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [23:37:40]Write i2c OK [23:37:40]MH_I2C_Read... [23:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:40]Read from MH i2c: E2 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 17 00 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D9 [23:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:37:40]wFMCommunicate OK [23:37:40]requested_item fd.num is exist - process it [23:37:40]SAM_PROTO_GetFieldsCounters [23:37:40]wFMCommunicate request_size=4 [23:37:40]MH_SAM_APDU [23:37:40]CAPDU: 80 13 00 00 [23:37:40]Write to MH i2c: E2 08 00 0F 01 80 13 00 00 00 00 00 00 8C [23:37:40]Write i2c OK [23:37:40]MH_I2C_Read... [23:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:40]Read from MH i2c: E2 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 62 00 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 62 00 0F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [23:37:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4A 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:40]wFMCommunicate OK [23:37:40]SAM_PROTO_GetFieldsCounters done [23:37:40]requested_item shift.num is exist - process it [23:37:40]requested_item shift.opened is exist - process it [23:37:40]req_shift_opened [23:37:40]FM_GetShiftState [23:37:40]SAM_PROTO_GetShiftState [23:37:40]wFMCommunicate request_size=4 [23:37:40]MH_SAM_APDU [23:37:40]CAPDU: 80 13 01 00 [23:37:40]Write to MH i2c: E2 08 00 10 01 80 13 01 00 00 00 00 00 8E [23:37:40]Write i2c OK [23:37:40]MH_I2C_Read... [23:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:40]Read from MH i2c: E2 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 0E 00 [23:37:40]MH_I2C_Read... [23:37:40]Read from MH i2c: E2 0E 00 10 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 87 [23:37:40]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:37:40]wFMCommunicate OK [23:37:40]SAM_PROTO_GetShiftState done [23:37:40]FM_GetShiftState done [23:37:40]req_shift_opened done [23:37:40]requested_item shift.open_date is exist - process it [23:37:40]req_shift_open_date [23:37:40]req_shift_open_date done [23:37:40]produce_requested_data done [23:37:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2378,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:37:40]process_action_free print_text [23:37:40]json_value_free [23:37:40]json_value_free done [23:37:40]process_json_proto returns [23:37:40]Send response to host [23:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2378,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:37:40]free response buf [23:37:40]execute_script done [23:37:40]execute_script returns [23:37:40]free content buf [23:37:40]Sock 7.Close socket [23:37:40]Sock 7.Thread stoped [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:22]accept exits with 10 [23:38:22]New connection [23:38:22]New thread 3067624804 created [23:38:22]Thread 3067481444 joined [23:38:22]Waiting for new connection... [23:38:22] Sock 10.Parse request [23:38:22]Sock 10.Check first char [23:38:22]Sock 10.First char is OK [23:38:22]request: POST /json_proto HTTP/1.0 [23:38:22]Method: POST [23:38:22]URL: /json_proto [23:38:22]Method is POST - this is cgi request [23:38:22]url: /json_proto [23:38:22]query_string will be loaded in cgi processing [23:38:22]execute_cgi json_proto POST (null) [23:38:22]execute_cgi path=json_proto method=POST [23:38:22]POST find Content-Length [23:38:22]Host: 172.17.45.132:8080 [23:38:22]Content-Length: 670 [23:38:22]Content-Type: application/json [23:38:22] [23:38:22]POST finish read [23:38:22]Found Content-Length = 670 [23:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126591", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "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" ] } } [23:38:22]execute_script... [23:38:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126591", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "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" ] } } [23:38:22]POST & json_proto [23:38:22]process_json_proto [23:38:22]json parsed OK: [23:38:22]protocol is kg_v1.0 [23:38:22]action value=close_receipt [23:38:22]process_action close_receipt [23:38:22]cmd_close_receipt [23:38:22]MH_GetDate [23:38:22]Write to MH i2c: F0 00 00 11 01 01 [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: F0 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: F0 09 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: F0 09 00 11 01 00 EE 27 A8 66 E3 0B 90 66 11 [23:38:22]GetLastDocTimeStamp 1722296117 [23:38:22]current date 1722296302 [23:38:22]FM_GetShiftState [23:38:22]SAM_PROTO_GetShiftState [23:38:22]wFMCommunicate request_size=4 [23:38:22]MH_SAM_APDU [23:38:22]CAPDU: 80 13 01 00 [23:38:22]Write to MH i2c: E2 08 00 12 01 80 13 01 00 00 00 00 00 90 [23:38:22]Write i2c OK [23:38:22]MH_I2C_Read... [23:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:22]Read from MH i2c: E2 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 0E 00 [23:38:22]MH_I2C_Read... [23:38:22]Read from MH i2c: E2 0E 00 12 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 89 [23:38:22]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:38:22]wFMCommunicate OK [23:38:22]SAM_PROTO_GetShiftState done [23:38:22]FM_GetShiftState done [23:38:22]opened in 1722213119 [23:38:22]opened+sec_in_day 1722299519 [23:38:22]quantity*price = 17000 [23:38:22]sum+1 = 17001 [23:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 228 29.07.2024 23:38 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2379 ФПД: 82217546236853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233822&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2379&fm=82217546236853&tin=02508201610067®Number=0000000000189667&sum=17000 0 [23:38:23]StoreToDocumentArchive [23:38:23]shift 15 fd 2379 [23:38:23]save to /storage/0015/doc_00002379 [23:38:23]save last doc name /storage/0015/doc_00002379 to /storage/kkm_last_doc_name [23:38:23]save OK [23:38:23]Clear old archive folders... [23:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=282 [23:38:23]tlvbuf is 00834430 [23:38:23]SAM_PROTO_ClearQueue [23:38:23]wFMCommunicate request_size=4 [23:38:23]MH_SAM_APDU [23:38:23]CAPDU: 80 09 00 00 [23:38:23]Write to MH i2c: E2 08 00 1F 01 80 09 00 00 00 00 00 00 92 [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:23]Read from MH i2c: E2 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 1F 01 00 90 00 94 [23:38:23]RAPDU: 90 00 [23:38:23]wFMCommunicate OK [23:38:23]SAM_PROTO_ClearQueue done [23:38:23]KKMCreateOFDPacket [23:38:23]OFDProtocolAddRootSTLVToBuf [23:38:23]FM_MakeSignedData [23:38:23]FM_MakeSignedData [23:38:23]SAM_PROTO_SignData [23:38:23]wFMCommunicate request_size=4 [23:38:23]MH_SAM_APDU [23:38:23]CAPDU: 80 0D 01 02 [23:38:23]Write to MH i2c: E2 08 00 20 01 80 0D 01 02 00 00 00 00 9A [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:23]Read from MH i2c: E2 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [23:38:23]RAPDU: 90 00 [23:38:23]wFMCommunicate OK [23:38:23]wFMCommunicate request_size=255 [23:38:23]MH_SAM_APDU [23:38:23]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 E4 00 00 00 F4 03 04 00 EE 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 [23:38:23]Write to MH i2c: E2 02 01 21 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 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 E4 00 00 00 F4 03 04 00 EE 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 00 00 CA [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:23]Read from MH i2c: E2 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [23:38:23]RAPDU: 90 00 [23:38:23]wFMCommunicate OK [23:38:23]wFMCommunicate request_size=41 [23:38:23]MH_SAM_APDU [23:38:23]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 09 00 00 35 04 06 00 4A C6 C3 A3 43 B5 [23:38:23]Write to MH i2c: E2 2C 00 22 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 09 00 00 35 04 06 00 4A C6 C3 A3 43 B5 00 00 2B [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:23]Read from MH i2c: E2 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [23:38:23]RAPDU: 90 00 [23:38:23]wFMCommunicate OK [23:38:23]wFMCommunicate request_size=4 [23:38:23]MH_SAM_APDU [23:38:23]CAPDU: 80 0D 03 02 [23:38:23]Write to MH i2c: E2 08 00 23 01 80 0D 03 02 00 00 00 00 9F [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:23]Read from MH i2c: E2 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 0B 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 0B 00 23 01 00 AC 47 77 42 CB 31 CE A0 90 00 B6 [23:38:23]RAPDU: AC 47 77 42 CB 31 CE A0 90 00 [23:38:23]wFMCommunicate OK [23:38:23]SAM_PROTO_SignData done [23:38:23]FM_MakeSignedData done [23:38:23]CreateOFDProtocolMessage [23:38:23]wFMCommunicate request_size=4 [23:38:23]MH_SAM_APDU [23:38:23]CAPDU: 80 11 00 00 [23:38:23]Write to MH i2c: E2 08 00 24 01 80 11 00 00 00 00 00 00 9F [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:23]Read from MH i2c: E2 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 17 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 17 00 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EF [23:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:38:23]wFMCommunicate OK [23:38:23]CreateOFDProtocolMessage done [23:38:23]OFDSenderStorePacket 2379 [23:38:23]StoreOFDPacket docnum=2379 [23:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 B8 6E 26 01 80 FD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 E4 00 00 00 F4 03 04 00 EE 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 09 00 00 35 04 06 00 4A C6 C3 A3 43 B5 AC 47 77 42 CB 31 CE A0 [23:38:23]CheckFolder [23:38:23]dirname=/storage/ofd_packets [23:38:23]CheckFolder done [23:38:23]ProducePacketName [23:38:23]name=ofd_packets/00002379 [23:38:23]NVStorageSaveData ofd_packets/00002379 [23:38:23]File name is /storage/ofd_packets/00002379 [23:38:23]Write 332 bytes [23:38:23]NVStorageSaveData done [23:38:23]OFDSenderStorePacket done [23:38:23]KKMCreateOFDPacket done [23:38:23]NVStorageSaveData kkm_last_timestamp [23:38:23]File name is /storage/kkm_last_timestamp [23:38:23]Write 4 bytes [23:38:23]NVStorageSaveData done [23:38:23]ExternCall_PrintAddStr [23:38:23]wPrintStart [23:38:23]Write to MH i2c: 01 00 00 25 01 26 [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: 01 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: 01 07 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 FF 0F 3B [23:38:23]RasterBufferAndPrint [23:38:23]line Счет N : (3)126591 [23:38:23]line ИНН: 02508201610067 [23:38:23]line Контрольно-Кассовый Чек [23:38:23]line ПРОДАЖА [23:38:24]line Товар: 4700000480357 [23:38:24]line Пиво шахтерское 1л ПЭТ [23:38:24]line 1.000 * 170.00 [23:38:24]line = 170.00 [23:38:24]line НДС 12% НСП 1% [23:38:24]line > о реализуемом товаре [23:38:24]line ИТОГО: 170.00 [23:38:24]line НСП 1% : 1.50 [23:38:24]line НДС 12% : 18.05 [23:38:24]line Наличными: 170.00 [23:38:24]line Безнал.: 0.00 [23:38:24]line Место: АЗС № 127 "Партнер Нефть" [23:38:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:38:24]line СНО: Общий режим [23:38:24]line Чек 228 29.07.2024 23:38 [23:38:24]line Смена: 15 ФФД: 1.0 [23:38:24]line ЗНМ: 0300000161 [23:38:24]line РНМ: 0000000000189667 [23:38:24]line Версия ККМ: v1.0 [23:38:24]line ФМ: 0000000002094248 [23:38:24]line ФД: 2379 [23:38:24]line ФПД: 82217546236853 [23:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233822&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2379&fm=82217546236853&tin=02508201610067®Number=0000000000189667&sum=17000 [23:38:24]line 0 [23:38:24]OFD Sender: Processing packet 2379 [packets to send 1, broken 0] [23:38:24]ProducePacketName [23:38:24]name=ofd_packets/00002379 [23:38:24]OFD Sender: To server: pG, [23:38:24]CommunicateWithHost lk.salyk.kg:30040 [23:38:24]ConnectInit lk.salyk.kg [23:38:24]written 0, free lines is 4095 [23:38:24]Connected sock=7 [23:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2E 01 00 00 B8 6E 26 01 80 FD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA 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 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 E4 00 00 00 F4 03 04 00 EE 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4B 09 00 00 35 04 06 00 4A C6 C3 A3 43 B5 AC 47 77 42 CB 31 CE A0 [23:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 DD 0D 47 00 09 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 32 30 39 34 32 34 38 10 04 04 00 4B 09 00 00 F4 03 04 00 5A D3 A7 66 B6 04 01 00 00 4E E1 F3 47 E3 10 0D AD [23:38:24]CommunicateWithHost err = 0 [23:38:24]CheckOFDResponse [23:38:24]1017 (14) - 77093643461234 [23:38:24]1041 (16) - 0000000002094248 [23:38:24]1040 (4) - 2379 [23:38:24]1012 (4) - 29.07.2024 17:37 [23:38:24]1206 (1) - 0 [23:38:24]OFD Sender: Remove packet 2379 [23:38:24]ProducePacketName [23:38:24]name=ofd_packets/00002379 [23:38:24]NVStorageDeleteData [23:38:24]Write to MH i2c: 01 00 00 4D 01 4E [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: 01 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: 01 07 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: 01 07 00 4D 01 00 00 00 00 00 17 0D 79 [23:38:24]RasterBufferAndPrint [23:38:24]line [23:38:24]line [23:38:24]line [23:38:24]line [23:38:24]line [23:38:24]written 0, free lines is 3358 [23:38:24]MH_Cut [23:38:24]Write to MH i2c: D1 01 00 54 01 01 27 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: D1 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: D1 01 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: D1 01 00 54 01 00 26 [23:38:24]Write to MH i2c: 01 00 00 55 01 56 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:25]OFD Sender: No OFD packet to send [23:38:25]*** Cut start [23:38:25]*** Partial cut [23:38:25]*** CUTSNS_PIN = 1 [23:38:25]*** CUTSNS_PIN = 0 [23:38:25]*** Brake cut motor [23:38:26]Read from MH i2c: 01 [23:38:26]MH_I2C_Read... [23:38:26]*** Stop cut motor [23:38:26]*** Cut end [23:38:26]Read from MH i2c: 01 07 00 [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: 01 07 00 55 01 00 00 00 00 00 FF 0F 6B [23:38:26]process_action close_receipt done [23:38:26]requested_data is exist [23:38:26]produce_requested_data [23:38:26]requested_item fm.sn is exist - process it [23:38:26]wFMCommunicate request_size=4 [23:38:26]MH_SAM_APDU [23:38:26]CAPDU: 80 11 00 00 [23:38:26]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [23:38:26]Write i2c OK [23:38:26]MH_I2C_Read... [23:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:26]Read from MH i2c: E2 [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: E2 17 00 [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 21 [23:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:38:26]wFMCommunicate OK [23:38:26]requested_item fd.num is exist - process it [23:38:26]SAM_PROTO_GetFieldsCounters [23:38:26]wFMCommunicate request_size=4 [23:38:26]MH_SAM_APDU [23:38:26]CAPDU: 80 13 00 00 [23:38:26]Write to MH i2c: E2 08 00 57 01 80 13 00 00 00 00 00 00 D4 [23:38:26]Write i2c OK [23:38:26]MH_I2C_Read... [23:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:26]Read from MH i2c: E2 [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: E2 62 00 [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: E2 62 00 57 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [23:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4B 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:26]wFMCommunicate OK [23:38:26]SAM_PROTO_GetFieldsCounters done [23:38:26]requested_item shift.num is exist - process it [23:38:26]requested_item shift.opened is exist - process it [23:38:26]req_shift_opened [23:38:26]FM_GetShiftState [23:38:26]SAM_PROTO_GetShiftState [23:38:26]wFMCommunicate request_size=4 [23:38:26]MH_SAM_APDU [23:38:26]CAPDU: 80 13 01 00 [23:38:26]Write to MH i2c: E2 08 00 58 01 80 13 01 00 00 00 00 00 D6 [23:38:26]Write i2c OK [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: E2 [23:38:26]MH_I2C_Read... [23:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:26]Read from MH i2c: E2 0E 00 [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: E2 0E 00 58 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 CF [23:38:26]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:38:26]wFMCommunicate OK [23:38:26]SAM_PROTO_GetShiftState done [23:38:26]FM_GetShiftState done [23:38:26]req_shift_opened done [23:38:26]requested_item shift.open_date is exist - process it [23:38:26]req_shift_open_date [23:38:26]req_shift_open_date done [23:38:26]produce_requested_data done [23:38:26]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2379,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:38:26]process_action_free close_receipt [23:38:26]json_value_free [23:38:26]json_value_free done [23:38:26]process_json_proto returns [23:38:26]Send response to host [23:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2379,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:38:26]free response buf [23:38:26]execute_script done [23:38:26]execute_script returns [23:38:26]free content buf [23:38:26]Sock 10.Close socket [23:38:26]Sock 10.Thread stoped [23:38:30]OFD Sender: No OFD packet to send [23:38:31]accept exits with 9 [23:38:31]New connection [23:38:31]New thread 3067481444 created [23:38:31]Thread 3067624804 joined [23:38:31]Waiting for new connection... [23:38:31] Sock 9.Parse request [23:38:31]Sock 9.Check first char [23:38:31]Sock 9.First char is OK [23:38:31]request: POST /json_proto HTTP/1.0 [23:38:31]Method: POST [23:38:31]URL: /json_proto [23:38:31]Method is POST - this is cgi request [23:38:31]url: /json_proto [23:38:31]query_string will be loaded in cgi processing [23:38:31]execute_cgi json_proto POST (null) [23:38:31]execute_cgi path=json_proto method=POST [23:38:31]POST find Content-Length [23:38:31]Host: 172.17.45.132:8080 [23:38:31]Content-Length: 639 [23:38:31]Content-Type: application/json [23:38:31] [23:38:31]POST finish read [23:38:31]Found Content-Length = 639 [23:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 100.000, "sum" : 7570.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:31]execute_script... [23:38: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)610238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 75.70, "quantity" : 100.000, "sum" : 7570.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:31]POST & json_proto [23:38:31]process_json_proto [23:38:31]json parsed OK: [23:38:31]protocol is kg_v1.0 [23:38:31]action value=close_receipt [23:38:31]process_action close_receipt [23:38:31]cmd_close_receipt [23:38:31]MH_GetDate [23:38:31]Write to MH i2c: F0 00 00 59 01 49 [23:38:31]Write i2c OK [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: F0 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: F0 09 00 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: F0 09 00 59 01 00 F8 27 A8 66 E3 0B 90 66 63 [23:38:31]GetLastDocTimeStamp 1722296302 [23:38:31]current date 1722296312 [23:38:31]FM_GetShiftState [23:38:31]SAM_PROTO_GetShiftState [23:38:31]wFMCommunicate request_size=4 [23:38:31]MH_SAM_APDU [23:38:31]CAPDU: 80 13 01 00 [23:38:31]Write to MH i2c: E2 08 00 5A 01 80 13 01 00 00 00 00 00 D8 [23:38:31]Write i2c OK [23:38:31]MH_I2C_Read... [23:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:31]Read from MH i2c: E2 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: E2 0E 00 [23:38:31]MH_I2C_Read... [23:38:31]Read from MH i2c: E2 0E 00 5A 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 D1 [23:38:31]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:38:31]wFMCommunicate OK [23:38:31]SAM_PROTO_GetShiftState done [23:38:31]FM_GetShiftState done [23:38:31]opened in 1722213119 [23:38:31]opened+sec_in_day 1722299519 [23:38:31]quantity*price = 757000 [23:38:31]sum+1 = 757001 [23:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7570.00 НСП 1% : 66.99 НДС 12% : 803.89 Наличными: 7570.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 229 29.07.2024 23:38 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2380 ФПД: 58779890738815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2380&fm=58779890738815&tin=02508201610067®Number=0000000000189667&sum=757000 [23:38:33]StoreToDocumentArchive [23:38:33]shift 15 fd 2380 [23:38:33]save to /storage/0015/doc_00002380 [23:38:33]save last doc name /storage/0015/doc_00002380 to /storage/kkm_last_doc_name [23:38:33]save OK [23:38:33]Clear old archive folders... [23:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:38:33]tlvbuf is 00835650 [23:38:33]SAM_PROTO_ClearQueue [23:38:33]wFMCommunicate request_size=4 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 09 00 00 [23:38:33]Write to MH i2c: E2 08 00 67 01 80 09 00 00 00 00 00 00 DA [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 67 01 00 90 00 DC [23:38:33]RAPDU: 90 00 [23:38:33]wFMCommunicate OK [23:38:33]SAM_PROTO_ClearQueue done [23:38:33]KKMCreateOFDPacket [23:38:33]OFDProtocolAddRootSTLVToBuf [23:38:33]FM_MakeSignedData [23:38:33]FM_MakeSignedData [23:38:33]SAM_PROTO_SignData [23:38:33]wFMCommunicate request_size=4 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 0D 01 02 [23:38:33]Write to MH i2c: E2 08 00 68 01 80 0D 01 02 00 00 00 00 E2 [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [23:38:33]RAPDU: 90 00 [23:38:33]wFMCommunicate OK [23:38:33]wFMCommunicate request_size=255 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 08 8D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 8D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 3A 01 00 00 00 07 04 06 00 08 8D 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 F8 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 09 00 00 35 04 06 00 35 75 C2 81 [23:38:33]Write to MH i2c: E2 02 01 69 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 08 8D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 8D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 3A 01 00 00 00 07 04 06 00 08 8D 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 F8 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 09 00 00 35 04 06 00 35 75 C2 81 00 00 E3 [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [23:38:33]RAPDU: 90 00 [23:38:33]wFMCommunicate OK [23:38:33]wFMCommunicate request_size=7 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 0D 02 02 02 E6 7F [23:38:33]Write to MH i2c: E2 0A 00 6A 01 80 0D 02 02 02 00 E6 7F 00 00 4E [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [23:38:33]RAPDU: 90 00 [23:38:33]wFMCommunicate OK [23:38:33]wFMCommunicate request_size=4 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 0D 03 02 [23:38:33]Write to MH i2c: E2 08 00 6B 01 80 0D 03 02 00 00 00 00 E7 [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 0B 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 0B 00 6B 01 00 37 D5 4E F3 D7 FE 25 99 90 00 C8 [23:38:33]RAPDU: 37 D5 4E F3 D7 FE 25 99 90 00 [23:38:33]wFMCommunicate OK [23:38:33]SAM_PROTO_SignData done [23:38:33]FM_MakeSignedData done [23:38:33]CreateOFDProtocolMessage [23:38:33]wFMCommunicate request_size=4 [23:38:33]MH_SAM_APDU [23:38:33]CAPDU: 80 11 00 00 [23:38:33]Write to MH i2c: E2 08 00 6C 01 80 11 00 00 00 00 00 00 E7 [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:33]Read from MH i2c: E2 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 17 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: E2 17 00 6C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 37 [23:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:38:33]wFMCommunicate OK [23:38:33]CreateOFDProtocolMessage done [23:38:33]OFDSenderStorePacket 2380 [23:38:33]StoreOFDPacket docnum=2380 [23:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 31 93 04 01 FE 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 08 8D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 8D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 3A 01 00 00 00 07 04 06 00 08 8D 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 F8 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 09 00 00 35 04 06 00 35 75 C2 81 E6 7F 37 D5 4E F3 D7 FE 25 99 [23:38:33]CheckFolder [23:38:33]dirname=/storage/ofd_packets [23:38:33]CheckFolder done [23:38:33]ProducePacketName [23:38:33]name=ofd_packets/00002380 [23:38:33]NVStorageSaveData ofd_packets/00002380 [23:38:33]File name is /storage/ofd_packets/00002380 [23:38:33]Write 298 bytes [23:38:33]NVStorageSaveData done [23:38:33]OFDSenderStorePacket done [23:38:33]KKMCreateOFDPacket done [23:38:33]NVStorageSaveData kkm_last_timestamp [23:38:33]File name is /storage/kkm_last_timestamp [23:38:33]Write 4 bytes [23:38:33]NVStorageSaveData done [23:38:33]ExternCall_PrintAddStr [23:38:33]wPrintStart [23:38:33]Write to MH i2c: 01 00 00 6D 01 6E [23:38:33]Write i2c OK [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 07 00 [23:38:33]MH_I2C_Read... [23:38:33]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 FF 0F 83 [23:38:33]RasterBufferAndPrint [23:38:33]line Счет N : (1)610238 [23:38:33]line ИНН: 02508201610067 [23:38:33]line Контрольно-Кассовый Чек [23:38:33]line ПРОДАЖА [23:38:33]line ТРК (МРК, ГНК) : 2 [23:38:33]line Товар: 2710194210 [23:38:33]line ДТ-К-2 [23:38:33]line 100.000 * 75.70 [23:38:33]line = 7570.00 [23:38:33]line НДС 12% НСП 1% [23:38:33]line > о реализуемом товаре [23:38:33]line ИТОГО: 7570.00 [23:38:33]line НСП 1% : 66.99 [23:38:33]line НДС 12% : 803.89 [23:38:33]line Наличными: 7570.00 [23:38:33]line Безнал.: 0.00 [23:38:33]line Место: АЗС № 127 "Партнер Нефть" [23:38:33]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:38:33]line СНО: Общий режим [23:38:33]line Чек 229 29.07.2024 23:38 [23:38:33]line Смена: 15 ФФД: 1.0 [23:38:33]line ЗНМ: 0300000161 [23:38:33]line РНМ: 0000000000189667 [23:38:33]line Версия ККМ: v1.0 [23:38:33]line ФМ: 0000000002094248 [23:38:33]line ФД: 2380 [23:38:33]line ФПД: 58779890738815 [23:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233832&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2380&fm=58779890738815&tin=02508201610067®Number=0000000000189667&sum=757000 [23:38:33]OFD Sender: Processing packet 2380 [packets to send 1, broken 0] [23:38:33]ProducePacketName [23:38:33]name=ofd_packets/00002380 [23:38:33]OFD Sender: To server: pG, [23:38:33]CommunicateWithHost lk.salyk.kg:30040 [23:38:33]ConnectInit lk.salyk.kg [23:38:33]written 0, free lines is 4095 [23:38:34]Connected sock=10 [23:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0C 01 00 00 31 93 04 01 FE 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 92 1D 00 00 00 00 13 04 06 00 08 8D 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 8D 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 3A 01 00 00 00 07 04 06 00 08 8D 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 F8 27 A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4C 09 00 00 35 04 06 00 35 75 C2 81 E6 7F 37 D5 4E F3 D7 FE 25 99 [23:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 51 39 47 00 D4 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 32 30 39 34 32 34 38 10 04 04 00 4C 09 00 00 F4 03 04 00 63 D3 A7 66 B6 04 01 00 00 9C B5 BC 73 DF B1 CA 7C [23:38:34]CommunicateWithHost err = 0 [23:38:34]CheckOFDResponse [23:38:34]1017 (14) - 77093643461234 [23:38:34]1041 (16) - 0000000002094248 [23:38:34]1040 (4) - 2380 [23:38:34]1012 (4) - 29.07.2024 17:37 [23:38:34]1206 (1) - 0 [23:38:34]OFD Sender: Remove packet 2380 [23:38:34]ProducePacketName [23:38:34]name=ofd_packets/00002380 [23:38:34]NVStorageDeleteData [23:38:34]Write to MH i2c: 01 00 00 95 01 96 [23:38:34]Write i2c OK [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: 01 [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: 01 07 00 [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 33 0D DD [23:38:34]RasterBufferAndPrint [23:38:34]line [23:38:34]line [23:38:34]line [23:38:34]line [23:38:34]line [23:38:34]written 0, free lines is 3389 [23:38:34]MH_Cut [23:38:34]Write to MH i2c: D1 01 00 9C 01 01 6F [23:38:34]Write i2c OK [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: D1 [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: D1 01 00 [23:38:34]MH_I2C_Read... [23:38:34]Read from MH i2c: D1 01 00 9C 01 00 6E [23:38:34]Write to MH i2c: 01 00 00 9D 01 9E [23:38:34]Write i2c OK [23:38:34]MH_I2C_Read... [23:38:34]OFD Sender: No OFD packet to send [23:38:35]*** Cut start [23:38:35]*** Partial cut [23:38:35]*** CUTSNS_PIN = 1 [23:38:35]*** CUTSNS_PIN = 0 [23:38:35]*** Brake cut motor [23:38:35]Read from MH i2c: 01 [23:38:35]MH_I2C_Read... [23:38:35]*** Stop cut motor [23:38:35]*** Cut end [23:38:35]Read from MH i2c: 01 07 00 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 FF 0F B3 [23:38:35]process_action close_receipt done [23:38:35]requested_data is exist [23:38:35]produce_requested_data [23:38:35]requested_item fm.sn is exist - process it [23:38:35]wFMCommunicate request_size=4 [23:38:35]MH_SAM_APDU [23:38:35]CAPDU: 80 11 00 00 [23:38:35]Write to MH i2c: E2 08 00 9E 01 80 11 00 00 00 00 00 00 19 [23:38:35]Write i2c OK [23:38:35]MH_I2C_Read... [23:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:35]Read from MH i2c: E2 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 17 00 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 17 00 9E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 69 [23:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:38:35]wFMCommunicate OK [23:38:35]requested_item fd.num is exist - process it [23:38:35]SAM_PROTO_GetFieldsCounters [23:38:35]wFMCommunicate request_size=4 [23:38:35]MH_SAM_APDU [23:38:35]CAPDU: 80 13 00 00 [23:38:35]Write to MH i2c: E2 08 00 9F 01 80 13 00 00 00 00 00 00 1C [23:38:35]Write i2c OK [23:38:35]MH_I2C_Read... [23:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:35]Read from MH i2c: E2 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 62 00 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 62 00 9F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [23:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4C 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:38:35]wFMCommunicate OK [23:38:35]SAM_PROTO_GetFieldsCounters done [23:38:35]requested_item shift.num is exist - process it [23:38:35]requested_item shift.opened is exist - process it [23:38:35]req_shift_opened [23:38:35]FM_GetShiftState [23:38:35]SAM_PROTO_GetShiftState [23:38:35]wFMCommunicate request_size=4 [23:38:35]MH_SAM_APDU [23:38:35]CAPDU: 80 13 01 00 [23:38:35]Write to MH i2c: E2 08 00 A0 01 80 13 01 00 00 00 00 00 1E [23:38:35]Write i2c OK [23:38:35]MH_I2C_Read... [23:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:35]Read from MH i2c: E2 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 0E 00 [23:38:35]MH_I2C_Read... [23:38:35]Read from MH i2c: E2 0E 00 A0 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 17 [23:38:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:38:35]wFMCommunicate OK [23:38:35]SAM_PROTO_GetShiftState done [23:38:35]FM_GetShiftState done [23:38:35]req_shift_opened done [23:38:35]requested_item shift.open_date is exist - process it [23:38:35]req_shift_open_date [23:38:35]req_shift_open_date done [23:38:35]produce_requested_data done [23:38:35]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2380,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:38:35]process_action_free close_receipt [23:38:35]json_value_free [23:38:35]json_value_free done [23:38:35]process_json_proto returns [23:38:35]Send response to host [23:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2380,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:38:35]free response buf [23:38:35]execute_script done [23:38:35]execute_script returns [23:38:35]free content buf [23:38:35]Sock 9.Close socket [23:38:35]Sock 9.Thread stoped [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:32]accept exits with 7 [23:55:32]New connection [23:55:32]New thread 3067624804 created [23:55:32]Thread 3067481444 joined [23:55:32]Waiting for new connection... [23:55:32] Sock 7.Parse request [23:55:32]Sock 7.Check first char [23:55:32]Sock 7.First char is OK [23:55:32]request: POST /json_proto HTTP/1.0 [23:55:32]Method: POST [23:55:32]URL: /json_proto [23:55:32]Method is POST - this is cgi request [23:55:32]url: /json_proto [23:55:32]query_string will be loaded in cgi processing [23:55:32]execute_cgi json_proto POST (null) [23:55:32]execute_cgi path=json_proto method=POST [23:55:32]POST find Content-Length [23:55:32]Host: 172.17.45.132:8080 [23:55:32]Content-Length: 684 [23:55:32]Content-Type: application/json [23:55:32] [23:55:32]POST finish read [23:55:32]Found Content-Length = 684 [23:55:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 52.060, "sum" : 1926.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 1926.00, "payments": [ { "type": 0, "sum" : 1926.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:32]execute_script... [23:55:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 7", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 37.00, "quantity" : 52.060, "sum" : 1926.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 1926.00, "payments": [ { "type": 0, "sum" : 1926.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:32]POST & json_proto [23:55:32]process_json_proto [23:55:32]json parsed OK: [23:55:32]protocol is kg_v1.0 [23:55:32]action value=close_receipt [23:55:32]process_action close_receipt [23:55:32]cmd_close_receipt [23:55:32]MH_GetDate [23:55:32]Write to MH i2c: F0 00 00 A1 01 91 [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: F0 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: F0 09 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: F0 09 00 A1 01 00 F4 2B A8 66 E3 0B 90 66 AB [23:55:32]GetLastDocTimeStamp 1722296312 [23:55:32]current date 1722297332 [23:55:32]FM_GetShiftState [23:55:32]SAM_PROTO_GetShiftState [23:55:32]wFMCommunicate request_size=4 [23:55:32]MH_SAM_APDU [23:55:32]CAPDU: 80 13 01 00 [23:55:32]Write to MH i2c: E2 08 00 A2 01 80 13 01 00 00 00 00 00 20 [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:32]Read from MH i2c: E2 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 0E 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 0E 00 A2 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 19 [23:55:32]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:55:32]wFMCommunicate OK [23:55:32]SAM_PROTO_GetShiftState done [23:55:32]FM_GetShiftState done [23:55:32]opened in 1722213119 [23:55:32]opened+sec_in_day 1722299519 [23:55:32]quantity*price = 192622 [23:55:32]sum+1 = 192623 [23:55:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1926.00 Внесено: 6000.00 СДАЧА: 4074.00 НСП 1% : 17.05 НДС 12% : 204.55 Наличными: 1926.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 230 29.07.2024 23:55 Смена: 15 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2381 ФПД: 269838358650995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T235533&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2381&fm=269838358650995&tin=02508201610067®Number=0000000000189667&sum=192600 [23:55:33]StoreToDocumentArchive [23:55:33]shift 15 fd 2381 [23:55:33]save to /storage/0015/doc_00002381 [23:55:33]save last doc name /storage/0015/doc_00002381 to /storage/kkm_last_doc_name [23:55:33]save OK [23:55:33]Clear old archive folders... [23:55:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:55:33]tlvbuf is 0084BEA0 [23:55:33]SAM_PROTO_ClearQueue [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 09 00 00 [23:55:33]Write to MH i2c: E2 08 00 AF 01 80 09 00 00 00 00 00 00 22 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]SAM_PROTO_ClearQueue done [23:55:33]KKMCreateOFDPacket [23:55:33]OFDProtocolAddRootSTLVToBuf [23:55:33]FM_MakeSignedData [23:55:33]FM_MakeSignedData [23:55:33]SAM_PROTO_SignData [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 0D 01 02 [23:55:33]Write to MH i2c: E2 08 00 B0 01 80 0D 01 02 00 00 00 00 2A [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]wFMCommunicate request_size=255 [23:55:33]MH_SAM_APDU [23:55:33]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 33 FF 03 08 00 03 5C CB 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 6E F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F5 2B A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 09 00 00 35 04 06 00 F5 6A [23:55:33]Write to MH i2c: E2 02 01 B1 01 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 33 FF 03 08 00 03 5C CB 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 6E F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F5 2B A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 09 00 00 35 04 06 00 F5 6A 00 00 3C [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 B1 01 00 90 00 26 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]wFMCommunicate request_size=9 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 0D 02 02 04 A3 83 A0 73 [23:55:33]Write to MH i2c: E2 0C 00 B2 01 80 0D 02 02 04 00 A3 83 A0 73 00 00 6E [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [23:55:33]RAPDU: 90 00 [23:55:33]wFMCommunicate OK [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 0D 03 02 [23:55:33]Write to MH i2c: E2 08 00 B3 01 80 0D 03 02 00 00 00 00 2F [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 0B 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 0B 00 B3 01 00 F3 73 8B 44 11 0E FD 36 90 00 B7 [23:55:33]RAPDU: F3 73 8B 44 11 0E FD 36 90 00 [23:55:33]wFMCommunicate OK [23:55:33]SAM_PROTO_SignData done [23:55:33]FM_MakeSignedData done [23:55:33]CreateOFDProtocolMessage [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 11 00 00 [23:55:33]Write to MH i2c: E2 08 00 B4 01 80 11 00 00 00 00 00 00 2F [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:33]Read from MH i2c: E2 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 17 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: E2 17 00 B4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7F [23:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:55:33]wFMCommunicate OK [23:55:33]CreateOFDProtocolMessage done [23:55:33]OFDSenderStorePacket 2381 [23:55:33]StoreOFDPacket docnum=2381 [23:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 64 5D 06 01 BD 23 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 33 FF 03 08 00 03 5C CB 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 6E F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F5 2B A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 09 00 00 35 04 06 00 F5 6A A3 83 A0 73 F3 73 8B 44 11 0E FD 36 [23:55:33]CheckFolder [23:55:33]dirname=/storage/ofd_packets [23:55:33]CheckFolder done [23:55:33]ProducePacketName [23:55:33]name=ofd_packets/00002381 [23:55:33]NVStorageSaveData ofd_packets/00002381 [23:55:33]File name is /storage/ofd_packets/00002381 [23:55:33]Write 300 bytes [23:55:33]NVStorageSaveData done [23:55:33]OFDSenderStorePacket done [23:55:33]KKMCreateOFDPacket done [23:55:33]NVStorageSaveData kkm_last_timestamp [23:55:33]File name is /storage/kkm_last_timestamp [23:55:33]Write 4 bytes [23:55:33]NVStorageSaveData done [23:55:33]ExternCall_PrintAddStr [23:55:33]wPrintStart [23:55:33]Write to MH i2c: 01 00 00 B5 01 B6 [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: 01 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: 01 07 00 [23:55:33]MH_I2C_Read... [23:55:33]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 FF 0F CB [23:55:33]RasterBufferAndPrint [23:55:33]line Счет N : (1)610243 [23:55:33]line ИНН: 02508201610067 [23:55:33]line Контрольно-Кассовый Чек [23:55:33]line ПРОДАЖА [23:55:33]line ТРК (МРК, ГНК) : 7 [23:55:33]line Товар: 2711190000 [23:55:33]line ГАЗ-К-3 [23:55:33]line 52.060 * 37.00 [23:55:33]line = 1926.22 [23:55:33]line НДС 12% НСП 1% [23:55:33]line > о реализуемом товаре [23:55:33]line ОКРУГЛЕНИЕ: -0.22 [23:55:33]line ИТОГО: 1926.00 [23:55:33]line Внесено: 6000.00 [23:55:33]line СДАЧА: 4074.00 [23:55:33]line НСП 1% : 17.05 [23:55:33]line НДС 12% : 204.55 [23:55:33]line Наличными: 1926.00 [23:55:33]line Безнал.: 0.00 [23:55:33]line Место: АЗС № 127 "Партнер Нефть" [23:55:33]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [23:55:33]line СНО: Общий режим [23:55:33]line Чек 230 29.07.2024 23:55 [23:55:33]line Смена: 15 ФФД: 1.0 [23:55:33]line ЗНМ: 0300000161 [23:55:33]line РНМ: 0000000000189667 [23:55:33]line Версия ККМ: v1.0 [23:55:33]line ФМ: 0000000002094248 [23:55:33]line ФД: 2381 [23:55:33]line ФПД: 269838358650995 [23:55:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T235533&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2381&fm=269838358650995&tin=02508201610067®Number=0000000000189667&sum=192600 [23:55:34]OFD Sender: Processing packet 2381 [packets to send 1, broken 0] [23:55:34]ProducePacketName [23:55:34]name=ofd_packets/00002381 [23:55:34]OFD Sender: To server: pG, [23:55:34]CommunicateWithHost lk.salyk.kg:30040 [23:55:34]ConnectInit lk.salyk.kg [23:55:34]written 0, free lines is 4095 [23:55:34]Connected sock=11 [23:55:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0E 01 00 00 64 5D 06 01 BD 23 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 33 FF 03 08 00 03 5C CB 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 6E F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 F5 2B A8 66 0E 04 04 00 0F 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4D 09 00 00 35 04 06 00 F5 6A A3 83 A0 73 F3 73 8B 44 11 0E FD 36 [23:55:34]Write to MH i2c: 01 00 00 E0 01 E1 [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: 01 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: 01 07 00 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 F3 0C E7 [23:55:34]RasterBufferAndPrint [23:55:34]line [23:55:34]line [23:55:34]line [23:55:34]line [23:55:34]line [23:55:34]written 0, free lines is 3321 [23:55:34]MH_Cut [23:55:34]Write to MH i2c: D1 01 00 E7 01 01 BA [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: D1 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: D1 01 00 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: D1 01 00 E7 01 00 B9 [23:55:34]Write to MH i2c: 01 00 00 E8 01 E9 [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 02 E8 47 00 31 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 32 30 39 34 32 34 38 10 04 04 00 4D 09 00 00 F4 03 04 00 60 D7 A7 66 B6 04 01 00 00 F4 F0 B2 BF 6C DE 85 46 [23:55:34]CommunicateWithHost err = 0 [23:55:34]CheckOFDResponse [23:55:34]1017 (14) - 77093643461234 [23:55:34]1041 (16) - 0000000002094248 [23:55:34]1040 (4) - 2381 [23:55:34]1012 (4) - 29.07.2024 17:54 [23:55:34]1206 (1) - 0 [23:55:34]OFD Sender: Remove packet 2381 [23:55:34]ProducePacketName [23:55:34]name=ofd_packets/00002381 [23:55:34]NVStorageDeleteData [23:55:35]OFD Sender: No OFD packet to send [23:55:35]*** Cut start [23:55:35]*** Partial cut [23:55:35]*** CUTSNS_PIN = 1 [23:55:35]*** CUTSNS_PIN = 0 [23:55:35]*** Brake cut motor [23:55:36]Read from MH i2c: 01 [23:55:36]MH_I2C_Read... [23:55:36]*** Stop cut motor [23:55:36]*** Cut end [23:55:36]Read from MH i2c: 01 07 00 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: 01 07 00 E8 01 00 00 00 00 00 FF 0F FE [23:55:36]process_action close_receipt done [23:55:36]requested_data is exist [23:55:36]produce_requested_data [23:55:36]requested_item fm.sn is exist - process it [23:55:36]wFMCommunicate request_size=4 [23:55:36]MH_SAM_APDU [23:55:36]CAPDU: 80 11 00 00 [23:55:36]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [23:55:36]Write i2c OK [23:55:36]MH_I2C_Read... [23:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:36]Read from MH i2c: E2 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 17 00 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 17 00 E9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B4 [23:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:55:36]wFMCommunicate OK [23:55:36]requested_item fd.num is exist - process it [23:55:36]SAM_PROTO_GetFieldsCounters [23:55:36]wFMCommunicate request_size=4 [23:55:36]MH_SAM_APDU [23:55:36]CAPDU: 80 13 00 00 [23:55:36]Write to MH i2c: E2 08 00 EA 01 80 13 00 00 00 00 00 00 67 [23:55:36]Write i2c OK [23:55:36]MH_I2C_Read... [23:55:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:36]Read from MH i2c: E2 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 62 00 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 62 00 EA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [23:55:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:36]wFMCommunicate OK [23:55:36]SAM_PROTO_GetFieldsCounters done [23:55:36]requested_item shift.num is exist - process it [23:55:36]requested_item shift.opened is exist - process it [23:55:36]req_shift_opened [23:55:36]FM_GetShiftState [23:55:36]SAM_PROTO_GetShiftState [23:55:36]wFMCommunicate request_size=4 [23:55:36]MH_SAM_APDU [23:55:36]CAPDU: 80 13 01 00 [23:55:36]Write to MH i2c: E2 08 00 EB 01 80 13 01 00 00 00 00 00 69 [23:55:36]Write i2c OK [23:55:36]MH_I2C_Read... [23:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:36]Read from MH i2c: E2 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 0E 00 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 0E 00 EB 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 62 [23:55:36]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:55:36]wFMCommunicate OK [23:55:36]SAM_PROTO_GetShiftState done [23:55:36]FM_GetShiftState done [23:55:36]req_shift_opened done [23:55:36]requested_item shift.open_date is exist - process it [23:55:36]req_shift_open_date [23:55:36]req_shift_open_date done [23:55:36]produce_requested_data done [23:55:36]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:55:36]process_action_free close_receipt [23:55:36]json_value_free [23:55:36]json_value_free done [23:55:36]process_json_proto returns [23:55:36]Send response to host [23:55:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:55:36]free response buf [23:55:36]execute_script done [23:55:36]execute_script returns [23:55:36]free content buf [23:55:36]Sock 7.Close socket [23:55:36]Sock 7.Thread stoped [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:27]accept exits with 9 [23:58:27]New connection [23:58:27]New thread 3067481444 created [23:58:27]Thread 3067624804 joined [23:58:27]Waiting for new connection... [23:58:27] Sock 9.Parse request [23:58:27]Sock 9.Check first char [23:58:27]Sock 9.First char is OK [23:58:27]request: POST /json_proto HTTP/1.0 [23:58:27]Method: POST [23:58:27]URL: /json_proto [23:58:27]Method is POST - this is cgi request [23:58:27]url: /json_proto [23:58:27]query_string will be loaded in cgi processing [23:58:27]execute_cgi json_proto POST (null) [23:58:27]execute_cgi path=json_proto method=POST [23:58:27]POST find Content-Length [23:58:27]Host: 172.17.45.132:8080 [23:58:27]Content-Length: 215 [23:58:27]Content-Type: application/json [23:58:27] [23:58:27]POST finish read [23:58:27]Found Content-Length = 215 [23:58:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:27]execute_script... [23:58:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:27]POST & json_proto [23:58:27]process_json_proto [23:58:27]json parsed OK: [23:58:27]protocol is kg_v1.0 [23:58:27]action value=get_value [23:58:27]process_action get_value [23:58:27]cmd_get_value [23:58:27]process_action get_value done [23:58:27]requested_data is exist [23:58:27]produce_requested_data [23:58:27]requested_item kkm.sn is exist - process it [23:58:27]requested_item kkm.ver is exist - process it [23:58:27]requested_item fm.sn is exist - process it [23:58:27]wFMCommunicate request_size=4 [23:58:27]MH_SAM_APDU [23:58:27]CAPDU: 80 11 00 00 [23:58:27]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [23:58:27]Write i2c OK [23:58:27]MH_I2C_Read... [23:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:27]Read from MH i2c: E2 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 17 00 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B7 [23:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:58:27]wFMCommunicate OK [23:58:27]requested_item fd.num is exist - process it [23:58:27]SAM_PROTO_GetFieldsCounters [23:58:27]wFMCommunicate request_size=4 [23:58:27]MH_SAM_APDU [23:58:27]CAPDU: 80 13 00 00 [23:58:27]Write to MH i2c: E2 08 00 ED 01 80 13 00 00 00 00 00 00 6A [23:58:27]Write i2c OK [23:58:27]MH_I2C_Read... [23:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:28]Read from MH i2c: E2 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 62 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 62 00 ED 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [23:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:28]wFMCommunicate OK [23:58:28]SAM_PROTO_GetFieldsCounters done [23:58:28]requested_item shift.num is exist - process it [23:58:28]requested_item shift.opened is exist - process it [23:58:28]req_shift_opened [23:58:28]FM_GetShiftState [23:58:28]SAM_PROTO_GetShiftState [23:58:28]wFMCommunicate request_size=4 [23:58:28]MH_SAM_APDU [23:58:28]CAPDU: 80 13 01 00 [23:58:28]Write to MH i2c: E2 08 00 EE 01 80 13 01 00 00 00 00 00 6C [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:28]Read from MH i2c: E2 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 0E 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 0E 00 EE 01 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 65 [23:58:28]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:58:28]wFMCommunicate OK [23:58:28]SAM_PROTO_GetShiftState done [23:58:28]FM_GetShiftState done [23:58:28]req_shift_opened done [23:58:28]requested_item shift.open_date is exist - process it [23:58:28]req_shift_open_date [23:58:28]req_shift_open_date done [23:58:28]produce_requested_data done [23:58:28]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:58:28]process_action_free get_value [23:58:28]json_value_free [23:58:28]json_value_free done [23:58:28]process_json_proto returns [23:58:28]Send response to host [23:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:58:28]free response buf [23:58:28]execute_script done [23:58:28]execute_script returns [23:58:28]free content buf [23:58:28]Sock 9.Close socket [23:58:28]Sock 9.Thread stoped [23:58:28]accept exits with 7 [23:58:28]New connection [23:58:28]New thread 3067624804 created [23:58:28]Thread 3067481444 joined [23:58:28]Waiting for new connection... [23:58:28] Sock 7.Parse request [23:58:28]Sock 7.Check first char [23:58:28]Sock 7.First char is OK [23:58:28]request: POST /json_proto HTTP/1.0 [23:58:28]Method: POST [23:58:28]URL: /json_proto [23:58:28]Method is POST - this is cgi request [23:58:28]url: /json_proto [23:58:28]query_string will be loaded in cgi processing [23:58:28]execute_cgi json_proto POST (null) [23:58:28]execute_cgi path=json_proto method=POST [23:58:28]POST find Content-Length [23:58:28]Host: 172.17.45.132:8080 [23:58:28]Content-Length: 331 [23:58:28]Content-Type: application/json [23:58:28] [23:58:28]POST finish read [23:58:28]Found Content-Length = 331 [23:58: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" ] } } [23:58:28]execute_script... [23:58: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" ] } } [23:58:28]POST & json_proto [23:58:28]process_json_proto [23:58:28]json parsed OK: [23:58:28]protocol is kg_v1.0 [23:58:28]action value=get_value [23:58:28]process_action get_value [23:58:28]cmd_get_value [23:58:28]process_action get_value done [23:58:28]requested_data is exist [23:58:28]produce_requested_data [23:58:28]requested_item fm.sale.total is exist - process it [23:58:28]SAM_PROTO_GetFMData [23:58:28]wFMCommunicate request_size=4 [23:58:28]MH_SAM_APDU [23:58:28]CAPDU: 80 13 03 00 [23:58:28]Write to MH i2c: E2 08 00 EF 01 80 13 03 00 00 00 00 00 6F [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:28]Read from MH i2c: E2 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 FD 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 FD 00 EF 01 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 86 [23:58:28]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [23:58:28]wFMCommunicate OK [23:58:28]wFMCommunicate request_size=4 [23:58:28]MH_SAM_APDU [23:58:28]CAPDU: 80 17 00 00 [23:58:28]Write to MH i2c: E2 08 00 F0 01 80 17 00 00 00 00 00 00 71 [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:29]Read from MH i2c: E2 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 F0 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [23:58:29]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:29]wFMCommunicate OK [23:58:29]wFMCommunicate request_size=4 [23:58:29]MH_SAM_APDU [23:58:29]CAPDU: 80 17 00 00 [23:58:29]Write to MH i2c: E2 08 00 F1 01 80 17 00 00 00 00 00 00 72 [23:58:29]Write i2c OK [23:58:29]MH_I2C_Read... [23:58:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:29]Read from MH i2c: E2 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 F1 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [23:58:29]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:29]wFMCommunicate OK [23:58:29]wFMCommunicate request_size=4 [23:58:29]MH_SAM_APDU [23:58:29]CAPDU: 80 17 00 00 [23:58:29]Write to MH i2c: E2 08 00 F2 01 80 17 00 00 00 00 00 00 73 [23:58:29]Write i2c OK [23:58:29]MH_I2C_Read... [23:58:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:29]Read from MH i2c: E2 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 F2 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [23:58:29]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:29]wFMCommunicate OK [23:58:29]wFMCommunicate request_size=4 [23:58:29]MH_SAM_APDU [23:58:29]CAPDU: 80 17 00 00 [23:58:29]Write to MH i2c: E2 08 00 F3 01 80 17 00 00 00 00 00 00 74 [23:58:29]Write i2c OK [23:58:29]MH_I2C_Read... [23:58:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:58:29]Read from MH i2c: E2 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 DD 00 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 DD 00 F3 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5C [23:58:29]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:29]wFMCommunicate OK [23:58:29]SAM_PROTO_GetFMData done [23:58:29]requested_item fm.sale_refund.total is exist - process it [23:58:29]requested_item fm.buy.total is exist - process it [23:58:29]requested_item shift.sale.total is exist - process it [23:58:29]SAM_PROTO_GetShiftData [23:58:29]wFMCommunicate request_size=4 [23:58:29]MH_SAM_APDU [23:58:29]CAPDU: 80 13 02 00 [23:58:29]Write to MH i2c: E2 08 00 F4 01 80 13 02 00 00 00 00 00 73 [23:58:29]Write i2c OK [23:58:29]MH_I2C_Read... [23:58:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:30]Read from MH i2c: E2 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 F4 01 00 AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 47 [23:58:30]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:58:30]wFMCommunicate OK [23:58:30]wFMCommunicate request_size=4 [23:58:30]MH_SAM_APDU [23:58:30]CAPDU: 80 17 00 00 [23:58:30]Write to MH i2c: E2 08 00 F5 01 80 17 00 00 00 00 00 00 76 [23:58:30]Write i2c OK [23:58:30]MH_I2C_Read... [23:58:30]OFD Sender: No OFD packet to send [23:58:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:30]Read from MH i2c: E2 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 F5 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 8F [23:58:30]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:30]wFMCommunicate OK [23:58:30]wFMCommunicate request_size=4 [23:58:30]MH_SAM_APDU [23:58:30]CAPDU: 80 17 00 00 [23:58:30]Write to MH i2c: E2 08 00 F6 01 80 17 00 00 00 00 00 00 77 [23:58:30]Write i2c OK [23:58:30]MH_I2C_Read... [23:58:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:30]Read from MH i2c: E2 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 F6 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [23:58:30]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:30]wFMCommunicate OK [23:58:30]wFMCommunicate request_size=4 [23:58:30]MH_SAM_APDU [23:58:30]CAPDU: 80 17 00 00 [23:58:30]Write to MH i2c: E2 08 00 F7 01 80 17 00 00 00 00 00 00 78 [23:58:30]Write i2c OK [23:58:30]MH_I2C_Read... [23:58:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:31]Read from MH i2c: E2 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 FD 00 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 FD 00 F7 01 00 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 90 00 F6 [23:58:31]RAPDU: 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 90 00 [23:58:31]wFMCommunicate OK [23:58:31]wFMCommunicate request_size=4 [23:58:31]MH_SAM_APDU [23:58:31]CAPDU: 80 17 00 00 [23:58:31]Write to MH i2c: E2 08 00 F8 01 80 17 00 00 00 00 00 00 79 [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:58:31]Read from MH i2c: E2 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 CC 00 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 CC 00 F8 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5A [23:58:31]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:31]wFMCommunicate OK [23:58:31]SAM_PROTO_GetShiftData done [23:58:31]requested_item shift.sale.total_cash is exist - process it [23:58:31]requested_item shift.sale_refund.total is exist - process it [23:58:31]requested_item shift.sale_refund.total_cash is exist - process it [23:58:31]requested_item shift.buy.total is exist - process it [23:58:31]requested_item shift.buy.total_cash is exist - process it [23:58:31]produce_requested_data done [23:58:31]produce_requested_data return {"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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} [23:58:31]process_action_free get_value [23:58:31]json_value_free [23:58:31]json_value_free done [23:58:31]process_json_proto returns [23:58:31]Send response to host [23:58:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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}}} [23:58:31]free response buf [23:58:31]execute_script done [23:58:31]execute_script returns [23:58:31]free content buf [23:58:31]Sock 7.Close socket [23:58:31]Sock 7.Thread stoped [23:58:31]accept exits with 9 [23:58:31]New connection [23:58:31]New thread 3067481444 created [23:58:31]Thread 3067624804 joined [23:58:31]Waiting for new connection... [23:58:31] Sock 9.Parse request [23:58:31]Sock 9.Check first char [23:58:31]Sock 9.First char is OK [23:58:31]request: POST /json_proto HTTP/1.0 [23:58:31]Method: POST [23:58:31]URL: /json_proto [23:58:31]Method is POST - this is cgi request [23:58:31]url: /json_proto [23:58:31]query_string will be loaded in cgi processing [23:58:31]execute_cgi json_proto POST (null) [23:58:31]execute_cgi path=json_proto method=POST [23:58:31]POST find Content-Length [23:58:31]Host: 172.17.45.132:8080 [23:58:31]Content-Length: 331 [23:58:31]Content-Type: application/json [23:58:31] [23:58:31]POST finish read [23:58:31]Found Content-Length = 331 [23:58:31]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:58:31]execute_script... [23:58:31]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:58:31]POST & json_proto [23:58:31]process_json_proto [23:58:31]json parsed OK: [23:58:31]protocol is kg_v1.0 [23:58:31]action value=get_value [23:58:31]process_action get_value [23:58:31]cmd_get_value [23:58:31]process_action get_value done [23:58:31]requested_data is exist [23:58:31]produce_requested_data [23:58:31]requested_item fm.sale.total is exist - process it [23:58:31]SAM_PROTO_GetFMData [23:58:31]wFMCommunicate request_size=4 [23:58:31]MH_SAM_APDU [23:58:31]CAPDU: 80 13 03 00 [23:58:31]Write to MH i2c: E2 08 00 F9 01 80 13 03 00 00 00 00 00 79 [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 FD 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 FD 00 F9 01 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 90 [23:58:32]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [23:58:32]wFMCommunicate OK [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 17 00 00 [23:58:32]Write to MH i2c: E2 08 00 FA 01 80 17 00 00 00 00 00 00 7B [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 FD 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 FD 00 FA 01 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [23:58:32]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:32]wFMCommunicate OK [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 17 00 00 [23:58:32]Write to MH i2c: E2 08 00 FB 01 80 17 00 00 00 00 00 00 7C [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 FD 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 FD 00 FB 01 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [23:58:32]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:32]wFMCommunicate OK [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 17 00 00 [23:58:32]Write to MH i2c: E2 08 00 FC 01 80 17 00 00 00 00 00 00 7D [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 FC 01 00 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [23:58:33]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:33]wFMCommunicate OK [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 17 00 00 [23:58:33]Write to MH i2c: E2 08 00 FD 01 80 17 00 00 00 00 00 00 7E [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 DD 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 DD 00 FD 01 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:58:33]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:33]wFMCommunicate OK [23:58:33]SAM_PROTO_GetFMData done [23:58:33]requested_item fm.sale_refund.total is exist - process it [23:58:33]requested_item fm.buy.total is exist - process it [23:58:33]requested_item shift.sale.total is exist - process it [23:58:33]SAM_PROTO_GetShiftData [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 13 02 00 [23:58:33]Write to MH i2c: E2 08 00 FE 01 80 13 02 00 00 00 00 00 7D [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 FE 01 00 AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 51 [23:58:34]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:58:34]wFMCommunicate OK [23:58:34]wFMCommunicate request_size=4 [23:58:34]MH_SAM_APDU [23:58:34]CAPDU: 80 17 00 00 [23:58:34]Write to MH i2c: E2 08 00 FF 01 80 17 00 00 00 00 00 00 80 [23:58:34]Write i2c OK [23:58:34]MH_I2C_Read... [23:58:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:34]Read from MH i2c: E2 [23:58:34]MH_I2C_Read... [23:58:34]Read from MH i2c: E2 FD 00 [23:58:34]MH_I2C_Read... [23:58:34]Read from MH i2c: E2 FD 00 FF 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 99 [23:58:34]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:34]wFMCommunicate OK [23:58:34]wFMCommunicate request_size=4 [23:58:34]MH_SAM_APDU [23:58:34]CAPDU: 80 17 00 00 [23:58:34]Write to MH i2c: E2 08 00 00 02 80 17 00 00 00 00 00 00 82 [23:58:34]Write i2c OK [23:58:34]MH_I2C_Read... [23:58:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:34]Read from MH i2c: E2 [23:58:34]MH_I2C_Read... [23:58:34]Read from MH i2c: E2 FD 00 [23:58:34]MH_I2C_Read... [23:58:34]Read from MH i2c: E2 FD 00 00 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 36 [23:58:34]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:34]wFMCommunicate OK [23:58:34]wFMCommunicate request_size=4 [23:58:34]MH_SAM_APDU [23:58:34]CAPDU: 80 17 00 00 [23:58:34]Write to MH i2c: E2 08 00 01 02 80 17 00 00 00 00 00 00 83 [23:58:34]Write i2c OK [23:58:34]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 FD 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 FD 00 01 02 00 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 90 00 01 [23:58:35]RAPDU: 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 90 00 [23:58:35]wFMCommunicate OK [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 17 00 00 [23:58:35]Write to MH i2c: E2 08 00 02 02 80 17 00 00 00 00 00 00 84 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 CC 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 CC 00 02 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [23:58:35]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 OFD Sender: No OFD packet to send [23:58:35]00 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_GetShiftData done [23:58:35]requested_item shift.sale.total_cash is exist - process it [23:58:35]requested_item shift.sale_refund.total is exist - process it [23:58:35]requested_item shift.sale_refund.total_cash is exist - process it [23:58:35]requested_item shift.buy.total is exist - process it [23:58:35]requested_item shift.buy.total_cash is exist - process it [23:58:35]produce_requested_data done [23:58:35]produce_requested_data return {"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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} [23:58:35]process_action_free get_value [23:58:35]json_value_free [23:58:35]json_value_free done [23:58:35]process_json_proto returns [23:58:35]Send response to host [23:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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}}} [23:58:35]free response buf [23:58:35]execute_script done [23:58:35]execute_script returns [23:58:35]free content buf [23:58:35]Sock 9.Close socket [23:58:35]Sock 9.Thread stoped [23:58:35]accept exits with 10 [23:58:35]New connection [23:58:35]New thread 3067624804 created [23:58:35]Thread 3067481444 joined [23:58:35]Waiting for new connection... [23:58:35] Sock 10.Parse request [23:58:35]Sock 10.Check first char [23:58:35]Sock 10.First char is OK [23:58:35]request: POST /json_proto HTTP/1.0 [23:58:35]Method: POST [23:58:35]URL: /json_proto [23:58:35]Method is POST - this is cgi request [23:58:35]url: /json_proto [23:58:35]query_string will be loaded in cgi processing [23:58:35]execute_cgi json_proto POST (null) [23:58:35]execute_cgi path=json_proto method=POST [23:58:35]POST find Content-Length [23:58:35]Host: 172.17.45.132:8080 [23:58:35]Content-Length: 257 [23:58:35]Content-Type: application/json [23:58:35] [23:58:35]POST finish read [23:58:35]Found Content-Length = 257 [23:58:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:35]execute_script... [23:58:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:35]POST & json_proto [23:58:35]process_json_proto [23:58:35]json parsed OK: [23:58:35]protocol is kg_v1.0 [23:58:35]action value=x_report [23:58:35]process_action x_report [23:58:35]cmd_x_report [23:58:35]MH_GetDate [23:58:35]Write to MH i2c: F0 00 00 03 02 F4 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: F0 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: F0 09 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: F0 09 00 03 02 00 AC 2C A8 66 E3 0B 90 66 C7 [23:58:35]GetLastDocTimeStamp 1722297333 [23:58:35]current date 1722297516 [23:58:35]FM_GetShiftState [23:58:35]SAM_PROTO_GetShiftState [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 13 01 00 [23:58:35]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0E 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 7C [23:58:35]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_GetShiftState done [23:58:35]FM_GetShiftState done [23:58:35]KKMCreateXReportDocument [23:58:35]Load OK [23:58:35]Malloc new data [23:58:35]MH_GetDate [23:58:35]Write to MH i2c: F0 00 00 05 02 F6 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: F0 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: F0 09 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: F0 09 00 05 02 00 AC 2C A8 66 E3 0B 90 66 C9 [23:58:35]Malloc new data [23:58:35]Malloc new data [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 11 00 00 [23:58:35]Write to MH i2c: E2 08 00 06 02 80 11 00 00 00 00 00 00 82 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 06 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 D2 [23:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_GetFieldsCounters [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 13 00 00 [23:58:35]Write to MH i2c: E2 08 00 07 02 80 13 00 00 00 00 00 00 85 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:36]Read from MH i2c: E2 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: E2 62 00 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: E2 62 00 07 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:58:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:36]wFMCommunicate OK [23:58:36]SAM_PROTO_GetFieldsCounters done [23:58:36]Malloc new data [23:58:36]Malloc new data [23:58:36]Malloc new data [23:58:36]KKMCreateXReportDocument OK [23:58:36]KKMSetXReportData OK [23:58:36]KKMPrepareXReportFMData [23:58:36]SAM_PROTO_GetShiftData [23:58:36]wFMCommunicate request_size=4 [23:58:36]MH_SAM_APDU [23:58:36]CAPDU: 80 13 02 00 [23:58:36]Write to MH i2c: E2 08 00 08 02 80 13 02 00 00 00 00 00 88 [23:58:36]Write i2c OK [23:58:36]MH_I2C_Read... [23:58:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:36]Read from MH i2c: E2 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: E2 FD 00 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: E2 FD 00 08 02 00 AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 5C [23:58:36]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:58:36]wFMCommunicate OK [23:58:36]wFMCommunicate request_size=4 [23:58:36]MH_SAM_APDU [23:58:36]CAPDU: 80 17 00 00 [23:58:36]Write to MH i2c: E2 08 00 09 02 80 17 00 00 00 00 00 00 8B [23:58:36]Write i2c OK [23:58:36]MH_I2C_Read... [23:58:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:37]Read from MH i2c: E2 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 09 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A4 [23:58:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:37]wFMCommunicate OK [23:58:37]wFMCommunicate request_size=4 [23:58:37]MH_SAM_APDU [23:58:37]CAPDU: 80 17 00 00 [23:58:37]Write to MH i2c: E2 08 00 0A 02 80 17 00 00 00 00 00 00 8C [23:58:37]Write i2c OK [23:58:37]MH_I2C_Read... [23:58:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:37]Read from MH i2c: E2 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 0A 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [23:58:37]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:37]wFMCommunicate OK [23:58:37]wFMCommunicate request_size=4 [23:58:37]MH_SAM_APDU [23:58:37]CAPDU: 80 17 00 00 [23:58:37]Write to MH i2c: E2 08 00 0B 02 80 17 00 00 00 00 00 00 8D [23:58:37]Write i2c OK [23:58:37]MH_I2C_Read... [23:58:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:37]Read from MH i2c: E2 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 0B 02 00 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 90 00 0B [23:58:37]RAPDU: 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 90 00 [23:58:38]wFMCommunicate OK [23:58:38]wFMCommunicate request_size=4 [23:58:38]MH_SAM_APDU [23:58:38]CAPDU: 80 17 00 00 [23:58:38]Write to MH i2c: E2 08 00 0C 02 80 17 00 00 00 00 00 00 8E [23:58:38]Write i2c OK [23:58:38]MH_I2C_Read... [23:58:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:58:38]Read from MH i2c: E2 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: E2 CC 00 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: E2 CC 00 0C 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [23:58:38]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:38]wFMCommunicate OK [23:58:38]SAM_PROTO_GetShiftData done [23:58:38]1194 (1195) - счетчики итогов смены [23:58:38] 1134 (4) - 230 - количество чеков со всеми признаками расчетов [23:58:38] 1129 (156) - счетчики операций «приход» [23:58:38] 1135 (4) - 230 - количество чеков по признаку расчетов [23:58:38] 1201 (3) - 117912.08 - общая итоговая сумма в чеках [23:58:38] 1136 (3) - 77517.00 - итоговая сумма в чеках наличными [23:58:38] 1138 (3) - 40395.08 - итоговая сумма в чеках безналичными [23:58:38] 1024 (123) - суммы налогов [23:58:38] 1006 (9) - суммы НДС [23:58:38] 1010 (1) - 0% - код ставки НДС [23:58:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:38] 1006 (12) - суммы НДС [23:58:38] 1010 (1) - 12% - код ставки НДС [23:58:38] 1011 (3) - 12523.10 - сумма НДС по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (12) - суммы НСП [23:58:38] 1014 (1) - 1% - код ставки НСП [23:58:38] 1015 (3) - 1043.36 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 2% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 3% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 5% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 1,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1130 (141) - счетчики операций «возврат прихода» [23:58:38] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:38] 1024 (117) - суммы налогов [23:58:38] 1006 (9) - суммы НДС [23:58:38] 1010 (1) - 0% - код ставки НДС [23:58:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:38] 1006 (9) - суммы НДС [23:58:38] 1010 (1) - 12% - код ставки НДС [23:58:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 1% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 2% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 3% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 5% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 1,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1131 (141) - счетчики операций «расход» [23:58:38] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:38] 1024 (117) - суммы налогов [23:58:38] 1006 (9) - суммы НДС [23:58:38] 1010 (1) - 0% - код ставки НДС [23:58:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:38] 1006 (9) - суммы НДС [23:58:38] 1010 (1) - 12% - код ставки НДС [23:58:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 1% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 2% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 3% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 5% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 1,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1132 (141) - счетчики операций «возврат расхода» [23:58:38] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:38] 1024 (117) - суммы налогов [23:58:38] 1006 (9) - суммы НДС [23:58:38] 1010 (1) - 0% - код ставки НДС [23:58:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:38] 1006 (9) - суммы НДС [23:58:38] 1010 (1) - 12% - код ставки НДС [23:58:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 1% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 2% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 3% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 5% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 0,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1007 (9) - суммы НСП [23:58:38] 1014 (1) - 1,50% - код ставки НСП [23:58:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:38] 1133 (588) - - счетчики коррекции - не используются [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1194 (04AA) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1134 (046E) [23:58:39]Malloc new data [23:58:39]Processing tag 1129 (0469) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1135 (046F) [23:58:39]Malloc new data [23:58:39]Processing tag 1201 (04B1) [23:58:39]Malloc new data [23:58:39]Processing tag 1136 (0470) [23:58:39]Malloc new data [23:58:39]Processing tag 1138 (0472) [23:58:39]Malloc new data [23:58:39]Processing tag 1024 (0400) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1130 (046A) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1135 (046F) [23:58:39]Malloc new data [23:58:39]Processing tag 1201 (04B1) [23:58:39]Malloc new data [23:58:39]Processing tag 1136 (0470) [23:58:39]Malloc new data [23:58:39]Processing tag 1138 (0472) [23:58:39]Malloc new data [23:58:39]Processing tag 1024 (0400) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1131 (046B) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1135 (046F) [23:58:39]Malloc new data [23:58:39]Processing tag 1201 (04B1) [23:58:39]Malloc new data [23:58:39]Processing tag 1136 (0470) [23:58:39]Malloc new data [23:58:39]Processing tag 1138 (0472) [23:58:39]Malloc new data [23:58:39]Processing tag 1024 (0400) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1132 (046C) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1135 (046F) [23:58:39]Malloc new data [23:58:39]Processing tag 1201 (04B1) [23:58:39]Malloc new data [23:58:39]Processing tag 1136 (0470) [23:58:39]Malloc new data [23:58:39]Processing tag 1138 (0472) [23:58:39]Malloc new data [23:58:39]Processing tag 1024 (0400) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1006 (03EE) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1010 (03F2) [23:58:39]Malloc new data [23:58:39]Processing tag 1011 (03F3) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1007 (03EF) [23:58:39]Load OK [23:58:39]SetTLVBufToDocument [23:58:39]Processing tag 1014 (03F6) [23:58:39]Malloc new data [23:58:39]Processing tag 1015 (03F7) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Processing tag 1133 (046D) [23:58:39]Malloc new data [23:58:39]SetTLVBufToDocument err=0 [23:58:39]SetTLVBufToDocument err=0 [23:58:39]Malloc new data [23:58:39]SAM_PROTO_GetFMData [23:58:39]wFMCommunicate request_size=4 [23:58:39]MH_SAM_APDU [23:58:39]CAPDU: 80 13 03 00 [23:58:39]Write to MH i2c: E2 08 00 0D 02 80 13 03 00 00 00 00 00 8E [23:58:39]Write i2c OK [23:58:39]MH_I2C_Read... [23:58:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:39]Read from MH i2c: E2 [23:58:39]MH_I2C_Read... [23:58:39]Read from MH i2c: E2 FD 00 [23:58:39]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 FD 00 0D 02 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 A5 [23:58:40]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [23:58:40]wFMCommunicate OK [23:58:40]wFMCommunicate request_size=4 [23:58:40]MH_SAM_APDU [23:58:40]CAPDU: 80 17 00 00 [23:58:40]Write to MH i2c: E2 08 00 0E 02 80 17 00 00 00 00 00 00 90 [23:58:40]Write i2c OK [23:58:40]MH_I2C_Read... [23:58:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:40]Read from MH i2c: E2 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 FD 00 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 FD 00 0E 02 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [23:58:40]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:40]wFMCommunicate OK [23:58:40]wFMCommunicate request_size=4 [23:58:40]MH_SAM_APDU [23:58:40]CAPDU: 80 17 00 00 [23:58:40]Write to MH i2c: E2 08 00 0F 02 80 17 00 00 00 00 00 00 91 [23:58:40]OFD Sender: No OFD packet to send [23:58:40]Write i2c OK [23:58:40]MH_I2C_Read... [23:58:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:41]Read from MH i2c: E2 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 FD 00 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 FD 00 0F 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [23:58:41]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:41]wFMCommunicate OK [23:58:41]wFMCommunicate request_size=4 [23:58:41]MH_SAM_APDU [23:58:41]CAPDU: 80 17 00 00 [23:58:41]Write to MH i2c: E2 08 00 10 02 80 17 00 00 00 00 00 00 92 [23:58:41]Write i2c OK [23:58:41]MH_I2C_Read... [23:58:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:41]Read from MH i2c: E2 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 FD 00 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 FD 00 10 02 00 01 00 04 F7 03 00 00 EF 03 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 90 00 0A [23:58:41]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:41]wFMCommunicate OK [23:58:41]wFMCommunicate request_size=4 [23:58:41]MH_SAM_APDU [23:58:41]CAPDU: 80 17 00 00 [23:58:41]Write to MH i2c: E2 08 00 11 02 80 17 00 00 00 00 00 00 93 [23:58:41]Write i2c OK [23:58:41]MH_I2C_Read... [23:58:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:58:42]Read from MH i2c: E2 [23:58:42]MH_I2C_Read... [23:58:42]Read from MH i2c: E2 DD 00 [23:58:42]MH_I2C_Read... [23:58:42]Read from MH i2c: E2 DD 00 11 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [23:58:42]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:42]wFMCommunicate OK [23:58:42]SAM_PROTO_GetFMData done [23:58:42]FM_GetFMData:85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 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 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:43]oper:6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:43]total:7A E6 0E 06 [23:58:43]Malloc new data [23:58:43]oper:6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 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 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:43]total:1C FE 12 [23:58:43]Malloc new data [23:58:43]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:58:43]total: [23:58:43]Malloc new data [23:58:43]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:58:43]total: [23:58:43]Malloc new data [23:58:43]KKMPrepareXReportFMData err=0 [23:58:43]Х отчет ИНН: 02508201610067 Кассир: Мансуров А. 29.07.2024 23:58 Смена: 10 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Всего чеков: 230 ИТОГИ ПРИХОД Чеков: 230 Общий итог: 117912.08 Итого наличными: 77517.00 Итого безнал.: 40395.08 НДС 0% : 0.00 НДС 12% : 12523.10 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1043.36 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 77517.00 НС Приход: 1016398.02 НС Возвр.Прихода: 12447.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000002094248 [23:58:43]StoreToDocumentArchive [23:58:43]MH_GetDate [23:58:43]Write to MH i2c: F0 00 00 12 02 03 [23:58:43]Write i2c OK [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: F0 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: F0 09 00 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: F0 09 00 12 02 00 B4 2C A8 66 E3 0B 90 66 DE [23:58:43]shift 10 fd 1722297524 [23:58:43]Create dir for shift 0010 [23:58:43]save to /storage/0010/doc_1722297524 [23:58:43]save last doc name /storage/0010/doc_1722297524 to /storage/kkm_last_doc_name [23:58:43]save OK [23:58:43]Clear old archive folders... [23:58:43]NVStorageSaveData kkm_last_timestamp [23:58:43]File name is /storage/kkm_last_timestamp [23:58:43]Write 4 bytes [23:58:43]NVStorageSaveData done [23:58:43]ExternCall_PrintAddStr [23:58:43]wPrintStart [23:58:43]Write to MH i2c: 01 00 00 13 02 15 [23:58:43]Write i2c OK [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: 01 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: 01 07 00 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 FF 0F 2A [23:58:43]RasterBufferAndPrint [23:58:43]line Х отчет [23:58:43]line ИНН: 02508201610067 [23:58:43]line Кассир: Мансуров А. [23:58:43]line 29.07.2024 23:58 [23:58:43]line Смена: 10 [23:58:43]line РНМ: 0000000000189667 [23:58:43]line ЗНМ: 0300000161 [23:58:43]line СНО: Общий режим [23:58:43]line Всего чеков: 230 [23:58:43]line ИТОГИ ПРИХОД [23:58:43]line Чеков: 230 [23:58:43]line Общий итог: 117912.08 [23:58:43]line Итого наличными: 77517.00 [23:58:43]line Итого безнал.: 40395.08 [23:58:43]line НДС 0% : 0.00 [23:58:43]line НДС 12% : 12523.10 [23:58:43]line НСП 0% : 0.00 [23:58:43]line НСП 1,50% : 0.00 [23:58:43]line НСП 0,50% : 0.00 [23:58:43]line НСП 5% : 0.00 [23:58:43]line НСП 3% : 0.00 [23:58:43]line НСП 2% : 0.00 [23:58:43]line НСП 1% : 1043.36 [23:58:43]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:58:43]line Чеков: 0 [23:58:43]line Общий итог: 0.00 [23:58:43]line Итого наличными: 0.00 [23:58:43]line Итого безнал.: 0.00 [23:58:43]line НДС 0% : 0.00 [23:58:43]line НДС 12% : 0.00 [23:58:43]line НСП 0% : 0.00 [23:58:43]line НСП 1,50% : 0.00 [23:58:43]line НСП 0,50% : 0.00 [23:58:43]line НСП 5% : 0.00 [23:58:43]line НСП 3% : 0.00 [23:58:43]line НСП 2% : 0.00 [23:58:43]line НСП 1% : 0.00 [23:58:43]line ИТОГИ РАСХОД [23:58:43]line Чеков: 0 [23:58:43]line Общий итог: 0.00 [23:58:43]line Итого наличными: 0.00 [23:58:43]line Итого безнал.: 0.00 [23:58:43]line НДС 0% : 0.00 [23:58:43]line НДС 12% : 0.00 [23:58:43]line НСП 0% : 0.00 [23:58:43]line НСП 1,50% : 0.00 [23:58:43]line НСП 0,50% : 0.00 [23:58:43]line НСП 5% : 0.00 [23:58:43]line НСП 3% : 0.00 [23:58:43]line НСП 2% : 0.00 [23:58:43]line НСП 1% : 0.00 [23:58:43]line ИТОГИ ВОЗВРАТ РАСХОДА [23:58:43]line Чеков: 0 [23:58:43]line Общий итог: 0.00 [23:58:43]line Итого наличными: 0.00 [23:58:43]line Итого безнал.: 0.00 [23:58:43]line НДС 0% : 0.00 [23:58:43]line НДС 12% : 0.00 [23:58:43]line НСП 0% : 0.00 [23:58:43]line НСП 1,50% : 0.00 [23:58:43]line НСП 0,50% : 0.00 [23:58:43]line НСП 5% : 0.00 [23:58:43]line НСП 3% : 0.00 [23:58:43]line НСП 2% : 0.00 [23:58:43]line НСП 1% : 0.00 [23:58:43]line Сумма внесений: 0.00 [23:58:43]line Сумма выплат: 0.00 [23:58:43]line Нал. в кассе: 77517.00 [23:58:43]line НС Приход: 1016398.02 [23:58:43]line НС Возвр.Прихода: 12447.00 [23:58:43]line НС Расход: 0.00 [23:58:43]line НС Возвр.Расхода: 0.00 [23:58:43]line ФМ: 0000000002094248 [23:58:43]written 0, free lines is 4095 [23:58:44]Write to MH i2c: 01 00 00 5E 02 60 [23:58:44]Write i2c OK [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: 01 [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: 01 07 00 [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 19 0B 8B [23:58:44]RasterBufferAndPrint [23:58:44]line [23:58:44]line [23:58:44]line [23:58:44]line [23:58:44]line [23:58:44]written 0, free lines is 2877 [23:58:44]MH_Cut [23:58:44]Write to MH i2c: D1 01 00 65 02 01 39 [23:58:44]Write i2c OK [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: D1 [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: D1 01 00 [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: D1 01 00 65 02 00 38 [23:58:44]Write to MH i2c: 01 00 00 66 02 68 [23:58:44]Write i2c OK [23:58:44]MH_I2C_Read... [23:58:45]*** Cut start [23:58:45]*** Partial cut [23:58:45]*** CUTSNS_PIN = 1 [23:58:45]*** CUTSNS_PIN = 0 [23:58:45]*** Brake cut motor [23:58:45]OFD Sender: No OFD packet to send [23:58:46]Read from MH i2c: 01 [23:58:46]MH_I2C_Read... [23:58:46]*** Stop cut motor [23:58:46]*** Cut end [23:58:46]Read from MH i2c: 01 07 00 [23:58:46]MH_I2C_Read... [23:58:46]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [23:58:46]process_action x_report done [23:58:46]requested_data is exist [23:58:46]produce_requested_data [23:58:46]requested_item fd.num is exist - process it [23:58:46]SAM_PROTO_GetFieldsCounters [23:58:46]wFMCommunicate request_size=4 [23:58:46]MH_SAM_APDU [23:58:46]CAPDU: 80 13 00 00 [23:58:46]Write to MH i2c: E2 08 00 67 02 80 13 00 00 00 00 00 00 E5 [23:58:46]Write i2c OK [23:58:46]MH_I2C_Read... [23:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:46]Read from MH i2c: E2 [23:58:46]MH_I2C_Read... [23:58:46]Read from MH i2c: E2 62 00 [23:58:46]MH_I2C_Read... [23:58:46]Read from MH i2c: E2 62 00 67 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [23:58:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:46]wFMCommunicate OK [23:58:46]SAM_PROTO_GetFieldsCounters done [23:58:46]requested_item shift.num is exist - process it [23:58:46]requested_item shift.opened is exist - process it [23:58:46]req_shift_opened [23:58:46]FM_GetShiftState [23:58:46]SAM_PROTO_GetShiftState [23:58:46]wFMCommunicate request_size=4 [23:58:46]MH_SAM_APDU [23:58:46]CAPDU: 80 13 01 00 [23:58:46]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [23:58:46]Write i2c OK [23:58:46]MH_I2C_Read... [23:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:46]Read from MH i2c: E2 [23:58:46]MH_I2C_Read... [23:58:46]Read from MH i2c: E2 0E 00 [23:58:46]MH_I2C_Read... [23:58:46]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E0 [23:58:46]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:58:46]wFMCommunicate OK [23:58:46]SAM_PROTO_GetShiftState done [23:58:46]FM_GetShiftState done [23:58:46]req_shift_opened done [23:58:46]requested_item shift.open_date is exist - process it [23:58:46]req_shift_open_date [23:58:46]req_shift_open_date done [23:58:46]produce_requested_data done [23:58:46]produce_requested_data return {"fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:58:46]process_action_free x_report [23:58:46]json_value_free [23:58:46]json_value_free done [23:58:46]process_json_proto returns [23:58:46]Send response to host [23:58:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:58:46]free response buf [23:58:46]execute_script done [23:58:46]execute_script returns [23:58:46]free content buf [23:58:46]Sock 10.Close socket [23:58:46]Sock 10.Thread stoped [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:17]accept exits with 7 [23:59:17]New connection [23:59:17]New thread 3067481444 created [23:59:17]Thread 3067624804 joined [23:59:17]Waiting for new connection... [23:59:17] Sock 7.Parse request [23:59:17]Sock 7.Check first char [23:59:17]Sock 7.First char is OK [23:59:17]request: POST /json_proto HTTP/1.0 [23:59:17]Method: POST [23:59:17]URL: /json_proto [23:59:17]Method is POST - this is cgi request [23:59:17]url: /json_proto [23:59:17]query_string will be loaded in cgi processing [23:59:17]execute_cgi json_proto POST (null) [23:59:17]execute_cgi path=json_proto method=POST [23:59:17]POST find Content-Length [23:59:17]Host: 172.17.45.132:8080 [23:59:17]Content-Length: 215 [23:59:17]Content-Type: application/json [23:59:17] [23:59:17]POST finish read [23:59:17]Found Content-Length = 215 [23:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:17]execute_script... [23:59:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:17]POST & json_proto [23:59:17]process_json_proto [23:59:17]json parsed OK: [23:59:17]protocol is kg_v1.0 [23:59:17]action value=get_value [23:59:17]process_action get_value [23:59:17]cmd_get_value [23:59:17]process_action get_value done [23:59:17]requested_data is exist [23:59:17]produce_requested_data [23:59:17]requested_item kkm.sn is exist - process it [23:59:17]requested_item kkm.ver is exist - process it [23:59:17]requested_item fm.sn is exist - process it [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 11 00 00 [23:59:17]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:17]Read from MH i2c: E2 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 17 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 35 [23:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:59:17]wFMCommunicate OK [23:59:17]requested_item fd.num is exist - process it [23:59:17]SAM_PROTO_GetFieldsCounters [23:59:17]wFMCommunicate request_size=4 [23:59:17]MH_SAM_APDU [23:59:17]CAPDU: 80 13 00 00 [23:59:17]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:18]Read from MH i2c: E2 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 62 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 62 00 6A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [23:59:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4D 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:18]wFMCommunicate OK [23:59:18]SAM_PROTO_GetFieldsCounters done [23:59:18]requested_item shift.num is exist - process it [23:59:18]requested_item shift.opened is exist - process it [23:59:18]req_shift_opened [23:59:18]FM_GetShiftState [23:59:18]SAM_PROTO_GetShiftState [23:59:18]wFMCommunicate request_size=4 [23:59:18]MH_SAM_APDU [23:59:18]CAPDU: 80 13 01 00 [23:59:18]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:18]Read from MH i2c: E2 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 0E 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 E3 [23:59:18]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:59:18]wFMCommunicate OK [23:59:18]SAM_PROTO_GetShiftState done [23:59:18]FM_GetShiftState done [23:59:18]req_shift_opened done [23:59:18]requested_item shift.open_date is exist - process it [23:59:18]req_shift_open_date [23:59:18]req_shift_open_date done [23:59:18]produce_requested_data done [23:59:18]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119} [23:59:18]process_action_free get_value [23:59:18]json_value_free [23:59:18]json_value_free done [23:59:18]process_json_proto returns [23:59:18]Send response to host [23:59:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2381,"shift.num":15,"shift.opened":1,"shift.open_date":1722213119}}} [23:59:18]free response buf [23:59:18]execute_script done [23:59:18]execute_script returns [23:59:18]free content buf [23:59:18]Sock 7.Close socket [23:59:18]Sock 7.Thread stoped [23:59:18]accept exits with 9 [23:59:18]New connection [23:59:18]New thread 3067624804 created [23:59:18]Thread 3067481444 joined [23:59:18]Waiting for new connection... [23:59:18] Sock 9.Parse request [23:59:18]Sock 9.Check first char [23:59:18]Sock 9.First char is OK [23:59:18]request: POST /json_proto HTTP/1.0 [23:59:18]Method: POST [23:59:18]URL: /json_proto [23:59:18]Method is POST - this is cgi request [23:59:18]url: /json_proto [23:59:18]query_string will be loaded in cgi processing [23:59:18]execute_cgi json_proto POST (null) [23:59:18]execute_cgi path=json_proto method=POST [23:59:18]POST find Content-Length [23:59:18]Host: 172.17.45.132:8080 [23:59:18]Content-Length: 331 [23:59:18]Content-Type: application/json [23:59:18] [23:59:18]POST finish read [23:59:18]Found Content-Length = 331 [23:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:18]execute_script... [23:59:18]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:59:18]POST & json_proto [23:59:18]process_json_proto [23:59:18]json parsed OK: [23:59:18]protocol is kg_v1.0 [23:59:18]action value=get_value [23:59:18]process_action get_value [23:59:18]cmd_get_value [23:59:18]process_action get_value done [23:59:18]requested_data is exist [23:59:18]produce_requested_data [23:59:18]requested_item fm.sale.total is exist - process it [23:59:18]SAM_PROTO_GetFMData [23:59:18]wFMCommunicate request_size=4 [23:59:18]MH_SAM_APDU [23:59:18]CAPDU: 80 13 03 00 [23:59:18]Write to MH i2c: E2 08 00 6C 02 80 13 03 00 00 00 00 00 ED [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:18]Read from MH i2c: E2 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 FD 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 FD 00 6C 02 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 04 [23:59:18]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [23:59:18]wFMCommunicate OK [23:59:18]wFMCommunicate request_size=4 [23:59:18]MH_SAM_APDU [23:59:18]CAPDU: 80 17 00 00 [23:59:18]Write to MH i2c: E2 08 00 6D 02 80 17 00 00 00 00 00 00 EF [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:18]Read from MH i2c: E2 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 FD 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: E2 FD 00 6D 02 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [23:59:18]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:18]wFMCommunicate OK [23:59:18]wFMCommunicate request_size=4 [23:59:18]MH_SAM_APDU [23:59:18]CAPDU: 80 17 00 00 [23:59:18]Write to MH i2c: E2 08 00 6E 02 80 17 00 00 00 00 00 00 F0 [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:19]Read from MH i2c: E2 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 FD 00 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 FD 00 6E 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [23:59:19]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:19]wFMCommunicate OK [23:59:19]wFMCommunicate request_size=4 [23:59:19]MH_SAM_APDU [23:59:19]CAPDU: 80 17 00 00 [23:59:19]Write to MH i2c: E2 08 00 6F 02 80 17 00 00 00 00 00 00 F1 [23:59:19]Write i2c OK [23:59:19]MH_I2C_Read... [23:59:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:19]Read from MH i2c: E2 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 FD 00 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 FD 00 6F 02 00 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [23:59:19]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:19]wFMCommunicate OK [23:59:19]wFMCommunicate request_size=4 [23:59:19]MH_SAM_APDU [23:59:19]CAPDU: 80 17 00 00 [23:59:19]Write to MH i2c: E2 08 00 70 02 80 17 00 00 00 00 00 00 F2 [23:59:19]Write i2c OK [23:59:19]MH_I2C_Read... [23:59:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:59:19]Read from MH i2c: E2 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 DD 00 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 DD 00 70 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [23:59:20]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:20]wFMCommunicate OK [23:59:20]SAM_PROTO_GetFMData done [23:59:20]requested_item fm.sale_refund.total is exist - process it [23:59:20]requested_item fm.buy.total is exist - process it [23:59:20]requested_item shift.sale.total is exist - process it [23:59:20]SAM_PROTO_GetShiftData [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 13 02 00 [23:59:20]Write to MH i2c: E2 08 00 71 02 80 13 02 00 00 00 00 00 F1 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 FD 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 FD 00 71 02 00 AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 C5 [23:59:20]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:59:20]wFMCommunicate OK [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 17 00 00 [23:59:20]Write to MH i2c: E2 08 00 72 02 80 17 00 00 00 00 00 00 F4 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]OFD Sender: No OFD packet to send [23:59:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 FD 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 FD 00 72 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0D [23:59:21]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:21]wFMCommunicate OK [23:59:21]wFMCommunicate request_size=4 [23:59:21]MH_SAM_APDU [23:59:21]CAPDU: 80 17 00 00 [23:59:21]Write to MH i2c: E2 08 00 73 02 80 17 00 00 00 00 00 00 F5 [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:21]Read from MH i2c: E2 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 FD 00 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 FD 00 73 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [23:59:21]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:21]wFMCommunicate OK [23:59:21]wFMCommunicate request_size=4 [23:59:21]MH_SAM_APDU [23:59:21]CAPDU: 80 17 00 00 [23:59:21]Write to MH i2c: E2 08 00 74 02 80 17 00 00 00 00 00 00 F6 [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:21]Read from MH i2c: E2 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 FD 00 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 FD 00 74 02 00 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 90 00 74 [23:59:21]RAPDU: 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 90 00 [23:59:21]wFMCommunicate OK [23:59:21]wFMCommunicate request_size=4 [23:59:21]MH_SAM_APDU [23:59:21]CAPDU: 80 17 00 00 [23:59:21]Write to MH i2c: E2 08 00 75 02 80 17 00 00 00 00 00 00 F7 [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:59:22]Read from MH i2c: E2 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 CC 00 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 CC 00 75 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D8 [23:59:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:22]wFMCommunicate OK [23:59:22]SAM_PROTO_GetShiftData done [23:59:22]requested_item shift.sale.total_cash is exist - process it [23:59:22]requested_item shift.sale_refund.total is exist - process it [23:59:22]requested_item shift.sale_refund.total_cash is exist - process it [23:59:22]requested_item shift.buy.total is exist - process it [23:59:22]requested_item shift.buy.total_cash is exist - process it [23:59:22]produce_requested_data done [23:59:22]produce_requested_data return {"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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} [23:59:22]process_action_free get_value [23:59:22]json_value_free [23:59:22]json_value_free done [23:59:22]process_json_proto returns [23:59:22]Send response to host [23:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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}}} [23:59:22]free response buf [23:59:22]execute_script done [23:59:22]execute_script returns [23:59:22]free content buf [23:59:22]Sock 9.Close socket [23:59:22]Sock 9.Thread stoped [23:59:22]accept exits with 7 [23:59:22]New connection [23:59:22]New thread 3067481444 created [23:59:22]Thread 3067624804 joined [23:59:22]Waiting for new connection... [23:59:22] Sock 7.Parse request [23:59:22]Sock 7.Check first char [23:59:22]Sock 7.First char is OK [23:59:22]request: POST /json_proto HTTP/1.0 [23:59:22]Method: POST [23:59:22]URL: /json_proto [23:59:22]Method is POST - this is cgi request [23:59:22]url: /json_proto [23:59:22]query_string will be loaded in cgi processing [23:59:22]execute_cgi json_proto POST (null) [23:59:22]execute_cgi path=json_proto method=POST [23:59:22]POST find Content-Length [23:59:22]Host: 172.17.45.132:8080 [23:59:22]Content-Length: 331 [23:59:22]Content-Type: application/json [23:59:22] [23:59:22]POST finish read [23:59:22]Found Content-Length = 331 [23:59: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:59:22]execute_script... [23:59: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:59:22]POST & json_proto [23:59:22]process_json_proto [23:59:22]json parsed OK: [23:59:22]protocol is kg_v1.0 [23:59:22]action value=get_value [23:59:22]process_action get_value [23:59:22]cmd_get_value [23:59:22]process_action get_value done [23:59:22]requested_data is exist [23:59:22]produce_requested_data [23:59:22]requested_item fm.sale.total is exist - process it [23:59:22]SAM_PROTO_GetFMData [23:59:22]wFMCommunicate request_size=4 [23:59:22]MH_SAM_APDU [23:59:22]CAPDU: 80 13 03 00 [23:59:22]Write to MH i2c: E2 08 00 76 02 80 13 03 00 00 00 00 00 F7 [23:59:22]Write i2c OK [23:59:22]MH_I2C_Read... [23:59:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:22]Read from MH i2c: E2 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 FD 00 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 FD 00 76 02 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 0E [23:59:23]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [23:59:23]wFMCommunicate OK [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 17 00 00 [23:59:23]Write to MH i2c: E2 08 00 77 02 80 17 00 00 00 00 00 00 F9 [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 FD 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 FD 00 77 02 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [23:59:23]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:23]wFMCommunicate OK [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 17 00 00 [23:59:23]Write to MH i2c: E2 08 00 78 02 80 17 00 00 00 00 00 00 FA [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 FD 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 FD 00 78 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9D [23:59:23]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:23]wFMCommunicate OK [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 17 00 00 [23:59:23]Write to MH i2c: E2 08 00 79 02 80 17 00 00 00 00 00 00 FB [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 79 02 00 01 00 04 F7 03 00 00 EF 03 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 90 00 73 [23:59:24]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:24]wFMCommunicate OK [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 17 00 00 [23:59:24]Write to MH i2c: E2 08 00 7A 02 80 17 00 00 00 00 00 00 FC [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 DD 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 DD 00 7A 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [23:59:24]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:24]wFMCommunicate OK [23:59:24]SAM_PROTO_GetFMData done [23:59:24]requested_item fm.sale_refund.total is exist - process it [23:59:24]requested_item fm.buy.total is exist - process it [23:59:24]requested_item shift.sale.total is exist - process it [23:59:24]SAM_PROTO_GetShiftData [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 13 02 00 [23:59:24]Write to MH i2c: E2 08 00 7B 02 80 13 02 00 00 00 00 00 FB [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 7B 02 00 AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 CF [23:59:25]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:59:25]wFMCommunicate OK [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 17 00 00 [23:59:25]Write to MH i2c: E2 08 00 7C 02 80 17 00 00 00 00 00 00 FE [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 7C 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 17 [23:59:25]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:25]wFMCommunicate OK [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 17 00 00 [23:59:25]Write to MH i2c: E2 08 00 7D 02 80 17 00 00 00 00 00 00 FF [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]OFD Sender: No OFD packet to send [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 7D 02 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [23:59:26]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 7E 02 80 17 00 00 00 00 00 00 00 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 7E 02 00 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 90 00 7E [23:59:26]RAPDU: 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 90 00 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 7F 02 80 17 00 00 00 00 00 00 01 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 CC 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 CC 00 7F 02 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 [23:59:27]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:27]wFMCommunicate OK [23:59:27]SAM_PROTO_GetShiftData done [23:59:27]requested_item shift.sale.total_cash is exist - process it [23:59:27]requested_item shift.sale_refund.total is exist - process it [23:59:27]requested_item shift.sale_refund.total_cash is exist - process it [23:59:27]requested_item shift.buy.total is exist - process it [23:59:27]requested_item shift.buy.total_cash is exist - process it [23:59:27]produce_requested_data done [23:59:27]produce_requested_data return {"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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} [23:59:27]process_action_free get_value [23:59:27]json_value_free [23:59:27]json_value_free done [23:59:27]process_json_proto returns [23:59:27]Send response to host [23:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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}}} [23:59:27]free response buf [23:59:27]execute_script done [23:59:27]execute_script returns [23:59:27]free content buf [23:59:27]Sock 7.Close socket [23:59:27]Sock 7.Thread stoped [23:59:27]accept exits with 9 [23:59:27]New connection [23:59:27]New thread 3067624804 created [23:59:27]Thread 3067481444 joined [23:59:27]Waiting for new connection... [23:59:27] Sock 9.Parse request [23:59:27]Sock 9.Check first char [23:59:27]Sock 9.First char is OK [23:59:27]request: POST /json_proto HTTP/1.0 [23:59:27]Method: POST [23:59:27]URL: /json_proto [23:59:27]Method is POST - this is cgi request [23:59:27]url: /json_proto [23:59:27]query_string will be loaded in cgi processing [23:59:27]execute_cgi json_proto POST (null) [23:59:27]execute_cgi path=json_proto method=POST [23:59:27]POST find Content-Length [23:59:27]Host: 172.17.45.132:8080 [23:59:27]Content-Length: 260 [23:59:27]Content-Type: application/json [23:59:27] [23:59:27]POST finish read [23:59:27]Found Content-Length = 260 [23:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:27]execute_script... [23:59:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0441\u0443\u0440\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:27]POST & json_proto [23:59:27]process_json_proto [23:59:27]json parsed OK: [23:59:27]protocol is kg_v1.0 [23:59:27]action value=close_shift [23:59:27]process_action close_shift [23:59:27]cmd_close_shift [23:59:27]MH_GetDate [23:59:27]Write to MH i2c: F0 00 00 80 02 71 [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: F0 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: F0 09 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: F0 09 00 80 02 00 E0 2C A8 66 E3 0B 90 66 78 [23:59:27]GetLastDocTimeStamp 1722297516 [23:59:27]current date 1722297568 [23:59:27]FM_GetShiftState [23:59:27]SAM_PROTO_GetShiftState [23:59:27]wFMCommunicate request_size=4 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 13 01 00 [23:59:27]Write to MH i2c: E2 08 00 81 02 80 13 01 00 00 00 00 00 00 [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 0E 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 0E 00 81 02 00 09 00 01 FF E2 A6 66 00 00 00 00 90 00 F9 [23:59:27]RAPDU: 09 00 01 FF E2 A6 66 00 00 00 00 90 00 [23:59:27]wFMCommunicate OK [23:59:27]SAM_PROTO_GetShiftState done [23:59:27]FM_GetShiftState done [23:59:27]KKMCreateCloseShiftDocument [23:59:27]Load OK [23:59:27]Malloc new data [23:59:27]MH_GetDate [23:59:27]Write to MH i2c: F0 00 00 82 02 73 [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: F0 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: F0 09 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: F0 09 00 82 02 00 E0 2C A8 66 E3 0B 90 66 7A [23:59:27]Malloc new data [23:59:27]Malloc new data [23:59:27]Malloc new data [23:59:27]Malloc new data [23:59:27]KKMCreateCloseShiftDocument OK [23:59:27]KKMSetCloseShiftData OK [23:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=71 [23:59:27]tlvbuf is 008E3F60 [23:59:27]KKMLoadAndSignCloseShiftData [23:59:27]SAM_PROTO_ProcessDocument [23:59:27]wFMCommunicate request_size=9 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 15 01 00 04 05 00 47 00 [23:59:27]Write to MH i2c: E2 0C 00 83 02 80 15 01 00 04 00 05 00 47 00 00 00 58 [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [23:59:27]RAPDU: 90 00 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=23 [23:59:27]MH_SAM_APDU [23:59:27]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:59:27]Write to MH i2c: E2 1A 00 84 02 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 FB [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [23:59:27]RAPDU: 90 00 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=30 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 [23:59:27]Write to MH i2c: E2 21 00 85 02 80 15 02 00 19 00 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 00 00 9C [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [23:59:27]RAPDU: 90 00 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=13 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 15 02 00 08 F4 03 04 00 E0 2C A8 66 [23:59:27]Write to MH i2c: E2 10 00 86 02 80 15 02 00 08 00 F4 03 04 00 E0 2C A8 66 00 00 2D [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [23:59:27]RAPDU: 90 00 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=25 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [23:59:27]Write to MH i2c: E2 1C 00 87 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 77 [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:28]Read from MH i2c: E2 03 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [23:59:28]RAPDU: 90 00 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 15 03 00 [23:59:28]Write to MH i2c: E2 08 00 88 02 80 15 03 00 00 00 00 00 0B [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 88 02 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 09 00 00 0E 04 04 00 0F 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 A6 [23:59:28]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 09 00 00 0E 04 04 00 0F 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [23:59:28]wFMCommunicate OK [23:59:28]SAM_PROTO_ProcessDocument answer len = 1266 [23:59:28]SAM_PROTO_ProcessDocument remain to read = 1018 [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 89 02 80 17 00 00 00 00 00 00 0B [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 89 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [23:59:29]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:29]wFMCommunicate OK [23:59:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:29]SAM_PROTO_ProcessDocument remain to read = 768 [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 17 00 00 [23:59:29]Write to MH i2c: E2 08 00 8A 02 80 17 00 00 00 00 00 00 0C [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 8A 02 00 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 90 00 6E [23:59:29]RAPDU: 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 90 00 [23:59:29]wFMCommunicate OK [23:59:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:29]SAM_PROTO_ProcessDocument remain to read = 518 [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 17 00 00 [23:59:29]Write to MH i2c: E2 08 00 8B 02 80 17 00 00 00 00 00 00 0D [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 8B 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [23:59:30]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:30]wFMCommunicate OK [23:59:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:30]SAM_PROTO_ProcessDocument remain to read = 268 [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 17 00 00 [23:59:30]Write to MH i2c: E2 08 00 8C 02 80 17 00 00 00 00 00 00 0E [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 8C 02 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 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 C5 [23:59:30]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 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 [23:59:30]wFMCommunicate OK [23:59:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:30]SAM_PROTO_ProcessDocument remain to read = 18 [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 17 00 00 [23:59:30]Write to MH i2c: E2 08 00 8D 02 80 17 00 00 00 00 00 00 0F [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 15 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 15 00 8D 02 00 03 01 00 06 F7 03 00 00 35 04 06 00 C9 EC 8E 60 33 DC 90 00 0A [23:59:31]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 C9 EC 8E 60 33 DC 90 00 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [23:59:31]SAM_PROTO_ProcessDocument done [23:59:31]1209 (1) - 1.0 - номер версии ФФД [23:59:31]1041 (16) - 0000000002094248 - номер ФМ [23:59:31]1040 (4) - 2382 - номер ФД [23:59:31]1038 (4) - 15 - номер смены [23:59:31]1118 (4) - 230 - количество кассовых чеков за смену [23:59:31]1111 (4) - 232 - общее количество ФД за смену [23:59:31]1194 (1195) - счетчики итогов смены [23:59:31] 1134 (4) - 230 - количество чеков со всеми признаками расчетов [23:59:31] 1129 (156) - счетчики операций «приход» [23:59:31] 1135 (4) - 230 - количество чеков по признаку расчетов [23:59:31] 1201 (3) - 117912.08 - общая итоговая сумма в чеках [23:59:31] 1136 (3) - 77517.00 - итоговая сумма в чеках наличными [23:59:31] 1138 (3) - 40395.08 - итоговая сумма в чеках безналичными [23:59:31] 1024 (123) - суммы налогов [23:59:31] 1006 (9) - суммы НДС [23:59:31] 1010 (1) - 0% - код ставки НДС [23:59:31] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:31] 1006 (12) - суммы НДС [23:59:31] 1010 (1) - 12% - код ставки НДС [23:59:31] 1011 (3) - 12523.10 - сумма НДС по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (12) - суммы НСП [23:59:31] 1014 (1) - 1% - код ставки НСП [23:59:31] 1015 (3) - 1043.36 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 2% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 3% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 5% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 1,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1130 (141) - счетчики операций «возврат прихода» [23:59:31] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:31] 1024 (117) - суммы налогов [23:59:31] OFD Sender: No OFD packet to send [23:59:31] 1006 (9) - суммы НДС [23:59:31] 1010 (1) - 0% - код ставки НДС [23:59:31] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:31] 1006 (9) - суммы НДС [23:59:31] 1010 (1) - 12% - код ставки НДС [23:59:31] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 1% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 2% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 3% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 5% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 1,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1131 (141) - счетчики операций «расход» [23:59:31] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:31] 1024 (117) - суммы налогов [23:59:31] 1006 (9) - суммы НДС [23:59:31] 1010 (1) - 0% - код ставки НДС [23:59:31] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:31] 1006 (9) - суммы НДС [23:59:31] 1010 (1) - 12% - код ставки НДС [23:59:31] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 1% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 2% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 3% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 5% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 1,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1132 (141) - счетчики операций «возврат расхода» [23:59:31] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:31] 1024 (117) - суммы налогов [23:59:31] 1006 (9) - суммы НДС [23:59:31] 1010 (1) - 0% - код ставки НДС [23:59:31] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:31] 1006 (9) - суммы НДС [23:59:31] 1010 (1) - 12% - код ставки НДС [23:59:31] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 1% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 2% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 3% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 5% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 0,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1007 (9) - суммы НСП [23:59:31] 1014 (1) - 1,50% - код ставки НСП [23:59:31] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:31] 1133 (588) - - счетчики коррекции - не используются [23:59:31]1077 (6) - 222017838134236 - ФПД [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1209 (04B9) [23:59:31]Malloc new data [23:59:31]Processing tag 1041 (0411) [23:59:31]Processing tag 1040 (0410) [23:59:31]Malloc new data [23:59:31]Processing tag 1038 (040E) [23:59:31]Malloc new data [23:59:31]Processing tag 1118 (045E) [23:59:31]Malloc new data [23:59:31]Processing tag 1111 (0457) [23:59:31]Malloc new data [23:59:31]Processing tag 1194 (04AA) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1134 (046E) [23:59:31]Malloc new data [23:59:31]Processing tag 1129 (0469) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1135 (046F) [23:59:31]Malloc new data [23:59:31]Processing tag 1201 (04B1) [23:59:31]Malloc new data [23:59:31]Processing tag 1136 (0470) [23:59:31]Malloc new data [23:59:31]Processing tag 1138 (0472) [23:59:31]Malloc new data [23:59:31]Processing tag 1024 (0400) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1006 (03EE) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1010 (03F2) [23:59:31]Malloc new data [23:59:31]Processing tag 1011 (03F3) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1006 (03EE) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1010 (03F2) [23:59:31]Malloc new data [23:59:31]Processing tag 1011 (03F3) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]SetTLVBufToDocument err=0 [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1130 (046A) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1135 (046F) [23:59:31]Malloc new data [23:59:31]Processing tag 1201 (04B1) [23:59:31]Malloc new data [23:59:31]Processing tag 1136 (0470) [23:59:31]Malloc new data [23:59:31]Processing tag 1138 (0472) [23:59:31]Malloc new data [23:59:31]Processing tag 1024 (0400) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1006 (03EE) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1010 (03F2) [23:59:31]Malloc new data [23:59:31]Processing tag 1011 (03F3) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1006 (03EE) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1010 (03F2) [23:59:31]Malloc new data [23:59:31]Processing tag 1011 (03F3) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]SetTLVBufToDocument err=0 [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1131 (046B) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1135 (046F) [23:59:31]Malloc new data [23:59:31]Processing tag 1201 (04B1) [23:59:31]Malloc new data [23:59:31]Processing tag 1136 (0470) [23:59:31]Malloc new data [23:59:31]Processing tag 1138 (0472) [23:59:31]Malloc new data [23:59:31]Processing tag 1024 (0400) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1006 (03EE) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1010 (03F2) [23:59:31]Malloc new data [23:59:31]Processing tag 1011 (03F3) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1006 (03EE) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1010 (03F2) [23:59:31]Malloc new data [23:59:31]Processing tag 1011 (03F3) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:31]Malloc new data [23:59:31]Processing tag 1015 (03F7) [23:59:31]Malloc new data [23:59:31]SetTLVBufToDocument err=0 [23:59:31]Processing tag 1007 (03EF) [23:59:31]Load OK [23:59:31]SetTLVBufToDocument [23:59:31]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]SetTLVBufToDocument err=0 [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1132 (046C) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1135 (046F) [23:59:32]Malloc new data [23:59:32]Processing tag 1201 (04B1) [23:59:32]Malloc new data [23:59:32]Processing tag 1136 (0470) [23:59:32]Malloc new data [23:59:32]Processing tag 1138 (0472) [23:59:32]Malloc new data [23:59:32]Processing tag 1024 (0400) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1006 (03EE) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1010 (03F2) [23:59:32]Malloc new data [23:59:32]Processing tag 1011 (03F3) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1006 (03EE) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1010 (03F2) [23:59:32]Malloc new data [23:59:32]Processing tag 1011 (03F3) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1007 (03EF) [23:59:32]Load OK [23:59:32]SetTLVBufToDocument [23:59:32]Processing tag 1014 (03F6) [23:59:32]Malloc new data [23:59:32]Processing tag 1015 (03F7) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]SetTLVBufToDocument err=0 [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1133 (046D) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Processing tag 1077 (0435) [23:59:32]Malloc new data [23:59:32]SetTLVBufToDocument err=0 [23:59:32]Malloc new data [23:59:32]SAM_PROTO_GetFMData [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 13 03 00 [23:59:32]Write to MH i2c: E2 08 00 8E 02 80 13 03 00 00 00 00 00 0F [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 8E 02 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 26 [23:59:32]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 8F 02 80 17 00 00 00 00 00 00 11 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 8F 02 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [23:59:33]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 90 02 80 17 00 00 00 00 00 00 12 [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 90 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [23:59:33]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:34]wFMCommunicate OK [23:59:34]wFMCommunicate request_size=4 [23:59:34]MH_SAM_APDU [23:59:34]CAPDU: 80 17 00 00 [23:59:34]Write to MH i2c: E2 08 00 91 02 80 17 00 00 00 00 00 00 13 [23:59:34]Write i2c OK [23:59:34]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 FD 00 91 02 00 01 00 04 F7 03 00 00 EF 03 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 90 00 8B [23:59:34]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:34]wFMCommunicate OK [23:59:34]wFMCommunicate request_size=4 [23:59:34]MH_SAM_APDU [23:59:34]CAPDU: 80 17 00 00 [23:59:34]Write to MH i2c: E2 08 00 92 02 80 17 00 00 00 00 00 00 14 [23:59:34]Write i2c OK [23:59:34]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 DD 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 DD 00 92 02 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [23:59:35]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:35]wFMCommunicate OK [23:59:35]SAM_PROTO_GetFMData done [23:59:35]Malloc new data [23:59:35]Malloc new data [23:59:35]Malloc new data [23:59:35]Malloc new data [23:59:35]KKMLoadAndSignCloseShiftData err=0 [23:59:35]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мансуров А. 29.07.2024 23:59 Смена: 15 РНМ: 0000000000189667 ЗНМ: 0300000161 СНО: Общий режим Чеков за смену: 230 ФД за смену: 232 Всего чеков: 230 ИТОГИ ПРИХОД Чеков: 230 Общий итог: 117912.08 Итого наличными: 77517.00 Итого безнал.: 40395.08 НДС 0% : 0.00 НДС 12% : 12523.10 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1043.36 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 77517.00 НС Приход: 1016398.02 НС Возвр.Прихода: 12447.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 2382 ФМ: 0000000002094248 ФПД: 222017838134236 [23:59:35]StoreToDocumentArchive [23:59:35]shift 15 fd 2382 [23:59:35]save to /storage/0015/doc_00002382 [23:59:35]save last doc name /storage/0015/doc_00002382 to /storage/kkm_last_doc_name [23:59:35]save OK [23:59:35]Clear old archive folders... [23:59:35]Remove dir /storage/0010 [23:59:35]opendir ok [23:59:35]file . [23:59:35]file .. [23:59:35]file doc_1722297524 [23:59:35]remove file /storage/0010/doc_1722297524 [23:59:35]remove dir /storage/0010 [23:59:35]NVStorageSaveData kkm_registers [23:59:35]File name is /storage/kkm_registers [23:59:35]Write 24 bytes [23:59:35]NVStorageSaveData done [23:59:35]NVStorageSaveData kkm_registers [23:59:35]File name is /storage/kkm_registers [23:59:35]Write 24 bytes [23:59:35]NVStorageSaveData done [23:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=1380 [23:59:35]tlvbuf is 009212F0 [23:59:35]SAM_PROTO_ClearQueue [23:59:35]wFMCommunicate request_size=4 [23:59:35]MH_SAM_APDU [23:59:35]CAPDU: 80 09 00 00 [23:59:35]Write to MH i2c: E2 08 00 93 02 80 09 00 00 00 00 00 00 07 [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:35]Read from MH i2c: E2 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 03 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [23:59:35]RAPDU: 90 00 [23:59:35]wFMCommunicate OK [23:59:35]SAM_PROTO_ClearQueue done [23:59:35]KKMCreateOFDPacket [23:59:35]OFDProtocolAddRootSTLVToBuf [23:59:35]FM_MakeSignedData [23:59:35]FM_MakeSignedData [23:59:35]SAM_PROTO_SignData [23:59:35]wFMCommunicate request_size=4 [23:59:35]MH_SAM_APDU [23:59:35]CAPDU: 80 0D 01 02 [23:59:35]Write to MH i2c: E2 08 00 94 02 80 0D 01 02 00 00 00 00 0F [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:35]Read from MH i2c: E2 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 03 00 [23:59:35]MH_I2C_Read... [23:59:35]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [23:59:35]RAPDU: 90 00 [23:59:35]wFMCommunicate OK [23:59:35]wFMCommunicate request_size=255 [23:59:35]MH_SAM_APDU [23:59:35]CAPDU: 80 0D 02 02 FA 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 E0 2C A8 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 AA 04 D6 04 6E 04 04 00 E6 00 00 00 69 04 A3 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D6 1B 13 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 [23:59:35]Write to MH i2c: E2 02 01 95 02 80 0D 02 02 FA 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 E0 2C A8 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 AA 04 D6 04 6E 04 04 00 E6 00 00 00 69 04 A3 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D6 1B 13 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 00 00 A4 [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [23:59:36]RAPDU: 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=255 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 90 97 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 OFD Sender: No OFD packet to send [23:59:36]00 EF [23:59:36]Write to MH i2c: E2 02 01 96 02 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 90 97 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 00 00 9B [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [23:59:36]RAPDU: 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=255 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 0D 02 02 FA 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 [23:59:37]Write to MH i2c: E2 02 01 97 02 80 0D 02 02 FA 00 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 00 00 E2 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 03 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [23:59:37]RAPDU: 90 00 [23:59:37]wFMCommunicate OK [23:59:37]wFMCommunicate request_size=255 [23:59:37]MH_SAM_APDU [23:59:37]CAPDU: 80 0D 02 02 FA 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 [23:59:37]Write to MH i2c: E2 02 01 98 02 80 0D 02 02 FA 00 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 00 00 E3 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 98 02 00 90 00 0E [23:59:38]RAPDU: 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=255 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 [23:59:38]Write to MH i2c: E2 02 01 99 02 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 00 00 9E [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 03 00 99 02 00 90 00 0F [23:59:38]RAPDU: 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=139 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 0D 02 02 86 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 C9 EC 8E 60 33 DC [23:59:39]Write to MH i2c: E2 8E 00 9A 02 80 0D 02 02 86 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 C9 EC 8E 60 33 DC 00 00 59 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:39]Read from MH i2c: E2 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 03 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [23:59:39]RAPDU: 90 00 [23:59:39]wFMCommunicate OK [23:59:39]wFMCommunicate request_size=4 [23:59:39]MH_SAM_APDU [23:59:39]CAPDU: 80 0D 03 02 [23:59:39]Write to MH i2c: E2 08 00 9B 02 80 0D 03 02 00 00 00 00 18 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:39]Read from MH i2c: E2 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 0B 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 0B 00 9B 02 00 5A C9 AA 29 78 91 19 7C 90 00 AD [23:59:39]RAPDU: 5A C9 AA 29 78 91 19 7C 90 00 [23:59:39]wFMCommunicate OK [23:59:39]SAM_PROTO_SignData done [23:59:39]FM_MakeSignedData done [23:59:39]CreateOFDProtocolMessage [23:59:39]wFMCommunicate request_size=4 [23:59:39]MH_SAM_APDU [23:59:39]CAPDU: 80 11 00 00 [23:59:39]Write to MH i2c: E2 08 00 9C 02 80 11 00 00 00 00 00 00 18 [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 [23:59:39]MH_I2C_Read... [23:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:39]Read from MH i2c: E2 17 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: E2 17 00 9C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 68 [23:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [23:59:39]wFMCommunicate OK [23:59:39]CreateOFDProtocolMessage done [23:59:39]OFDSenderStorePacket 2382 [23:59:39]StoreOFDPacket docnum=2382 [23:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 78 05 00 00 C8 6D 70 05 9E B8 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 E0 2C A8 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 AA 04 D6 04 6E 04 04 00 E6 00 00 00 69 04 A3 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D6 1B 13 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 90 97 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 4E 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 C9 EC 8E 60 33 DC 5A C9 AA 29 78 91 19 7C [23:59:39]CheckFolder [23:59:39]dirname=/storage/ofd_packets [23:59:39]CheckFolder done [23:59:39]ProducePacketName [23:59:39]name=ofd_packets/00002382 [23:59:39]NVStorageSaveData ofd_packets/00002382 [23:59:39]File name is /storage/ofd_packets/00002382 [23:59:39]Write 1430 bytes [23:59:39]NVStorageSaveData done [23:59:39]OFDSenderStorePacket done [23:59:39]KKMCreateOFDPacket done [23:59:39]NVStorageSaveData kkm_last_timestamp [23:59:39]File name is /storage/kkm_last_timestamp [23:59:39]Write 4 bytes [23:59:39]NVStorageSaveData done [23:59:39]ExternCall_PrintAddStr [23:59:39]wPrintStart [23:59:39]Write to MH i2c: 01 00 00 9D 02 9F [23:59:39]Write i2c OK [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 [23:59:39]MH_I2C_Read... [23:59:39]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 FF 0F B4 [23:59:39]RasterBufferAndPrint [23:59:39]line Отчет о закрытии смены [23:59:39]line ФФД: 1.0 [23:59:39]line ИНН: 02508201610067 [23:59:39]line Кассир: Мансуров А. [23:59:39]line 29.07.2024 23:59 [23:59:39]line Смена: 15 [23:59:39]line РНМ: 0000000000189667 [23:59:39]line ЗНМ: 0300000161 [23:59:39]line СНО: Общий режим [23:59:39]line Чеков за смену: 230 [23:59:39]line ФД за смену: 232 [23:59:39]line Всего чеков: 230 [23:59:39]line ИТОГИ ПРИХОД [23:59:39]line Чеков: 230 [23:59:39]line Общий итог: 117912.08 [23:59:39]line Итого наличными: 77517.00 [23:59:39]line Итого безнал.: 40395.08 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 12523.10 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:39]line НСП 3% : 0.00 [23:59:39]line НСП 2% : 0.00 [23:59:39]line НСП 1% : 1043.36 [23:59:39]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:59:39]line Чеков: 0 [23:59:39]line Общий итог: 0.00 [23:59:39]line Итого наличными: 0.00 [23:59:39]line Итого безнал.: 0.00 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 0.00 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:39]line НСП 3% : 0.00 [23:59:39]line НСП 2% : 0.00 [23:59:39]line НСП 1% : 0.00 [23:59:39]line ИТОГИ РАСХОД [23:59:39]line Чеков: 0 [23:59:39]line Общий итог: 0.00 [23:59:39]line Итого наличными: 0.00 [23:59:39]line Итого безнал.: 0.00 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 0.00 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:39]line НСП 3% : 0.00 [23:59:39]line НСП 2% : 0.00 [23:59:39]line НСП 1% : 0.00 [23:59:39]line ИТОГИ ВОЗВРАТ РАСХОДА [23:59:39]line Чеков: 0 [23:59:39]line Общий итог: 0.00 [23:59:39]line Итого наличными: 0.00 [23:59:39]line Итого безнал.: 0.00 [23:59:39]line НДС 0% : 0.00 [23:59:39]line НДС 12% : 0.00 [23:59:39]line НСП 0% : 0.00 [23:59:39]line НСП 1,50% : 0.00 [23:59:39]line НСП 0,50% : 0.00 [23:59:39]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 0.00 [23:59:40]line Сумма внесений: 0.00 [23:59:40]line Сумма выплат: 0.00 [23:59:40]line Нал. в кассе: 77517.00 [23:59:40]line НС Приход: 1016398.02 [23:59:40]line НС Возвр.Прихода: 12447.00 [23:59:40]line НС Расход: 0.00 [23:59:40]line НС Возвр.Расхода: 0.00 [23:59:40]line ФД: 2382 [23:59:40]line ФМ: 0000000002094248 [23:59:40]line ФПД: 222017838134236 [23:59:40]OFD Sender: Processing packet 2382 [packets to send 1, broken 0] [23:59:40]ProducePacketName [23:59:40]name=ofd_packets/00002382 [23:59:40]OFD Sender: To server: pG, [23:59:40]CommunicateWithHost lk.salyk.kg:30040 [23:59:40]ConnectInit lk.salyk.kg [23:59:40]written 0, free lines is 4095 [23:59:40]Connected sock=10 [23:59:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 78 05 00 00 C8 6D 70 05 9E B8 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D0 BD D1 81 D1 83 D1 80 D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 E0 2C A8 66 0E 04 04 00 0F 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 AA 04 D6 04 6E 04 04 00 E6 00 00 00 69 04 A3 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D6 1B 13 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 90 97 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 Write to MH i2c: 00 01 00 00 EF 00 03 ED 0A 02 00 EF [23:59:41]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 Write i2c OK [23:59:41]03 MH_I2C_Read... [23:59:41]01 Read from MH i2c: 00 01 00 [23:59:41]EF MH_I2C_Read... [23:59:41]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 Read from MH i2c: 00 01 79 07 04 00 8D [23:59:41]00 MH_I2C_Read... [23:59:41]6F 04 04 00 00 00 00 00 B1 04 00 00 70 Read from MH i2c: 04 01 00 07 00 00 72 ED 04 02 00 00 00 00 00 00 04 00 75 00 00 04 EE 0C 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 06 00 [23:59:41]F2 RasterBufferAndPrint [23:59:41]03 line [23:59:41]01 line [23:59:41]00 line [23:59:41]01 line [23:59:41]F3 line [23:59:41]03 00 00 EF 03 09 00 F6 03 01 00 written 0, free lines is 3393 [23:59:41]00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 MH_Cut [23:59:41]00 Write to MH i2c: 00 D1 EF 01 03 00 09 F4 00 02 F6 01 03 C8 01 [23:59:41]00 02 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [23:59:41]00 MH_I2C_Read... [23:59:41]03 Read from MH i2c: F7 D1 03 [23:59:41]00 MH_I2C_Read... [23:59:41]00 EF 03 Read from MH i2c: 09 D1 00 01 F6 00 03 [23:59:41]01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 MH_I2C_Read... [23:59:41]00 Read from MH i2c: 05 D1 F7 01 03 00 00 F4 00 02 EF 00 03 C7 09 [23:59:41]00 Write to MH i2c: F6 01 03 00 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 00 04 F5 00 02 00 F7 00 [23:59:41]00 00 B1 04 00 00 70 04 00 Write i2c OK [23:59:41]00 MH_I2C_Read... [23:59:41]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 C9 EC 8E 60 33 DC 5A C9 AA 29 78 91 19 7C [23:59:41]*** Cut start [23:59:41]*** Partial cut [23:59:41]*** CUTSNS_PIN = 1 [23:59:41]*** CUTSNS_PIN = 0 [23:59:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8B 13 47 00 19 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4E 09 00 00 F4 03 04 00 57 D8 A7 66 B6 04 01 00 00 73 A7 CF 07 FD 51 2A 25 [23:59:42]CommunicateWithHost err = 0 [23:59:42]CheckOFDResponse [23:59:42]1017 (14) - 77093643461234 [23:59:42]1041 (16) - 0000000002094248 [23:59:42]1040 (4) - 2382 [23:59:42]1012 (4) - 29.07.2024 17:58 [23:59:42]1206 (1) - 0 [23:59:42]OFD Sender: Remove packet 2382 [23:59:42]ProducePacketName [23:59:42]name=ofd_packets/00002382 [23:59:42]NVStorageDeleteData [23:59:42]*** Brake cut motor [23:59:42]Read from MH i2c: 01 [23:59:42]MH_I2C_Read... [23:59:42]*** Stop cut motor [23:59:42]*** Cut end [23:59:42]Read from MH i2c: 01 07 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 FF 0F 0C [23:59:42]process_action close_shift done [23:59:42]requested_data is exist [23:59:42]produce_requested_data [23:59:42]requested_item fd.num is exist - process it [23:59:42]SAM_PROTO_GetFieldsCounters [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 13 00 00 [23:59:42]Write to MH i2c: E2 08 00 F6 02 80 13 00 00 00 00 00 00 74 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]OFD Sender: No OFD packet to send [23:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 62 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 62 00 F6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [23:59:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:42]wFMCommunicate OK [23:59:42]SAM_PROTO_GetFieldsCounters done [23:59:42]requested_item shift.num is exist - process it [23:59:42]requested_item shift.opened is exist - process it [23:59:42]req_shift_opened [23:59:42]FM_GetShiftState [23:59:42]SAM_PROTO_GetShiftState [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 13 01 00 [23:59:42]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 0E 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 0E 00 F7 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 81 [23:59:42]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:59:42]wFMCommunicate OK [23:59:42]SAM_PROTO_GetShiftState done [23:59:42]FM_GetShiftState done [23:59:42]req_shift_opened done [23:59:42]requested_item shift.open_date is exist - process it [23:59:42]req_shift_open_date [23:59:42]FM_GetShiftState [23:59:42]SAM_PROTO_GetShiftState [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 13 01 00 [23:59:42]Write to MH i2c: E2 08 00 F8 02 80 13 01 00 00 00 00 00 77 [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:43]Read from MH i2c: E2 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 0E 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 0E 00 F8 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 82 [23:59:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:59:43]wFMCommunicate OK [23:59:43]SAM_PROTO_GetShiftState done [23:59:43]FM_GetShiftState done [23:59:43]req_shift_open_date done [23:59:43]produce_requested_data done [23:59:43]produce_requested_data return {"fd.num":2382,"shift.num":15,"shift.opened":0,"shift.open_date":0} [23:59:43]process_action_free close_shift [23:59:43]json_value_free [23:59:43]json_value_free done [23:59:43]process_json_proto returns [23:59:43]Send response to host [23:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2382,"shift.num":15,"shift.opened":0,"shift.open_date":0}}} [23:59:43]free response buf [23:59:43]execute_script done [23:59:43]execute_script returns [23:59:43]free content buf [23:59:43]Sock 9.Close socket [23:59:43]Sock 9.Thread stoped [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:06]accept exits with 7 [00:11:06]New connection [00:11:06]New thread 3067481444 created [00:11:06]Thread 3067624804 joined [00:11:06]Waiting for new connection... [00:11:06] Sock 7.Parse request [00:11:06]Sock 7.Check first char [00:11:06]Sock 7.First char is OK [00:11:06]request: POST /json_proto HTTP/1.0 [00:11:06]Method: POST [00:11:06]URL: /json_proto [00:11:06]Method is POST - this is cgi request [00:11:06]url: /json_proto [00:11:06]query_string will be loaded in cgi processing [00:11:06]execute_cgi json_proto POST (null) [00:11:06]execute_cgi path=json_proto method=POST [00:11:06]POST find Content-Length [00:11:06]Host: 172.17.45.132:8080 [00:11:06]Content-Length: 215 [00:11:06]Content-Type: application/json [00:11:06] [00:11:06]POST finish read [00:11:06]Found Content-Length = 215 [00:11:06]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:11:06]execute_script... [00:11:06]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:11:06]POST & json_proto [00:11:06]process_json_proto [00:11:06]json parsed OK: [00:11:06]protocol is kg_v1.0 [00:11:06]action value=get_value [00:11:06]process_action get_value [00:11:06]cmd_get_value [00:11:06]process_action get_value done [00:11:06]requested_data is exist [00:11:06]produce_requested_data [00:11:06]requested_item kkm.sn is exist - process it [00:11:06]requested_item kkm.ver is exist - process it [00:11:06]requested_item fm.sn is exist - process it [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 11 00 00 [00:11:06]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 17 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C5 [00:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:11:06]wFMCommunicate OK [00:11:06]requested_item fd.num is exist - process it [00:11:06]SAM_PROTO_GetFieldsCounters [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 13 00 00 [00:11:06]Write to MH i2c: E2 08 00 FA 02 80 13 00 00 00 00 00 00 78 [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 62 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 62 00 FA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [00:11:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4E 09 00 00 0E 04 04 00 0F 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:06]wFMCommunicate OK [00:11:06]SAM_PROTO_GetFieldsCounters done [00:11:06]requested_item shift.num is exist - process it [00:11:06]requested_item shift.opened is exist - process it [00:11:06]req_shift_opened [00:11:06]FM_GetShiftState [00:11:06]SAM_PROTO_GetShiftState [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 13 01 00 [00:11:06]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 0E 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 0E 00 FB 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 85 [00:11:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:06]wFMCommunicate OK [00:11:06]SAM_PROTO_GetShiftState done [00:11:06]FM_GetShiftState done [00:11:06]req_shift_opened done [00:11:06]requested_item shift.open_date is exist - process it [00:11:06]req_shift_open_date [00:11:06]FM_GetShiftState [00:11:06]SAM_PROTO_GetShiftState [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 13 01 00 [00:11:06]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:06]Read from MH i2c: E2 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 0E 00 [00:11:06]MH_I2C_Read... [00:11:06]Read from MH i2c: E2 0E 00 FC 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 86 [00:11:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:06]wFMCommunicate OK [00:11:06]SAM_PROTO_GetShiftState done [00:11:06]FM_GetShiftState done [00:11:06]req_shift_open_date done [00:11:06]produce_requested_data done [00:11:06]produce_requested_data return {"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2382,"shift.num":15,"shift.opened":0,"shift.open_date":0} [00:11:06]process_action_free get_value [00:11:06]json_value_free [00:11:06]json_value_free done [00:11:06]process_json_proto returns [00:11:06]Send response to host [00:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000161","kkm.ver":"v1.0","fm.sn":"0000000002094248","fd.num":2382,"shift.num":15,"shift.opened":0,"shift.open_date":0}}} [00:11:06]free response buf [00:11:06]execute_script done [00:11:06]execute_script returns [00:11:06]free content buf [00:11:06]Sock 7.Close socket [00:11:06]Sock 7.Thread stoped [00:11:06]accept exits with 9 [00:11:06]New connection [00:11:06]New thread 3067624804 created [00:11:06]Thread 3067481444 joined [00:11:06]Waiting for new connection... [00:11:06] Sock 9.Parse request [00:11:06]Sock 9.Check first char [00:11:06]Sock 9.First char is OK [00:11:06]request: POST /json_proto HTTP/1.0 [00:11:06]Method: POST [00:11:06]URL: /json_proto [00:11:06]Method is POST - this is cgi request [00:11:06]url: /json_proto [00:11:06]query_string will be loaded in cgi processing [00:11:06]execute_cgi json_proto POST (null) [00:11:06]execute_cgi path=json_proto method=POST [00:11:06]POST find Content-Length [00:11:06]Host: 172.17.45.132:8080 [00:11:06]Content-Length: 331 [00:11:06]Content-Type: application/json [00:11:06] [00:11:06]POST finish read [00:11:06]Found Content-Length = 331 [00:11:06]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:11:06]execute_script... [00:11:06]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:11:06]POST & json_proto [00:11:06]process_json_proto [00:11:06]json parsed OK: [00:11:06]protocol is kg_v1.0 [00:11:06]action value=get_value [00:11:06]process_action get_value [00:11:06]cmd_get_value [00:11:06]process_action get_value done [00:11:06]requested_data is exist [00:11:06]produce_requested_data [00:11:06]requested_item fm.sale.total is exist - process it [00:11:06]SAM_PROTO_GetFMData [00:11:06]wFMCommunicate request_size=4 [00:11:06]MH_SAM_APDU [00:11:06]CAPDU: 80 13 03 00 [00:11:06]Write to MH i2c: E2 08 00 FD 02 80 13 03 00 00 00 00 00 7E [00:11:06]Write i2c OK [00:11:06]MH_I2C_Read... [00:11:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:07]Read from MH i2c: E2 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 FD 02 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 95 [00:11:07]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:11:07]wFMCommunicate OK [00:11:07]wFMCommunicate request_size=4 [00:11:07]MH_SAM_APDU [00:11:07]CAPDU: 80 17 00 00 [00:11:07]Write to MH i2c: E2 08 00 FE 02 80 17 00 00 00 00 00 00 80 [00:11:07]Write i2c OK [00:11:07]MH_I2C_Read... [00:11:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:07]Read from MH i2c: E2 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 FE 02 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [00:11:07]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:07]wFMCommunicate OK [00:11:07]wFMCommunicate request_size=4 [00:11:07]MH_SAM_APDU [00:11:07]CAPDU: 80 17 00 00 [00:11:07]Write to MH i2c: E2 08 00 FF 02 80 17 00 00 00 00 00 00 81 [00:11:07]Write i2c OK [00:11:07]MH_I2C_Read... [00:11:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:07]Read from MH i2c: E2 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 FF 02 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [00:11:07]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:07]wFMCommunicate OK [00:11:07]wFMCommunicate request_size=4 [00:11:07]MH_SAM_APDU [00:11:07]CAPDU: 80 17 00 00 [00:11:07]Write to MH i2c: E2 08 00 00 03 80 17 00 00 00 00 00 00 83 [00:11:07]Write i2c OK [00:11:07]MH_I2C_Read... [00:11:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:07]Read from MH i2c: E2 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 [00:11:07]MH_I2C_Read... [00:11:07]Read from MH i2c: E2 FD 00 00 03 00 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [00:11:07]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:07]wFMCommunicate OK [00:11:07]wFMCommunicate request_size=4 [00:11:07]MH_SAM_APDU [00:11:07]CAPDU: 80 17 00 00 [00:11:07]Write to MH i2c: E2 08 00 01 03 80 17 00 00 00 00 00 00 84 [00:11:07]Write i2c OK [00:11:07]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 DD 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 DD 00 01 03 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6C [00:11:08]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:08]wFMCommunicate OK [00:11:08]SAM_PROTO_GetFMData done [00:11:08]requested_item fm.sale_refund.total is exist - process it [00:11:08]requested_item fm.buy.total is exist - process it [00:11:08]requested_item shift.sale.total is exist - process it [00:11:08]SAM_PROTO_GetShiftData [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 13 02 00 [00:11:08]Write to MH i2c: E2 08 00 02 03 80 13 02 00 00 00 00 00 83 [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]OFD Sender: No OFD packet to send [00:11:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 FD 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 FD 00 02 03 00 AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 57 [00:11:08]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E6 00 00 00 69 04 9C 00 6F 04 04 00 E6 00 00 00 B1 04 03 00 68 EB B3 70 04 03 00 14 48 76 72 04 03 00 54 A3 3D 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 D6 1B 13 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 90 97 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:11:08]wFMCommunicate OK [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 17 00 00 [00:11:08]Write to MH i2c: E2 08 00 03 03 80 17 00 00 00 00 00 00 86 [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 FD 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 FD 00 03 03 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 9F [00:11:08]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:08]wFMCommunicate OK [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 17 00 00 [00:11:08]Write to MH i2c: E2 08 00 04 03 80 17 00 00 00 00 00 00 87 [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:09]Read from MH i2c: E2 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 FD 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 FD 00 04 03 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:11:09]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:09]wFMCommunicate OK [00:11:09]wFMCommunicate request_size=4 [00:11:09]MH_SAM_APDU [00:11:09]CAPDU: 80 17 00 00 [00:11:09]Write to MH i2c: E2 08 00 05 03 80 17 00 00 00 00 00 00 88 [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:09]Read from MH i2c: E2 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 FD 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 FD 00 05 03 00 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 90 00 06 [00:11:09]RAPDU: 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 90 00 [00:11:09]wFMCommunicate OK [00:11:09]wFMCommunicate request_size=4 [00:11:09]MH_SAM_APDU [00:11:09]CAPDU: 80 17 00 00 [00:11:09]Write to MH i2c: E2 08 00 06 03 80 17 00 00 00 00 00 00 89 [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:11:09]Read from MH i2c: E2 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 CC 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 CC 00 06 03 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6A [00:11:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:09]wFMCommunicate OK [00:11:09]SAM_PROTO_GetShiftData done [00:11:09]requested_item shift.sale.total_cash is exist - process it [00:11:09]requested_item shift.sale_refund.total is exist - process it [00:11:09]requested_item shift.sale_refund.total_cash is exist - process it [00:11:09]requested_item shift.buy.total is exist - process it [00:11:09]requested_item shift.buy.total_cash is exist - process it [00:11:09]produce_requested_data done [00:11:09]produce_requested_data return {"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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:11:09]process_action_free get_value [00:11:09]json_value_free [00:11:09]json_value_free done [00:11:09]process_json_proto returns [00:11:09]Send response to host [00:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":117912.08,"shift.sale.total_cash":77517.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:11:09]free response buf [00:11:09]execute_script done [00:11:09]execute_script returns [00:11:09]free content buf [00:11:09]Sock 9.Close socket [00:11:09]Sock 9.Thread stoped [00:11:09]accept exits with 7 [00:11:09]New connection [00:11:09]New thread 3067481444 created [00:11:09]Thread 3067624804 joined [00:11:09]Waiting for new connection... [00:11:09] Sock 7.Parse request [00:11:09]Sock 7.Check first char [00:11:09]Sock 7.First char is OK [00:11:09]request: POST /json_proto HTTP/1.0 [00:11:09]Method: POST [00:11:09]URL: /json_proto [00:11:09]Method is POST - this is cgi request [00:11:09]url: /json_proto [00:11:09]query_string will be loaded in cgi processing [00:11:09]execute_cgi json_proto POST (null) [00:11:09]execute_cgi path=json_proto method=POST [00:11:09]POST find Content-Length [00:11:09]Host: 172.17.45.132:8080 [00:11:09]Content-Length: 259 [00:11:09]Content-Type: application/json [00:11:09] [00:11:09]POST finish read [00:11:09]Found Content-Length = 259 [00:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u0441\u0430\u043B\u0438\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:09]execute_script... [00:11:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u0441\u0430\u043B\u0438\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:09]POST & json_proto [00:11:09]process_json_proto [00:11:09]json parsed OK: [00:11:09]protocol is kg_v1.0 [00:11:09]action value=open_shift [00:11:09]process_action open_shift [00:11:09]cmd_open_shift [00:11:09]MH_GetDate [00:11:09]Write to MH i2c: F0 00 00 07 03 F9 [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: F0 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: F0 09 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: F0 09 00 07 03 00 9E 2F A8 66 E3 0B 90 66 C1 [00:11:09]GetLastDocTimeStamp 1722297568 [00:11:09]current date 1722298270 [00:11:09]FM_GetShiftState [00:11:09]SAM_PROTO_GetShiftState [00:11:09]wFMCommunicate request_size=4 [00:11:09]MH_SAM_APDU [00:11:09]CAPDU: 80 13 01 00 [00:11:09]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 [00:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 0E 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 0E 00 08 03 00 09 00 00 00 00 00 00 00 00 00 00 90 00 93 [00:11:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:09]wFMCommunicate OK [00:11:09]SAM_PROTO_GetShiftState done [00:11:09]FM_GetShiftState done [00:11:09]KKMCreateOpenShiftDocument [00:11:09]Load OK [00:11:09]Malloc new data [00:11:09]MH_GetDate [00:11:09]Write to MH i2c: F0 00 00 09 03 FB [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: F0 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: F0 09 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: F0 09 00 09 03 00 9E 2F A8 66 E3 0B 90 66 C3 [00:11:09]Malloc new data [00:11:09]KKMCreateOpenShiftDocument OK [00:11:09]KKMSetOpenShiftData OK [00:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=201 [00:11:09]tlvbuf is 008ECD20 [00:11:09]KKMLoadAndSignOpenShiftData [00:11:09]SAM_PROTO_ProcessDocument [00:11:09]wFMCommunicate request_size=9 [00:11:09]MH_SAM_APDU [00:11:09]CAPDU: 80 15 01 00 04 02 00 C9 00 [00:11:09]Write to MH i2c: E2 0C 00 0A 03 80 15 01 00 04 00 02 00 C9 00 00 00 5F [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:11:09]Read from MH i2c: E2 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 03 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [00:11:09]RAPDU: 90 00 [00:11:09]wFMCommunicate OK [00:11:09]wFMCommunicate request_size=23 [00:11:09]MH_SAM_APDU [00:11:09]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:11:09]Write to MH i2c: E2 1A 00 0B 03 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 83 [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:09]Read from MH i2c: E2 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 03 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [00:11:09]RAPDU: 90 00 [00:11:09]wFMCommunicate OK [00:11:09]wFMCommunicate request_size=30 [00:11:09]MH_SAM_APDU [00:11:09]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9C D0 B0 D1 81 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 9D 2E 20 [00:11:10]Write to MH i2c: E2 21 00 0C 03 80 15 02 00 19 00 FD 03 15 00 D0 9C D0 B0 D1 81 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 89 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [00:11:10]RAPDU: 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=89 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 15 02 00 54 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 [00:11:10]Write to MH i2c: E2 5C 00 0D 03 80 15 02 00 54 00 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 00 00 3D [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [00:11:10]RAPDU: 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=51 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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:11:10]Write to MH i2c: E2 36 00 0E 03 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 3D [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [00:11:10]RAPDU: 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=13 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 15 02 00 08 F4 03 04 00 9E 2F A8 66 [00:11:10]Write to MH i2c: E2 10 00 0F 03 80 15 02 00 08 00 F4 03 04 00 9E 2F A8 66 00 00 78 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [00:11:10]RAPDU: 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=25 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [00:11:10]Write to MH i2c: E2 1C 00 10 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 01 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [00:11:10]RAPDU: 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=4 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 15 03 00 [00:11:10]Write to MH i2c: E2 08 00 11 03 80 15 03 00 00 00 00 00 95 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 38 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 38 00 11 03 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 09 00 00 0E 04 04 00 10 00 00 00 35 04 06 00 90 56 AE 2B 0B B2 90 00 42 [00:11:10]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 09 00 00 0E 04 04 00 10 00 00 00 35 04 06 00 90 56 AE 2B 0B B2 90 00 [00:11:10]wFMCommunicate OK [00:11:10]SAM_PROTO_ProcessDocument answer len = 51 [00:11:10]SAM_PROTO_ProcessDocument done [00:11:10]SetTLVBufToDocument [00:11:10]Processing tag 1209 (04B9) [00:11:10]Malloc new data [00:11:10]Processing tag 1041 (0411) [00:11:10]Processing tag 1040 (0410) [00:11:10]Malloc new data [00:11:10]Processing tag 1038 (040E) [00:11:10]Malloc new data [00:11:10]Processing tag 1077 (0435) [00:11:10]Malloc new data [00:11:10]SetTLVBufToDocument err=0 [00:11:10]KKMLoadAndSignOpenShiftData store KKM data [00:11:10]KKMLoadAndSignOpenShiftData err=0 [00:11:10]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Масалиев Н. Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 Место: АЗС № 127 "Партнер Нефть" 30.07.2024 00:11 Смена: 16 РНМ: 0000000000189667 ЗНМ: 0300000161 ФД: 2383 ФМ: 0000000002094248 ФПД: 158701963643826 [00:11:10]StoreToDocumentArchive [00:11:10]shift 16 fd 2383 [00:11:10]Create dir for shift 0016 [00:11:10]save to /storage/0016/doc_00002383 [00:11:10]save last doc name /storage/0016/doc_00002383 to /storage/kkm_last_doc_name [00:11:10]save OK [00:11:10]Clear old archive folders... [00:11:10]Remove dir /storage/0015 [00:11:10]opendir ok [00:11:10]file . [00:11:10]file .. [00:11:10]file doc_00002151 [00:11:10]remove file /storage/0015/doc_00002151 [00:11:10]file doc_00002152 [00:11:10]remove file /storage/0015/doc_00002152 [00:11:10]file doc_00002153 [00:11:10]remove file /storage/0015/doc_00002153 [00:11:10]file doc_00002154 [00:11:10]remove file /storage/0015/doc_00002154 [00:11:10]file doc_00002155 [00:11:10]remove file /storage/0015/doc_00002155 [00:11:10]file doc_00002156 [00:11:10]remove file /storage/0015/doc_00002156 [00:11:10]file doc_00002157 [00:11:10]remove file /storage/0015/doc_00002157 [00:11:10]file doc_00002158 [00:11:10]remove file /storage/0015/doc_00002158 [00:11:10]file doc_00002159 [00:11:10]remove file /storage/0015/doc_00002159 [00:11:10]file doc_00002160 [00:11:10]remove file /storage/0015/doc_00002160 [00:11:10]file doc_00002161 [00:11:10]remove file /storage/0015/doc_00002161 [00:11:10]file doc_00002162 [00:11:10]remove file /storage/0015/doc_00002162 [00:11:10]file doc_00002163 [00:11:10]remove file /storage/0015/doc_00002163 [00:11:10]file doc_00002164 [00:11:10]remove file /storage/0015/doc_00002164 [00:11:10]file doc_00002165 [00:11:10]remove file /storage/0015/doc_00002165 [00:11:10]file doc_00002166 [00:11:10]remove file /storage/0015/doc_00002166 [00:11:10]file doc_00002167 [00:11:10]remove file /storage/0015/doc_00002167 [00:11:10]file doc_00002168 [00:11:10]remove file /storage/0015/doc_00002168 [00:11:10]file doc_00002169 [00:11:10]remove file /storage/0015/doc_00002169 [00:11:10]file doc_00002170 [00:11:10]remove file /storage/0015/doc_00002170 [00:11:10]file doc_00002171 [00:11:10]remove file /storage/0015/doc_00002171 [00:11:10]file doc_00002172 [00:11:10]remove file /storage/0015/doc_00002172 [00:11:10]file doc_00002173 [00:11:10]remove file /storage/0015/doc_00002173 [00:11:10]file doc_00002174 [00:11:10]remove file /storage/0015/doc_00002174 [00:11:10]file doc_00002175 [00:11:10]remove file /storage/0015/doc_00002175 [00:11:10]file doc_00002176 [00:11:10]remove file /storage/0015/doc_00002176 [00:11:10]file doc_00002177 [00:11:10]remove file /storage/0015/doc_00002177 [00:11:10]file doc_00002178 [00:11:10]remove file /storage/0015/doc_00002178 [00:11:10]file doc_00002179 [00:11:10]remove file /storage/0015/doc_00002179 [00:11:10]file doc_00002180 [00:11:10]remove file /storage/0015/doc_00002180 [00:11:10]file doc_00002181 [00:11:10]remove file /storage/0015/doc_00002181 [00:11:10]file doc_00002182 [00:11:10]remove file /storage/0015/doc_00002182 [00:11:10]file doc_00002183 [00:11:10]remove file /storage/0015/doc_00002183 [00:11:10]file doc_00002184 [00:11:10]remove file /storage/0015/doc_00002184 [00:11:10]file doc_00002185 [00:11:10]remove file /storage/0015/doc_00002185 [00:11:10]file doc_00002186 [00:11:10]remove file /storage/0015/doc_00002186 [00:11:10]file doc_00002187 [00:11:10]remove file /storage/0015/doc_00002187 [00:11:10]file doc_00002188 [00:11:10]remove file /storage/0015/doc_00002188 [00:11:10]file doc_00002189 [00:11:10]remove file /storage/0015/doc_00002189 [00:11:10]file doc_00002190 [00:11:10]remove file /storage/0015/doc_00002190 [00:11:10]file doc_00002191 [00:11:10]remove file /storage/0015/doc_00002191 [00:11:10]file doc_00002192 [00:11:10]remove file /storage/0015/doc_00002192 [00:11:10]file doc_00002193 [00:11:10]remove file /storage/0015/doc_00002193 [00:11:10]file doc_00002194 [00:11:10]remove file /storage/0015/doc_00002194 [00:11:10]file doc_00002195 [00:11:10]remove file /storage/0015/doc_00002195 [00:11:10]file doc_00002196 [00:11:10]remove file /storage/0015/doc_00002196 [00:11:10]file doc_00002197 [00:11:10]remove file /storage/0015/doc_00002197 [00:11:10]file doc_00002198 [00:11:10]remove file /storage/0015/doc_00002198 [00:11:10]file doc_00002199 [00:11:10]remove file /storage/0015/doc_00002199 [00:11:10]file doc_00002200 [00:11:10]remove file /storage/0015/doc_00002200 [00:11:10]file doc_00002201 [00:11:10]remove file /storage/0015/doc_00002201 [00:11:10]file doc_00002202 [00:11:10]remove file /storage/0015/doc_00002202 [00:11:10]file doc_00002203 [00:11:10]remove file /storage/0015/doc_00002203 [00:11:10]file doc_00002204 [00:11:10]remove file /storage/0015/doc_00002204 [00:11:10]file doc_00002205 [00:11:10]remove file /storage/0015/doc_00002205 [00:11:10]file doc_00002206 [00:11:10]remove file /storage/0015/doc_00002206 [00:11:10]file doc_00002207 [00:11:10]remove file /storage/0015/doc_00002207 [00:11:10]file doc_00002208 [00:11:10]remove file /storage/0015/doc_00002208 [00:11:10]file doc_00002209 [00:11:10]remove file /storage/0015/doc_00002209 [00:11:10]file doc_00002210 [00:11:10]remove file /storage/0015/doc_00002210 [00:11:10]file doc_00002211 [00:11:10]remove file /storage/0015/doc_00002211 [00:11:10]file doc_00002212 [00:11:10]remove file /storage/0015/doc_00002212 [00:11:10]file doc_00002213 [00:11:10]remove file /storage/0015/doc_00002213 [00:11:10]file doc_00002214 [00:11:10]remove file /storage/0015/doc_00002214 [00:11:10]file doc_00002215 [00:11:10]remove file /storage/0015/doc_00002215 [00:11:10]file doc_00002216 [00:11:10]remove file /storage/0015/doc_00002216 [00:11:10]file doc_00002217 [00:11:10]remove file /storage/0015/doc_00002217 [00:11:10]file doc_00002218 [00:11:10]remove file /storage/0015/doc_00002218 [00:11:10]file doc_00002219 [00:11:10]remove file /storage/0015/doc_00002219 [00:11:10]file doc_00002220 [00:11:10]remove file /storage/0015/doc_00002220 [00:11:10]file doc_00002221 [00:11:10]remove file /storage/0015/doc_00002221 [00:11:10]file doc_00002222 [00:11:10]remove file /storage/0015/doc_00002222 [00:11:10]file doc_00002223 [00:11:10]remove file /storage/0015/doc_00002223 [00:11:10]file doc_00002224 [00:11:10]remove file /storage/0015/doc_00002224 [00:11:10]file doc_00002225 [00:11:10]remove file /storage/0015/doc_00002225 [00:11:10]file doc_00002226 [00:11:10]remove file /storage/0015/doc_00002226 [00:11:10]file doc_00002227 [00:11:10]remove file /storage/0015/doc_00002227 [00:11:10]file doc_00002228 [00:11:10]remove file /storage/0015/doc_00002228 [00:11:10]file doc_00002229 [00:11:10]remove file /storage/0015/doc_00002229 [00:11:10]file doc_00002230 [00:11:10]remove file /storage/0015/doc_00002230 [00:11:10]file doc_00002231 [00:11:10]remove file /storage/0015/doc_00002231 [00:11:10]file doc_00002232 [00:11:10]remove file /storage/0015/doc_00002232 [00:11:10]file doc_00002233 [00:11:10]remove file /storage/0015/doc_00002233 [00:11:10]file doc_00002234 [00:11:10]remove file /storage/0015/doc_00002234 [00:11:10]file doc_00002235 [00:11:10]remove file /storage/0015/doc_00002235 [00:11:10]file doc_00002236 [00:11:10]remove file /storage/0015/doc_00002236 [00:11:10]file doc_00002237 [00:11:10]remove file /storage/0015/doc_00002237 [00:11:10]file doc_00002238 [00:11:11]remove file /storage/0015/doc_00002238 [00:11:11]file doc_00002239 [00:11:11]remove file /storage/0015/doc_00002239 [00:11:11]file doc_00002240 [00:11:11]remove file /storage/0015/doc_00002240 [00:11:11]file doc_00002241 [00:11:11]remove file /storage/0015/doc_00002241 [00:11:11]file doc_00002242 [00:11:11]remove file /storage/0015/doc_00002242 [00:11:11]file doc_00002243 [00:11:11]remove file /storage/0015/doc_00002243 [00:11:11]file doc_00002244 [00:11:11]remove file /storage/0015/doc_00002244 [00:11:11]file doc_00002245 [00:11:11]remove file /storage/0015/doc_00002245 [00:11:11]file doc_00002246 [00:11:11]remove file /storage/0015/doc_00002246 [00:11:11]file doc_00002247 [00:11:11]remove file /storage/0015/doc_00002247 [00:11:11]file doc_00002248 [00:11:11]remove file /storage/0015/doc_00002248 [00:11:11]file doc_00002249 [00:11:11]remove file /storage/0015/doc_00002249 [00:11:11]file doc_00002250 [00:11:11]remove file /storage/0015/doc_00002250 [00:11:11]file doc_00002251 [00:11:11]remove file /storage/0015/doc_00002251 [00:11:11]file doc_00002252 [00:11:11]remove file /storage/0015/doc_00002252 [00:11:11]file doc_00002253 [00:11:11]remove file /storage/0015/doc_00002253 [00:11:11]file doc_00002254 [00:11:11]remove file /storage/0015/doc_00002254 [00:11:11]file doc_00002255 [00:11:11]remove file /storage/0015/doc_00002255 [00:11:11]file doc_00002256 [00:11:11]remove file /storage/0015/doc_00002256 [00:11:11]file doc_00002257 [00:11:11]remove file /storage/0015/doc_00002257 [00:11:11]file doc_00002258 [00:11:11]remove file /storage/0015/doc_00002258 [00:11:11]file doc_00002259 [00:11:11]remove file /storage/0015/doc_00002259 [00:11:11]file doc_00002260 [00:11:11]remove file /storage/0015/doc_00002260 [00:11:11]file doc_00002261 [00:11:11]remove file /storage/0015/doc_00002261 [00:11:11]file doc_00002262 [00:11:11]remove file /storage/0015/doc_00002262 [00:11:11]file doc_00002263 [00:11:11]remove file /storage/0015/doc_00002263 [00:11:11]file doc_00002264 [00:11:11]remove file /storage/0015/doc_00002264 [00:11:11]file doc_00002265 [00:11:11]remove file /storage/0015/doc_00002265 [00:11:11]file doc_00002266 [00:11:11]remove file /storage/0015/doc_00002266 [00:11:11]file doc_00002267 [00:11:11]remove file /storage/0015/doc_00002267 [00:11:11]file doc_00002268 [00:11:11]remove file /storage/0015/doc_00002268 [00:11:11]file doc_00002269 [00:11:11]remove file /storage/0015/doc_00002269 [00:11:11]file doc_00002270 [00:11:11]remove file /storage/0015/doc_00002270 [00:11:11]file doc_00002271 [00:11:11]remove file /storage/0015/doc_00002271 [00:11:11]file doc_00002272 [00:11:11]remove file /storage/0015/doc_00002272 [00:11:11]file doc_00002273 [00:11:11]remove file /storage/0015/doc_00002273 [00:11:11]file doc_00002274 [00:11:11]remove file /storage/0015/doc_00002274 [00:11:11]file doc_00002275 [00:11:11]remove file /storage/0015/doc_00002275 [00:11:11]file doc_00002276 [00:11:11]remove file /storage/0015/doc_00002276 [00:11:11]file doc_00002277 [00:11:11]remove file /storage/0015/doc_00002277 [00:11:11]file doc_00002278 [00:11:11]remove file /storage/0015/doc_00002278 [00:11:11]file doc_00002279 [00:11:11]remove file /storage/0015/doc_00002279 [00:11:11]file doc_00002280 [00:11:11]remove file /storage/0015/doc_00002280 [00:11:11]file doc_00002281 [00:11:11]remove file /storage/0015/doc_00002281 [00:11:11]file doc_00002282 [00:11:11]remove file /storage/0015/doc_00002282 [00:11:11]file doc_00002283 [00:11:11]remove file /storage/0015/doc_00002283 [00:11:11]file doc_00002284 [00:11:11]remove file /storage/0015/doc_00002284 [00:11:11]file doc_00002285 [00:11:11]remove file /storage/0015/doc_00002285 [00:11:11]file doc_00002286 [00:11:11]remove file /storage/0015/doc_00002286 [00:11:11]file doc_00002287 [00:11:11]remove file /storage/0015/doc_00002287 [00:11:11]file doc_00002288 [00:11:11]remove file /storage/0015/doc_00002288 [00:11:11]file doc_00002289 [00:11:11]remove file /storage/0015/doc_00002289 [00:11:11]file doc_00002290 [00:11:11]remove file /storage/0015/doc_00002290 [00:11:11]file doc_00002291 [00:11:11]remove file /storage/0015/doc_00002291 [00:11:11]file doc_00002292 [00:11:11]remove file /storage/0015/doc_00002292 [00:11:11]file doc_00002293 [00:11:11]remove file /storage/0015/doc_00002293 [00:11:11]file doc_00002294 [00:11:11]remove file /storage/0015/doc_00002294 [00:11:11]file doc_00002295 [00:11:11]remove file /storage/0015/doc_00002295 [00:11:11]file doc_00002296 [00:11:11]remove file /storage/0015/doc_00002296 [00:11:11]file doc_00002297 [00:11:11]remove file /storage/0015/doc_00002297 [00:11:11]file doc_00002298 [00:11:11]remove file /storage/0015/doc_00002298 [00:11:11]file doc_00002299 [00:11:11]remove file /storage/0015/doc_00002299 [00:11:11]file doc_00002300 [00:11:11]remove file /storage/0015/doc_00002300 [00:11:11]file doc_00002301 [00:11:11]remove file /storage/0015/doc_00002301 [00:11:11]file doc_00002302 [00:11:11]remove file /storage/0015/doc_00002302 [00:11:11]file doc_00002303 [00:11:11]remove file /storage/0015/doc_00002303 [00:11:11]file doc_00002304 [00:11:11]remove file /storage/0015/doc_00002304 [00:11:11]file doc_00002305 [00:11:11]remove file /storage/0015/doc_00002305 [00:11:11]file doc_00002306 [00:11:11]remove file /storage/0015/doc_00002306 [00:11:11]file doc_00002307 [00:11:11]remove file /storage/0015/doc_00002307 [00:11:11]file doc_00002308 [00:11:11]remove file /storage/0015/doc_00002308 [00:11:11]file doc_00002309 [00:11:11]remove file /storage/0015/doc_00002309 [00:11:11]file doc_00002310 [00:11:11]remove file /storage/0015/doc_00002310 [00:11:11]file doc_00002311 [00:11:11]remove file /storage/0015/doc_00002311 [00:11:11]file doc_00002312 [00:11:11]remove file /storage/0015/doc_00002312 [00:11:11]file doc_00002313 [00:11:11]remove file /storage/0015/doc_00002313 [00:11:11]file doc_00002314 [00:11:11]remove file /storage/0015/doc_00002314 [00:11:11]file doc_00002315 [00:11:11]remove file /storage/0015/doc_00002315 [00:11:11]file doc_00002316 [00:11:11]remove file /storage/0015/doc_00002316 [00:11:11]file doc_00002317 [00:11:11]remove file /storage/0015/doc_00002317 [00:11:11]file doc_00002318 [00:11:11]remove file /storage/0015/doc_00002318 [00:11:11]file doc_00002319 [00:11:11]remove file /storage/0015/doc_00002319 [00:11:11]file doc_00002320 [00:11:11]remove file /storage/0015/doc_00002320 [00:11:11]file doc_00002321 [00:11:11]remove file /storage/0015/doc_00002321 [00:11:11]file doc_00002322 [00:11:11]remove file /storage/0015/doc_00002322 [00:11:11]file doc_00002323 [00:11:11]remove file /storage/0015/doc_00002323 [00:11:11]file doc_00002324 [00:11:11]remove file /storage/0015/doc_00002324 [00:11:11]file doc_00002325 [00:11:11]remove file /storage/0015/doc_00002325 [00:11:11]file doc_00002326 [00:11:11]remove file /storage/0015/doc_00002326 [00:11:11]file doc_00002327 [00:11:11]remove file /storage/0015/doc_00002327 [00:11:11]file doc_00002328 [00:11:11]remove file /storage/0015/doc_00002328 [00:11:11]file doc_00002329 [00:11:11]remove file /storage/0015/doc_00002329 [00:11:11]file doc_00002330 [00:11:11]remove file /storage/0015/doc_00002330 [00:11:11]file doc_00002331 [00:11:11]remove file /storage/0015/doc_00002331 [00:11:11]file doc_00002332 [00:11:11]remove file /storage/0015/doc_00002332 [00:11:11]file doc_00002333 [00:11:11]remove file /storage/0015/doc_00002333 [00:11:11]file doc_00002334 [00:11:11]remove file /storage/0015/doc_00002334 [00:11:11]file doc_00002335 [00:11:11]remove file /storage/0015/doc_00002335 [00:11:11]file doc_00002336 [00:11:11]remove file /storage/0015/doc_00002336 [00:11:11]file doc_00002337 [00:11:11]remove file /storage/0015/doc_00002337 [00:11:11]file doc_00002338 [00:11:11]remove file /storage/0015/doc_00002338 [00:11:11]file doc_00002339 [00:11:11]remove file /storage/0015/doc_00002339 [00:11:11]file doc_00002340 [00:11:11]remove file /storage/0015/doc_00002340 [00:11:11]file doc_00002341 [00:11:11]remove file /storage/0015/doc_00002341 [00:11:11]file doc_00002342 [00:11:11]remove file /storage/0015/doc_00002342 [00:11:11]file doc_00002343 [00:11:11]remove file /storage/0015/doc_00002343 [00:11:11]file doc_00002344 [00:11:11]remove file /storage/0015/doc_00002344 [00:11:11]file doc_00002345 [00:11:11]remove file /storage/0015/doc_00002345 [00:11:11]file doc_00002346 [00:11:11]remove file /storage/0015/doc_00002346 [00:11:11]file doc_00002347 [00:11:11]remove file /storage/0015/doc_00002347 [00:11:11]file doc_00002348 [00:11:11]remove file /storage/0015/doc_00002348 [00:11:11]file doc_00002349 [00:11:11]remove file /storage/0015/doc_00002349 [00:11:11]file doc_00002350 [00:11:11]remove file /storage/0015/doc_00002350 [00:11:11]file doc_00002351 [00:11:11]remove file /storage/0015/doc_00002351 [00:11:11]file doc_00002352 [00:11:11]remove file /storage/0015/doc_00002352 [00:11:11]file doc_00002353 [00:11:11]remove file /storage/0015/doc_00002353 [00:11:11]file doc_00002354 [00:11:11]remove file /storage/0015/doc_00002354 [00:11:11]file doc_00002355 [00:11:11]remove file /storage/0015/doc_00002355 [00:11:11]file doc_00002356 [00:11:11]remove file /storage/0015/doc_00002356 [00:11:11]file doc_00002357 [00:11:11]remove file /storage/0015/doc_00002357 [00:11:11]file doc_00002358 [00:11:11]remove file /storage/0015/doc_00002358 [00:11:11]file doc_00002359 [00:11:11]remove file /storage/0015/doc_00002359 [00:11:11]file doc_00002360 [00:11:11]remove file /storage/0015/doc_00002360 [00:11:11]file doc_00002361 [00:11:11]remove file /storage/0015/doc_00002361 [00:11:11]file doc_00002362 [00:11:11]remove file /storage/0015/doc_00002362 [00:11:11]file doc_00002363 [00:11:11]remove file /storage/0015/doc_00002363 [00:11:11]file doc_00002364 [00:11:11]remove file /storage/0015/doc_00002364 [00:11:11]file doc_00002365 [00:11:11]remove file /storage/0015/doc_00002365 [00:11:11]file doc_00002366 [00:11:11]remove file /storage/0015/doc_00002366 [00:11:11]file doc_00002367 [00:11:11]remove file /storage/0015/doc_00002367 [00:11:11]file doc_00002368 [00:11:11]remove file /storage/0015/doc_00002368 [00:11:11]file doc_00002369 [00:11:11]remove file /storage/0015/doc_00002369 [00:11:11]file doc_00002370 [00:11:11]remove file /storage/0015/doc_00002370 [00:11:11]file doc_00002371 [00:11:11]remove file /storage/0015/doc_00002371 [00:11:11]file doc_00002372 [00:11:11]remove file /storage/0015/doc_00002372 [00:11:11]file doc_00002373 [00:11:11]remove file /storage/0015/doc_00002373 [00:11:11]file doc_00002374 [00:11:11]remove file /storage/0015/doc_00002374 [00:11:11]file doc_00002375 [00:11:11]remove file /storage/0015/doc_00002375 [00:11:11]file doc_00002376 [00:11:11]remove file /storage/0015/doc_00002376 [00:11:11]file doc_00002377 [00:11:11]remove file /storage/0015/doc_00002377 [00:11:11]file doc_00002378 [00:11:11]remove file /storage/0015/doc_00002378 [00:11:11]file doc_00002379 [00:11:11]remove file /storage/0015/doc_00002379 [00:11:11]file doc_00002380 [00:11:11]remove file /storage/0015/doc_00002380 [00:11:11]file doc_00002381 [00:11:11]remove file /storage/0015/doc_00002381 [00:11:11]file doc_00002382 [00:11:11]remove file /storage/0015/doc_00002382 [00:11:11]remove dir /storage/0015 [00:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:11:11]tlvbuf is 0092CBE0 [00:11:11]SAM_PROTO_ClearQueue [00:11:11]wFMCommunicate request_size=4 [00:11:11]MH_SAM_APDU [00:11:11]CAPDU: 80 09 00 00 [00:11:11]Write to MH i2c: E2 08 00 12 03 80 09 00 00 00 00 00 00 87 [00:11:11]Write i2c OK [00:11:11]MH_I2C_Read... [00:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:11]Read from MH i2c: E2 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 03 00 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [00:11:11]RAPDU: 90 00 [00:11:11]wFMCommunicate OK [00:11:11]SAM_PROTO_ClearQueue done [00:11:11]KKMCreateOFDPacket [00:11:11]OFDProtocolAddRootSTLVToBuf [00:11:11]FM_MakeSignedData [00:11:11]FM_MakeSignedData [00:11:11]SAM_PROTO_SignData [00:11:11]wFMCommunicate request_size=4 [00:11:11]MH_SAM_APDU [00:11:11]CAPDU: 80 0D 01 02 [00:11:11]Write to MH i2c: E2 08 00 13 03 80 0D 01 02 00 00 00 00 8F [00:11:11]Write i2c OK [00:11:11]MH_I2C_Read... [00:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:11]Read from MH i2c: E2 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 03 00 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [00:11:12]RAPDU: 90 00 [00:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=255 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 0D 02 02 FA 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D1 81 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 9E 2F A8 66 0E 04 04 00 10 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 [00:11:12]Write to MH i2c: E2 02 01 14 03 80 0D 02 02 FA 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D1 81 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 9E 2F A8 66 0E 04 04 00 10 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 00 00 64 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [00:11:12]RAPDU: 90 00 [00:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=11 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 0D 02 02 06 90 56 AE 2B 0B B2 [00:11:12]Write to MH i2c: E2 0E 00 15 03 80 0D 02 02 06 00 90 56 AE 2B 0B B2 00 00 1A [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [00:11:12]RAPDU: 90 00 [00:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=4 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 0D 03 02 [00:11:12]Write to MH i2c: E2 08 00 16 03 80 0D 03 02 00 00 00 00 94 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 0B 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 0B 00 16 03 00 D4 F0 61 5D 31 2E 03 C2 90 00 3B [00:11:12]RAPDU: D4 F0 61 5D 31 2E 03 C2 90 00 [00:11:12]wFMCommunicate OK [00:11:12]SAM_PROTO_SignData done [00:11:12]FM_MakeSignedData done [00:11:12]CreateOFDProtocolMessage [00:11:12]wFMCommunicate request_size=4 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 11 00 00 [00:11:12]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 17 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E4 [00:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:11:12]wFMCommunicate OK [00:11:12]CreateOFDProtocolMessage done [00:11:12]OFDSenderStorePacket 2383 [00:11:12]StoreOFDPacket docnum=2383 [00:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 01 00 00 D5 D9 08 01 14 82 5A 02 01 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D1 81 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 9E 2F A8 66 0E 04 04 00 10 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 90 56 AE 2B 0B B2 D4 F0 61 5D 31 2E 03 C2 [00:11:12]CheckFolder [00:11:12]dirname=/storage/ofd_packets [00:11:12]CheckFolder done [00:11:12]ProducePacketName [00:11:12]name=ofd_packets/00002383 [00:11:12]NVStorageSaveData ofd_packets/00002383 [00:11:12]File name is /storage/ofd_packets/00002383 [00:11:12]Write 302 bytes [00:11:12]NVStorageSaveData done [00:11:12]OFDSenderStorePacket done [00:11:12]KKMCreateOFDPacket done [00:11:12]NVStorageSaveData kkm_last_timestamp [00:11:12]File name is /storage/kkm_last_timestamp [00:11:12]Write 4 bytes [00:11:12]NVStorageSaveData done [00:11:12]ExternCall_PrintAddStr [00:11:12]wPrintStart [00:11:12]Write to MH i2c: 01 00 00 18 03 1B [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: 01 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: 01 07 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [00:11:12]RasterBufferAndPrint [00:11:12]line Отчет об открытии смены [00:11:12]line ФФД: 1.0 [00:11:12]line ИНН: 02508201610067 [00:11:12]line Кассир: Масалиев Н. [00:11:12]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:11:12]line Место: АЗС № 127 "Партнер Нефть" [00:11:12]line 30.07.2024 00:11 [00:11:12]line Смена: 16 [00:11:12]line РНМ: 0000000000189667 [00:11:12]line ЗНМ: 0300000161 [00:11:12]line ФД: 2383 [00:11:12]line ФМ: 0000000002094248 [00:11:12]line ФПД: 158701963643826 [00:11:12]written 0, free lines is 4095 [00:11:12]OFD Sender: Processing packet 2383 [packets to send 1, broken 0] [00:11:12]ProducePacketName [00:11:12]name=ofd_packets/00002383 [00:11:12]OFD Sender: To server: pG, [00:11:12]CommunicateWithHost lk.salyk.kg:30040 [00:11:12]ConnectInit lk.salyk.kg [00:11:12]Connected sock=10 [00:11:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 01 00 00 D5 D9 08 01 14 82 5A 02 01 00 02 00 FC 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 9C D0 B0 D1 81 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 50 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D1 82 D0 BA D0 B5 D0 BD 2C 20 D0 BA D0 B2 D0 B0 D1 80 D1 82 D0 B0 D0 BB 20 D0 9A D1 8B D0 B7 D1 8B D0 BB 20 D0 94 D0 BE D0 BD 2C 20 34 30 2E 30 37 34 39 36 30 2C 20 37 30 2E 38 34 30 36 35 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 37 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 9E 2F A8 66 0E 04 04 00 10 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 35 04 06 00 90 56 AE 2B 0B B2 D4 F0 61 5D 31 2E 03 C2 [00:11:12]Write to MH i2c: 01 00 00 2A 03 2D [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: 01 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: 01 07 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 71 0E B3 [00:11:12]RasterBufferAndPrint [00:11:12]line [00:11:12]line [00:11:12]line [00:11:12]line [00:11:12]line [00:11:12]written 0, free lines is 3716 [00:11:12]MH_Cut [00:11:12]Write to MH i2c: D1 01 00 31 03 01 06 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: D1 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: D1 01 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: D1 01 00 31 03 00 05 [00:11:12]Write to MH i2c: 01 00 00 32 03 35 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 12 D9 47 00 BF 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 4F 09 00 00 F4 03 04 00 0A DB A7 66 B6 04 01 00 00 00 F8 65 9E 2A F4 C1 F9 [00:11:13]CommunicateWithHost err = 0 [00:11:13]CheckOFDResponse [00:11:13]1017 (14) - 77093643461234 [00:11:13]1041 (16) - 0000000002094248 [00:11:13]1040 (4) - 2383 [00:11:13]1012 (4) - 29.07.2024 18:10 [00:11:13]1206 (1) - 0 [00:11:13]OFD Sender: Remove packet 2383 [00:11:13]ProducePacketName [00:11:13]name=ofd_packets/00002383 [00:11:13]NVStorageDeleteData [00:11:13]*** Cut start [00:11:13]*** Partial cut [00:11:13]*** CUTSNS_PIN = 1 [00:11:13]*** CUTSNS_PIN = 0 [00:11:13]OFD Sender: No OFD packet to send [00:11:13]*** Brake cut motor [00:11:13]Read from MH i2c: 01 [00:11:13]MH_I2C_Read... [00:11:13]*** Stop cut motor [00:11:13]*** Cut end [00:11:13]Read from MH i2c: 01 07 00 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 FF 0F 4A [00:11:13]process_action open_shift done [00:11:13]requested_data is exist [00:11:13]produce_requested_data [00:11:13]requested_item fd.num is exist - process it [00:11:13]SAM_PROTO_GetFieldsCounters [00:11:13]wFMCommunicate request_size=4 [00:11:13]MH_SAM_APDU [00:11:13]CAPDU: 80 13 00 00 [00:11:13]Write to MH i2c: E2 08 00 33 03 80 13 00 00 00 00 00 00 B2 [00:11:13]Write i2c OK [00:11:13]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 62 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 62 00 33 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 09 00 00 0E 04 04 00 10 00 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 44 [00:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 4F 09 00 00 0E 04 04 00 10 00 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:11:14]wFMCommunicate OK [00:11:14]SAM_PROTO_GetFieldsCounters done [00:11:14]requested_item shift.num is exist - process it [00:11:14]requested_item shift.opened is exist - process it [00:11:14]req_shift_opened [00:11:14]FM_GetShiftState [00:11:14]SAM_PROTO_GetShiftState [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 13 01 00 [00:11:14]Write to MH i2c: E2 08 00 34 03 80 13 01 00 00 00 00 00 B4 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 0E 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 0E 00 34 03 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 9B [00:11:14]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:11:14]wFMCommunicate OK [00:11:14]SAM_PROTO_GetShiftState done [00:11:14]FM_GetShiftState done [00:11:14]req_shift_opened done [00:11:14]requested_item shift.open_date is exist - process it [00:11:14]req_shift_open_date [00:11:14]req_shift_open_date done [00:11:14]produce_requested_data done [00:11:14]produce_requested_data return {"fd.num":2383,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [00:11:14]process_action_free open_shift [00:11:14]json_value_free [00:11:14]json_value_free done [00:11:14]process_json_proto returns [00:11:14]Send response to host [00:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2383,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [00:11:14]free response buf [00:11:14]execute_script done [00:11:14]execute_script returns [00:11:14]free content buf [00:11:14]Sock 7.Close socket [00:11:14]Sock 7.Thread stoped [00:11:14]accept exits with 9 [00:11:14]New connection [00:11:14]New thread 3067624804 created [00:11:14]Thread 3067481444 joined [00:11:14]Waiting for new connection... [00:11:14] Sock 9.Parse request [00:11:14]Sock 9.Check first char [00:11:14]Sock 9.First char is OK [00:11:14]request: POST /json_proto HTTP/1.0 [00:11:14]Method: POST [00:11:14]URL: /json_proto [00:11:14]Method is POST - this is cgi request [00:11:14]url: /json_proto [00:11:14]query_string will be loaded in cgi processing [00:11:14]execute_cgi json_proto POST (null) [00:11:14]execute_cgi path=json_proto method=POST [00:11:14]POST find Content-Length [00:11:14]Host: 172.17.45.132:8080 [00:11:14]Content-Length: 331 [00:11:14]Content-Type: application/json [00:11:14] [00:11:14]POST finish read [00:11:14]Found Content-Length = 331 [00:11: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:11:14]execute_script... [00:11: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:11:14]POST & json_proto [00:11:14]process_json_proto [00:11:14]json parsed OK: [00:11:14]protocol is kg_v1.0 [00:11:14]action value=get_value [00:11:14]process_action get_value [00:11:14]cmd_get_value [00:11:14]process_action get_value done [00:11:14]requested_data is exist [00:11:14]produce_requested_data [00:11:14]requested_item fm.sale.total is exist - process it [00:11:14]SAM_PROTO_GetFMData [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 13 03 00 [00:11:14]Write to MH i2c: E2 08 00 35 03 80 13 03 00 00 00 00 00 B7 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 FD 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 FD 00 35 03 00 C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 CE [00:11:14]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 2F 09 00 00 69 04 9F 00 6F 04 04 00 1E 09 00 00 B1 04 04 00 7A E6 0E 06 70 04 04 00 D8 F0 EC 03 72 04 04 00 A2 F5 21 02 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 FA B6 A4 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 F5 B8 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 1C FE 12 70 04 03 00 D4 AB 11 72 04 03 00 48 52 01 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 53 04 02 EF 03 09 00 F6 03 01 90 00 [00:11:14]wFMCommunicate OK [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 17 00 00 [00:11:14]Write to MH i2c: E2 08 00 36 03 80 17 00 00 00 00 00 00 B9 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 36 03 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 18 [00:11:15]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 06 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:15]wFMCommunicate OK [00:11:15]wFMCommunicate request_size=4 [00:11:15]MH_SAM_APDU [00:11:15]CAPDU: 80 17 00 00 [00:11:15]Write to MH i2c: E2 08 00 37 03 80 17 00 00 00 00 00 00 BA [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 37 03 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [00:11:15]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:15]wFMCommunicate OK [00:11:15]wFMCommunicate request_size=4 [00:11:15]MH_SAM_APDU [00:11:15]CAPDU: 80 17 00 00 [00:11:15]Write to MH i2c: E2 08 00 38 03 80 17 00 00 00 00 00 00 BB [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 38 03 00 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:11:15]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:16]wFMCommunicate OK [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 17 00 00 [00:11:16]Write to MH i2c: E2 08 00 39 03 80 17 00 00 00 00 00 00 BC [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:11:16]Read from MH i2c: E2 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 DD 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 DD 00 39 03 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A4 [00:11:16]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:16]wFMCommunicate OK [00:11:16]SAM_PROTO_GetFMData done [00:11:16]requested_item fm.sale_refund.total is exist - process it [00:11:16]requested_item fm.buy.total is exist - process it [00:11:16]requested_item shift.sale.total is exist - process it [00:11:16]SAM_PROTO_GetShiftData [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 13 02 00 [00:11:16]Write to MH i2c: E2 08 00 3A 03 80 13 02 00 00 00 00 00 BB [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:16]Read from MH i2c: E2 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 FD 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 FD 00 3A 03 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 2E [00:11:16]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:11:17]wFMCommunicate OK [00:11:17]wFMCommunicate request_size=4 [00:11:17]MH_SAM_APDU [00:11:17]CAPDU: 80 17 00 00 [00:11:17]Write to MH i2c: E2 08 00 3B 03 80 17 00 00 00 00 00 00 BE [00:11:17]Write i2c OK [00:11:17]MH_I2C_Read... [00:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:17]Read from MH i2c: E2 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 3B 03 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 C6 [00:11: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:11:17]wFMCommunicate OK [00:11:17]wFMCommunicate request_size=4 [00:11:17]MH_SAM_APDU [00:11:17]CAPDU: 80 17 00 00 [00:11:17]Write to MH i2c: E2 08 00 3C 03 80 17 00 00 00 00 00 00 BF [00:11:17]Write i2c OK [00:11:17]MH_I2C_Read... [00:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:17]Read from MH i2c: E2 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 3C 03 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 91 [00:11: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:11:17]wFMCommunicate OK [00:11:17]wFMCommunicate request_size=4 [00:11:17]MH_SAM_APDU [00:11:17]CAPDU: 80 17 00 00 [00:11:17]Write to MH i2c: E2 08 00 3D 03 80 17 00 00 00 00 00 00 C0 [00:11:17]Write i2c OK [00:11:17]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 3D 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 90 00 32 [00:11: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:11:18]wFMCommunicate OK [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 17 00 00 [00:11:18]Write to MH i2c: E2 08 00 3E 03 80 17 00 00 00 00 00 00 C1 [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 BD 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 BD 00 3E 03 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 A7 [00:11:18]RAPDU: OFD Sender: No OFD packet to send [00:11:18]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:18]wFMCommunicate OK [00:11:18]SAM_PROTO_GetShiftData done [00:11:18]requested_item shift.sale.total_cash is exist - process it [00:11:18]requested_item shift.sale_refund.total is exist - process it [00:11:18]requested_item shift.sale_refund.total_cash is exist - process it [00:11:18]requested_item shift.buy.total is exist - process it [00:11:18]requested_item shift.buy.total_cash is exist - process it [00:11:18]produce_requested_data done [00:11:18]produce_requested_data return {"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:18]process_action_free get_value [00:11:18]json_value_free [00:11:18]json_value_free done [00:11:18]process_json_proto returns [00:11:18]Send response to host [00:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":1016398.02,"fm.sale_refund.total":12447.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:18]free response buf [00:11:18]execute_script done [00:11:18]execute_script returns [00:11:18]free content buf [00:11:18]Sock 9.Close socket [00:11:18]Sock 9.Thread stoped [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]accept exits with 7 [00:23:34]New connection [00:23:34]New thread 3067481444 created [00:23:34]Thread 3067624804 joined [00:23:34]Waiting for new connection... [00:23:34] Sock 7.Parse request [00:23:34]Sock 7.Check first char [00:23:34]Sock 7.First char is OK [00:23:34]request: POST /json_proto HTTP/1.0 [00:23:34]Method: POST [00:23:34]URL: /json_proto [00:23:34]Method is POST - this is cgi request [00:23:34]url: /json_proto [00:23:34]query_string will be loaded in cgi processing [00:23:34]execute_cgi json_proto POST (null) [00:23:34]execute_cgi path=json_proto method=POST [00:23:34]POST find Content-Length [00:23:34]Host: 172.17.45.132:8080 [00:23:34]Content-Length: 682 [00:23:34]Content-Type: application/json [00:23:34] [00:23:34]POST finish read [00:23:34]Found Content-Length = 682 [00:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:34]execute_script... [00: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 : (1)610255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:34]POST & json_proto [00:23:34]process_json_proto [00:23:34]json parsed OK: [00:23:34]protocol is kg_v1.0 [00:23:34]action value=close_receipt [00:23:34]process_action close_receipt [00:23:34]cmd_close_receipt [00:23:34]MH_GetDate [00:23:34]Write to MH i2c: F0 00 00 3F 03 31 [00:23:34]Write i2c OK [00:23:34]MH_I2C_Read... [00:23:34]Read from MH i2c: F0 [00:23:34]MH_I2C_Read... [00:23:34]Read from MH i2c: F0 09 00 [00:23:34]MH_I2C_Read... [00:23:34]Read from MH i2c: F0 09 00 3F 03 00 86 32 A8 66 E3 0B 90 66 E4 [00:23:34]GetLastDocTimeStamp 1722298270 [00:23:34]current date 1722299014 [00:23:34]FM_GetShiftState [00:23:34]SAM_PROTO_GetShiftState [00:23:34]wFMCommunicate request_size=4 [00:23:34]MH_SAM_APDU [00:23:34]CAPDU: 80 13 01 00 [00:23:34]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [00:23:34]Write i2c OK [00:23:34]MH_I2C_Read... [00:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:34]Read from MH i2c: E2 [00:23:34]MH_I2C_Read... [00:23:34]Read from MH i2c: E2 0E 00 [00:23:34]MH_I2C_Read... [00:23:34]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 A7 [00:23:34]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:23:34]wFMCommunicate OK [00:23:34]SAM_PROTO_GetShiftState done [00:23:34]FM_GetShiftState done [00:23:34]opened in 1722298270 [00:23:34]opened+sec_in_day 1722384670 [00:23:34]quantity*price = 150041 [00:23:34]sum+1 = 150042 [00:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 1 30.07.2024 00:23 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2384 ФПД: 250479095604216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002334&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2384&fm=250479095604216&tin=02508201610067®Number=0000000000189667&sum=150000 [00:23:35]StoreToDocumentArchive [00:23:35]shift 16 fd 2384 [00:23:35]save to /storage/0016/doc_00002384 [00:23:35]save last doc name /storage/0016/doc_00002384 to /storage/kkm_last_doc_name [00:23:35]save OK [00:23:35]Clear old archive folders... [00:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:23:35]tlvbuf is 0084E4F0 [00:23:35]SAM_PROTO_ClearQueue [00:23:35]wFMCommunicate request_size=4 [00:23:35]MH_SAM_APDU [00:23:35]CAPDU: 80 09 00 00 [00:23:35]Write to MH i2c: E2 08 00 4D 03 80 09 00 00 00 00 00 00 C2 [00:23:35]Write i2c OK [00:23:35]MH_I2C_Read... [00:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:35]Read from MH i2c: E2 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [00:23:35]RAPDU: 90 00 [00:23:35]wFMCommunicate OK [00:23:35]SAM_PROTO_ClearQueue done [00:23:35]KKMCreateOFDPacket [00:23:35]OFDProtocolAddRootSTLVToBuf [00:23:35]FM_MakeSignedData [00:23:35]FM_MakeSignedData [00:23:35]SAM_PROTO_SignData [00:23:35]wFMCommunicate request_size=4 [00:23:35]MH_SAM_APDU [00:23:35]CAPDU: 80 0D 01 02 [00:23:35]Write to MH i2c: E2 08 00 4E 03 80 0D 01 02 00 00 00 00 CA [00:23:35]Write i2c OK [00:23:35]MH_I2C_Read... [00:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:35]Read from MH i2c: E2 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [00:23:35]RAPDU: 90 00 [00:23:35]wFMCommunicate OK [00:23:35]wFMCommunicate request_size=255 [00:23:35]MH_SAM_APDU [00:23:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 86 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 09 00 00 35 04 06 00 E3 [00:23:35]Write to MH i2c: E2 02 01 4F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 86 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 09 00 00 35 04 06 00 E3 00 00 D7 [00:23:35]Write i2c OK [00:23:35]MH_I2C_Read... [00:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:35]Read from MH i2c: E2 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [00:23:35]RAPDU: 90 00 [00:23:35]wFMCommunicate OK [00:23:35]wFMCommunicate request_size=10 [00:23:35]MH_SAM_APDU [00:23:35]CAPDU: 80 0D 02 02 05 CF 35 84 63 F8 [00:23:35]Write to MH i2c: E2 0D 00 50 03 80 0D 02 02 05 00 CF 35 84 63 F8 00 00 BA [00:23:35]Write i2c OK [00:23:35]MH_I2C_Read... [00:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:35]Read from MH i2c: E2 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [00:23:35]RAPDU: 90 00 [00:23:35]wFMCommunicate OK [00:23:35]wFMCommunicate request_size=4 [00:23:35]MH_SAM_APDU [00:23:35]CAPDU: 80 0D 03 02 [00:23:35]Write to MH i2c: E2 08 00 51 03 80 0D 03 02 00 00 00 00 CF [00:23:35]Write i2c OK [00:23:35]MH_I2C_Read... [00:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:35]Read from MH i2c: E2 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 0B 00 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 0B 00 51 03 00 3F 5B 19 EA 0C 0B F5 01 90 00 7A [00:23:35]RAPDU: 3F 5B 19 EA 0C 0B F5 01 90 00 [00:23:35]wFMCommunicate OK [00:23:35]SAM_PROTO_SignData done [00:23:35]FM_MakeSignedData done [00:23:35]CreateOFDProtocolMessage [00:23:35]wFMCommunicate request_size=4 [00:23:35]MH_SAM_APDU [00:23:35]CAPDU: 80 11 00 00 [00:23:35]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [00:23:35]Write i2c OK [00:23:35]MH_I2C_Read... [00:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:35]Read from MH i2c: E2 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 17 00 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 1F [00:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:23:35]wFMCommunicate OK [00:23:35]CreateOFDProtocolMessage done [00:23:35]OFDSenderStorePacket 2384 [00:23:35]StoreOFDPacket docnum=2384 [00:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A5 0B 07 01 7E 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 86 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 09 00 00 35 04 06 00 E3 CF 35 84 63 F8 3F 5B 19 EA 0C 0B F5 01 [00:23:35]CheckFolder [00:23:35]dirname=/storage/ofd_packets [00:23:35]CheckFolder done [00:23:35]ProducePacketName [00:23:35]name=ofd_packets/00002384 [00:23:35]NVStorageSaveData ofd_packets/00002384 [00:23:35]File name is /storage/ofd_packets/00002384 [00:23:35]Write 301 bytes [00:23:35]NVStorageSaveData done [00:23:35]OFDSenderStorePacket done [00:23:35]KKMCreateOFDPacket done [00:23:35]NVStorageSaveData kkm_last_timestamp [00:23:35]File name is /storage/kkm_last_timestamp [00:23:35]Write 4 bytes [00:23:35]NVStorageSaveData done [00:23:35]ExternCall_PrintAddStr [00:23:35]wPrintStart [00:23:35]Write to MH i2c: 01 00 00 53 03 56 [00:23:35]Write i2c OK [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: 01 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: 01 07 00 [00:23:35]MH_I2C_Read... [00:23:35]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [00:23:35]RasterBufferAndPrint [00:23:35]line Счет N : (1)610255 [00:23:35]line ИНН: 02508201610067 [00:23:35]line Контрольно-Кассовый Чек [00:23:35]line ПРОДАЖА [00:23:35]line ТРК (МРК, ГНК) : 62 [00:23:35]line Товар: 2710124130 [00:23:35]line Аи-92-К-2 [00:23:35]line 22.130 * 67.80 [00:23:35]line = 1500.41 [00:23:35]line НДС 12% НСП 1% [00:23:35]line > о реализуемом товаре [00:23:35]line ОКРУГЛЕНИЕ: -0.41 [00:23:35]line ИТОГО: 1500.00 [00:23:35]line Внесено: 1500.00 [00:23:35]line СДАЧА: 0.00 [00:23:35]line НСП 1% : 13.28 [00:23:35]line НДС 12% : 159.34 [00:23:35]line Наличными: 1500.00 [00:23:35]line Безнал.: 0.00 [00:23:35]line Место: АЗС № 127 "Партнер Нефть" [00:23:35]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:23:35]line СНО: Общий режим [00:23:35]line Чек 1 30.07.2024 00:23 [00:23:35]line Смена: 16 ФФД: 1.0 [00:23:35]line ЗНМ: 0300000161 [00:23:35]line РНМ: 0000000000189667 [00:23:35]line Версия ККМ: v1.0 [00:23:35]line ФМ: 0000000002094248 [00:23:35]line ФД: 2384 [00:23:35]line ФПД: 250479095604216 [00:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002334&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2384&fm=250479095604216&tin=02508201610067®Number=0000000000189667&sum=150000 [00:23:36]OFD Sender: Processing packet 2384 [packets to send 1, broken 0] [00:23:36]ProducePacketName [00:23:36]name=ofd_packets/00002384 [00:23:36]OFD Sender: To server: pG, [00:23:36]CommunicateWithHost lk.salyk.kg:30040 [00:23:36]ConnectInit lk.salyk.kg [00:23:36]written 0, free lines is 4095 [00:23:36]Connected sock=11 [00:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0F 01 00 00 A5 0B 07 01 7E 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 86 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 50 09 00 00 35 04 06 00 E3 CF 35 84 63 F8 3F 5B 19 EA 0C 0B F5 01 [00:23:36]Write to MH i2c: 01 00 00 7E 03 81 [00:23:36]Write i2c OK [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: 01 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: 01 07 00 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 E4 0C 78 [00:23:36]RasterBufferAndPrint [00:23:36]line [00:23:36]line [00:23:36]line [00:23:36]line [00:23:36]line [00:23:36]written 0, free lines is 3306 [00:23:36]MH_Cut [00:23:36]Write to MH i2c: D1 01 00 85 03 01 5A [00:23:36]Write i2c OK [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: D1 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: D1 01 00 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: D1 01 00 85 03 00 59 [00:23:36]Write to MH i2c: 01 00 00 86 03 89 [00:23:36]Write i2c OK [00:23:36]MH_I2C_Read... [00:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 26 2D 47 00 FD 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 32 30 39 34 32 34 38 10 04 04 00 50 09 00 00 F4 03 04 00 F2 DD A7 66 B6 04 01 00 00 BD FE A0 8D EF C3 DC 27 [00:23:36]CommunicateWithHost err = 0 [00:23:36]CheckOFDResponse [00:23:36]1017 (14) - 77093643461234 [00:23:36]1041 (16) - 0000000002094248 [00:23:36]1040 (4) - 2384 [00:23:36]1012 (4) - 29.07.2024 18:22 [00:23:36]1206 (1) - 0 [00:23:36]OFD Sender: Remove packet 2384 [00:23:36]ProducePacketName [00:23:36]name=ofd_packets/00002384 [00:23:36]NVStorageDeleteData [00:23:37]OFD Sender: No OFD packet to send [00:23:37]*** Cut start [00:23:37]*** Partial cut [00:23:37]*** CUTSNS_PIN = 1 [00:23:37]*** CUTSNS_PIN = 0 [00:23:37]*** Brake cut motor [00:23:37]Read from MH i2c: 01 [00:23:37]MH_I2C_Read... [00:23:37]*** Stop cut motor [00:23:37]*** Cut end [00:23:37]Read from MH i2c: 01 07 00 [00:23:37]MH_I2C_Read... [00:23:37]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 FF 0F 9E [00:23:37]process_action close_receipt done [00:23:37]requested_data is exist [00:23:37]produce_requested_data [00:23:37]requested_item fm.sn is exist - process it [00:23:37]wFMCommunicate request_size=4 [00:23:37]MH_SAM_APDU [00:23:37]CAPDU: 80 11 00 00 [00:23:37]Write to MH i2c: E2 08 00 87 03 80 11 00 00 00 00 00 00 04 [00:23:37]Write i2c OK [00:23:37]MH_I2C_Read... [00:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:38]Read from MH i2c: E2 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 17 00 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 17 00 87 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 54 [00:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:23:38]wFMCommunicate OK [00:23:38]requested_item fd.num is exist - process it [00:23:38]SAM_PROTO_GetFieldsCounters [00:23:38]wFMCommunicate request_size=4 [00:23:38]MH_SAM_APDU [00:23:38]CAPDU: 80 13 00 00 [00:23:38]Write to MH i2c: E2 08 00 88 03 80 13 00 00 00 00 00 00 07 [00:23:38]Write i2c OK [00:23:38]MH_I2C_Read... [00:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:38]Read from MH i2c: E2 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 62 00 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 62 00 88 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 50 09 00 00 0E 04 04 00 10 00 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 9D [00:23:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 50 09 00 00 0E 04 04 00 10 00 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:23:38]wFMCommunicate OK [00:23:38]SAM_PROTO_GetFieldsCounters done [00:23:38]requested_item shift.num is exist - process it [00:23:38]requested_item shift.opened is exist - process it [00:23:38]req_shift_opened [00:23:38]FM_GetShiftState [00:23:38]SAM_PROTO_GetShiftState [00:23:38]wFMCommunicate request_size=4 [00:23:38]MH_SAM_APDU [00:23:38]CAPDU: 80 13 01 00 [00:23:38]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [00:23:38]Write i2c OK [00:23:38]MH_I2C_Read... [00:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:38]Read from MH i2c: E2 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 0E 00 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 F0 [00:23:38]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:23:38]wFMCommunicate OK [00:23:38]SAM_PROTO_GetShiftState done [00:23:38]FM_GetShiftState done [00:23:38]req_shift_opened done [00:23:38]requested_item shift.open_date is exist - process it [00:23:38]req_shift_open_date [00:23:38]req_shift_open_date done [00:23:38]produce_requested_data done [00:23:38]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2384,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [00:23:38]process_action_free close_receipt [00:23:38]json_value_free [00:23:38]json_value_free done [00:23:38]process_json_proto returns [00:23:38]Send response to host [00:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2384,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [00:23:38]free response buf [00:23:38]execute_script done [00:23:38]execute_script returns [00:23:38]free content buf [00:23:38]Sock 7.Close socket [00:23:38]Sock 7.Thread stoped [00:23:39]accept exits with 9 [00:23:39]New connection [00:23:39]New thread 3067624804 created [00:23:39]Thread 3067481444 joined [00:23:39]Waiting for new connection... [00:23:39] Sock 9.Parse request [00:23:39]Sock 9.Check first char [00:23:39]Sock 9.First char is OK [00:23:39]request: POST /json_proto HTTP/1.0 [00:23:39]Method: POST [00:23:39]URL: /json_proto [00:23:39]Method is POST - this is cgi request [00:23:39]url: /json_proto [00:23:39]query_string will be loaded in cgi processing [00:23:39]execute_cgi json_proto POST (null) [00:23:39]execute_cgi path=json_proto method=POST [00:23:39]POST find Content-Length [00:23:39]Host: 172.17.45.132:8080 [00:23:39]Content-Length: 737 [00:23:39]Content-Type: application/json [00:23:39] [00:23:39]POST finish read [00:23:39]Found Content-Length = 737 [00:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 2384, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:39]execute_script... [00:23:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 2384, "base_FM": "0000000002094248", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)610255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:39]POST & json_proto [00:23:39]process_json_proto [00:23:39]json parsed OK: [00:23:39]protocol is kg_v1.0 [00:23:39]action value=close_receipt [00:23:39]process_action close_receipt [00:23:39]cmd_close_receipt [00:23:39]MH_GetDate [00:23:39]Write to MH i2c: F0 00 00 8A 03 7C [00:23:39]Write i2c OK [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: F0 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: F0 09 00 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: F0 09 00 8A 03 00 8C 32 A8 66 E3 0B 90 66 35 [00:23:39]GetLastDocTimeStamp 1722299014 [00:23:39]current date 1722299020 [00:23:39]FM_GetShiftState [00:23:39]SAM_PROTO_GetShiftState [00:23:39]wFMCommunicate request_size=4 [00:23:39]MH_SAM_APDU [00:23:39]CAPDU: 80 13 01 00 [00:23:39]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [00:23:39]Write i2c OK [00:23:39]MH_I2C_Read... [00:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:39]Read from MH i2c: E2 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 0E 00 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 F2 [00:23:39]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:23:39]wFMCommunicate OK [00:23:39]SAM_PROTO_GetShiftState done [00:23:39]FM_GetShiftState done [00:23:39]opened in 1722298270 [00:23:39]opened+sec_in_day 1722384670 [00:23:39]quantity*price = 150041 [00:23:39]sum+1 = 150042 [00:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 2 30.07.2024 00:23 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФД осн.: 2384 ФМ осн.: 0000000002094248 ФМ: 0000000002094248 ФД: 2385 ФПД: 30847673398508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002340&type=2&operation_type=1&fn_number=0000000002094248&fd_number=2385&fm=30847673398508&tin=02508201610067®Number=0000000000189667&sum=150000 [00:23:41]StoreToDocumentArchive [00:23:41]shift 16 fd 2385 [00:23:41]save to /storage/0016/doc_00002385 [00:23:41]save last doc name /storage/0016/doc_00002385 to /storage/kkm_last_doc_name [00:23:41]save OK [00:23:41]Clear old archive folders... [00:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=279 [00:23:41]tlvbuf is 0086A660 [00:23:41]SAM_PROTO_ClearQueue [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 09 00 00 [00:23:41]Write to MH i2c: E2 08 00 9A 03 80 09 00 00 00 00 00 00 0F [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [00:23:41]RAPDU: 90 00 [00:23:41]wFMCommunicate OK [00:23:41]SAM_PROTO_ClearQueue done [00:23:41]KKMCreateOFDPacket [00:23:41]OFDProtocolAddRootSTLVToBuf [00:23:41]FM_MakeSignedData [00:23:41]FM_MakeSignedData [00:23:41]SAM_PROTO_SignData [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 0D 01 02 [00:23:41]Write to MH i2c: E2 08 00 9B 03 80 0D 01 02 00 00 00 00 17 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [00:23:41]RAPDU: 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=255 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 50 09 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 [00:23:41]Write to MH i2c: E2 02 01 9C 03 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 50 09 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 00 00 AA [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [00:23:41]RAPDU: 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=38 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 09 00 00 35 04 06 00 1C 0E 48 9D 74 EC [00:23:41]Write to MH i2c: E2 29 00 9D 03 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 09 00 00 35 04 06 00 1C 0E 48 9D 74 EC 00 00 69 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [00:23:41]RAPDU: 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 0D 03 02 [00:23:41]Write to MH i2c: E2 08 00 9E 03 80 0D 03 02 00 00 00 00 1C [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 0B 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 0B 00 9E 03 00 8D AF 74 FA C9 34 33 41 90 00 38 [00:23:41]RAPDU: 8D AF 74 FA C9 34 33 41 90 00 [00:23:41]wFMCommunicate OK [00:23:41]SAM_PROTO_SignData done [00:23:41]FM_MakeSignedData done [00:23:41]CreateOFDProtocolMessage [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 11 00 00 [00:23:41]Write to MH i2c: E2 08 00 9F 03 80 11 00 00 00 00 00 00 1C [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 17 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 17 00 9F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 6C [00:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:23:41]wFMCommunicate OK [00:23:41]CreateOFDProtocolMessage done [00:23:41]OFDSenderStorePacket 2385 [00:23:41]StoreOFDPacket docnum=2385 [00:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 E7 A7 23 01 A1 8C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 50 09 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 09 00 00 35 04 06 00 1C 0E 48 9D 74 EC 8D AF 74 FA C9 34 33 41 [00:23:41]CheckFolder [00:23:41]dirname=/storage/ofd_packets [00:23:41]CheckFolder done [00:23:41]ProducePacketName [00:23:41]name=ofd_packets/00002385 [00:23:41]NVStorageSaveData ofd_packets/00002385 [00:23:41]File name is /storage/ofd_packets/00002385 [00:23:41]Write 329 bytes [00:23:41]NVStorageSaveData done [00:23:41]OFDSenderStorePacket done [00:23:41]KKMCreateOFDPacket done [00:23:41]NVStorageSaveData kkm_last_timestamp [00:23:41]File name is /storage/kkm_last_timestamp [00:23:41]Write 4 bytes [00:23:41]NVStorageSaveData done [00:23:41]ExternCall_PrintAddStr [00:23:41]wPrintStart [00:23:41]Write to MH i2c: 01 00 00 A0 03 A3 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: 01 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: 01 07 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [00:23:41]RasterBufferAndPrint [00:23:41]line Счет N : (1)610255 [00:23:41]line ИНН: 02508201610067 [00:23:41]line Контрольно-Кассовый Чек [00:23:41]line ВОЗВРАТ ПРОДАЖИ [00:23:42]line ТРК (МРК, ГНК) : 62 [00:23:42]line Товар: 2710124130 [00:23:42]line Аи-92-К-2 [00:23:42]line 22.130 * 67.80 [00:23:42]line = 1500.41 [00:23:42]line НДС 12% НСП 1% [00:23:42]line > о реализуемом товаре [00:23:42]line ОКРУГЛЕНИЕ: -0.41 [00:23:42]line ИТОГО: 1500.00 [00:23:42]line НСП 1% : 13.28 [00:23:42]line НДС 12% : 159.34 [00:23:42]line Наличными: 1500.00 [00:23:42]line Безнал.: 0.00 [00:23:42]line Место: АЗС № 127 "Партнер Нефть" [00:23:42]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:23:42]line СНО: Общий режим [00:23:42]line Чек 2 30.07.2024 00:23 [00:23:42]line Смена: 16 ФФД: 1.0 [00:23:42]line ЗНМ: 0300000161 [00:23:42]line РНМ: 0000000000189667 [00:23:42]line Версия ККМ: v1.0 [00:23:42]line ФД осн.: 2384 [00:23:42]line ФМ осн.: 0000000002094248 [00:23:42]line ФМ: 0000000002094248 [00:23:42]line ФД: 2385 [00:23:42]line ФПД: 30847673398508 [00:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002340&type=2&operation_type=1&fn_number=0000000002094248&fd_number=2385&fm=30847673398508&tin=02508201610067®Number=0000000000189667&sum=150000 [00:23:42]OFD Sender: Processing packet 2385 [packets to send 1, broken 0] [00:23:42]ProducePacketName [00:23:42]name=ofd_packets/00002385 [00:23:42]OFD Sender: To server: pG, [00:23:42]CommunicateWithHost lk.salyk.kg:30040 [00:23:42]ConnectInit lk.salyk.kg [00:23:42]written 0, free lines is 4095 [00:23:42]Connected sock=10 [00:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2B 01 00 00 E7 A7 23 01 A1 8C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8C 32 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 27 04 04 00 50 09 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 09 00 00 35 04 06 00 1C 0E 48 9D 74 EC 8D AF 74 FA C9 34 33 41 [00:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D8 86 47 00 00 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 51 09 00 00 F4 03 04 00 F8 DD A7 66 B6 04 01 00 00 6C 84 2F 1C 0D 17 CC D1 [00:23:42]CommunicateWithHost err = 0 [00:23:42]CheckOFDResponse [00:23:42]1017 (14) - 77093643461234 [00:23:42]1041 (16) - 0000000002094248 [00:23:42]1040 (4) - 2385 [00:23:42]1012 (4) - 29.07.2024 18:22 [00:23:42]1206 (1) - 0 [00:23:42]OFD Sender: Remove packet 2385 [00:23:42]ProducePacketName [00:23:42]name=ofd_packets/00002385 [00:23:42]NVStorageDeleteData [00:23:42]Write to MH i2c: 01 00 00 CB 03 CE [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: 01 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: 01 07 00 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 0E 0D F0 [00:23:42]RasterBufferAndPrint [00:23:42]line [00:23:42]line [00:23:42]line [00:23:42]line [00:23:42]line [00:23:42]written 0, free lines is 3352 [00:23:42]MH_Cut [00:23:42]Write to MH i2c: D1 01 00 D2 03 01 A7 [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: D1 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: D1 01 00 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: D1 01 00 D2 03 00 A6 [00:23:42]Write to MH i2c: 01 00 00 D3 03 D6 [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:43]OFD Sender: No OFD packet to send [00:23:43]*** Cut start [00:23:43]*** Partial cut [00:23:43]*** CUTSNS_PIN = 1 [00:23:43]*** CUTSNS_PIN = 0 [00:23:43]*** Brake cut motor [00:23:44]Read from MH i2c: 01 [00:23:44]MH_I2C_Read... [00:23:44]*** Stop cut motor [00:23:44]*** Cut end [00:23:44]Read from MH i2c: 01 07 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 FF 0F EB [00:23:44]process_action close_receipt done [00:23:44]requested_data is exist [00:23:44]produce_requested_data [00:23:44]requested_item fm.sn is exist - process it [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 11 00 00 [00:23:44]Write to MH i2c: E2 08 00 D4 03 80 11 00 00 00 00 00 00 51 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 17 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 17 00 D4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 A1 [00:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:23:44]wFMCommunicate OK [00:23:44]requested_item fd.num is exist - process it [00:23:44]SAM_PROTO_GetFieldsCounters [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 13 00 00 [00:23:44]Write to MH i2c: E2 08 00 D5 03 80 13 00 00 00 00 00 00 54 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 62 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 62 00 D5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 51 09 00 00 0E 04 04 00 10 00 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 EE [00:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 51 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:44]wFMCommunicate OK [00:23:44]SAM_PROTO_GetFieldsCounters done [00:23:44]requested_item shift.num is exist - process it [00:23:44]requested_item shift.opened is exist - process it [00:23:44]req_shift_opened [00:23:44]FM_GetShiftState [00:23:44]SAM_PROTO_GetShiftState [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 13 01 00 [00:23:44]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 0E 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 3D [00:23:44]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:23:44]wFMCommunicate OK [00:23:44]SAM_PROTO_GetShiftState done [00:23:44]FM_GetShiftState done [00:23:44]req_shift_opened done [00:23:44]requested_item shift.open_date is exist - process it [00:23:44]req_shift_open_date [00:23:44]req_shift_open_date done [00:23:44]produce_requested_data done [00:23:44]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2385,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [00:23:44]process_action_free close_receipt [00:23:44]json_value_free [00:23:44]json_value_free done [00:23:44]process_json_proto returns [00:23:44]Send response to host [00:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2385,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [00:23:44]free response buf [00:23:44]execute_script done [00:23:44]execute_script returns [00:23:44]free content buf [00:23:44]Sock 9.Close socket [00:23:44]Sock 9.Thread stoped [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:00]accept exits with 7 [00:27:00]New connection [00:27:00]New thread 3067481444 created [00:27:00]Thread 3067624804 joined [00:27:00]Waiting for new connection... [00:27:00] Sock 7.Parse request [00:27:00]Sock 7.Check first char [00:27:00]Sock 7.First char is OK [00:27:00]request: POST /json_proto HTTP/1.0 [00:27:00]Method: POST [00:27:00]URL: /json_proto [00:27:00]Method is POST - this is cgi request [00:27:00]url: /json_proto [00:27:00]query_string will be loaded in cgi processing [00:27:00]execute_cgi json_proto POST (null) [00:27:00]execute_cgi path=json_proto method=POST [00:27:00]POST find Content-Length [00:27:00]Host: 172.17.45.132:8080 [00:27:00]Content-Length: 645 [00:27:00]Content-Type: application/json [00:27:00] [00:27:00]POST finish read [00:27:00]Found Content-Length = 645 [00:27:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126593", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:00]execute_script... [00:27:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126593", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\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" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:00]POST & json_proto [00:27:00]process_json_proto [00:27:00]json parsed OK: [00:27:00]protocol is kg_v1.0 [00:27:00]action value=close_receipt [00:27:00]process_action close_receipt [00:27:00]cmd_close_receipt [00:27:00]MH_GetDate [00:27:00]Write to MH i2c: F0 00 00 D7 03 C9 [00:27:00]Write i2c OK [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: F0 [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: F0 09 00 [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: F0 09 00 D7 03 00 54 33 A8 66 E3 0B 90 66 4B [00:27:00]GetLastDocTimeStamp 1722299020 [00:27:00]current date 1722299220 [00:27:00]FM_GetShiftState [00:27:00]SAM_PROTO_GetShiftState [00:27:00]wFMCommunicate request_size=4 [00:27:00]MH_SAM_APDU [00:27:00]CAPDU: 80 13 01 00 [00:27:00]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [00:27:00]Write i2c OK [00:27:00]MH_I2C_Read... [00:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:00]Read from MH i2c: E2 [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: E2 0E 00 [00:27:00]MH_I2C_Read... [00:27:00]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 3F [00:27:00]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:27:00]wFMCommunicate OK [00:27:00]SAM_PROTO_GetShiftState done [00:27:00]FM_GetShiftState done [00:27:00]opened in 1722298270 [00:27:00]opened+sec_in_day 1722384670 [00:27:00]quantity*price = 6000 [00:27:00]sum+1 = 6001 [00:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 3 30.07.2024 00:27 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2386 ФПД: 251299860298937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002700&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2386&fm=251299860298937&tin=02508201610067®Number=0000000000189667&sum=6000 0 [00:27:01]StoreToDocumentArchive [00:27:01]shift 16 fd 2386 [00:27:01]save to /storage/0016/doc_00002386 [00:27:01]save last doc name /storage/0016/doc_00002386 to /storage/kkm_last_doc_name [00:27:01]save OK [00:27:01]Clear old archive folders... [00:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:27:01]tlvbuf is 0084E540 [00:27:01]SAM_PROTO_ClearQueue [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 09 00 00 [00:27:01]Write to MH i2c: E2 08 00 E5 03 80 09 00 00 00 00 00 00 5A [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [00:27:01]RAPDU: 90 00 [00:27:01]wFMCommunicate OK [00:27:01]SAM_PROTO_ClearQueue done [00:27:01]KKMCreateOFDPacket [00:27:01]OFDProtocolAddRootSTLVToBuf [00:27:01]FM_MakeSignedData [00:27:01]FM_MakeSignedData [00:27:01]SAM_PROTO_SignData [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 0D 01 02 [00:27:01]Write to MH i2c: E2 08 00 E6 03 80 0D 01 02 00 00 00 00 62 [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [00:27:01]RAPDU: 90 00 [00:27:01]wFMCommunicate OK [00:27:01]wFMCommunicate request_size=255 [00:27:01]MH_SAM_APDU [00:27:01]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 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 03 00 00 00 F4 03 04 00 54 33 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 [00:27:01]Write to MH i2c: E2 02 01 E7 03 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 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 03 00 00 00 F4 03 04 00 54 33 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 00 00 51 [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [00:27:01]RAPDU: 90 00 [00:27:01]wFMCommunicate OK [00:27:01]wFMCommunicate request_size=35 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 09 00 00 35 04 06 00 E4 8E 4E E7 BC B9 [00:27:01]Write to MH i2c: E2 26 00 E8 03 80 0D 02 02 1E 00 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 09 00 00 35 04 06 00 E4 8E 4E E7 BC B9 00 00 CC [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [00:27:01]RAPDU: 90 00 [00:27:01]wFMCommunicate OK [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 0D 03 02 [00:27:01]Write to MH i2c: E2 08 00 E9 03 80 0D 03 02 00 00 00 00 67 [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 0B 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 0B 00 E9 03 00 7B 6C 22 4C DE 87 1E 87 90 00 C7 [00:27:01]RAPDU: 7B 6C 22 4C DE 87 1E 87 90 00 [00:27:01]wFMCommunicate OK [00:27:01]SAM_PROTO_SignData done [00:27:01]FM_MakeSignedData done [00:27:01]CreateOFDProtocolMessage [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 11 00 00 [00:27:01]Write to MH i2c: E2 08 00 EA 03 80 11 00 00 00 00 00 00 67 [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 17 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 17 00 EA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B7 [00:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:27:01]wFMCommunicate OK [00:27:01]CreateOFDProtocolMessage done [00:27:01]OFDSenderStorePacket 2386 [00:27:01]StoreOFDPacket docnum=2386 [00:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 28 01 00 00 89 74 20 01 11 A7 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 03 00 00 00 F4 03 04 00 54 33 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 09 00 00 35 04 06 00 E4 8E 4E E7 BC B9 7B 6C 22 4C DE 87 1E 87 [00:27:01]CheckFolder [00:27:01]dirname=/storage/ofd_packets [00:27:01]CheckFolder done [00:27:01]ProducePacketName [00:27:01]name=ofd_packets/00002386 [00:27:01]NVStorageSaveData ofd_packets/00002386 [00:27:01]File name is /storage/ofd_packets/00002386 [00:27:01]Write 326 bytes [00:27:01]NVStorageSaveData done [00:27:01]OFDSenderStorePacket done [00:27:01]KKMCreateOFDPacket done [00:27:01]NVStorageSaveData kkm_last_timestamp [00:27:01]File name is /storage/kkm_last_timestamp [00:27:01]Write 4 bytes [00:27:01]NVStorageSaveData done [00:27:01]ExternCall_PrintAddStr [00:27:01]wPrintStart [00:27:01]Write to MH i2c: 01 00 00 EB 03 EE [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: 01 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: 01 07 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 FF 0F 03 [00:27:01]RasterBufferAndPrint [00:27:01]line Счет N : (3)126593 [00:27:01]line ИНН: 02508201610067 [00:27:01]line Контрольно-Кассовый Чек [00:27:01]line ПРОДАЖА [00:27:01]line Товар: 4700000310043 [00:27:01]line Вода Жалалабат 27 1л [00:27:01]line 1.000 * 60.00 [00:27:01]line = 60.00 [00:27:01]line НДС 12% НСП 1% [00:27:01]line > о реализуемом товаре [00:27:01]line ИТОГО: 60.00 [00:27:01]line НСП 1% : 0.53 [00:27:01]line НДС 12% : 6.37 [00:27:01]line Наличными: 60.00 [00:27:01]line Безнал.: 0.00 [00:27:01]line Место: АЗС № 127 "Партнер Нефть" [00:27:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:27:01]line СНО: Общий режим [00:27:01]line Чек 3 30.07.2024 00:27 [00:27:01]line Смена: 16 ФФД: 1.0 [00:27:01]line ЗНМ: 0300000161 [00:27:01]line РНМ: 0000000000189667 [00:27:01]line Версия ККМ: v1.0 [00:27:01]line ФМ: 0000000002094248 [00:27:01]line ФД: 2386 [00:27:01]line ФПД: 251299860298937 [00:27:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002700&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2386&fm=251299860298937&tin=02508201610067®Number=0000000000189667&sum=6000 [00:27:02]line 0 [00:27:02]OFD Sender: Processing packet 2386 [packets to send 1, broken 0] [00:27:02]ProducePacketName [00:27:02]name=ofd_packets/00002386 [00:27:02]OFD Sender: To server: pG, [00:27:02]CommunicateWithHost lk.salyk.kg:30040 [00:27:02]ConnectInit lk.salyk.kg [00:27:02]written 0, free lines is 4095 [00:27:02]Connected sock=9 [00:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 28 01 00 00 89 74 20 01 11 A7 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 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 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 03 00 00 00 F4 03 04 00 54 33 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 09 00 00 35 04 06 00 E4 8E 4E E7 BC B9 7B 6C 22 4C DE 87 1E 87 [00:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 B8 5E 47 00 3B 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 52 09 00 00 F4 03 04 00 C0 DE A7 66 B6 04 01 00 00 2F 77 C0 D0 3A 9D 54 0F [00:27:02]CommunicateWithHost err = 0 [00:27:02]CheckOFDResponse [00:27:02]1017 (14) - 77093643461234 [00:27:02]1041 (16) - 0000000002094248 [00:27:02]1040 (4) - 2386 [00:27:02]1012 (4) - 29.07.2024 18:26 [00:27:02]1206 (1) - 0 [00:27:02]OFD Sender: Remove packet 2386 [00:27:02]ProducePacketName [00:27:02]name=ofd_packets/00002386 [00:27:02]NVStorageDeleteData [00:27:02]Write to MH i2c: 01 00 00 13 04 17 [00:27:02]Write i2c OK [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: 01 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: 01 07 00 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 18 0D 43 [00:27:02]RasterBufferAndPrint [00:27:02]line [00:27:02]line [00:27:02]line [00:27:02]line [00:27:02]line [00:27:02]written 0, free lines is 3359 [00:27:02]MH_Cut [00:27:02]Write to MH i2c: D1 01 00 1A 04 01 F0 [00:27:02]Write i2c OK [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: D1 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: D1 01 00 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: D1 01 00 1A 04 00 EF [00:27:02]Write to MH i2c: 01 00 00 1B 04 1F [00:27:02]Write i2c OK [00:27:02]MH_I2C_Read... [00:27:03]OFD Sender: No OFD packet to send [00:27:03]*** Cut start [00:27:03]*** Partial cut [00:27:03]*** CUTSNS_PIN = 1 [00:27:03]*** CUTSNS_PIN = 0 [00:27:03]*** Brake cut motor [00:27:03]Read from MH i2c: 01 [00:27:03]MH_I2C_Read... [00:27:03]*** Stop cut motor [00:27:03]*** Cut end [00:27:03]Read from MH i2c: 01 07 00 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [00:27:03]process_action close_receipt done [00:27:03]requested_data is exist [00:27:03]produce_requested_data [00:27:03]requested_item fm.sn is exist - process it [00:27:03]wFMCommunicate request_size=4 [00:27:03]MH_SAM_APDU [00:27:03]CAPDU: 80 11 00 00 [00:27:03]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [00:27:03]Write i2c OK [00:27:03]MH_I2C_Read... [00:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:03]Read from MH i2c: E2 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 17 00 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 EA [00:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:27:03]wFMCommunicate OK [00:27:03]requested_item fd.num is exist - process it [00:27:03]SAM_PROTO_GetFieldsCounters [00:27:03]wFMCommunicate request_size=4 [00:27:03]MH_SAM_APDU [00:27:03]CAPDU: 80 13 00 00 [00:27:03]Write to MH i2c: E2 08 00 1D 04 80 13 00 00 00 00 00 00 9D [00:27:03]Write i2c OK [00:27:03]MH_I2C_Read... [00:27:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:04]Read from MH i2c: E2 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 62 00 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 62 00 1D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 52 09 00 00 0E 04 04 00 10 00 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 3B [00:27:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 52 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:04]wFMCommunicate OK [00:27:04]SAM_PROTO_GetFieldsCounters done [00:27:04]requested_item shift.num is exist - process it [00:27:04]requested_item shift.opened is exist - process it [00:27:04]req_shift_opened [00:27:04]FM_GetShiftState [00:27:04]SAM_PROTO_GetShiftState [00:27:04]wFMCommunicate request_size=4 [00:27:04]MH_SAM_APDU [00:27:04]CAPDU: 80 13 01 00 [00:27:04]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [00:27:04]Write i2c OK [00:27:04]MH_I2C_Read... [00:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:04]Read from MH i2c: E2 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 0E 00 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 86 [00:27:04]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:27:04]wFMCommunicate OK [00:27:04]SAM_PROTO_GetShiftState done [00:27:04]FM_GetShiftState done [00:27:04]req_shift_opened done [00:27:04]requested_item shift.open_date is exist - process it [00:27:04]req_shift_open_date [00:27:04]req_shift_open_date done [00:27:04]produce_requested_data done [00:27:04]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2386,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [00:27:04]process_action_free close_receipt [00:27:04]json_value_free [00:27:04]json_value_free done [00:27:04]process_json_proto returns [00:27:04]Send response to host [00:27:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2386,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [00:27:04]free response buf [00:27:04]execute_script done [00:27:04]execute_script returns [00:27:04]free content buf [00:27:04]Sock 7.Close socket [00:27:04]Sock 7.Thread stoped [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32: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:23]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [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: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:36]accept exits with 10 [00:36:36]New connection [00:36:36]New thread 3067624804 created [00:36:36]Thread 3067481444 joined [00:36:36]Waiting for new connection... [00:36:36] Sock 10.Parse request [00:36:36]Sock 10.Check first char [00:36:36]Sock 10.First char is OK [00:36:36]request: POST /json_proto HTTP/1.0 [00:36:36]Method: POST [00:36:36]URL: /json_proto [00:36:36]Method is POST - this is cgi request [00:36:36]url: /json_proto [00:36:36]query_string will be loaded in cgi processing [00:36:36]execute_cgi json_proto POST (null) [00:36:36]execute_cgi path=json_proto method=POST [00:36:36]POST find Content-Length [00:36:36]Host: 172.17.45.132:8080 [00:36:36]Content-Length: 624 [00:36:36]Content-Type: application/json [00:36:36] [00:36:36]POST finish read [00:36:36]Found Content-Length = 624 [00:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126594", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:36]execute_script... [00:36: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)126594", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:36]POST & json_proto [00:36:36]process_json_proto [00:36:36]json parsed OK: [00:36:36]protocol is kg_v1.0 [00:36:36]action value=close_receipt [00:36:36]process_action close_receipt [00:36:36]cmd_close_receipt [00:36:36]MH_GetDate [00:36:36]Write to MH i2c: F0 00 00 1F 04 12 [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: F0 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: F0 09 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: F0 09 00 1F 04 00 95 35 A8 66 E3 0B 90 66 D7 [00:36:36]GetLastDocTimeStamp 1722299220 [00:36:36]current date 1722299797 [00:36:36]FM_GetShiftState [00:36:36]SAM_PROTO_GetShiftState [00:36:36]wFMCommunicate request_size=4 [00:36:36]MH_SAM_APDU [00:36:36]CAPDU: 80 13 01 00 [00:36:36]Write to MH i2c: E2 08 00 20 04 80 13 01 00 00 00 00 00 A1 [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:36]Read from MH i2c: E2 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 0E 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 0E 00 20 04 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 88 [00:36:36]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:36:36]wFMCommunicate OK [00:36:36]SAM_PROTO_GetShiftState done [00:36:36]FM_GetShiftState done [00:36:36]opened in 1722298270 [00:36:36]opened+sec_in_day 1722384670 [00:36:36]quantity*price = 30000 [00:36:36]sum+1 = 30001 [00:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 4 30.07.2024 00:36 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2387 ФПД: 83614598708671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T003637&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2387&fm=83614598708671&tin=02508201610067®Number=0000000000189667&sum=30000 0 [00:36:37]StoreToDocumentArchive [00:36:37]shift 16 fd 2387 [00:36:37]save to /storage/0016/doc_00002387 [00:36:37]save last doc name /storage/0016/doc_00002387 to /storage/kkm_last_doc_name [00:36:37]save OK [00:36:37]Clear old archive folders... [00:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=268 [00:36:37]tlvbuf is 008479C0 [00:36:37]SAM_PROTO_ClearQueue [00:36:37]wFMCommunicate request_size=4 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 09 00 00 [00:36:37]Write to MH i2c: E2 08 00 2D 04 80 09 00 00 00 00 00 00 A3 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]SAM_PROTO_ClearQueue done [00:36:37]KKMCreateOFDPacket [00:36:37]OFDProtocolAddRootSTLVToBuf [00:36:37]FM_MakeSignedData [00:36:37]FM_MakeSignedData [00:36:37]SAM_PROTO_SignData [00:36:37]wFMCommunicate request_size=4 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 0D 01 02 [00:36:37]Write to MH i2c: E2 08 00 2E 04 80 0D 01 02 00 00 00 00 AB [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=255 [00:36:37]MH_SAM_APDU [00:36:37]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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 95 35 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 [00:36:37]Write to MH i2c: E2 02 01 2F 04 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 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 95 35 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 00 00 4A [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=27 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 0D 02 02 16 34 32 34 38 10 04 04 00 53 09 00 00 35 04 06 00 4C 0C 0A 74 3D BF [00:36:37]Write to MH i2c: E2 1E 00 30 04 80 0D 02 02 16 00 34 32 34 38 10 04 04 00 53 09 00 00 35 04 06 00 4C 0C 0A 74 3D BF 00 00 31 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=4 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 0D 03 02 [00:36:37]Write to MH i2c: E2 08 00 31 04 80 0D 03 02 00 00 00 00 B0 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 0B 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 0B 00 31 04 00 01 92 1A A7 7E AC D3 87 90 00 89 [00:36:37]RAPDU: 01 92 1A A7 7E AC D3 87 90 00 [00:36:37]wFMCommunicate OK [00:36:37]SAM_PROTO_SignData done [00:36:37]FM_MakeSignedData done [00:36:37]CreateOFDProtocolMessage [00:36:37]wFMCommunicate request_size=4 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 11 00 00 [00:36:37]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 17 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 00 [00:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:36:37]wFMCommunicate OK [00:36:37]CreateOFDProtocolMessage done [00:36:37]OFDSenderStorePacket 2387 [00:36:37]StoreOFDPacket docnum=2387 [00:36:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 46 0D 18 01 13 03 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 95 35 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 09 00 00 35 04 06 00 4C 0C 0A 74 3D BF 01 92 1A A7 7E AC D3 87 [00:36:37]CheckFolder [00:36:37]dirname=/storage/ofd_packets [00:36:37]CheckFolder done [00:36:37]ProducePacketName [00:36:37]name=ofd_packets/00002387 [00:36:37]NVStorageSaveData ofd_packets/00002387 [00:36:37]File name is /storage/ofd_packets/00002387 [00:36:37]Write 318 bytes [00:36:37]NVStorageSaveData done [00:36:37]OFDSenderStorePacket done [00:36:37]KKMCreateOFDPacket done [00:36:37]NVStorageSaveData kkm_last_timestamp [00:36:37]File name is /storage/kkm_last_timestamp [00:36:37]Write 4 bytes [00:36:37]NVStorageSaveData done [00:36:37]ExternCall_PrintAddStr [00:36:37]wPrintStart [00:36:37]Write to MH i2c: 01 00 00 33 04 37 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: 01 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: 01 07 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [00:36:37]RasterBufferAndPrint [00:36:37]line Счет N : (3)126594 [00:36:37]line ИНН: 02508201610067 [00:36:37]line Контрольно-Кассовый Чек [00:36:37]line ПРОДАЖА [00:36:37]line Товар: 4600721021627 [00:36:37]line Пиво БАД 0,5л ст [00:36:37]line 2.000 * 150.00 [00:36:37]line = 300.00 [00:36:37]line НДС 12% НСП 1% [00:36:37]line > о реализуемом товаре [00:36:37]line ИТОГО: 300.00 [00:36:37]line НСП 1% : 2.65 [00:36:37]line НДС 12% : 31.86 [00:36:37]line Наличными: 300.00 [00:36:37]line Безнал.: 0.00 [00:36:37]line Место: АЗС № 127 "Партнер Нефть" [00:36:37]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:36:37]line СНО: Общий режим [00:36:37]line Чек 4 30.07.2024 00:36 [00:36:37]line Смена: 16 ФФД: 1.0 [00:36:37]line ЗНМ: 0300000161 [00:36:37]line РНМ: 0000000000189667 [00:36:37]line Версия ККМ: v1.0 [00:36:37]line ФМ: 0000000002094248 [00:36:37]line ФД: 2387 [00:36:37]line ФПД: 83614598708671 [00:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T003637&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2387&fm=83614598708671&tin=02508201610067®Number=0000000000189667&sum=30000 [00:36:38]line 0 [00:36:38]OFD Sender: Processing packet 2387 [packets to send 1, broken 0] [00:36:38]ProducePacketName [00:36:38]name=ofd_packets/00002387 [00:36:38]OFD Sender: To server: pG, [00:36:38]CommunicateWithHost lk.salyk.kg:30040 [00:36:38]ConnectInit lk.salyk.kg [00:36:38]written 0, free lines is 4095 [00:36:38]Connected sock=9 [00:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 20 01 00 00 46 0D 18 01 13 03 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 30 75 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 95 35 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 09 00 00 35 04 06 00 4C 0C 0A 74 3D BF 01 92 1A A7 7E AC D3 87 [00:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 88 1F 47 00 A6 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 53 09 00 00 F4 03 04 00 00 E1 A7 66 B6 04 01 00 00 8D 99 8E E6 77 96 61 90 [00:36:38]CommunicateWithHost err = 0 [00:36:38]CheckOFDResponse [00:36:38]1017 (14) - 77093643461234 [00:36:38]1041 (16) - 0000000002094248 [00:36:38]1040 (4) - 2387 [00:36:38]1012 (4) - 29.07.2024 18:35 [00:36:38]1206 (1) - 0 [00:36:38]OFD Sender: Remove packet 2387 [00:36:38]ProducePacketName [00:36:38]name=ofd_packets/00002387 [00:36:38]NVStorageDeleteData [00:36:38]Write to MH i2c: 01 00 00 5B 04 5F [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: 01 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: 01 07 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 0E 0D 81 [00:36:38]RasterBufferAndPrint [00:36:38]line [00:36:38]line [00:36:38]line [00:36:38]line [00:36:38]line [00:36:38]written 0, free lines is 3348 [00:36:38]MH_Cut [00:36:38]Write to MH i2c: D1 01 00 62 04 01 38 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: D1 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: D1 01 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: D1 01 00 62 04 00 37 [00:36:38]Write to MH i2c: 01 00 00 63 04 67 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:39]OFD Sender: No OFD packet to send [00:36:39]*** Cut start [00:36:39]*** Partial cut [00:36:39]*** CUTSNS_PIN = 1 [00:36:39]*** CUTSNS_PIN = 0 [00:36:39]*** Brake cut motor [00:36:40]Read from MH i2c: 01 [00:36:40]MH_I2C_Read... [00:36:40]*** Stop cut motor [00:36:40]*** Cut end [00:36:40]Read from MH i2c: 01 07 00 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [00:36:40]process_action close_receipt done [00:36:40]requested_data is exist [00:36:40]produce_requested_data [00:36:40]requested_item fm.sn is exist - process it [00:36:40]wFMCommunicate request_size=4 [00:36:40]MH_SAM_APDU [00:36:40]CAPDU: 80 11 00 00 [00:36:40]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [00:36:40]Write i2c OK [00:36:40]MH_I2C_Read... [00:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:40]Read from MH i2c: E2 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 17 00 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 32 [00:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:36:40]wFMCommunicate OK [00:36:40]requested_item fd.num is exist - process it [00:36:40]SAM_PROTO_GetFieldsCounters [00:36:40]wFMCommunicate request_size=4 [00:36:40]MH_SAM_APDU [00:36:40]CAPDU: 80 13 00 00 [00:36:40]Write to MH i2c: E2 08 00 65 04 80 13 00 00 00 00 00 00 E5 [00:36:40]Write i2c OK [00:36:40]MH_I2C_Read... [00:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:40]Read from MH i2c: E2 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 62 00 [00:36:40]MH_I2C_Read... [00:36:40]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 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 53 09 00 00 0E 04 04 00 10 00 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 87 [00:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 53 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:40]wFMCommunicate OK [00:36:40]SAM_PROTO_GetFieldsCounters done [00:36:40]requested_item shift.num is exist - process it [00:36:40]requested_item shift.opened is exist - process it [00:36:40]req_shift_opened [00:36:40]FM_GetShiftState [00:36:40]SAM_PROTO_GetShiftState [00:36:40]wFMCommunicate request_size=4 [00:36:40]MH_SAM_APDU [00:36:40]CAPDU: 80 13 01 00 [00:36:40]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [00:36:40]Write i2c OK [00:36:40]MH_I2C_Read... [00:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:40]Read from MH i2c: E2 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 0E 00 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 CE [00:36:40]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:36:40]wFMCommunicate OK [00:36:40]SAM_PROTO_GetShiftState done [00:36:40]FM_GetShiftState done [00:36:40]req_shift_opened done [00:36:40]requested_item shift.open_date is exist - process it [00:36:40]req_shift_open_date [00:36:40]req_shift_open_date done [00:36:40]produce_requested_data done [00:36:40]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2387,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [00:36:40]process_action_free close_receipt [00:36:40]json_value_free [00:36:40]json_value_free done [00:36:40]process_json_proto returns [00:36:40]Send response to host [00:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2387,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [00:36:40]free response buf [00:36:40]execute_script done [00:36:40]execute_script returns [00:36:40]free content buf [00:36:40]Sock 10.Close socket [00:36:40]Sock 10.Thread stoped [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]accept exits with 7 [00:48:54]New connection [00:48:54]New thread 3067481444 created [00:48:54]Thread 3067624804 joined [00:48:54]Waiting for new connection... [00:48:54] Sock 7.Parse request [00:48:54]Sock 7.Check first char [00:48:54]Sock 7.First char is OK [00:48:54]request: POST /json_proto HTTP/1.0 [00:48:54]Method: POST [00:48:54]URL: /json_proto [00:48:54]Method is POST - this is cgi request [00:48:54]url: /json_proto [00:48:54]query_string will be loaded in cgi processing [00:48:54]execute_cgi json_proto POST (null) [00:48:54]execute_cgi path=json_proto method=POST [00:48:54]POST find Content-Length [00:48:54]Host: 172.17.45.132:8080 [00:48:54]Content-Length: 1048 [00:48:54]Content-Type: application/json [00:48:54] [00:48:54]POST finish read [00:48:54]Found Content-Length = 1048 [00:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126595", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:54]execute_script... [00:48:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126595", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:54]POST & json_proto [00:48:54]process_json_proto [00:48:54]json parsed OK: [00:48:54]protocol is kg_v1.0 [00:48:54]action value=close_receipt [00:48:54]process_action close_receipt [00:48:54]cmd_close_receipt [00:48:54]MH_GetDate [00:48:54]Write to MH i2c: F0 00 00 67 04 5A [00:48:54]Write i2c OK [00:48:54]MH_I2C_Read... [00:48:54]Read from MH i2c: F0 [00:48:54]MH_I2C_Read... [00:48:54]Read from MH i2c: F0 09 00 [00:48:54]MH_I2C_Read... [00:48:54]Read from MH i2c: F0 09 00 67 04 00 77 38 A8 66 E3 0B 90 66 04 [00:48:54]GetLastDocTimeStamp 1722299797 [00:48:54]current date 1722300535 [00:48:54]FM_GetShiftState [00:48:54]SAM_PROTO_GetShiftState [00:48:54]wFMCommunicate request_size=4 [00:48:54]MH_SAM_APDU [00:48:54]CAPDU: 80 13 01 00 [00:48:54]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [00:48:54]Write i2c OK [00:48:54]MH_I2C_Read... [00:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:54]Read from MH i2c: E2 [00:48:54]MH_I2C_Read... [00:48:54]Read from MH i2c: E2 0E 00 [00:48:54]MH_I2C_Read... [00:48:54]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 D0 [00:48:54]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:48:54]wFMCommunicate OK [00:48:54]SAM_PROTO_GetShiftState done [00:48:54]FM_GetShiftState done [00:48:54]opened in 1722298270 [00:48:54]opened+sec_in_day 1722384670 [00:48:54]quantity*price = 3500 [00:48:54]sum+1 = 3501 [00:48:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030092499 Сигареты ESSE SENSE Himalaya 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 0.00 Безнал.: 185.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 5 30.07.2024 00:48 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2388 ФПД: 132518167926549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T004855&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2388&fm=132518167926549&tin=02508201610067®Number=0000000000189667&sum=18500 0 [00:48:55]StoreToDocumentArchive [00:48:55]shift 16 fd 2388 [00:48:55]save to /storage/0016/doc_00002388 [00:48:55]save last doc name /storage/0016/doc_00002388 to /storage/kkm_last_doc_name [00:48:55]save OK [00:48:55]Clear old archive folders... [00:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=383 [00:48:55]tlvbuf is 00848EB0 [00:48:55]SAM_PROTO_ClearQueue [00:48:55]wFMCommunicate request_size=4 [00:48:55]MH_SAM_APDU [00:48:55]CAPDU: 80 09 00 00 [00:48:55]Write to MH i2c: E2 08 00 75 04 80 09 00 00 00 00 00 00 EB [00:48:55]Write i2c OK [00:48:55]MH_I2C_Read... [00:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:55]Read from MH i2c: E2 [00:48:55]MH_I2C_Read... [00:48:55]Read from MH i2c: E2 03 00 [00:48:55]MH_I2C_Read... [00:48:55]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [00:48:55]RAPDU: 90 00 [00:48:55]wFMCommunicate OK [00:48:55]SAM_PROTO_ClearQueue done [00:48:55]KKMCreateOFDPacket [00:48:55]OFDProtocolAddRootSTLVToBuf [00:48:55]FM_MakeSignedData [00:48:55]FM_MakeSignedData [00:48:55]SAM_PROTO_SignData [00:48:55]wFMCommunicate request_size=4 [00:48:55]MH_SAM_APDU [00:48:55]CAPDU: 80 0D 01 02 [00:48:55]Write to MH i2c: E2 08 00 76 04 80 0D 01 02 00 00 00 00 F3 [00:48:55]Write i2c OK [00:48:55]MH_I2C_Read... [00:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:55]Read from MH i2c: E2 [00:48:55]MH_I2C_Read... [00:48:55]Read from MH i2c: E2 03 00 [00:48:55]MH_I2C_Read... [00:48:55]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [00:48:55]RAPDU: 90 00 [00:48:55]wFMCommunicate OK [00:48:55]wFMCommunicate request_size=255 [00:48:55]MH_SAM_APDU [00:48:55]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 [00:48:55]Write to MH i2c: E2 02 01 77 04 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 28 [00:48:55]Write i2c OK [00:48:55]MH_I2C_Read... [00:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:55]Read from MH i2c: E2 [00:48:55]MH_I2C_Read... [00:48:55]Read from MH i2c: E2 03 00 [00:48:55]MH_I2C_Read... [00:48:55]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [00:48:55]RAPDU: 90 00 [00:48:55]wFMCommunicate OK [00:48:55]wFMCommunicate request_size=142 [00:48:55]MH_SAM_APDU [00:48:55]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 77 38 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 09 00 00 35 04 06 00 78 86 4A 53 57 15 [00:48:55]Write to MH i2c: E2 91 00 78 04 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 77 38 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 09 00 00 35 04 06 00 78 86 4A 53 57 15 00 00 B4 [00:48:55]Write i2c OK [00:48:55]MH_I2C_Read... [00:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:56]Read from MH i2c: E2 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: E2 03 00 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [00:48:56]RAPDU: 90 00 [00:48:56]wFMCommunicate OK [00:48:56]wFMCommunicate request_size=4 [00:48:56]MH_SAM_APDU [00:48:56]CAPDU: 80 0D 03 02 [00:48:56]Write to MH i2c: E2 08 00 79 04 80 0D 03 02 00 00 00 00 F8 [00:48:56]Write i2c OK [00:48:56]MH_I2C_Read... [00:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:56]Read from MH i2c: E2 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: E2 0B 00 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: E2 0B 00 79 04 00 50 42 2E 85 4F E0 27 53 90 00 E7 [00:48:56]RAPDU: 50 42 2E 85 4F E0 27 53 90 00 [00:48:56]wFMCommunicate OK [00:48:56]SAM_PROTO_SignData done [00:48:56]FM_MakeSignedData done [00:48:56]CreateOFDProtocolMessage [00:48:56]wFMCommunicate request_size=4 [00:48:56]MH_SAM_APDU [00:48:56]CAPDU: 80 11 00 00 [00:48:56]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [00:48:56]Write i2c OK [00:48:56]MH_I2C_Read... [00:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:56]Read from MH i2c: E2 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: E2 17 00 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 48 [00:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:48:56]wFMCommunicate OK [00:48:56]CreateOFDProtocolMessage done [00:48:56]OFDSenderStorePacket 2388 [00:48:56]StoreOFDPacket docnum=2388 [00:48:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 93 01 00 00 0F 0D 8B 01 81 B5 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 77 38 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 09 00 00 35 04 06 00 78 86 4A 53 57 15 50 42 2E 85 4F E0 27 53 [00:48:56]CheckFolder [00:48:56]dirname=/storage/ofd_packets [00:48:56]CheckFolder done [00:48:56]ProducePacketName [00:48:56]name=ofd_packets/00002388 [00:48:56]NVStorageSaveData ofd_packets/00002388 [00:48:56]File name is /storage/ofd_packets/00002388 [00:48:56]Write 433 bytes [00:48:56]NVStorageSaveData done [00:48:56]OFDSenderStorePacket done [00:48:56]KKMCreateOFDPacket done [00:48:56]NVStorageSaveData kkm_last_timestamp [00:48:56]File name is /storage/kkm_last_timestamp [00:48:56]Write 4 bytes [00:48:56]NVStorageSaveData done [00:48:56]ExternCall_PrintAddStr [00:48:56]wPrintStart [00:48:56]Write to MH i2c: 01 00 00 7B 04 7F [00:48:56]OFD Sender: Processing packet 2388 [packets to send 1, broken 0] [00:48:56]ProducePacketName [00:48:56]name=ofd_packets/00002388 [00:48:56]OFD Sender: To server: pG, [00:48:56]CommunicateWithHost lk.salyk.kg:30040 [00:48:56]ConnectInit lk.salyk.kg [00:48:56]Write i2c OK [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: 01 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: 01 07 00 [00:48:56]MH_I2C_Read... [00:48:56]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [00:48:56]RasterBufferAndPrint [00:48:56]line Счет N : (3)126595 [00:48:56]line ИНН: 02508201610067 [00:48:56]line Контрольно-Кассовый Чек [00:48:56]line ПРОДАЖА [00:48:56]line Товар: 4700000310326 [00:48:56]line Вода Адыгене 1л б/г [00:48:56]line 1.000 * 35.00 [00:48:56]line = 35.00 [00:48:56]line НДС 12% НСП 1% [00:48:56]line > о реализуемом товаре [00:48:56]line Товар: 4640030092499 [00:48:56]line Сигареты ESSE SENSE Himalaya [00:48:56]line 1.000 * 150.00 [00:48:56]line = 150.00 [00:48:56]line НДС 12% НСП 1% [00:48:56]line > о реализуемом товаре [00:48:56]line ИТОГО: 185.00 [00:48:56]line НСП 1% : 1.64 [00:48:56]line НДС 12% : 19.65 [00:48:56]line Наличными: 0.00 [00:48:56]line Безнал.: 185.00 [00:48:56]line Место: АЗС № 127 "Партнер Нефть" [00:48:56]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [00:48:56]line СНО: Общий режим [00:48:56]line Чек 5 30.07.2024 00:48 [00:48:56]line Смена: 16 ФФД: 1.0 [00:48:56]line ЗНМ: 0300000161 [00:48:56]line РНМ: 0000000000189667 [00:48:56]line Версия ККМ: v1.0 [00:48:56]line Платежная система: O! деньги [00:48:56]line ФМ: 0000000002094248 [00:48:56]line ФД: 2388 [00:48:56]line ФПД: 132518167926549 [00:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T004855&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2388&fm=132518167926549&tin=02508201610067®Number=0000000000189667&sum=18500 [00:48:56]line 0 [00:48:56]written 0, free lines is 4095 [00:48:56]Connected sock=10 [00:48:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 93 01 00 00 0F 0D 8B 01 81 B5 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 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 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 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 77 38 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 09 00 00 35 04 06 00 78 86 4A 53 57 15 50 42 2E 85 4F E0 27 53 [00:48:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 0C D0 47 00 7C 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 54 09 00 00 F4 03 04 00 E2 E3 A7 66 B6 04 01 00 00 08 61 F1 89 04 CC 9F 9C [00:48:56]CommunicateWithHost err = 0 [00:48:56]CheckOFDResponse [00:48:56]1017 (14) - 77093643461234 [00:48:56]1041 (16) - 0000000002094248 [00:48:56]1040 (4) - 2388 [00:48:56]1012 (4) - 29.07.2024 18:48 [00:48:56]1206 (1) - 0 [00:48:56]OFD Sender: Remove packet 2388 [00:48:56]ProducePacketName [00:48:56]name=ofd_packets/00002388 [00:48:56]NVStorageDeleteData [00:48:57]Write to MH i2c: 01 00 00 AC 04 B0 [00:48:57]Write i2c OK [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 07 00 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 AC 0C 6F [00:48:57]RasterBufferAndPrint [00:48:57]line [00:48:57]line [00:48:57]line [00:48:57]line [00:48:57]line [00:48:57]written 0, free lines is 3253 [00:48:57]MH_Cut [00:48:57]Write to MH i2c: D1 01 00 B3 04 01 89 [00:48:57]Write i2c OK [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: D1 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: D1 01 00 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: D1 01 00 B3 04 00 88 [00:48:57]Write to MH i2c: 01 00 00 B4 04 B8 [00:48:57]Write i2c OK [00:48:57]MH_I2C_Read... [00:48:57]OFD Sender: No OFD packet to send [00:48:57]*** Cut start [00:48:57]*** Partial cut [00:48:57]*** CUTSNS_PIN = 1 [00:48:57]*** CUTSNS_PIN = 0 [00:48:58]*** Brake cut motor [00:48:58]Read from MH i2c: 01 [00:48:58]MH_I2C_Read... [00:48:58]*** Stop cut motor [00:48:58]Read from MH i2c: 01 07 00 [00:48:58]MH_I2C_Read... [00:48:58]*** Cut end [00:48:58]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [00:48:58]process_action close_receipt done [00:48:58]requested_data is exist [00:48:58]produce_requested_data [00:48:58]requested_item fm.sn is exist - process it [00:48:58]wFMCommunicate request_size=4 [00:48:58]MH_SAM_APDU [00:48:58]CAPDU: 80 11 00 00 [00:48:58]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [00:48:58]Write i2c OK [00:48:58]MH_I2C_Read... [00:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:58]Read from MH i2c: E2 [00:48:58]MH_I2C_Read... [00:48:58]Read from MH i2c: E2 17 00 [00:48:58]MH_I2C_Read... [00:48:58]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 83 [00:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [00:48:58]wFMCommunicate OK [00:48:58]requested_item fd.num is exist - process it [00:48:58]SAM_PROTO_GetFieldsCounters [00:48:58]wFMCommunicate request_size=4 [00:48:58]MH_SAM_APDU [00:48:58]CAPDU: 80 13 00 00 [00:48:58]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [00:48:58]Write i2c OK [00:48:58]MH_I2C_Read... [00:48:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:58]Read from MH i2c: E2 [00:48:58]MH_I2C_Read... [00:48:58]Read from MH i2c: E2 62 00 [00:48:58]MH_I2C_Read... [00:48:58]Read from MH i2c: E2 62 00 B6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 54 09 00 00 0E 04 04 00 10 00 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 DC [00:48:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 54 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:58]wFMCommunicate OK [00:48:58]SAM_PROTO_GetFieldsCounters done [00:48:58]requested_item shift.num is exist - process it [00:48:58]requested_item shift.opened is exist - process it [00:48:58]req_shift_opened [00:48:58]FM_GetShiftState [00:48:58]SAM_PROTO_GetShiftState [00:48:58]wFMCommunicate request_size=4 [00:48:58]MH_SAM_APDU [00:48:58]CAPDU: 80 13 01 00 [00:48:58]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [00:48:58]Write i2c OK [00:48:58]MH_I2C_Read... [00:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:58]Read from MH i2c: E2 [00:48:58]MH_I2C_Read... [00:48:58]Read from MH i2c: E2 0E 00 [00:48:58]MH_I2C_Read... [00:48:58]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 1F [00:48:58]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [00:48:58]wFMCommunicate OK [00:48:58]SAM_PROTO_GetShiftState done [00:48:58]FM_GetShiftState done [00:48:58]req_shift_opened done [00:48:58]requested_item shift.open_date is exist - process it [00:48:58]req_shift_open_date [00:48:58]req_shift_open_date done [00:48:58]produce_requested_data done [00:48:58]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2388,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [00:48:58]process_action_free close_receipt [00:48:58]json_value_free [00:48:58]json_value_free done [00:48:58]process_json_proto returns [00:48:58]Send response to host [00:48:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2388,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [00:48:58]free response buf [00:48:58]execute_script done [00:48:58]execute_script returns [00:48:58]free content buf [00:48:58]Sock 7.Close socket [00:48:58]Sock 7.Thread stoped [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:47]accept exits with 9 [01:14:47]New connection [01:14:47]New thread 3067624804 created [01:14:47]Thread 3067481444 joined [01:14:47]Waiting for new connection... [01:14:47] Sock 9.Parse request [01:14:47]Sock 9.Check first char [01:14:47]Sock 9.First char is OK [01:14:47]request: POST /json_proto HTTP/1.0 [01:14:47]Method: POST [01:14:47]URL: /json_proto [01:14:47]Method is POST - this is cgi request [01:14:47]url: /json_proto [01:14:47]query_string will be loaded in cgi processing [01:14:47]execute_cgi json_proto POST (null) [01:14:47]execute_cgi path=json_proto method=POST [01:14:47]POST find Content-Length [01:14:47]Host: 172.17.45.132:8080 [01:14:47]Content-Length: 630 [01:14:47]Content-Type: application/json [01:14:47] [01:14:47]POST finish read [01:14:47]Found Content-Length = 630 [01:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126596", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.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" ] } } [01:14:47]execute_script... [01:14:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126596", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.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" ] } } [01:14:47]POST & json_proto [01:14:47]process_json_proto [01:14:47]json parsed OK: [01:14:47]protocol is kg_v1.0 [01:14:47]action value=close_receipt [01:14:47]process_action close_receipt [01:14:47]cmd_close_receipt [01:14:47]MH_GetDate [01:14:47]Write to MH i2c: F0 00 00 B8 04 AB [01:14:47]Write i2c OK [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: F0 [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: F0 09 00 [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: F0 09 00 B8 04 00 88 3E A8 66 E3 0B 90 66 6C [01:14:47]GetLastDocTimeStamp 1722300535 [01:14:47]current date 1722302088 [01:14:47]FM_GetShiftState [01:14:47]SAM_PROTO_GetShiftState [01:14:47]wFMCommunicate request_size=4 [01:14:47]MH_SAM_APDU [01:14:47]CAPDU: 80 13 01 00 [01:14:47]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [01:14:47]Write i2c OK [01:14:47]MH_I2C_Read... [01:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:47]Read from MH i2c: E2 [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: E2 0E 00 [01:14:47]MH_I2C_Read... [01:14:47]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 21 [01:14:47]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:14:47]wFMCommunicate OK [01:14:47]SAM_PROTO_GetShiftState done [01:14:47]FM_GetShiftState done [01:14:47]opened in 1722298270 [01:14:47]opened+sec_in_day 1722384670 [01:14:47]quantity*price = 10000 [01:14:47]sum+1 = 10001 [01:14:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 6 30.07.2024 01:14 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2389 ФПД: 73991711225114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T011448&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2389&fm=73991711225114&tin=02508201610067®Number=0000000000189667&sum=10000 0 [01:14:48]StoreToDocumentArchive [01:14:48]shift 16 fd 2389 [01:14:48]save to /storage/0016/doc_00002389 [01:14:48]save last doc name /storage/0016/doc_00002389 to /storage/kkm_last_doc_name [01:14:48]save OK [01:14:48]Clear old archive folders... [01:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=270 [01:14:48]tlvbuf is 00849CB0 [01:14:48]SAM_PROTO_ClearQueue [01:14:48]wFMCommunicate request_size=4 [01:14:48]MH_SAM_APDU [01:14:48]CAPDU: 80 09 00 00 [01:14:48]Write to MH i2c: E2 08 00 C6 04 80 09 00 00 00 00 00 00 3C [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:14:48]Read from MH i2c: E2 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [01:14:48]RAPDU: 90 00 [01:14:48]wFMCommunicate OK [01:14:48]SAM_PROTO_ClearQueue done [01:14:48]KKMCreateOFDPacket [01:14:48]OFDProtocolAddRootSTLVToBuf [01:14:48]FM_MakeSignedData [01:14:48]FM_MakeSignedData [01:14:48]SAM_PROTO_SignData [01:14:48]wFMCommunicate request_size=4 [01:14:48]MH_SAM_APDU [01:14:48]CAPDU: 80 0D 01 02 [01:14:48]Write to MH i2c: E2 08 00 C7 04 80 0D 01 02 00 00 00 00 44 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:14:48]Read from MH i2c: E2 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [01:14:48]RAPDU: 90 00 [01:14:48]wFMCommunicate OK [01:14:48]wFMCommunicate request_size=255 [01:14:48]MH_SAM_APDU [01:14:48]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 06 00 00 00 F4 03 04 00 88 3E A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [01:14:48]Write to MH i2c: E2 02 01 C8 04 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 06 00 00 00 F4 03 04 00 88 3E A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 78 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]OFD Sender: No OFD packet to send [01:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:48]Read from MH i2c: E2 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [01:14:48]RAPDU: 90 00 [01:14:48]wFMCommunicate OK [01:14:48]wFMCommunicate request_size=29 [01:14:48]MH_SAM_APDU [01:14:48]CAPDU: 80 0D 02 02 18 30 39 34 32 34 38 10 04 04 00 55 09 00 00 35 04 06 00 43 4B 89 A9 F5 1A [01:14:48]Write to MH i2c: E2 20 00 C9 04 80 0D 02 02 18 00 30 39 34 32 34 38 10 04 04 00 55 09 00 00 35 04 06 00 43 4B 89 A9 F5 1A 00 00 36 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:48]Read from MH i2c: E2 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [01:14:48]RAPDU: 90 00 [01:14:48]wFMCommunicate OK [01:14:48]wFMCommunicate request_size=4 [01:14:48]MH_SAM_APDU [01:14:48]CAPDU: 80 0D 03 02 [01:14:48]Write to MH i2c: E2 08 00 CA 04 80 0D 03 02 00 00 00 00 49 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:14:48]Read from MH i2c: E2 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 0B 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 0B 00 CA 04 00 1F D5 A4 DD 79 01 ED 5D 90 00 83 [01:14:48]RAPDU: 1F D5 A4 DD 79 01 ED 5D 90 00 [01:14:48]wFMCommunicate OK [01:14:48]SAM_PROTO_SignData done [01:14:48]FM_MakeSignedData done [01:14:48]CreateOFDProtocolMessage [01:14:48]wFMCommunicate request_size=4 [01:14:48]MH_SAM_APDU [01:14:48]CAPDU: 80 11 00 00 [01:14:48]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:48]Read from MH i2c: E2 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 17 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 99 [01:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:14:48]wFMCommunicate OK [01:14:48]CreateOFDProtocolMessage done [01:14:48]OFDSenderStorePacket 2389 [01:14:48]StoreOFDPacket docnum=2389 [01:14:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 4D 83 1A 01 3F 22 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 06 00 00 00 F4 03 04 00 88 3E A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 09 00 00 35 04 06 00 43 4B 89 A9 F5 1A 1F D5 A4 DD 79 01 ED 5D [01:14:48]CheckFolder [01:14:48]dirname=/storage/ofd_packets [01:14:48]CheckFolder done [01:14:48]ProducePacketName [01:14:48]name=ofd_packets/00002389 [01:14:48]NVStorageSaveData ofd_packets/00002389 [01:14:48]File name is /storage/ofd_packets/00002389 [01:14:48]Write 320 bytes [01:14:48]NVStorageSaveData done [01:14:48]OFDSenderStorePacket done [01:14:48]KKMCreateOFDPacket done [01:14:48]NVStorageSaveData kkm_last_timestamp [01:14:48]File name is /storage/kkm_last_timestamp [01:14:48]Write 4 bytes [01:14:48]NVStorageSaveData done [01:14:48]ExternCall_PrintAddStr [01:14:48]wPrintStart [01:14:48]Write to MH i2c: 01 00 00 CC 04 D0 [01:14:48]Write i2c OK [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: 01 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: 01 07 00 [01:14:48]MH_I2C_Read... [01:14:48]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [01:14:48]RasterBufferAndPrint [01:14:48]line Счет N : (3)126596 [01:14:48]line ИНН: 02508201610067 [01:14:48]line Контрольно-Кассовый Чек [01:14:48]line ПРОДАЖА [01:14:48]line Товар: 4700000480814 [01:14:48]line Пиво Живое 0,5 ст [01:14:48]line 1.000 * 100.00 [01:14:48]line = 100.00 [01:14:48]line НДС 12% НСП 1% [01:14:48]line > о реализуемом товаре [01:14:48]line ИТОГО: 100.00 [01:14:48]line НСП 1% : 0.88 [01:14:48]line НДС 12% : 10.62 [01:14:48]line Наличными: 100.00 [01:14:48]line Безнал.: 0.00 [01:14:48]line Место: АЗС № 127 "Партнер Нефть" [01:14:48]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:14:48]line СНО: Общий режим [01:14:48]line Чек 6 30.07.2024 01:14 [01:14:48]line Смена: 16 ФФД: 1.0 [01:14:48]line ЗНМ: 0300000161 [01:14:48]line РНМ: 0000000000189667 [01:14:48]line Версия ККМ: v1.0 [01:14:48]line ФМ: 0000000002094248 [01:14:48]line ФД: 2389 [01:14:48]line ФПД: 73991711225114 [01:14:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T011448&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2389&fm=73991711225114&tin=02508201610067®Number=0000000000189667&sum=10000 [01:14:49]line 0 [01:14:49]OFD Sender: Processing packet 2389 [packets to send 1, broken 0] [01:14:49]ProducePacketName [01:14:49]name=ofd_packets/00002389 [01:14:49]OFD Sender: To server: pG, [01:14:49]CommunicateWithHost lk.salyk.kg:30040 [01:14:49]ConnectInit lk.salyk.kg [01:14:49]written 0, free lines is 4095 [01:14:49]Connected sock=11 [01:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 22 01 00 00 4D 83 1A 01 3F 22 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 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 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 06 00 00 00 F4 03 04 00 88 3E A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 09 00 00 35 04 06 00 43 4B 89 A9 F5 1A 1F D5 A4 DD 79 01 ED 5D [01:14:49]Write to MH i2c: 01 00 00 F4 04 F8 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: 01 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: 01 07 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: 01 07 00 F4 04 00 00 00 00 00 16 0D 22 [01:14:49]RasterBufferAndPrint [01:14:49]line [01:14:49]line [01:14:49]line [01:14:49]line [01:14:49]line [01:14:49]written 0, free lines is 3358 [01:14:49]MH_Cut [01:14:49]Write to MH i2c: D1 01 00 FB 04 01 D1 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: D1 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: D1 01 00 [01:14:49]MH_I2C_Read... [01:14:49]Read from MH i2c: D1 01 00 FB 04 00 D0 [01:14:49]Write to MH i2c: 01 00 00 FC 04 00 [01:14:49]Write i2c OK [01:14:49]MH_I2C_Read... [01:14:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 7D A1 47 00 FA F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 55 09 00 00 F4 03 04 00 F3 E9 A7 66 B6 04 01 00 00 7C B1 06 37 49 AF 34 E7 [01:14:49]CommunicateWithHost err = 0 [01:14:49]CheckOFDResponse [01:14:49]1017 (14) - 77093643461234 [01:14:49]1041 (16) - 0000000002094248 [01:14:49]1040 (4) - 2389 [01:14:49]1012 (4) - 29.07.2024 19:13 [01:14:49]1206 (1) - 0 [01:14:49]OFD Sender: Remove packet 2389 [01:14:49]ProducePacketName [01:14:49]name=ofd_packets/00002389 [01:14:49]NVStorageDeleteData [01:14:50]*** Cut start [01:14:50]*** Partial cut [01:14:50]*** CUTSNS_PIN = 1 [01:14:50]OFD Sender: No OFD packet to send [01:14:50]*** CUTSNS_PIN = 0 [01:14:50]*** Brake cut motor [01:14:50]Read from MH i2c: 01 [01:14:50]MH_I2C_Read... [01:14:50]*** Stop cut motor [01:14:50]*** Cut end [01:14:50]Read from MH i2c: 01 07 00 [01:14:50]MH_I2C_Read... [01:14:50]Read from MH i2c: 01 07 00 FC 04 00 00 00 00 00 FF 0F 15 [01:14:50]process_action close_receipt done [01:14:50]requested_data is exist [01:14:50]produce_requested_data [01:14:50]requested_item fm.sn is exist - process it [01:14:50]wFMCommunicate request_size=4 [01:14:50]MH_SAM_APDU [01:14:50]CAPDU: 80 11 00 00 [01:14:50]Write to MH i2c: E2 08 00 FD 04 80 11 00 00 00 00 00 00 7B [01:14:50]Write i2c OK [01:14:50]MH_I2C_Read... [01:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:51]Read from MH i2c: E2 [01:14:51]MH_I2C_Read... [01:14:51]Read from MH i2c: E2 17 00 [01:14:51]MH_I2C_Read... [01:14:51]Read from MH i2c: E2 17 00 FD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 CB [01:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:14:51]wFMCommunicate OK [01:14:51]requested_item fd.num is exist - process it [01:14:51]SAM_PROTO_GetFieldsCounters [01:14:51]wFMCommunicate request_size=4 [01:14:51]MH_SAM_APDU [01:14:51]CAPDU: 80 13 00 00 [01:14:51]Write to MH i2c: E2 08 00 FE 04 80 13 00 00 00 00 00 00 7E [01:14:51]Write i2c OK [01:14:51]MH_I2C_Read... [01:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:14:51]Read from MH i2c: E2 [01:14:51]MH_I2C_Read... [01:14:51]Read from MH i2c: E2 62 00 [01:14:51]MH_I2C_Read... [01:14:51]Read from MH i2c: E2 62 00 FE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 55 09 00 00 0E 04 04 00 10 00 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 28 [01:14:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 55 09 00 00 0E 04 04 00 10 00 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 [01:14:51]wFMCommunicate OK [01:14:51]SAM_PROTO_GetFieldsCounters done [01:14:51]requested_item shift.num is exist - process it [01:14:51]requested_item shift.opened is exist - process it [01:14:51]req_shift_opened [01:14:51]FM_GetShiftState [01:14:51]SAM_PROTO_GetShiftState [01:14:51]wFMCommunicate request_size=4 [01:14:51]MH_SAM_APDU [01:14:51]CAPDU: 80 13 01 00 [01:14:51]Write to MH i2c: E2 08 00 FF 04 80 13 01 00 00 00 00 00 80 [01:14:51]Write i2c OK [01:14:51]MH_I2C_Read... [01:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:51]Read from MH i2c: E2 [01:14:51]MH_I2C_Read... [01:14:51]Read from MH i2c: E2 0E 00 [01:14:51]MH_I2C_Read... [01:14:51]Read from MH i2c: E2 0E 00 FF 04 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 67 [01:14:51]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:14:51]wFMCommunicate OK [01:14:51]SAM_PROTO_GetShiftState done [01:14:51]FM_GetShiftState done [01:14:51]req_shift_opened done [01:14:51]requested_item shift.open_date is exist - process it [01:14:51]req_shift_open_date [01:14:51]req_shift_open_date done [01:14:51]produce_requested_data done [01:14:51]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2389,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [01:14:51]process_action_free close_receipt [01:14:51]json_value_free [01:14:51]json_value_free done [01:14:51]process_json_proto returns [01:14:51]Send response to host [01:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2389,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [01:14:51]free response buf [01:14:51]execute_script done [01:14:51]execute_script returns [01:14:51]free content buf [01:14:51]Sock 9.Close socket [01:14:51]Sock 9.Thread stoped [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]accept exits with 7 [01:15:45]New connection [01:15:45]New thread 3067481444 created [01:15:45]Thread 3067624804 joined [01:15:45]Waiting for new connection... [01:15:45] Sock 7.Parse request [01:15:45]Sock 7.Check first char [01:15:45]Sock 7.First char is OK [01:15:45]request: POST /json_proto HTTP/1.0 [01:15:45]Method: POST [01:15:45]URL: /json_proto [01:15:45]Method is POST - this is cgi request [01:15:45]url: /json_proto [01:15:45]query_string will be loaded in cgi processing [01:15:45]execute_cgi json_proto POST (null) [01:15:45]execute_cgi path=json_proto method=POST [01:15:45]POST find Content-Length [01:15:45]Host: 172.17.45.132:8080 [01:15:45]Content-Length: 728 [01:15:45]Content-Type: application/json [01:15:45] [01:15:45]POST finish read [01:15:45]Found Content-Length = 728 [01:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126597", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:45]execute_script... [01:15: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)126597", "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" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:45]POST & json_proto [01:15:45]process_json_proto [01:15:45]json parsed OK: [01:15:45]protocol is kg_v1.0 [01:15:45]action value=close_receipt [01:15:45]process_action close_receipt [01:15:45]cmd_close_receipt [01:15:45]MH_GetDate [01:15:45]Write to MH i2c: F0 00 00 00 05 F4 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: F0 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: F0 09 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: F0 09 00 00 05 00 C2 3E A8 66 E3 0B 90 66 EF [01:15:45]GetLastDocTimeStamp 1722302088 [01:15:45]current date 1722302146 [01:15:45]FM_GetShiftState [01:15:45]SAM_PROTO_GetShiftState [01:15:45]wFMCommunicate request_size=4 [01:15:45]MH_SAM_APDU [01:15:45]CAPDU: 80 13 01 00 [01:15:45]Write to MH i2c: E2 08 00 01 05 80 13 01 00 00 00 00 00 83 [01:15:45]Write i2c OK [01:15:45]MH_I2C_Read... [01:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:45]Read from MH i2c: E2 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: E2 0E 00 [01:15:45]MH_I2C_Read... [01:15:45]Read from MH i2c: E2 0E 00 01 05 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 6A [01:15:45]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:15:45]wFMCommunicate OK [01:15:45]SAM_PROTO_GetShiftState done [01:15:45]FM_GetShiftState done [01:15:45]opened in 1722298270 [01:15:45]opened+sec_in_day 1722384670 [01:15:45]quantity*price = 10700 [01:15:45]sum+1 = 10701 [01:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 7 30.07.2024 01:15 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2390 ФПД: 120188007533031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T011546&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2390&fm=120188007533031&tin=02508201610067®Number=0000000000189667&sum=10700 0 [01:15:46]StoreToDocumentArchive [01:15:46]shift 16 fd 2390 [01:15:46]save to /storage/0016/doc_00002390 [01:15:46]save last doc name /storage/0016/doc_00002390 to /storage/kkm_last_doc_name [01:15:46]save OK [01:15:46]Clear old archive folders... [01:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=308 [01:15:46]tlvbuf is 0084EC70 [01:15:46]SAM_PROTO_ClearQueue [01:15:46]wFMCommunicate request_size=4 [01:15:46]MH_SAM_APDU [01:15:46]CAPDU: 80 09 00 00 [01:15:46]Write to MH i2c: E2 08 00 0E 05 80 09 00 00 00 00 00 00 85 [01:15:46]Write i2c OK [01:15:46]MH_I2C_Read... [01:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:46]Read from MH i2c: E2 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [01:15:46]RAPDU: 90 00 [01:15:46]wFMCommunicate OK [01:15:46]SAM_PROTO_ClearQueue done [01:15:46]KKMCreateOFDPacket [01:15:46]OFDProtocolAddRootSTLVToBuf [01:15:46]FM_MakeSignedData [01:15:46]FM_MakeSignedData [01:15:46]SAM_PROTO_SignData [01:15:46]wFMCommunicate request_size=4 [01:15:46]MH_SAM_APDU [01:15:46]CAPDU: 80 0D 01 02 [01:15:46]Write to MH i2c: E2 08 00 0F 05 80 0D 01 02 00 00 00 00 8D [01:15:46]Write i2c OK [01:15:46]MH_I2C_Read... [01:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:46]Read from MH i2c: E2 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [01:15:46]RAPDU: 90 00 [01:15:46]wFMCommunicate OK [01:15:46]wFMCommunicate request_size=255 [01:15:46]MH_SAM_APDU [01:15:46]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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 07 00 00 00 F4 03 04 00 C2 3E A8 66 0E 04 04 00 10 00 00 00 B9 [01:15:46]Write to MH i2c: E2 02 01 10 05 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 07 00 00 00 F4 03 04 00 C2 3E A8 66 0E 04 04 00 10 00 00 00 B9 00 00 E9 [01:15:46]Write i2c OK [01:15:46]MH_I2C_Read... [01:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:46]Read from MH i2c: E2 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [01:15:46]RAPDU: 90 00 [01:15:46]wFMCommunicate OK [01:15:46]wFMCommunicate request_size=67 [01:15:46]MH_SAM_APDU [01:15:46]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 09 00 00 35 04 06 00 6D 4F 73 7E C9 E7 [01:15:46]Write to MH i2c: E2 46 00 11 05 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 09 00 00 35 04 06 00 6D 4F 73 7E C9 E7 00 00 AD [01:15:46]Write i2c OK [01:15:46]MH_I2C_Read... [01:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:46]Read from MH i2c: E2 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [01:15:46]RAPDU: 90 00 [01:15:46]wFMCommunicate OK [01:15:46]wFMCommunicate request_size=4 [01:15:46]MH_SAM_APDU [01:15:46]CAPDU: 80 0D 03 02 [01:15:46]Write to MH i2c: E2 08 00 12 05 80 0D 03 02 00 00 00 00 92 [01:15:46]Write i2c OK [01:15:46]MH_I2C_Read... [01:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:46]Read from MH i2c: E2 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 0B 00 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 0B 00 12 05 00 59 AB CC D4 5D 76 C6 6F 90 00 3F [01:15:46]RAPDU: 59 AB CC D4 5D 76 C6 6F 90 00 [01:15:46]wFMCommunicate OK [01:15:46]SAM_PROTO_SignData done [01:15:46]FM_MakeSignedData done [01:15:46]CreateOFDProtocolMessage [01:15:46]wFMCommunicate request_size=4 [01:15:46]MH_SAM_APDU [01:15:46]CAPDU: 80 11 00 00 [01:15:46]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [01:15:46]Write i2c OK [01:15:46]MH_I2C_Read... [01:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:46]Read from MH i2c: E2 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 17 00 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 E2 [01:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:15:46]wFMCommunicate OK [01:15:46]CreateOFDProtocolMessage done [01:15:46]OFDSenderStorePacket 2390 [01:15:46]StoreOFDPacket docnum=2390 [01:15:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 5C 61 40 01 EF F5 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 07 00 00 00 F4 03 04 00 C2 3E A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 09 00 00 35 04 06 00 6D 4F 73 7E C9 E7 59 AB CC D4 5D 76 C6 6F [01:15:46]CheckFolder [01:15:46]dirname=/storage/ofd_packets [01:15:46]CheckFolder done [01:15:46]ProducePacketName [01:15:46]name=ofd_packets/00002390 [01:15:46]NVStorageSaveData ofd_packets/00002390 [01:15:46]File name is /storage/ofd_packets/00002390 [01:15:46]Write 358 bytes [01:15:46]NVStorageSaveData done [01:15:46]OFDSenderStorePacket done [01:15:46]KKMCreateOFDPacket done [01:15:46]NVStorageSaveData kkm_last_timestamp [01:15:46]File name is /storage/kkm_last_timestamp [01:15:46]Write 4 bytes [01:15:46]NVStorageSaveData done [01:15:46]ExternCall_PrintAddStr [01:15:46]wPrintStart [01:15:46]Write to MH i2c: 01 00 00 14 05 19 [01:15:46]Write i2c OK [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: 01 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: 01 07 00 [01:15:46]MH_I2C_Read... [01:15:46]Read from MH i2c: 01 07 00 14 05 00 00 00 00 00 FF 0F 2E [01:15:46]RasterBufferAndPrint [01:15:46]line Счет N : (3)126597 [01:15:46]line ИНН: 02508201610067 [01:15:46]line Контрольно-Кассовый Чек [01:15:46]line ПРОДАЖА [01:15:46]line Товар: 5449000027474 [01:15:46]line Напиток FuzeTea зел чай манго,ромашка 1л [01:15:46]line 1.000 * 107.00 [01:15:46]line = 107.00 [01:15:46]line НДС 12% НСП 1% [01:15:46]line > о реализуемом товаре [01:15:46]line ИТОГО: 107.00 [01:15:46]line НСП 1% : 0.95 [01:15:46]line НДС 12% : 11.36 [01:15:46]line Наличными: 107.00 [01:15:46]line Безнал.: 0.00 [01:15:46]line Место: АЗС № 127 "Партнер Нефть" [01:15:46]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:15:46]line СНО: Общий режим [01:15:46]line Чек 7 30.07.2024 01:15 [01:15:46]line Смена: 16 ФФД: 1.0 [01:15:46]line ЗНМ: 0300000161 [01:15:46]line РНМ: 0000000000189667 [01:15:46]line Версия ККМ: v1.0 [01:15:46]line ФМ: 0000000002094248 [01:15:46]line ФД: 2390 [01:15:46]line ФПД: 120188007533031 [01:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T011546&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2390&fm=120188007533031&tin=02508201610067®Number=0000000000189667&sum=10700 [01:15:47]line 0 [01:15:47]OFD Sender: Processing packet 2390 [packets to send 1, broken 0] [01:15:47]ProducePacketName [01:15:47]name=ofd_packets/00002390 [01:15:47]OFD Sender: To server: pG, [01:15:47]CommunicateWithHost lk.salyk.kg:30040 [01:15:47]ConnectInit lk.salyk.kg [01:15:47]written 0, free lines is 4095 [01:15:47]Connected sock=9 [01:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 48 01 00 00 5C 61 40 01 EF F5 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 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 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 07 00 00 00 F4 03 04 00 C2 3E A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 56 09 00 00 35 04 06 00 6D 4F 73 7E C9 E7 59 AB CC D4 5D 76 C6 6F [01:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 15 14 47 00 4F 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 32 30 39 34 32 34 38 10 04 04 00 56 09 00 00 F4 03 04 00 2D EA A7 66 B6 04 01 00 00 0E A7 16 13 E1 7C 47 AF [01:15:47]CommunicateWithHost err = 0 [01:15:47]CheckOFDResponse [01:15:47]1017 (14) - 77093643461234 [01:15:47]1041 (16) - 0000000002094248 [01:15:47]1040 (4) - 2390 [01:15:47]1012 (4) - 29.07.2024 19:14 [01:15:47]1206 (1) - 0 [01:15:47]OFD Sender: Remove packet 2390 [01:15:47]ProducePacketName [01:15:47]name=ofd_packets/00002390 [01:15:47]NVStorageDeleteData [01:15:47]Write to MH i2c: 01 00 00 3D 05 42 [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 07 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 03 0D 59 [01:15:47]RasterBufferAndPrint [01:15:47]line [01:15:47]line [01:15:47]line [01:15:47]line [01:15:47]line [01:15:47]written 0, free lines is 3337 [01:15:47]MH_Cut [01:15:47]Write to MH i2c: D1 01 00 44 05 01 1B [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: D1 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: D1 01 00 [01:15:47]MH_I2C_Read... [01:15:47]Read from MH i2c: D1 01 00 44 05 00 1A [01:15:47]Write to MH i2c: 01 00 00 45 05 4A [01:15:47]Write i2c OK [01:15:47]MH_I2C_Read... [01:15:48]OFD Sender: No OFD packet to send [01:15:48]*** Cut start [01:15:48]*** Partial cut [01:15:48]*** CUTSNS_PIN = 1 [01:15:48]*** CUTSNS_PIN = 0 [01:15:48]*** Brake cut motor [01:15:48]Read from MH i2c: 01 [01:15:48]MH_I2C_Read... [01:15:48]*** Stop cut motor [01:15:48]*** Cut end [01:15:48]Read from MH i2c: 01 07 00 [01:15:48]MH_I2C_Read... [01:15:48]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [01:15:48]process_action close_receipt done [01:15:48]requested_data is exist [01:15:48]produce_requested_data [01:15:48]requested_item fm.sn is exist - process it [01:15:48]wFMCommunicate request_size=4 [01:15:48]MH_SAM_APDU [01:15:48]CAPDU: 80 11 00 00 [01:15:48]Write to MH i2c: E2 08 00 46 05 80 11 00 00 00 00 00 00 C5 [01:15:48]Write i2c OK [01:15:48]MH_I2C_Read... [01:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:49]Read from MH i2c: E2 [01:15:49]MH_I2C_Read... [01:15:49]Read from MH i2c: E2 17 00 [01:15:49]MH_I2C_Read... [01:15:49]Read from MH i2c: E2 17 00 46 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 15 [01:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:15:49]wFMCommunicate OK [01:15:49]requested_item fd.num is exist - process it [01:15:49]SAM_PROTO_GetFieldsCounters [01:15:49]wFMCommunicate request_size=4 [01:15:49]MH_SAM_APDU [01:15:49]CAPDU: 80 13 00 00 [01:15:49]Write to MH i2c: E2 08 00 47 05 80 13 00 00 00 00 00 00 C8 [01:15:49]Write i2c OK [01:15:49]MH_I2C_Read... [01:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:49]Read from MH i2c: E2 [01:15:49]MH_I2C_Read... [01:15:49]Read from MH i2c: E2 62 00 [01:15:49]MH_I2C_Read... [01:15:49]Read from MH i2c: E2 62 00 47 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 56 09 00 00 0E 04 04 00 10 00 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 76 [01:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 56 09 00 00 0E 04 04 00 10 00 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 [01:15:49]wFMCommunicate OK [01:15:49]SAM_PROTO_GetFieldsCounters done [01:15:49]requested_item shift.num is exist - process it [01:15:49]requested_item shift.opened is exist - process it [01:15:49]req_shift_opened [01:15:49]FM_GetShiftState [01:15:49]SAM_PROTO_GetShiftState [01:15:49]wFMCommunicate request_size=4 [01:15:49]MH_SAM_APDU [01:15:49]CAPDU: 80 13 01 00 [01:15:49]Write to MH i2c: E2 08 00 48 05 80 13 01 00 00 00 00 00 CA [01:15:49]Write i2c OK [01:15:49]MH_I2C_Read... [01:15:49]Read from MH i2c: E2 [01:15:49]MH_I2C_Read... [01:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:49]Read from MH i2c: E2 0E 00 [01:15:49]MH_I2C_Read... [01:15:49]Read from MH i2c: E2 0E 00 48 05 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 B1 [01:15:49]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:15:49]wFMCommunicate OK [01:15:49]SAM_PROTO_GetShiftState done [01:15:49]FM_GetShiftState done [01:15:49]req_shift_opened done [01:15:49]requested_item shift.open_date is exist - process it [01:15:49]req_shift_open_date [01:15:49]req_shift_open_date done [01:15:49]produce_requested_data done [01:15:49]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2390,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [01:15:49]process_action_free close_receipt [01:15:49]json_value_free [01:15:49]json_value_free done [01:15:49]process_json_proto returns [01:15:49]Send response to host [01:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2390,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [01:15:49]free response buf [01:15:49]execute_script done [01:15:49]execute_script returns [01:15:49]free content buf [01:15:49]Sock 7.Close socket [01:15:49]Sock 7.Thread stoped [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:29]accept exits with 10 [01:20:29]New connection [01:20:29]New thread 3067624804 created [01:20:29]Thread 3067481444 joined [01:20:29]Waiting for new connection... [01:20:29] Sock 10.Parse request [01:20:29]Sock 10.Check first char [01:20:29]Sock 10.First char is OK [01:20:29]request: POST /json_proto HTTP/1.0 [01:20:29]Method: POST [01:20:29]URL: /json_proto [01:20:29]Method is POST - this is cgi request [01:20:29]url: /json_proto [01:20:29]query_string will be loaded in cgi processing [01:20:29]execute_cgi json_proto POST (null) [01:20:29]execute_cgi path=json_proto method=POST [01:20:29]POST find Content-Length [01:20:29]Host: 172.17.45.132:8080 [01:20:29]Content-Length: 1002 [01:20:29]Content-Type: application/json [01:20:29] [01:20:29]POST finish read [01:20:29]Found Content-Length = 1002 [01:20:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126598", "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" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" ] } } [01:20:29]execute_script... [01:20: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)126598", "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" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" ] } } [01:20:29]POST & json_proto [01:20:29]process_json_proto [01:20:29]json parsed OK: [01:20:29]protocol is kg_v1.0 [01:20:29]action value=close_receipt [01:20:29]process_action close_receipt [01:20:29]cmd_close_receipt [01:20:29]MH_GetDate [01:20:29]Write to MH i2c: F0 00 00 49 05 3D [01:20:29]Write i2c OK [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: F0 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: F0 09 00 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: F0 09 00 49 05 00 DE 3F A8 66 E3 0B 90 66 55 [01:20:29]GetLastDocTimeStamp 1722302146 [01:20:29]current date 1722302430 [01:20:29]FM_GetShiftState [01:20:29]SAM_PROTO_GetShiftState [01:20:29]wFMCommunicate request_size=4 [01:20:29]MH_SAM_APDU [01:20:29]CAPDU: 80 13 01 00 [01:20:29]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [01:20:29]Write i2c OK [01:20:29]MH_I2C_Read... [01:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:29]Read from MH i2c: E2 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 0E 00 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 B3 [01:20:29]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:20:29]wFMCommunicate OK [01:20:29]SAM_PROTO_GetShiftState done [01:20:29]FM_GetShiftState done [01:20:29]opened in 1722298270 [01:20:29]opened+sec_in_day 1722384670 [01:20:29]quantity*price = 9500 [01:20:29]sum+1 = 9501 [01:20:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681383 ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 8 30.07.2024 01:20 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2391 ФПД: 148335927174273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012030&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2391&fm=148335927174273&tin=02508201610067®Number=0000000000189667&sum=19000 0 [01:20:30]StoreToDocumentArchive [01:20:30]shift 16 fd 2391 [01:20:30]save to /storage/0016/doc_00002391 [01:20:30]save last doc name /storage/0016/doc_00002391 to /storage/kkm_last_doc_name [01:20:30]save OK [01:20:30]Clear old archive folders... [01:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=432 [01:20:30]tlvbuf is 0084E860 [01:20:30]SAM_PROTO_ClearQueue [01:20:30]wFMCommunicate request_size=4 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 09 00 00 [01:20:30]Write to MH i2c: E2 08 00 57 05 80 09 00 00 00 00 00 00 CE [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [01:20:30]RAPDU: 90 00 [01:20:30]wFMCommunicate OK [01:20:30]SAM_PROTO_ClearQueue done [01:20:30]KKMCreateOFDPacket [01:20:30]OFDProtocolAddRootSTLVToBuf [01:20:30]FM_MakeSignedData [01:20:30]FM_MakeSignedData [01:20:30]SAM_PROTO_SignData [01:20:30]wFMCommunicate request_size=4 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 0D 01 02 [01:20:30]Write to MH i2c: E2 08 00 58 05 80 0D 01 02 00 00 00 00 D6 [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [01:20:30]RAPDU: 90 00 [01:20:30]wFMCommunicate OK [01:20:30]wFMCommunicate request_size=255 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 0D 02 02 FA 03 00 B0 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 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 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 [01:20:30]Write to MH i2c: E2 02 01 59 05 80 0D 02 02 FA 00 03 00 B0 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 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 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 00 00 47 [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [01:20:30]RAPDU: 90 00 [01:20:30]wFMCommunicate OK [01:20:30]wFMCommunicate request_size=191 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 0D 02 02 BA 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 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 08 00 00 00 F4 03 04 00 DE 3F A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 09 00 00 35 04 06 00 86 E9 26 3F 24 81 [01:20:30]Write to MH i2c: E2 C2 00 5A 05 80 0D 02 02 BA 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 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 08 00 00 00 F4 03 04 00 DE 3F A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 09 00 00 35 04 06 00 86 E9 26 3F 24 81 00 00 3E [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:31]Read from MH i2c: E2 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 03 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [01:20:31]RAPDU: 90 00 [01:20:31]wFMCommunicate OK [01:20:31]wFMCommunicate request_size=4 [01:20:31]MH_SAM_APDU [01:20:31]CAPDU: 80 0D 03 02 [01:20:31]Write to MH i2c: E2 08 00 5B 05 80 0D 03 02 00 00 00 00 DB [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:31]Read from MH i2c: E2 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 0B 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 0B 00 5B 05 00 0F C8 32 50 C9 77 D2 8C 90 00 D3 [01:20:31]RAPDU: 0F C8 32 50 C9 77 D2 8C 90 00 [01:20:31]wFMCommunicate OK [01:20:31]SAM_PROTO_SignData done [01:20:31]FM_MakeSignedData done [01:20:31]CreateOFDProtocolMessage [01:20:31]wFMCommunicate request_size=4 [01:20:31]MH_SAM_APDU [01:20:31]CAPDU: 80 11 00 00 [01:20:31]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:31]Read from MH i2c: E2 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 17 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 2B [01:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:20:31]wFMCommunicate OK [01:20:31]CreateOFDProtocolMessage done [01:20:31]OFDSenderStorePacket 2391 [01:20:31]StoreOFDPacket docnum=2391 [01:20:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 C4 01 00 00 CB 98 BC 01 BB 84 5A 03 01 00 03 00 B0 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 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 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 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 08 00 00 00 F4 03 04 00 DE 3F A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 09 00 00 35 04 06 00 86 E9 26 3F 24 81 0F C8 32 50 C9 77 D2 8C [01:20:31]CheckFolder [01:20:31]dirname=/storage/ofd_packets [01:20:31]CheckFolder done [01:20:31]ProducePacketName [01:20:31]name=ofd_packets/00002391 [01:20:31]NVStorageSaveData ofd_packets/00002391 [01:20:31]File name is /storage/ofd_packets/00002391 [01:20:31]Write 482 bytes [01:20:31]NVStorageSaveData done [01:20:31]OFDSenderStorePacket done [01:20:31]KKMCreateOFDPacket done [01:20:31]NVStorageSaveData kkm_last_timestamp [01:20:31]File name is /storage/kkm_last_timestamp [01:20:31]Write 4 bytes [01:20:31]NVStorageSaveData done [01:20:31]ExternCall_PrintAddStr [01:20:31]wPrintStart [01:20:31]Write to MH i2c: 01 00 00 5D 05 62 [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 07 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [01:20:31]RasterBufferAndPrint [01:20:31]line Счет N : (3)126598 [01:20:31]line ИНН: 02508201610067 [01:20:31]line Контрольно-Кассовый Чек [01:20:31]line ПРОДАЖА [01:20:31]line Товар: 4700000480050 [01:20:31]line Напиток Nitro Energy эн green ж/б 0,45л [01:20:31]line 1.000 * 95.00 [01:20:31]line = 95.00 [01:20:31]line НДС 12% НСП 1% [01:20:31]line > о реализуемом товаре [01:20:31]line Товар: 4870235681383 [01:20:31]line ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г [01:20:31]line 1.000 * 95.00 [01:20:31]line = 95.00 [01:20:31]line НДС 12% НСП 1% [01:20:31]line > о реализуемом товаре [01:20:31]line ИТОГО: 190.00 [01:20:31]line НСП 1% : 1.68 [01:20:31]line НДС 12% : 20.18 [01:20:31]line Наличными: 190.00 [01:20:31]line Безнал.: 0.00 [01:20:31]line Место: АЗС № 127 "Партнер Нефть" [01:20:31]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:20:31]line СНО: Общий режим [01:20:31]line Чек 8 30.07.2024 01:20 [01:20:31]line Смена: 16 ФФД: 1.0 [01:20:31]line ЗНМ: 0300000161 [01:20:31]line РНМ: 0000000000189667 [01:20:31]line Версия ККМ: v1.0 [01:20:31]line ФМ: 0000000002094248 [01:20:31]line ФД: 2391 [01:20:31]line ФПД: 148335927174273 [01:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012030&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2391&fm=148335927174273&tin=02508201610067®Number=0000000000189667&sum=19000 [01:20:31]line 0 [01:20:31]OFD Sender: Processing packet 2391 [packets to send 1, broken 0] [01:20:31]ProducePacketName [01:20:31]name=ofd_packets/00002391 [01:20:31]OFD Sender: To server: pG, [01:20:31]CommunicateWithHost lk.salyk.kg:30040 [01:20:31]ConnectInit lk.salyk.kg [01:20:31]written 0, free lines is 4095 [01:20:31]Connected sock=9 [01:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 C4 01 00 00 CB 98 BC 01 BB 84 5A 03 01 00 03 00 B0 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 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 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 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 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 08 00 00 00 F4 03 04 00 DE 3F A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 57 09 00 00 35 04 06 00 86 E9 26 3F 24 81 0F C8 32 50 C9 77 D2 8C [01:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 8C 18 47 00 92 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 32 30 39 34 32 34 38 10 04 04 00 57 09 00 00 F4 03 04 00 49 EB A7 66 B6 04 01 00 00 1B 5D 0E 16 F8 D1 34 1D [01:20:31]CommunicateWithHost err = 0 [01:20:31]CheckOFDResponse [01:20:31]1017 (14) - 77093643461234 [01:20:31]1041 (16) - 0000000002094248 [01:20:31]1040 (4) - 2391 [01:20:31]1012 (4) - 29.07.2024 19:19 [01:20:31]1206 (1) - 0 [01:20:31]OFD Sender: Remove packet 2391 [01:20:31]ProducePacketName [01:20:31]name=ofd_packets/00002391 [01:20:31]NVStorageDeleteData [01:20:31]Write to MH i2c: 01 00 00 8D 05 92 [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 07 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 C9 0C 6E [01:20:31]RasterBufferAndPrint [01:20:31]line [01:20:31]line [01:20:31]line [01:20:31]line [01:20:31]line [01:20:31]written 0, free lines is 3280 [01:20:31]MH_Cut [01:20:31]Write to MH i2c: D1 01 00 94 05 01 6B [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: D1 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: D1 01 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: D1 01 00 94 05 00 6A [01:20:31]Write to MH i2c: 01 00 00 95 05 9A [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:32]OFD Sender: No OFD packet to send [01:20:32]*** Cut start [01:20:32]*** Partial cut [01:20:32]*** CUTSNS_PIN = 1 [01:20:32]*** CUTSNS_PIN = 0 [01:20:32]*** Brake cut motor [01:20:33]Read from MH i2c: 01 [01:20:33]MH_I2C_Read... [01:20:33]*** Stop cut motor [01:20:33]*** Cut end [01:20:33]Read from MH i2c: 01 07 00 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [01:20:33]process_action close_receipt done [01:20:33]requested_data is exist [01:20:33]produce_requested_data [01:20:33]requested_item fm.sn is exist - process it [01:20:33]wFMCommunicate request_size=4 [01:20:33]MH_SAM_APDU [01:20:33]CAPDU: 80 11 00 00 [01:20:33]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [01:20:33]Write i2c OK [01:20:33]MH_I2C_Read... [01:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:33]Read from MH i2c: E2 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 17 00 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 65 [01:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:20:33]wFMCommunicate OK [01:20:33]requested_item fd.num is exist - process it [01:20:33]SAM_PROTO_GetFieldsCounters [01:20:33]wFMCommunicate request_size=4 [01:20:33]MH_SAM_APDU [01:20:33]CAPDU: 80 13 00 00 [01:20:33]Write to MH i2c: E2 08 00 97 05 80 13 00 00 00 00 00 00 18 [01:20:33]Write i2c OK [01:20:33]MH_I2C_Read... [01:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:33]Read from MH i2c: E2 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 62 00 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 62 00 97 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 57 09 00 00 0E 04 04 00 10 00 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 CA [01:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 57 09 00 00 0E 04 04 00 10 00 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 [01:20:33]wFMCommunicate OK [01:20:33]SAM_PROTO_GetFieldsCounters done [01:20:33]requested_item shift.num is exist - process it [01:20:33]requested_item shift.opened is exist - process it [01:20:33]req_shift_opened [01:20:33]FM_GetShiftState [01:20:33]SAM_PROTO_GetShiftState [01:20:33]wFMCommunicate request_size=4 [01:20:33]MH_SAM_APDU [01:20:33]CAPDU: 80 13 01 00 [01:20:33]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [01:20:33]Write i2c OK [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 [01:20:33]MH_I2C_Read... [01:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:33]Read from MH i2c: E2 0E 00 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 01 [01:20:33]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:20:33]wFMCommunicate OK [01:20:33]SAM_PROTO_GetShiftState done [01:20:33]FM_GetShiftState done [01:20:33]req_shift_opened done [01:20:33]requested_item shift.open_date is exist - process it [01:20:33]req_shift_open_date [01:20:33]req_shift_open_date done [01:20:33]produce_requested_data done [01:20:33]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2391,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [01:20:33]process_action_free close_receipt [01:20:33]json_value_free [01:20:33]json_value_free done [01:20:33]process_json_proto returns [01:20:33]Send response to host [01:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2391,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [01:20:33]free response buf [01:20:33]execute_script done [01:20:33]execute_script returns [01:20:33]free content buf [01:20:33]Sock 10.Close socket [01:20:33]Sock 10.Thread stoped [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:50]accept exits with 7 [01:25:50]New connection [01:25:50]New thread 3067481444 created [01:25:50]Thread 3067624804 joined [01:25:50]Waiting for new connection... [01:25:50] Sock 7.Parse request [01:25:50]Sock 7.Check first char [01:25:50]Sock 7.First char is OK [01:25:50]request: POST /json_proto HTTP/1.0 [01:25:50]Method: POST [01:25:50]URL: /json_proto [01:25:50]Method is POST - this is cgi request [01:25:50]url: /json_proto [01:25:50]query_string will be loaded in cgi processing [01:25:50]execute_cgi json_proto POST (null) [01:25:50]execute_cgi path=json_proto method=POST [01:25:50]POST find Content-Length [01:25:50]Host: 172.17.45.132:8080 [01:25:50]Content-Length: 769 [01:25:50]Content-Type: application/json [01:25:50] [01:25:50]POST finish read [01:25:50]Found Content-Length = 769 [01:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126599", "tax_sys" : 0, "items" : [ { "code": "4036021102566", "name": "\u041C\u041C Mannol Defender Stahlsynt SAE 10W40 1", "price" : 595.00, "quantity" : 1.000, "sum" : 595.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 595.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:50]execute_script... [01:25: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)126599", "tax_sys" : 0, "items" : [ { "code": "4036021102566", "name": "\u041C\u041C Mannol Defender Stahlsynt SAE 10W40 1", "price" : 595.00, "quantity" : 1.000, "sum" : 595.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 595.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:50]POST & json_proto [01:25:50]process_json_proto [01:25:50]json parsed OK: [01:25:50]protocol is kg_v1.0 [01:25:50]action value=close_receipt [01:25:50]process_action close_receipt [01:25:50]cmd_close_receipt [01:25:50]MH_GetDate [01:25:50]Write to MH i2c: F0 00 00 99 05 8D [01:25:50]Write i2c OK [01:25:50]MH_I2C_Read... [01:25:50]Read from MH i2c: F0 [01:25:50]MH_I2C_Read... [01:25:50]Read from MH i2c: F0 09 00 [01:25:50]MH_I2C_Read... [01:25:50]Read from MH i2c: F0 09 00 99 05 00 1F 41 A8 66 E3 0B 90 66 E8 [01:25:50]GetLastDocTimeStamp 1722302430 [01:25:50]current date 1722302751 [01:25:50]FM_GetShiftState [01:25:50]SAM_PROTO_GetShiftState [01:25:50]wFMCommunicate request_size=4 [01:25:50]MH_SAM_APDU [01:25:50]CAPDU: 80 13 01 00 [01:25:50]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [01:25:50]Write i2c OK [01:25:50]MH_I2C_Read... [01:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:50]Read from MH i2c: E2 [01:25:50]MH_I2C_Read... [01:25:50]Read from MH i2c: E2 0E 00 [01:25:50]MH_I2C_Read... [01:25:50]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 03 [01:25:50]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:25:50]wFMCommunicate OK [01:25:50]SAM_PROTO_GetShiftState done [01:25:50]FM_GetShiftState done [01:25:50]opened in 1722298270 [01:25:50]opened+sec_in_day 1722384670 [01:25:50]quantity*price = 59500 [01:25:50]sum+1 = 59501 [01:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 595.00 НСП 1% : 5.26 НДС 12% : 63.19 Наличными: 0.00 Безнал.: 595.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 9 30.07.2024 01:25 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2392 ФПД: 130702766000377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012551&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2392&fm=130702766000377&tin=02508201610067®Number=0000000000189667&sum=59500 0 [01:25:51]StoreToDocumentArchive [01:25:51]shift 16 fd 2392 [01:25:51]save to /storage/0016/doc_00002392 [01:25:51]save last doc name /storage/0016/doc_00002392 to /storage/kkm_last_doc_name [01:25:51]save OK [01:25:51]Clear old archive folders... [01:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=284 [01:25:51]tlvbuf is 00831700 [01:25:51]SAM_PROTO_ClearQueue [01:25:51]wFMCommunicate request_size=4 [01:25:51]MH_SAM_APDU [01:25:51]CAPDU: 80 09 00 00 [01:25:51]Write to MH i2c: E2 08 00 A7 05 80 09 00 00 00 00 00 00 1E [01:25:51]Write i2c OK [01:25:51]MH_I2C_Read... [01:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:51]Read from MH i2c: E2 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [01:25:51]RAPDU: 90 00 [01:25:51]wFMCommunicate OK [01:25:51]SAM_PROTO_ClearQueue done [01:25:51]KKMCreateOFDPacket [01:25:51]OFDProtocolAddRootSTLVToBuf [01:25:51]FM_MakeSignedData [01:25:51]FM_MakeSignedData [01:25:51]SAM_PROTO_SignData [01:25:51]wFMCommunicate request_size=4 [01:25:51]MH_SAM_APDU [01:25:51]CAPDU: 80 0D 01 02 [01:25:51]Write to MH i2c: E2 08 00 A8 05 80 0D 01 02 00 00 00 00 26 [01:25:51]Write i2c OK [01:25:51]MH_I2C_Read... [01:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:51]Read from MH i2c: E2 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [01:25:51]RAPDU: 90 00 [01:25:51]wFMCommunicate OK [01:25:51]wFMCommunicate request_size=255 [01:25:51]MH_SAM_APDU [01:25:51]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 32 35 36 36 06 04 2A 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 65 66 65 6E 64 65 72 20 53 74 61 68 6C 73 79 6E 74 20 53 41 45 20 31 30 57 34 30 20 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C E8 00 00 00 00 13 04 06 00 6C E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 1F 41 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 [01:25:51]Write to MH i2c: E2 02 01 A9 05 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 32 35 36 36 06 04 2A 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 65 66 65 6E 64 65 72 20 53 74 61 68 6C 73 79 6E 74 20 53 41 45 20 31 30 57 34 30 20 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C E8 00 00 00 00 13 04 06 00 6C E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 1F 41 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 00 00 CD [01:25:51]Write i2c OK [01:25:51]MH_I2C_Read... [01:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:51]Read from MH i2c: E2 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [01:25:51]RAPDU: 90 00 [01:25:51]wFMCommunicate OK [01:25:51]wFMCommunicate request_size=43 [01:25:51]MH_SAM_APDU [01:25:51]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 09 00 00 35 04 06 00 76 DF 9B F0 48 F9 [01:25:51]Write to MH i2c: E2 2E 00 AA 05 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 09 00 00 35 04 06 00 76 DF 9B F0 48 F9 00 00 90 [01:25:51]Write i2c OK [01:25:51]MH_I2C_Read... [01:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:51]Read from MH i2c: E2 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [01:25:51]RAPDU: 90 00 [01:25:51]wFMCommunicate OK [01:25:51]wFMCommunicate request_size=4 [01:25:51]MH_SAM_APDU [01:25:51]CAPDU: 80 0D 03 02 [01:25:51]Write to MH i2c: E2 08 00 AB 05 80 0D 03 02 00 00 00 00 2B [01:25:51]Write i2c OK [01:25:51]MH_I2C_Read... [01:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:51]Read from MH i2c: E2 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 0B 00 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 0B 00 AB 05 00 02 E5 B6 6E 84 E7 F9 B4 90 00 4F [01:25:51]RAPDU: 02 E5 B6 6E 84 E7 F9 B4 90 00 [01:25:51]wFMCommunicate OK [01:25:51]SAM_PROTO_SignData done [01:25:51]FM_MakeSignedData done [01:25:51]CreateOFDProtocolMessage [01:25:51]wFMCommunicate request_size=4 [01:25:51]MH_SAM_APDU [01:25:51]CAPDU: 80 11 00 00 [01:25:51]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [01:25:51]Write i2c OK [01:25:51]MH_I2C_Read... [01:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:51]Read from MH i2c: E2 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 17 00 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 7B [01:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:25:51]wFMCommunicate OK [01:25:51]CreateOFDProtocolMessage done [01:25:51]OFDSenderStorePacket 2392 [01:25:51]StoreOFDPacket docnum=2392 [01:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 C4 22 28 01 36 2C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 32 35 36 36 06 04 2A 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 65 66 65 6E 64 65 72 20 53 74 61 68 6C 73 79 6E 74 20 53 41 45 20 31 30 57 34 30 20 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C E8 00 00 00 00 13 04 06 00 6C E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 1F 41 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 09 00 00 35 04 06 00 76 DF 9B F0 48 F9 02 E5 B6 6E 84 E7 F9 B4 [01:25:51]CheckFolder [01:25:51]dirname=/storage/ofd_packets [01:25:51]CheckFolder done [01:25:51]ProducePacketName [01:25:51]name=ofd_packets/00002392 [01:25:51]NVStorageSaveData ofd_packets/00002392 [01:25:51]File name is /storage/ofd_packets/00002392 [01:25:51]Write 334 bytes [01:25:51]NVStorageSaveData done [01:25:51]OFDSenderStorePacket done [01:25:51]KKMCreateOFDPacket done [01:25:51]NVStorageSaveData kkm_last_timestamp [01:25:51]File name is /storage/kkm_last_timestamp [01:25:51]Write 4 bytes [01:25:51]NVStorageSaveData done [01:25:51]ExternCall_PrintAddStr [01:25:51]wPrintStart [01:25:51]Write to MH i2c: 01 00 00 AD 05 B2 [01:25:51]Write i2c OK [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: 01 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: 01 07 00 [01:25:51]MH_I2C_Read... [01:25:51]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 FF 0F C7 [01:25:51]RasterBufferAndPrint [01:25:51]line Счет N : (3)126599 [01:25:51]line ИНН: 02508201610067 [01:25:51]line Контрольно-Кассовый Чек [01:25:51]line ПРОДАЖА [01:25:51]line Товар: 4036021102566 [01:25:51]line ММ Mannol Defender Stahlsynt SAE 10W40 1 [01:25:51]line 1.000 * 595.00 [01:25:51]line = 595.00 [01:25:51]line НДС 12% НСП 1% [01:25:51]line > о реализуемом товаре [01:25:51]line ИТОГО: 595.00 [01:25:51]line НСП 1% : 5.26 [01:25:51]line НДС 12% : 63.19 [01:25:51]line Наличными: 0.00 [01:25:51]line Безнал.: 595.00 [01:25:51]line Место: АЗС № 127 "Партнер Нефть" [01:25:51]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:25:51]line СНО: Общий режим [01:25:51]line Чек 9 30.07.2024 01:25 [01:25:51]line Смена: 16 ФФД: 1.0 [01:25:51]line ЗНМ: 0300000161 [01:25:51]line РНМ: 0000000000189667 [01:25:51]line Версия ККМ: v1.0 [01:25:51]line Платежная система: O! деньги [01:25:51]line ФМ: 0000000002094248 [01:25:51]line ФД: 2392 [01:25:51]line ФПД: 130702766000377 [01:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T012551&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2392&fm=130702766000377&tin=02508201610067®Number=0000000000189667&sum=59500 [01:25:52]line 0 [01:25:52]OFD Sender: Processing packet 2392 [packets to send 1, broken 0] [01:25:52]ProducePacketName [01:25:52]name=ofd_packets/00002392 [01:25:52]OFD Sender: To server: pG, [01:25:52]CommunicateWithHost lk.salyk.kg:30040 [01:25:52]ConnectInit lk.salyk.kg [01:25:52]written 0, free lines is 4095 [01:25:52]Connected sock=10 [01:25:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 30 01 00 00 C4 22 28 01 36 2C 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 30 33 36 30 32 31 31 30 32 35 36 36 06 04 2A 00 D0 9C D0 9C 20 4D 61 6E 6E 6F 6C 20 44 65 66 65 6E 64 65 72 20 53 74 61 68 6C 73 79 6E 74 20 53 41 45 20 31 30 57 34 30 20 31 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C E8 00 00 00 00 13 04 06 00 6C E8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 1F 41 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 09 00 00 35 04 06 00 76 DF 9B F0 48 F9 02 E5 B6 6E 84 E7 F9 B4 [01:25:52]Write to MH i2c: 01 00 00 D8 05 DD [01:25:52]Write i2c OK [01:25:52]MH_I2C_Read... [01:25:52]Read from MH i2c: 01 [01:25:52]MH_I2C_Read... [01:25:52]Read from MH i2c: 01 07 00 [01:25:52]MH_I2C_Read... [01:25:52]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 EF 0C DF [01:25:52]RasterBufferAndPrint [01:25:52]line [01:25:52]line [01:25:52]line [01:25:52]line [01:25:52]line [01:25:52]written 0, free lines is 3318 [01:25:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 1E EC 47 00 18 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 58 09 00 00 F4 03 04 00 8A EC A7 66 B6 04 01 00 00 A9 3F A7 EA 4E B7 E8 11 [01:25:52]CommunicateWithHost err = 0 [01:25:52]CheckOFDResponse [01:25:52]1017 (14) - 77093643461234 [01:25:52]1041 (16) - 0000000002094248 [01:25:52]1040 (4) - 2392 [01:25:52]1012 (4) - 29.07.2024 19:24 [01:25:52]1206 (1) - 0 [01:25:52]OFD Sender: Remove packet 2392 [01:25:52]ProducePacketName [01:25:52]name=ofd_packets/00002392 [01:25:52]NVStorageDeleteData [01:25:52]MH_Cut [01:25:52]Write to MH i2c: D1 01 00 DF 05 01 B6 [01:25:52]Write i2c OK [01:25:52]MH_I2C_Read... [01:25:52]Read from MH i2c: D1 [01:25:52]MH_I2C_Read... [01:25:52]Read from MH i2c: D1 01 00 [01:25:52]MH_I2C_Read... [01:25:52]Read from MH i2c: D1 01 00 DF 05 00 B5 [01:25:52]Write to MH i2c: 01 00 00 E0 05 E5 [01:25:52]Write i2c OK [01:25:52]MH_I2C_Read... [01:25:53]OFD Sender: No OFD packet to send [01:25:53]*** Cut start [01:25:53]*** Partial cut [01:25:53]*** CUTSNS_PIN = 1 [01:25:53]*** CUTSNS_PIN = 0 [01:25:53]*** Brake cut motor [01:25:53]Read from MH i2c: 01 [01:25:53]MH_I2C_Read... [01:25:53]*** Stop cut motor [01:25:53]*** Cut end [01:25:53]Read from MH i2c: 01 07 00 [01:25:53]MH_I2C_Read... [01:25:53]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [01:25:53]process_action close_receipt done [01:25:53]requested_data is exist [01:25:53]produce_requested_data [01:25:53]requested_item fm.sn is exist - process it [01:25:53]wFMCommunicate request_size=4 [01:25:53]MH_SAM_APDU [01:25:53]CAPDU: 80 11 00 00 [01:25:53]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [01:25:53]Write i2c OK [01:25:53]MH_I2C_Read... [01:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:54]Read from MH i2c: E2 [01:25:54]MH_I2C_Read... [01:25:54]Read from MH i2c: E2 17 00 [01:25:54]MH_I2C_Read... [01:25:54]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B0 [01:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:25:54]wFMCommunicate OK [01:25:54]requested_item fd.num is exist - process it [01:25:54]SAM_PROTO_GetFieldsCounters [01:25:54]wFMCommunicate request_size=4 [01:25:54]MH_SAM_APDU [01:25:54]CAPDU: 80 13 00 00 [01:25:54]Write to MH i2c: E2 08 00 E2 05 80 13 00 00 00 00 00 00 63 [01:25:54]Write i2c OK [01:25:54]MH_I2C_Read... [01:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:54]Read from MH i2c: E2 [01:25:54]MH_I2C_Read... [01:25:54]Read from MH i2c: E2 62 00 [01:25:54]MH_I2C_Read... [01:25:54]Read from MH i2c: E2 62 00 E2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 58 09 00 00 0E 04 04 00 10 00 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 19 [01:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 58 09 00 00 0E 04 04 00 10 00 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 [01:25:54]wFMCommunicate OK [01:25:54]SAM_PROTO_GetFieldsCounters done [01:25:54]requested_item shift.num is exist - process it [01:25:54]requested_item shift.opened is exist - process it [01:25:54]req_shift_opened [01:25:54]FM_GetShiftState [01:25:54]SAM_PROTO_GetShiftState [01:25:54]wFMCommunicate request_size=4 [01:25:54]MH_SAM_APDU [01:25:54]CAPDU: 80 13 01 00 [01:25:54]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [01:25:54]Write i2c OK [01:25:54]MH_I2C_Read... [01:25:54]Read from MH i2c: E2 [01:25:54]MH_I2C_Read... [01:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:54]Read from MH i2c: E2 0E 00 [01:25:54]MH_I2C_Read... [01:25:54]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 4C [01:25:54]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:25:54]wFMCommunicate OK [01:25:54]SAM_PROTO_GetShiftState done [01:25:54]FM_GetShiftState done [01:25:54]req_shift_opened done [01:25:54]requested_item shift.open_date is exist - process it [01:25:54]req_shift_open_date [01:25:54]req_shift_open_date done [01:25:54]produce_requested_data done [01:25:54]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2392,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [01:25:54]process_action_free close_receipt [01:25:54]json_value_free [01:25:54]json_value_free done [01:25:54]process_json_proto returns [01:25:54]Send response to host [01:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2392,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [01:25:54]free response buf [01:25:54]execute_script done [01:25:54]execute_script returns [01:25:54]free content buf [01:25:54]Sock 7.Close socket [01:25:54]Sock 7.Thread stoped [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:20]accept exits with 9 [01:32:20]New connection [01:32:20]New thread 3067624804 created [01:32:20]Thread 3067481444 joined [01:32:20]Waiting for new connection... [01:32:20] Sock 9.Parse request [01:32:20]Sock 9.Check first char [01:32:20]Sock 9.First char is OK [01:32:20]request: POST /json_proto HTTP/1.0 [01:32:20]Method: POST [01:32:20]URL: /json_proto [01:32:20]Method is POST - this is cgi request [01:32:20]url: /json_proto [01:32:20]query_string will be loaded in cgi processing [01:32:20]execute_cgi json_proto POST (null) [01:32:20]execute_cgi path=json_proto method=POST [01:32:20]POST find Content-Length [01:32:20]Host: 172.17.45.132:8080 [01:32:20]Content-Length: 1143 [01:32:20]Content-Type: application/json [01:32:20] [01:32:20]POST finish read [01:32:20]Found Content-Length = 1143 [01:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126600", "tax_sys" : 0, "items" : [ { "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8699367358996", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:20]execute_script... [01:32:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126600", "tax_sys" : 0, "items" : [ { "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8699367358996", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:20]POST & json_proto [01:32:20]process_json_proto [01:32:20]json parsed OK: [01:32:20]protocol is kg_v1.0 [01:32:20]action value=close_receipt [01:32:20]process_action close_receipt [01:32:20]cmd_close_receipt [01:32:20]MH_GetDate [01:32:20]Write to MH i2c: F0 00 00 E4 05 D8 [01:32:20]Write i2c OK [01:32:20]MH_I2C_Read... [01:32:20]Read from MH i2c: F0 [01:32:20]MH_I2C_Read... [01:32:20]Read from MH i2c: F0 09 00 [01:32:20]MH_I2C_Read... [01:32:20]Read from MH i2c: F0 09 00 E4 05 00 A5 42 A8 66 E3 0B 90 66 BA [01:32:20]GetLastDocTimeStamp 1722302751 [01:32:20]current date 1722303141 [01:32:20]FM_GetShiftState [01:32:20]SAM_PROTO_GetShiftState [01:32:20]wFMCommunicate request_size=4 [01:32:20]MH_SAM_APDU [01:32:20]CAPDU: 80 13 01 00 [01:32:20]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [01:32:20]Write i2c OK [01:32:20]MH_I2C_Read... [01:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:20]Read from MH i2c: E2 [01:32:20]MH_I2C_Read... [01:32:20]Read from MH i2c: E2 0E 00 [01:32:20]MH_I2C_Read... [01:32:20]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 4E [01:32:20]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:32:20]wFMCommunicate OK [01:32:20]SAM_PROTO_GetShiftState done [01:32:20]FM_GetShiftState done [01:32:20]opened in 1722298270 [01:32:20]opened+sec_in_day 1722384670 [01:32:20]quantity*price = 5900 [01:32:20]sum+1 = 5901 [01:32:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8699367358996 Очиститель CARB 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 264.00 НСП 1% : 2.33 НДС 12% : 28.03 Наличными: 0.00 Безнал.: 264.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 10 30.07.2024 01:32 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2393 ФПД: 3513039122118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T013221&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2393&fm=3513039122118&tin=02508201610067®Number=0000000000189667&sum=26400 0 [01:32:21]StoreToDocumentArchive [01:32:21]shift 16 fd 2393 [01:32:21]save to /storage/0016/doc_00002393 [01:32:21]save last doc name /storage/0016/doc_00002393 to /storage/kkm_last_doc_name [01:32:21]save OK [01:32:21]Clear old archive folders... [01:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=406 [01:32:21]tlvbuf is 00860320 [01:32:21]SAM_PROTO_ClearQueue [01:32:21]wFMCommunicate request_size=4 [01:32:21]MH_SAM_APDU [01:32:21]CAPDU: 80 09 00 00 [01:32:21]Write to MH i2c: E2 08 00 F2 05 80 09 00 00 00 00 00 00 69 [01:32:21]Write i2c OK [01:32:21]MH_I2C_Read... [01:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:32:21]Read from MH i2c: E2 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [01:32:21]RAPDU: 90 00 [01:32:21]wFMCommunicate OK [01:32:21]SAM_PROTO_ClearQueue done [01:32:21]KKMCreateOFDPacket [01:32:21]OFDProtocolAddRootSTLVToBuf [01:32:21]FM_MakeSignedData [01:32:21]FM_MakeSignedData [01:32:21]SAM_PROTO_SignData [01:32:21]wFMCommunicate request_size=4 [01:32:21]MH_SAM_APDU [01:32:21]CAPDU: 80 0D 01 02 [01:32:21]Write to MH i2c: E2 08 00 F3 05 80 0D 01 02 00 00 00 00 71 [01:32:21]Write i2c OK [01:32:21]MH_I2C_Read... [01:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:32:21]Read from MH i2c: E2 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [01:32:21]RAPDU: 90 00 [01:32:21]wFMCommunicate OK [01:32:21]wFMCommunicate request_size=255 [01:32:21]MH_SAM_APDU [01:32:21]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 5D 00 8A 04 0D 00 38 36 39 39 33 36 37 33 35 38 39 39 36 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 20 [01:32:21]Write to MH i2c: E2 02 01 F4 05 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 5D 00 8A 04 0D 00 38 36 39 39 33 36 37 33 35 38 39 39 36 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 20 00 00 81 [01:32:21]Write i2c OK [01:32:21]MH_I2C_Read... [01:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:21]Read from MH i2c: E2 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [01:32:21]RAPDU: 90 00 [01:32:21]wFMCommunicate OK [01:32:21]wFMCommunicate request_size=165 [01:32:21]MH_SAM_APDU [01:32:21]CAPDU: 80 0D 02 02 A0 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A5 42 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 59 09 00 00 35 04 06 00 03 31 F1 72 EE C6 [01:32:21]Write to MH i2c: E2 A8 00 F5 05 80 0D 02 02 A0 00 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A5 42 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 59 09 00 00 35 04 06 00 03 31 F1 72 EE C6 00 00 8A [01:32:21]Write i2c OK [01:32:21]MH_I2C_Read... [01:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:21]Read from MH i2c: E2 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 [01:32:21]MH_I2C_Read... [01:32:21]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [01:32:21]RAPDU: 90 00 [01:32:21]wFMCommunicate OK [01:32:21]wFMCommunicate request_size=4 [01:32:21]MH_SAM_APDU [01:32:21]CAPDU: 80 0D 03 02 [01:32:21]Write to MH i2c: E2 08 00 F6 05 80 0D 03 02 00 00 00 00 76 [01:32:21]Write i2c OK [01:32:21]MH_I2C_Read... [01:32:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:32:22]Read from MH i2c: E2 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: E2 0B 00 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: E2 0B 00 F6 05 00 1E 3F 28 8E AE 50 BC F7 90 00 3B [01:32:22]RAPDU: 1E 3F 28 8E AE 50 BC F7 90 00 [01:32:22]wFMCommunicate OK [01:32:22]SAM_PROTO_SignData done [01:32:22]FM_MakeSignedData done [01:32:22]CreateOFDProtocolMessage [01:32:22]wFMCommunicate request_size=4 [01:32:22]MH_SAM_APDU [01:32:22]CAPDU: 80 11 00 00 [01:32:22]Write to MH i2c: E2 08 00 F7 05 80 11 00 00 00 00 00 00 76 [01:32:22]Write i2c OK [01:32:22]MH_I2C_Read... [01:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:22]Read from MH i2c: E2 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: E2 17 00 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: E2 17 00 F7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 C6 [01:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:32:22]wFMCommunicate OK [01:32:22]CreateOFDProtocolMessage done [01:32:22]OFDSenderStorePacket 2393 [01:32:22]StoreOFDPacket docnum=2393 [01:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AA 01 00 00 0E BE A2 01 DA F9 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 5D 00 8A 04 0D 00 38 36 39 39 33 36 37 33 35 38 39 39 36 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 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A5 42 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 59 09 00 00 35 04 06 00 03 31 F1 72 EE C6 1E 3F 28 8E AE 50 BC F7 [01:32:22]CheckFolder [01:32:22]dirname=/storage/ofd_packets [01:32:22]CheckFolder done [01:32:22]ProducePacketName [01:32:22]name=ofd_packets/00002393 [01:32:22]NVStorageSaveData ofd_packets/00002393 [01:32:22]File name is /storage/ofd_packets/00002393 [01:32:22]Write 456 bytes [01:32:22]NVStorageSaveData done [01:32:22]OFDSenderStorePacket done [01:32:22]KKMCreateOFDPacket done [01:32:22]NVStorageSaveData kkm_last_timestamp [01:32:22]File name is /storage/kkm_last_timestamp [01:32:22]Write 4 bytes [01:32:22]NVStorageSaveData done [01:32:22]ExternCall_PrintAddStr [01:32:22]wPrintStart [01:32:22]Write to MH i2c: 01 00 00 F8 05 FD [01:32:22]Write i2c OK [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: 01 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: 01 07 00 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [01:32:22]RasterBufferAndPrint [01:32:22]line Счет N : (3)126600 [01:32:22]line ИНН: 02508201610067 [01:32:22]line Контрольно-Кассовый Чек [01:32:22]line ПРОДАЖА [01:32:22]line Товар: 4607123066058 [01:32:22]line Печенье Юбилейное Торжество орех 120г [01:32:22]line 1.000 * 59.00 [01:32:22]line = 59.00 [01:32:22]line НДС 12% НСП 1% [01:32:22]line > о реализуемом товаре [01:32:22]line Товар: 8699367358996 [01:32:22]line Очиститель CARB [01:32:22]line 1.000 * 205.00 [01:32:22]line = 205.00 [01:32:22]line НДС 12% НСП 1% [01:32:22]line > о реализуемом товаре [01:32:22]line ИТОГО: 264.00 [01:32:22]line НСП 1% : 2.33 [01:32:22]line НДС 12% : 28.03 [01:32:22]line Наличными: 0.00 [01:32:22]line Безнал.: 264.00 [01:32:22]line Место: АЗС № 127 "Партнер Нефть" [01:32:22]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:32:22]line СНО: Общий режим [01:32:22]line Чек 10 30.07.2024 01:32 [01:32:22]line Смена: 16 ФФД: 1.0 [01:32:22]line ЗНМ: 0300000161 [01:32:22]line РНМ: 0000000000189667 [01:32:22]line Версия ККМ: v1.0 [01:32:22]line Платежная система: O! деньги [01:32:22]line ФМ: 0000000002094248 [01:32:22]line ФД: 2393 [01:32:22]line ФПД: 3513039122118 [01:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T013221&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2393&fm=3513039122118&tin=02508201610067®Number=0000000000189667&sum=26400 [01:32:22]line 0 [01:32:22]written 0, free lines is 4095 [01:32:22]OFD Sender: Processing packet 2393 [packets to send 1, broken 0] [01:32:22]ProducePacketName [01:32:22]name=ofd_packets/00002393 [01:32:22]OFD Sender: To server: pG, [01:32:22]CommunicateWithHost lk.salyk.kg:30040 [01:32:22]ConnectInit lk.salyk.kg [01:32:22]Connected sock=10 [01:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 AA 01 00 00 0E BE A2 01 DA F9 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 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 5D 00 8A 04 0D 00 38 36 39 39 33 36 37 33 35 38 39 39 36 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 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A5 42 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 59 09 00 00 35 04 06 00 03 31 F1 72 EE C6 1E 3F 28 8E AE 50 BC F7 [01:32:22]Write to MH i2c: 01 00 00 29 06 2F [01:32:22]Write i2c OK [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: 01 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: 01 07 00 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 B0 0C F2 [01:32:22]RasterBufferAndPrint [01:32:22]line [01:32:22]line [01:32:22]line [01:32:22]line [01:32:22]line [01:32:22]written 0, free lines is 3257 [01:32:22]MH_Cut [01:32:22]Write to MH i2c: D1 01 00 30 06 01 08 [01:32:22]Write i2c OK [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: D1 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: D1 01 00 [01:32:22]MH_I2C_Read... [01:32:22]Read from MH i2c: D1 01 00 30 06 00 07 [01:32:22]Write to MH i2c: 01 00 00 31 06 37 [01:32:22]Write i2c OK [01:32:22]MH_I2C_Read... [01:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 D3 8B 47 00 97 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 32 30 39 34 32 34 38 10 04 04 00 59 09 00 00 F4 03 04 00 10 EE A7 66 B6 04 01 00 00 5A 5A 89 0C B4 F8 D8 F8 [01:32:23]CommunicateWithHost err = 0 [01:32:23]CheckOFDResponse [01:32:23]1017 (14) - 77093643461234 [01:32:23]1041 (16) - 0000000002094248 [01:32:23]1040 (4) - 2393 [01:32:23]1012 (4) - 29.07.2024 19:31 [01:32:23]1206 (1) - 0 [01:32:23]OFD Sender: Remove packet 2393 [01:32:23]ProducePacketName [01:32:23]name=ofd_packets/00002393 [01:32:23]NVStorageDeleteData [01:32:23]*** Cut start [01:32:23]*** Partial cut [01:32:23]*** CUTSNS_PIN = 1 [01:32:23]*** CUTSNS_PIN = 0 [01:32:23]OFD Sender: No OFD packet to send [01:32:23]*** Brake cut motor [01:32:24]Read from MH i2c: 01 [01:32:24]MH_I2C_Read... [01:32:24]*** Stop cut motor [01:32:24]*** Cut end [01:32:24]Read from MH i2c: 01 07 00 [01:32:24]MH_I2C_Read... [01:32:24]Read from MH i2c: 01 07 00 31 06 00 00 00 00 00 FF 0F 4C [01:32:24]process_action close_receipt done [01:32:24]requested_data is exist [01:32:24]produce_requested_data [01:32:24]requested_item fm.sn is exist - process it [01:32:24]wFMCommunicate request_size=4 [01:32:24]MH_SAM_APDU [01:32:24]CAPDU: 80 11 00 00 [01:32:24]Write to MH i2c: E2 08 00 32 06 80 11 00 00 00 00 00 00 B2 [01:32:24]Write i2c OK [01:32:24]MH_I2C_Read... [01:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:24]Read from MH i2c: E2 [01:32:24]MH_I2C_Read... [01:32:24]Read from MH i2c: E2 17 00 [01:32:24]MH_I2C_Read... [01:32:24]Read from MH i2c: E2 17 00 32 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 02 [01:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:32:24]wFMCommunicate OK [01:32:24]requested_item fd.num is exist - process it [01:32:24]SAM_PROTO_GetFieldsCounters [01:32:24]wFMCommunicate request_size=4 [01:32:24]MH_SAM_APDU [01:32:24]CAPDU: 80 13 00 00 [01:32:24]Write to MH i2c: E2 08 00 33 06 80 13 00 00 00 00 00 00 B5 [01:32:24]Write i2c OK [01:32:24]MH_I2C_Read... [01:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:24]Read from MH i2c: E2 [01:32:24]MH_I2C_Read... [01:32:24]Read from MH i2c: E2 62 00 [01:32:24]MH_I2C_Read... [01:32:24]Read from MH i2c: E2 62 00 33 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 59 09 00 00 0E 04 04 00 10 00 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 6F [01:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 59 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:32:24]wFMCommunicate OK [01:32:24]SAM_PROTO_GetFieldsCounters done [01:32:24]requested_item shift.num is exist - process it [01:32:24]requested_item shift.opened is exist - process it [01:32:24]req_shift_opened [01:32:24]FM_GetShiftState [01:32:24]SAM_PROTO_GetShiftState [01:32:24]wFMCommunicate request_size=4 [01:32:24]MH_SAM_APDU [01:32:24]CAPDU: 80 13 01 00 [01:32:24]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [01:32:24]Write i2c OK [01:32:24]MH_I2C_Read... [01:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:24]Read from MH i2c: E2 [01:32:24]MH_I2C_Read... [01:32:24]Read from MH i2c: E2 0E 00 [01:32:24]MH_I2C_Read... [01:32:24]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 9E [01:32:24]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:32:24]wFMCommunicate OK [01:32:24]SAM_PROTO_GetShiftState done [01:32:24]FM_GetShiftState done [01:32:24]req_shift_opened done [01:32:24]requested_item shift.open_date is exist - process it [01:32:24]req_shift_open_date [01:32:24]req_shift_open_date done [01:32:24]produce_requested_data done [01:32:24]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2393,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [01:32:24]process_action_free close_receipt [01:32:24]json_value_free [01:32:24]json_value_free done [01:32:24]process_json_proto returns [01:32:24]Send response to host [01:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2393,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [01:32:24]free response buf [01:32:24]execute_script done [01:32:24]execute_script returns [01:32:24]free content buf [01:32:24]Sock 9.Close socket [01:32:24]Sock 9.Thread stoped [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:28]accept exits with 7 [01:51:28]New connection [01:51:28]New thread 3067481444 created [01:51:28]Thread 3067624804 joined [01:51:28]Waiting for new connection... [01:51:28] Sock 7.Parse request [01:51:28]Sock 7.Check first char [01:51:28]Sock 7.First char is OK [01:51:28]request: POST /json_proto HTTP/1.0 [01:51:28]Method: POST [01:51:28]URL: /json_proto [01:51:28]Method is POST - this is cgi request [01:51:28]url: /json_proto [01:51:28]query_string will be loaded in cgi processing [01:51:28]execute_cgi json_proto POST (null) [01:51:28]execute_cgi path=json_proto method=POST [01:51:28]POST find Content-Length [01:51:28]Host: 172.17.45.132:8080 [01:51:28]Content-Length: 1123 [01:51:28]Content-Type: application/json [01:51:28] [01:51:28]POST finish read [01:51:28]Found Content-Length = 1123 [01:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126601", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:28]execute_script... [01:51: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)126601", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:51:28]POST & json_proto [01:51:28]process_json_proto [01:51:28]json parsed OK: [01:51:28]protocol is kg_v1.0 [01:51:28]action value=close_receipt [01:51:28]process_action close_receipt [01:51:28]cmd_close_receipt [01:51:28]MH_GetDate [01:51:28]Write to MH i2c: F0 00 00 35 06 2A [01:51:28]Write i2c OK [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: F0 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: F0 09 00 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: F0 09 00 35 06 00 21 47 A8 66 E3 0B 90 66 8D [01:51:28]GetLastDocTimeStamp 1722303141 [01:51:28]current date 1722304289 [01:51:28]FM_GetShiftState [01:51:28]SAM_PROTO_GetShiftState [01:51:28]wFMCommunicate request_size=4 [01:51:28]MH_SAM_APDU [01:51:28]CAPDU: 80 13 01 00 [01:51:28]Write to MH i2c: E2 08 00 36 06 80 13 01 00 00 00 00 00 B9 [01:51:28]Write i2c OK [01:51:28]MH_I2C_Read... [01:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:28]Read from MH i2c: E2 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 0E 00 [01:51:28]MH_I2C_Read... [01:51:28]Read from MH i2c: E2 0E 00 36 06 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 A0 [01:51:28]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:51:28]wFMCommunicate OK [01:51:28]SAM_PROTO_GetShiftState done [01:51:28]FM_GetShiftState done [01:51:28]opened in 1722298270 [01:51:28]opened+sec_in_day 1722384670 [01:51:28]quantity*price = 10000 [01:51:28]sum+1 = 10001 [01:51:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006996716 Водка Талка 0,1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 0.00 Безнал.: 220.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 11 30.07.2024 01:51 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000002094248 ФД: 2394 ФПД: 85806992024231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T015129&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2394&fm=85806992024231&tin=02508201610067®Number=0000000000189667&sum=22000 0 [01:51:29]StoreToDocumentArchive [01:51:29]shift 16 fd 2394 [01:51:29]save to /storage/0016/doc_00002394 [01:51:29]save last doc name /storage/0016/doc_00002394 to /storage/kkm_last_doc_name [01:51:29]save OK [01:51:29]Clear old archive folders... [01:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=400 [01:51:29]tlvbuf is 00862000 [01:51:29]SAM_PROTO_ClearQueue [01:51:29]wFMCommunicate request_size=4 [01:51:29]MH_SAM_APDU [01:51:29]CAPDU: 80 09 00 00 [01:51:29]Write to MH i2c: E2 08 00 43 06 80 09 00 00 00 00 00 00 BB [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:51:29]Read from MH i2c: E2 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [01:51:29]RAPDU: 90 00 [01:51:29]wFMCommunicate OK [01:51:29]SAM_PROTO_ClearQueue done [01:51:29]KKMCreateOFDPacket [01:51:29]OFDProtocolAddRootSTLVToBuf [01:51:29]FM_MakeSignedData [01:51:29]FM_MakeSignedData [01:51:29]SAM_PROTO_SignData [01:51:29]wFMCommunicate request_size=4 [01:51:29]MH_SAM_APDU [01:51:29]CAPDU: 80 0D 01 02 [01:51:29]Write to MH i2c: E2 08 00 44 06 80 0D 01 02 00 00 00 00 C3 [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:51:29]Read from MH i2c: E2 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [01:51:29]RAPDU: 90 00 [01:51:29]wFMCommunicate OK [01:51:29]wFMCommunicate request_size=255 [01:51:29]MH_SAM_APDU [01:51:29]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 F0 55 00 00 00 00 EB [01:51:29]Write to MH i2c: E2 02 01 45 06 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 F0 55 00 00 00 00 EB 00 00 57 [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]OFD Sender: No OFD packet to send [01:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:29]Read from MH i2c: E2 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [01:51:29]RAPDU: 90 00 [01:51:29]wFMCommunicate OK [01:51:29]wFMCommunicate request_size=159 [01:51:29]MH_SAM_APDU [01:51:29]CAPDU: 80 0D 02 02 9A 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 0B 00 00 00 F4 03 04 00 21 47 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 09 00 00 35 04 06 00 4E 0A 7F 47 62 A7 [01:51:29]Write to MH i2c: E2 A2 00 46 06 80 0D 02 02 9A 00 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 0B 00 00 00 F4 03 04 00 21 47 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 09 00 00 35 04 06 00 4E 0A 7F 47 62 A7 00 00 A0 [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:51:29]Read from MH i2c: E2 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [01:51:29]RAPDU: 90 00 [01:51:29]wFMCommunicate OK [01:51:29]wFMCommunicate request_size=4 [01:51:29]MH_SAM_APDU [01:51:29]CAPDU: 80 0D 03 02 [01:51:29]Write to MH i2c: E2 08 00 47 06 80 0D 03 02 00 00 00 00 C8 [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:51:29]Read from MH i2c: E2 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 0B 00 [01:51:29]MH_I2C_Read... [01:51:29]Read from MH i2c: E2 0B 00 47 06 00 CB E4 C7 5E 86 44 23 BF 90 00 49 [01:51:29]RAPDU: CB E4 C7 5E 86 44 23 BF 90 00 [01:51:29]wFMCommunicate OK [01:51:29]SAM_PROTO_SignData done [01:51:29]FM_MakeSignedData done [01:51:29]CreateOFDProtocolMessage [01:51:29]wFMCommunicate request_size=4 [01:51:29]MH_SAM_APDU [01:51:29]CAPDU: 80 11 00 00 [01:51:29]Write to MH i2c: E2 08 00 48 06 80 11 00 00 00 00 00 00 C8 [01:51:29]Write i2c OK [01:51:29]MH_I2C_Read... [01:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:30]Read from MH i2c: E2 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 17 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: E2 17 00 48 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 18 [01:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:51:30]wFMCommunicate OK [01:51:30]CreateOFDProtocolMessage done [01:51:30]OFDSenderStorePacket 2394 [01:51:30]StoreOFDPacket docnum=2394 [01:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A4 01 00 00 97 2A 9C 01 7F 7A 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 0B 00 00 00 F4 03 04 00 21 47 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 09 00 00 35 04 06 00 4E 0A 7F 47 62 A7 CB E4 C7 5E 86 44 23 BF [01:51:30]CheckFolder [01:51:30]dirname=/storage/ofd_packets [01:51:30]CheckFolder done [01:51:30]ProducePacketName [01:51:30]name=ofd_packets/00002394 [01:51:30]NVStorageSaveData ofd_packets/00002394 [01:51:30]File name is /storage/ofd_packets/00002394 [01:51:30]Write 450 bytes [01:51:30]NVStorageSaveData done [01:51:30]OFDSenderStorePacket done [01:51:30]KKMCreateOFDPacket done [01:51:30]NVStorageSaveData kkm_last_timestamp [01:51:30]File name is /storage/kkm_last_timestamp [01:51:30]Write 4 bytes [01:51:30]NVStorageSaveData done [01:51:30]ExternCall_PrintAddStr [01:51:30]wPrintStart [01:51:30]Write to MH i2c: 01 00 00 49 06 4F [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: 01 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: 01 07 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: 01 07 00 49 06 00 00 00 00 00 FF 0F 64 [01:51:30]RasterBufferAndPrint [01:51:30]line Счет N : (3)126601 [01:51:30]line ИНН: 02508201610067 [01:51:30]line Контрольно-Кассовый Чек [01:51:30]line ПРОДАЖА [01:51:30]line Товар: 4860019001810 [01:51:30]line Вода Боржоми минеральная ж/б 0,33л [01:51:30]line 1.000 * 100.00 [01:51:30]line = 100.00 [01:51:30]line НДС 12% НСП 1% [01:51:30]line > о реализуемом товаре [01:51:30]line Товар: 4620006996716 [01:51:30]line Водка Талка 0,1л [01:51:30]line 1.000 * 120.00 [01:51:30]line = 120.00 [01:51:30]line НДС 12% НСП 1% [01:51:30]line > о реализуемом товаре [01:51:30]line ИТОГО: 220.00 [01:51:30]line НСП 1% : 1.94 [01:51:30]line НДС 12% : 23.36 [01:51:30]line Наличными: 0.00 [01:51:30]line Безнал.: 220.00 [01:51:30]line Место: АЗС № 127 "Партнер Нефть" [01:51:30]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [01:51:30]line СНО: Общий режим [01:51:30]line Чек 11 30.07.2024 01:51 [01:51:30]line Смена: 16 ФФД: 1.0 [01:51:30]line ЗНМ: 0300000161 [01:51:30]line РНМ: 0000000000189667 [01:51:30]line Версия ККМ: v1.0 [01:51:30]line Платежная система: O! деньги [01:51:30]line ФМ: 0000000002094248 [01:51:30]line ФД: 2394 [01:51:30]line ФПД: 85806992024231 [01:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T015129&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2394&fm=85806992024231&tin=02508201610067®Number=0000000000189667&sum=22000 [01:51:30]line 0 [01:51:30]written 0, free lines is 4095 [01:51:30]OFD Sender: Processing packet 2394 [packets to send 1, broken 0] [01:51:30]ProducePacketName [01:51:30]name=ofd_packets/00002394 [01:51:30]OFD Sender: To server: pG, [01:51:30]CommunicateWithHost lk.salyk.kg:30040 [01:51:30]ConnectInit lk.salyk.kg [01:51:30]Connected sock=10 [01:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 A4 01 00 00 97 2A 9C 01 7F 7A 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB 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 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB 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 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 0B 00 00 00 F4 03 04 00 21 47 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5A 09 00 00 35 04 06 00 4E 0A 7F 47 62 A7 CB E4 C7 5E 86 44 23 BF [01:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 3C 85 47 00 A9 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 32 30 39 34 32 34 38 10 04 04 00 5A 09 00 00 F4 03 04 00 8C F2 A7 66 B6 04 01 00 00 0B 07 B8 A7 98 D4 16 AE [01:51:30]CommunicateWithHost err = 0 [01:51:30]CheckOFDResponse [01:51:30]1017 (14) - 77093643461234 [01:51:30]1041 (16) - 0000000002094248 [01:51:30]1040 (4) - 2394 [01:51:30]1012 (4) - 29.07.2024 19:50 [01:51:30]1206 (1) - 0 [01:51:30]OFD Sender: Remove packet 2394 [01:51:30]ProducePacketName [01:51:30]name=ofd_packets/00002394 [01:51:30]NVStorageDeleteData [01:51:30]Write to MH i2c: 01 00 00 7A 06 80 [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: 01 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: 01 07 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 9A 0C 2D [01:51:30]RasterBufferAndPrint [01:51:30]line [01:51:30]line [01:51:30]line [01:51:30]line [01:51:30]line [01:51:30]written 0, free lines is 3235 [01:51:30]MH_Cut [01:51:30]Write to MH i2c: D1 01 00 81 06 01 59 [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: D1 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: D1 01 00 [01:51:30]MH_I2C_Read... [01:51:30]Read from MH i2c: D1 01 00 81 06 00 58 [01:51:30]Write to MH i2c: 01 00 00 82 06 88 [01:51:30]Write i2c OK [01:51:30]MH_I2C_Read... [01:51:31]OFD Sender: No OFD packet to send [01:51:31]*** Cut start [01:51:31]*** Partial cut [01:51:31]*** CUTSNS_PIN = 1 [01:51:31]*** CUTSNS_PIN = 0 [01:51:31]*** Brake cut motor [01:51:32]Read from MH i2c: 01 [01:51:32]MH_I2C_Read... [01:51:32]*** Stop cut motor [01:51:32]*** Cut end [01:51:32]Read from MH i2c: 01 07 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 FF 0F 9D [01:51:32]process_action close_receipt done [01:51:32]requested_data is exist [01:51:32]produce_requested_data [01:51:32]requested_item fm.sn is exist - process it [01:51:32]wFMCommunicate request_size=4 [01:51:32]MH_SAM_APDU [01:51:32]CAPDU: 80 11 00 00 [01:51:32]Write to MH i2c: E2 08 00 83 06 80 11 00 00 00 00 00 00 03 [01:51:32]Write i2c OK [01:51:32]MH_I2C_Read... [01:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:51:32]Read from MH i2c: E2 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 17 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 17 00 83 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 53 [01:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [01:51:32]wFMCommunicate OK [01:51:32]requested_item fd.num is exist - process it [01:51:32]SAM_PROTO_GetFieldsCounters [01:51:32]wFMCommunicate request_size=4 [01:51:32]MH_SAM_APDU [01:51:32]CAPDU: 80 13 00 00 [01:51:32]Write to MH i2c: E2 08 00 84 06 80 13 00 00 00 00 00 00 06 [01:51:32]Write i2c OK [01:51:32]MH_I2C_Read... [01:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:51:32]Read from MH i2c: E2 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 62 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 62 00 84 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5A 09 00 00 0E 04 04 00 10 00 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 C4 [01:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5A 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:51:32]wFMCommunicate OK [01:51:32]SAM_PROTO_GetFieldsCounters done [01:51:32]requested_item shift.num is exist - process it [01:51:32]requested_item shift.opened is exist - process it [01:51:32]req_shift_opened [01:51:32]FM_GetShiftState [01:51:32]SAM_PROTO_GetShiftState [01:51:32]wFMCommunicate request_size=4 [01:51:32]MH_SAM_APDU [01:51:32]CAPDU: 80 13 01 00 [01:51:32]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [01:51:32]Write i2c OK [01:51:32]MH_I2C_Read... [01:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:51:32]Read from MH i2c: E2 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 0E 00 [01:51:32]MH_I2C_Read... [01:51:32]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 EF [01:51:32]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [01:51:32]wFMCommunicate OK [01:51:32]SAM_PROTO_GetShiftState done [01:51:32]FM_GetShiftState done [01:51:32]req_shift_opened done [01:51:32]requested_item shift.open_date is exist - process it [01:51:32]req_shift_open_date [01:51:32]req_shift_open_date done [01:51:32]produce_requested_data done [01:51:32]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2394,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [01:51:32]process_action_free close_receipt [01:51:32]json_value_free [01:51:32]json_value_free done [01:51:32]process_json_proto returns [01:51:32]Send response to host [01:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2394,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [01:51:32]free response buf [01:51:32]execute_script done [01:51:32]execute_script returns [01:51:32]free content buf [01:51:32]Sock 7.Close socket [01:51:32]Sock 7.Thread stoped [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:58:05]ConnectInit Can't connect to host [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]accept exits with 9 [02:00:56]New connection [02:00:56]New thread 3067624804 created [02:00:56]Thread 3067481444 joined [02:00:56]Waiting for new connection... [02:00:56] Sock 9.Parse request [02:00:56]Sock 9.Check first char [02:00:56]Sock 9.First char is OK [02:00:56]request: POST /json_proto HTTP/1.0 [02:00:56]Method: POST [02:00:56]URL: /json_proto [02:00:56]Method is POST - this is cgi request [02:00:56]url: /json_proto [02:00:56]query_string will be loaded in cgi processing [02:00:56]execute_cgi json_proto POST (null) [02:00:56]execute_cgi path=json_proto method=POST [02:00:56]POST find Content-Length [02:00:56]Host: 172.17.45.132:8080 [02:00:56]Content-Length: 623 [02:00:56]Content-Type: application/json [02:00:56] [02:00:56]POST finish read [02:00:56]Found Content-Length = 623 [02:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126602", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [02:00:56]execute_script... [02:00: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)126602", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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" ] } } [02:00:56]POST & json_proto [02:00:56]process_json_proto [02:00:56]json parsed OK: [02:00:56]protocol is kg_v1.0 [02:00:56]action value=close_receipt [02:00:56]process_action close_receipt [02:00:56]cmd_close_receipt [02:00:56]MH_GetDate [02:00:56]Write to MH i2c: F0 00 00 86 06 7B [02:00:56]Write i2c OK [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: F0 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: F0 09 00 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: F0 09 00 86 06 00 59 49 A8 66 E3 0B 90 66 18 [02:00:56]GetLastDocTimeStamp 1722304289 [02:00:56]current date 1722304857 [02:00:56]FM_GetShiftState [02:00:56]SAM_PROTO_GetShiftState [02:00:56]wFMCommunicate request_size=4 [02:00:56]MH_SAM_APDU [02:00:56]CAPDU: 80 13 01 00 [02:00:56]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [02:00:56]Write i2c OK [02:00:56]MH_I2C_Read... [02:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:56]Read from MH i2c: E2 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 0E 00 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 F1 [02:00:56]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:00:56]wFMCommunicate OK [02:00:56]SAM_PROTO_GetShiftState done [02:00:56]FM_GetShiftState done [02:00:56]opened in 1722298270 [02:00:56]opened+sec_in_day 1722384670 [02:00:56]quantity*price = 14000 [02:00:56]sum+1 = 14001 [02:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 12 30.07.2024 02:00 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2395 ФПД: 244264341105534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T020057&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2395&fm=244264341105534&tin=02508201610067®Number=0000000000189667&sum=14000 0 [02:00:57]StoreToDocumentArchive [02:00:57]shift 16 fd 2395 [02:00:57]save to /storage/0016/doc_00002395 [02:00:57]save last doc name /storage/0016/doc_00002395 to /storage/kkm_last_doc_name [02:00:57]save OK [02:00:57]Clear old archive folders... [02:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=275 [02:00:57]tlvbuf is 00843410 [02:00:57]SAM_PROTO_ClearQueue [02:00:57]wFMCommunicate request_size=4 [02:00:57]MH_SAM_APDU [02:00:57]CAPDU: 80 09 00 00 [02:00:57]Write to MH i2c: E2 08 00 94 06 80 09 00 00 00 00 00 00 0C [02:00:57]Write i2c OK [02:00:57]MH_I2C_Read... [02:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:00:57]Read from MH i2c: E2 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [02:00:57]RAPDU: 90 00 [02:00:57]wFMCommunicate OK [02:00:57]SAM_PROTO_ClearQueue done [02:00:57]KKMCreateOFDPacket [02:00:57]OFDProtocolAddRootSTLVToBuf [02:00:57]FM_MakeSignedData [02:00:57]FM_MakeSignedData [02:00:57]SAM_PROTO_SignData [02:00:57]wFMCommunicate request_size=4 [02:00:57]MH_SAM_APDU [02:00:57]CAPDU: 80 0D 01 02 [02:00:57]Write to MH i2c: E2 08 00 95 06 80 0D 01 02 00 00 00 00 14 [02:00:57]Write i2c OK [02:00:57]MH_I2C_Read... [02:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:00:57]Read from MH i2c: E2 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [02:00:57]RAPDU: 90 00 [02:00:57]wFMCommunicate OK [02:00:57]wFMCommunicate request_size=255 [02:00:57]MH_SAM_APDU [02:00:57]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 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 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 0C 00 00 00 F4 03 04 00 59 49 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 [02:00:57]Write to MH i2c: E2 02 01 96 06 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 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 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 0C 00 00 00 F4 03 04 00 59 49 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 00 00 7C [02:00:57]Write i2c OK [02:00:57]MH_I2C_Read... [02:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:57]Read from MH i2c: E2 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [02:00:57]RAPDU: 90 00 [02:00:57]wFMCommunicate OK [02:00:57]wFMCommunicate request_size=34 [02:00:57]MH_SAM_APDU [02:00:57]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 09 00 00 35 04 06 00 DE 28 39 48 6B 7E [02:00:57]Write to MH i2c: E2 25 00 97 06 80 0D 02 02 1D 00 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 09 00 00 35 04 06 00 DE 28 39 48 6B 7E 00 00 A9 [02:00:57]Write i2c OK [02:00:57]MH_I2C_Read... [02:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:57]Read from MH i2c: E2 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [02:00:57]RAPDU: 90 00 [02:00:57]wFMCommunicate OK [02:00:57]wFMCommunicate request_size=4 [02:00:57]MH_SAM_APDU [02:00:57]CAPDU: 80 0D 03 02 [02:00:57]Write to MH i2c: E2 08 00 98 06 80 0D 03 02 00 00 00 00 19 [02:00:57]Write i2c OK [02:00:57]MH_I2C_Read... [02:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:00:57]Read from MH i2c: E2 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 0B 00 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 0B 00 98 06 00 84 C3 6A 9E 01 6E B4 21 90 00 AD [02:00:57]RAPDU: 84 C3 6A 9E 01 6E B4 21 90 00 [02:00:57]wFMCommunicate OK [02:00:57]SAM_PROTO_SignData done [02:00:57]FM_MakeSignedData done [02:00:57]CreateOFDProtocolMessage [02:00:57]wFMCommunicate request_size=4 [02:00:57]MH_SAM_APDU [02:00:57]CAPDU: 80 11 00 00 [02:00:57]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [02:00:57]Write i2c OK [02:00:57]MH_I2C_Read... [02:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:57]Read from MH i2c: E2 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 17 00 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 69 [02:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:00:57]wFMCommunicate OK [02:00:57]CreateOFDProtocolMessage done [02:00:57]OFDSenderStorePacket 2395 [02:00:57]StoreOFDPacket docnum=2395 [02:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 1A 1E 1F 01 7A B7 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 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 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 0C 00 00 00 F4 03 04 00 59 49 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 09 00 00 35 04 06 00 DE 28 39 48 6B 7E 84 C3 6A 9E 01 6E B4 21 [02:00:57]CheckFolder [02:00:57]dirname=/storage/ofd_packets [02:00:57]CheckFolder done [02:00:57]ProducePacketName [02:00:57]name=ofd_packets/00002395 [02:00:57]NVStorageSaveData ofd_packets/00002395 [02:00:57]File name is /storage/ofd_packets/00002395 [02:00:57]Write 325 bytes [02:00:57]NVStorageSaveData done [02:00:57]OFDSenderStorePacket done [02:00:57]KKMCreateOFDPacket done [02:00:57]NVStorageSaveData kkm_last_timestamp [02:00:57]File name is /storage/kkm_last_timestamp [02:00:57]Write 4 bytes [02:00:57]NVStorageSaveData done [02:00:57]ExternCall_PrintAddStr [02:00:57]wPrintStart [02:00:57]Write to MH i2c: 01 00 00 9A 06 A0 [02:00:57]Write i2c OK [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: 01 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: 01 07 00 [02:00:57]MH_I2C_Read... [02:00:57]Read from MH i2c: 01 07 00 9A 06 00 00 00 00 00 FF 0F B5 [02:00:57]RasterBufferAndPrint [02:00:57]line Счет N : (3)126602 [02:00:57]line ИНН: 02508201610067 [02:00:57]line Контрольно-Кассовый Чек [02:00:57]line ПРОДАЖА [02:00:57]line Товар: 48743587 [02:00:57]line Сигареты Winston XStyle Silver [02:00:57]line 1.000 * 140.00 [02:00:57]line = 140.00 [02:00:57]line НДС 12% НСП 1% [02:00:57]line > о реализуемом товаре [02:00:57]line ИТОГО: 140.00 [02:00:57]line НСП 1% : 1.24 [02:00:57]line НДС 12% : 14.87 [02:00:57]line Наличными: 140.00 [02:00:57]line Безнал.: 0.00 [02:00:57]line Место: АЗС № 127 "Партнер Нефть" [02:00:57]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [02:00:57]line СНО: Общий режим [02:00:57]line Чек 12 30.07.2024 02:00 [02:00:57]line Смена: 16 ФФД: 1.0 [02:00:57]line ЗНМ: 0300000161 [02:00:57]line РНМ: 0000000000189667 [02:00:57]line Версия ККМ: v1.0 [02:00:57]line ФМ: 0000000002094248 [02:00:57]line ФД: 2395 [02:00:57]line ФПД: 244264341105534 [02:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T020057&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2395&fm=244264341105534&tin=02508201610067®Number=0000000000189667&sum=14000 [02:00:58]line 0 [02:00:58]OFD Sender: Processing packet 2395 [packets to send 1, broken 0] [02:00:58]ProducePacketName [02:00:58]name=ofd_packets/00002395 [02:00:58]OFD Sender: To server: pG, [02:00:58]CommunicateWithHost lk.salyk.kg:30040 [02:00:58]ConnectInit lk.salyk.kg [02:00:58]written 0, free lines is 4095 [02:00:58]Connected sock=11 [02:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 27 01 00 00 1A 1E 1F 01 7A B7 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 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 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 0C 00 00 00 F4 03 04 00 59 49 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5B 09 00 00 35 04 06 00 DE 28 39 48 6B 7E 84 C3 6A 9E 01 6E B4 21 [02:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 BD B5 47 00 AC 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 32 30 39 34 32 34 38 10 04 04 00 5B 09 00 00 F4 03 04 00 C4 F4 A7 66 B6 04 01 00 00 21 B0 2C 9A 73 58 BA 13 [02:00:58]CommunicateWithHost err = 0 [02:00:58]CheckOFDResponse [02:00:58]1017 (14) - 77093643461234 [02:00:58]1041 (16) - 0000000002094248 [02:00:58]1040 (4) - 2395 [02:00:58]1012 (4) - 29.07.2024 20:00 [02:00:58]1206 (1) - 0 [02:00:58]OFD Sender: Remove packet 2395 [02:00:58]ProducePacketName [02:00:58]name=ofd_packets/00002395 [02:00:58]NVStorageDeleteData [02:00:58]Write to MH i2c: 01 00 00 C3 06 C9 [02:00:58]Write i2c OK [02:00:58]MH_I2C_Read... [02:00:58]Read from MH i2c: 01 [02:00:58]MH_I2C_Read... [02:00:58]Read from MH i2c: 01 07 00 [02:00:58]MH_I2C_Read... [02:00:58]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 0A 0D E7 [02:00:58]RasterBufferAndPrint [02:00:58]line [02:00:58]line [02:00:58]line [02:00:58]line [02:00:58]line [02:00:58]written 0, free lines is 3345 [02:00:58]MH_Cut [02:00:58]Write to MH i2c: D1 01 00 CA 06 01 A2 [02:00:58]Write i2c OK [02:00:58]MH_I2C_Read... [02:00:58]Read from MH i2c: D1 [02:00:58]MH_I2C_Read... [02:00:58]Read from MH i2c: D1 01 00 [02:00:58]MH_I2C_Read... [02:00:58]Read from MH i2c: D1 01 00 CA 06 00 A1 [02:00:58]Write to MH i2c: 01 00 00 CB 06 D1 [02:00:58]Write i2c OK [02:00:58]MH_I2C_Read... [02:00:59]OFD Sender: No OFD packet to send [02:00:59]*** Cut start [02:00:59]*** Partial cut [02:00:59]*** CUTSNS_PIN = 1 [02:00:59]*** CUTSNS_PIN = 0 [02:00:59]*** Brake cut motor [02:00:59]Read from MH i2c: 01 [02:00:59]MH_I2C_Read... [02:00:59]*** Stop cut motor [02:00:59]*** Cut end [02:00:59]Read from MH i2c: 01 07 00 [02:00:59]MH_I2C_Read... [02:00:59]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [02:00:59]process_action close_receipt done [02:00:59]requested_data is exist [02:00:59]produce_requested_data [02:00:59]requested_item fm.sn is exist - process it [02:00:59]wFMCommunicate request_size=4 [02:00:59]MH_SAM_APDU [02:00:59]CAPDU: 80 11 00 00 [02:00:59]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [02:00:59]Write i2c OK [02:00:59]MH_I2C_Read... [02:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:59]Read from MH i2c: E2 [02:00:59]MH_I2C_Read... [02:00:59]Read from MH i2c: E2 17 00 [02:00:59]MH_I2C_Read... [02:00:59]Read from MH i2c: E2 17 00 CC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 9C [02:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:00:59]wFMCommunicate OK [02:00:59]requested_item fd.num is exist - process it [02:00:59]SAM_PROTO_GetFieldsCounters [02:00:59]wFMCommunicate request_size=4 [02:00:59]MH_SAM_APDU [02:00:59]CAPDU: 80 13 00 00 [02:00:59]Write to MH i2c: E2 08 00 CD 06 80 13 00 00 00 00 00 00 4F [02:00:59]Write i2c OK [02:00:59]MH_I2C_Read... [02:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:01:00]Read from MH i2c: E2 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: E2 62 00 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: E2 62 00 CD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5B 09 00 00 0E 04 04 00 10 00 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 11 [02:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5B 09 00 00 0E 04 04 00 10 00 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:01:00]wFMCommunicate OK [02:01:00]SAM_PROTO_GetFieldsCounters done [02:01:00]requested_item shift.num is exist - process it [02:01:00]requested_item shift.opened is exist - process it [02:01:00]req_shift_opened [02:01:00]FM_GetShiftState [02:01:00]SAM_PROTO_GetShiftState [02:01:00]wFMCommunicate request_size=4 [02:01:00]MH_SAM_APDU [02:01:00]CAPDU: 80 13 01 00 [02:01:00]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [02:01:00]Write i2c OK [02:01:00]MH_I2C_Read... [02:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:00]Read from MH i2c: E2 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: E2 0E 00 [02:01:00]MH_I2C_Read... [02:01:00]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 38 [02:01:00]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:01:00]wFMCommunicate OK [02:01:00]SAM_PROTO_GetShiftState done [02:01:00]FM_GetShiftState done [02:01:00]req_shift_opened done [02:01:00]requested_item shift.open_date is exist - process it [02:01:00]req_shift_open_date [02:01:00]req_shift_open_date done [02:01:00]produce_requested_data done [02:01:00]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2395,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [02:01:00]process_action_free close_receipt [02:01:00]json_value_free [02:01:00]json_value_free done [02:01:00]process_json_proto returns [02:01:00]Send response to host [02:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2395,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [02:01:00]free response buf [02:01:00]execute_script done [02:01:00]execute_script returns [02:01:00]free content buf [02:01:00]Sock 9.Close socket [02:01:00]Sock 9.Thread stoped [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:22]accept exits with 7 [02:05:22]New connection [02:05:22]New thread 3067481444 created [02:05:22]Thread 3067624804 joined [02:05:22]Waiting for new connection... [02:05:22] Sock 7.Parse request [02:05:22]Sock 7.Check first char [02:05:22]Sock 7.First char is OK [02:05:22]request: POST /json_proto HTTP/1.0 [02:05:22]Method: POST [02:05:22]URL: /json_proto [02:05:22]Method is POST - this is cgi request [02:05:22]url: /json_proto [02:05:22]query_string will be loaded in cgi processing [02:05:22]execute_cgi json_proto POST (null) [02:05:22]execute_cgi path=json_proto method=POST [02:05:22]POST find Content-Length [02:05:22]Host: 172.17.45.132:8080 [02:05:22]Content-Length: 1209 [02:05:22]Content-Type: application/json [02:05:22] [02:05:22]POST finish read [02:05:22]Found Content-Length = 1209 [02:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126603", "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": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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:05:22]execute_script... [02:05:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126603", "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": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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:05:22]POST & json_proto [02:05:22]process_json_proto [02:05:22]json parsed OK: [02:05:22]protocol is kg_v1.0 [02:05:22]action value=close_receipt [02:05:22]process_action close_receipt [02:05:22]cmd_close_receipt [02:05:22]MH_GetDate [02:05:22]Write to MH i2c: F0 00 00 CF 06 C4 [02:05:22]Write i2c OK [02:05:22]MH_I2C_Read... [02:05:22]Read from MH i2c: F0 [02:05:22]MH_I2C_Read... [02:05:22]Read from MH i2c: F0 09 00 [02:05:22]MH_I2C_Read... [02:05:22]Read from MH i2c: F0 09 00 CF 06 00 63 4A A8 66 E3 0B 90 66 6C [02:05:22]GetLastDocTimeStamp 1722304857 [02:05:22]current date 1722305123 [02:05:22]FM_GetShiftState [02:05:22]SAM_PROTO_GetShiftState [02:05:22]wFMCommunicate request_size=4 [02:05:22]MH_SAM_APDU [02:05:22]CAPDU: 80 13 01 00 [02:05:22]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [02:05:22]Write i2c OK [02:05:22]MH_I2C_Read... [02:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:22]Read from MH i2c: E2 [02:05:22]MH_I2C_Read... [02:05:22]Read from MH i2c: E2 0E 00 [02:05:22]MH_I2C_Read... [02:05:22]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 3A [02:05:22]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:05:22]wFMCommunicate OK [02:05:22]SAM_PROTO_GetShiftState done [02:05:22]FM_GetShiftState done [02:05:22]opened in 1722298270 [02:05:22]opened+sec_in_day 1722384670 [02:05:22]quantity*price = 5000 [02:05:22]sum+1 = 5001 [02:05:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.58 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 13 30.07.2024 02:05 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2396 ФПД: 254108254146784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T020523&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2396&fm=254108254146784&tin=02508201610067®Number=0000000000189667&sum=18000 0 [02:05:23]StoreToDocumentArchive [02:05:23]shift 16 fd 2396 [02:05:23]save to /storage/0016/doc_00002396 [02:05:23]save last doc name /storage/0016/doc_00002396 to /storage/kkm_last_doc_name [02:05:23]save OK [02:05:23]Clear old archive folders... [02:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=499 [02:05:23]tlvbuf is 008310F0 [02:05:23]SAM_PROTO_ClearQueue [02:05:23]wFMCommunicate request_size=4 [02:05:23]MH_SAM_APDU [02:05:23]CAPDU: 80 09 00 00 [02:05:23]Write to MH i2c: E2 08 00 DD 06 80 09 00 00 00 00 00 00 55 [02:05:23]Write i2c OK [02:05:23]MH_I2C_Read... [02:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:05:23]Read from MH i2c: E2 [02:05:23]MH_I2C_Read... [02:05:23]Read from MH i2c: E2 03 00 [02:05:23]MH_I2C_Read... [02:05:23]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [02:05:23]RAPDU: 90 00 [02:05:23]wFMCommunicate OK [02:05:23]SAM_PROTO_ClearQueue done [02:05:23]KKMCreateOFDPacket [02:05:23]OFDProtocolAddRootSTLVToBuf [02:05:23]FM_MakeSignedData [02:05:23]FM_MakeSignedData [02:05:23]SAM_PROTO_SignData [02:05:23]wFMCommunicate request_size=4 [02:05:23]MH_SAM_APDU [02:05:23]CAPDU: 80 0D 01 02 [02:05:23]Write to MH i2c: E2 08 00 DE 06 80 0D 01 02 00 00 00 00 5D [02:05:23]Write i2c OK [02:05:23]MH_I2C_Read... [02:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:05:23]Read from MH i2c: E2 [02:05:23]MH_I2C_Read... [02:05:23]Read from MH i2c: E2 03 00 [02:05:23]MH_I2C_Read... [02:05:23]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [02:05:23]RAPDU: 90 00 [02:05:23]wFMCommunicate OK [02:05:23]wFMCommunicate request_size=255 [02:05:23]MH_SAM_APDU [02:05:23]CAPDU: 80 0D 02 02 FA 03 00 F3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 [02:05:24]Write to MH i2c: E2 02 01 DF 06 80 0D 02 02 FA 00 03 00 F3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 00 00 F6 [02:05:24]Write i2c OK [02:05:24]MH_I2C_Read... [02:05:24]OFD Sender: No OFD packet to send [02:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:24]Read from MH i2c: E2 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 03 00 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [02:05:24]RAPDU: 90 00 [02:05:24]wFMCommunicate OK [02:05:24]wFMCommunicate request_size=255 [02:05:24]MH_SAM_APDU [02:05:24]CAPDU: 80 0D 02 02 FA 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 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 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 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 9E 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 63 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 09 00 00 35 04 06 00 E7 1C 30 [02:05:24]Write to MH i2c: E2 02 01 E0 06 80 0D 02 02 FA 00 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 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 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 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 9E 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 63 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 09 00 00 35 04 06 00 E7 1C 30 00 00 8C [02:05:24]Write i2c OK [02:05:24]MH_I2C_Read... [02:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:24]Read from MH i2c: E2 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 03 00 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [02:05:24]RAPDU: 90 00 [02:05:24]wFMCommunicate OK [02:05:24]wFMCommunicate request_size=8 [02:05:24]MH_SAM_APDU [02:05:24]CAPDU: 80 0D 02 02 03 39 10 E0 [02:05:24]Write to MH i2c: E2 0B 00 E1 06 80 0D 02 02 03 00 39 10 E0 00 00 90 [02:05:24]Write i2c OK [02:05:24]MH_I2C_Read... [02:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:24]Read from MH i2c: E2 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 03 00 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [02:05:24]RAPDU: 90 00 [02:05:24]wFMCommunicate OK [02:05:24]wFMCommunicate request_size=4 [02:05:24]MH_SAM_APDU [02:05:24]CAPDU: 80 0D 03 02 [02:05:24]Write to MH i2c: E2 08 00 E2 06 80 0D 03 02 00 00 00 00 63 [02:05:24]Write i2c OK [02:05:24]MH_I2C_Read... [02:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:05:24]Read from MH i2c: E2 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 0B 00 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 0B 00 E2 06 00 F2 7F 75 70 E5 5E AF 04 90 00 B0 [02:05:24]RAPDU: F2 7F 75 70 E5 5E AF 04 90 00 [02:05:24]wFMCommunicate OK [02:05:24]SAM_PROTO_SignData done [02:05:24]FM_MakeSignedData done [02:05:24]CreateOFDProtocolMessage [02:05:24]wFMCommunicate request_size=4 [02:05:24]MH_SAM_APDU [02:05:24]CAPDU: 80 11 00 00 [02:05:24]Write to MH i2c: E2 08 00 E3 06 80 11 00 00 00 00 00 00 63 [02:05:24]Write i2c OK [02:05:24]MH_I2C_Read... [02:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:24]Read from MH i2c: E2 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 17 00 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: E2 17 00 E3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 B3 [02:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:05:24]wFMCommunicate OK [02:05:24]CreateOFDProtocolMessage done [02:05:24]OFDSenderStorePacket 2396 [02:05:24]StoreOFDPacket docnum=2396 [02:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 07 02 00 00 D9 07 FF 01 A3 6F 5A 03 01 00 03 00 F3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 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 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 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 9E 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 63 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 09 00 00 35 04 06 00 E7 1C 30 39 10 E0 F2 7F 75 70 E5 5E AF 04 [02:05:24]CheckFolder [02:05:24]dirname=/storage/ofd_packets [02:05:24]CheckFolder done [02:05:24]ProducePacketName [02:05:24]name=ofd_packets/00002396 [02:05:24]NVStorageSaveData ofd_packets/00002396 [02:05:24]File name is /storage/ofd_packets/00002396 [02:05:24]Write 549 bytes [02:05:24]NVStorageSaveData done [02:05:24]OFDSenderStorePacket done [02:05:24]KKMCreateOFDPacket done [02:05:24]NVStorageSaveData kkm_last_timestamp [02:05:24]File name is /storage/kkm_last_timestamp [02:05:24]Write 4 bytes [02:05:24]NVStorageSaveData done [02:05:24]ExternCall_PrintAddStr [02:05:24]wPrintStart [02:05:24]Write to MH i2c: 01 00 00 E4 06 EA [02:05:24]Write i2c OK [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: 01 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: 01 07 00 [02:05:24]MH_I2C_Read... [02:05:24]Read from MH i2c: 01 07 00 E4 06 00 00 00 00 00 FF 0F FF [02:05:24]RasterBufferAndPrint [02:05:24]line Счет N : (3)126603 [02:05:24]line ИНН: 02508201610067 [02:05:24]line Контрольно-Кассовый Чек [02:05:24]line ПРОДАЖА [02:05:24]line Товар: 4700000160358 [02:05:24]line Вода Легенда 1л [02:05:24]line 1.000 * 50.00 [02:05:24]line = 50.00 [02:05:24]line НДС 12% НСП 1% [02:05:24]line > о реализуемом товаре [02:05:24]line Товар: 4700040114137 [02:05:24]line Султан чай 1л. зел лимон [02:05:24]line 1.000 * 65.00 [02:05:24]line = 65.00 [02:05:24]line НДС 12% НСП 1% [02:05:24]line > о реализуемом товаре [02:05:24]line Товар: 4700040114120 [02:05:24]line Султан чай 1л. чер персик [02:05:24]line 1.000 * 65.00 [02:05:24]line = 65.00 [02:05:24]line НДС 12% НСП 1% [02:05:24]line > о реализуемом товаре [02:05:24]line ИТОГО: 180.00 [02:05:24]line НСП 1% : 1.58 [02:05:24]line НДС 12% : 19.11 [02:05:24]line Наличными: 180.00 [02:05:24]line Безнал.: 0.00 [02:05:24]line Место: АЗС № 127 "Партнер Нефть" [02:05:24]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [02:05:24]line СНО: Общий режим [02:05:24]line Чек 13 30.07.2024 02:05 [02:05:24]line Смена: 16 ФФД: 1.0 [02:05:24]line ЗНМ: 0300000161 [02:05:24]line РНМ: 0000000000189667 [02:05:24]line Версия ККМ: v1.0 [02:05:24]line ФМ: 0000000002094248 [02:05:24]line ФД: 2396 [02:05:24]line ФПД: 254108254146784 [02:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T020523&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2396&fm=254108254146784&tin=02508201610067®Number=0000000000189667&sum=18000 [02:05:25]OFD Sender: Processing packet 2396 [packets to send 1, broken 0] [02:05:25]ProducePacketName [02:05:25]name=ofd_packets/00002396 [02:05:25]OFD Sender: To server: pG, [02:05:25]CommunicateWithHost lk.salyk.kg:30040 [02:05:25]ConnectInit lk.salyk.kg [02:05:25]line 0 [02:05:25]written 0, free lines is 4095 [02:05:25]Connected sock=10 [02:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 07 02 00 00 D9 07 FF 01 A3 6F 5A 03 01 00 03 00 F3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 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 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 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 9E 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 63 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 09 00 00 35 04 06 00 E7 1C 30 39 10 E0 F2 7F 75 70 E5 5E AF 04 [02:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 45 6C 47 00 27 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5C 09 00 00 F4 03 04 00 CF F5 A7 66 B6 04 01 00 00 E0 96 4B A6 3E E5 94 BD [02:05:25]CommunicateWithHost err = 0 [02:05:25]CheckOFDResponse [02:05:25]1017 (14) - 77093643461234 [02:05:25]1041 (16) - 0000000002094248 [02:05:25]1040 (4) - 2396 [02:05:25]1012 (4) - 29.07.2024 20:04 [02:05:25]1206 (1) - 0 [02:05:25]OFD Sender: Remove packet 2396 [02:05:25]ProducePacketName [02:05:25]name=ofd_packets/00002396 [02:05:25]NVStorageDeleteData [02:05:25]Write to MH i2c: 01 00 00 18 07 1F [02:05:25]Write i2c OK [02:05:25]MH_I2C_Read... [02:05:25]Read from MH i2c: 01 [02:05:25]MH_I2C_Read... [02:05:25]Read from MH i2c: 01 07 00 [02:05:25]MH_I2C_Read... [02:05:25]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 78 0C AA [02:05:25]RasterBufferAndPrint [02:05:25]line [02:05:25]line [02:05:25]line [02:05:25]line [02:05:25]line [02:05:25]written 0, free lines is 3201 [02:05:25]MH_Cut [02:05:25]Write to MH i2c: D1 01 00 1F 07 01 F8 [02:05:25]Write i2c OK [02:05:25]MH_I2C_Read... [02:05:25]Read from MH i2c: D1 [02:05:25]MH_I2C_Read... [02:05:25]Read from MH i2c: D1 01 00 [02:05:25]MH_I2C_Read... [02:05:25]Read from MH i2c: D1 01 00 1F 07 00 F7 [02:05:25]Write to MH i2c: 01 00 00 20 07 27 [02:05:25]Write i2c OK [02:05:25]MH_I2C_Read... [02:05:25]OFD Sender: No OFD packet to send [02:05:26]*** Cut start [02:05:26]*** Partial cut [02:05:26]*** CUTSNS_PIN = 1 [02:05:26]*** CUTSNS_PIN = 0 [02:05:26]*** Brake cut motor [02:05:27]Read from MH i2c: 01 [02:05:27]MH_I2C_Read... [02:05:27]*** Stop cut motor [02:05:27]*** Cut end [02:05:27]Read from MH i2c: 01 07 00 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [02:05:27]process_action close_receipt done [02:05:27]requested_data is exist [02:05:27]produce_requested_data [02:05:27]requested_item fm.sn is exist - process it [02:05:27]wFMCommunicate request_size=4 [02:05:27]MH_SAM_APDU [02:05:27]CAPDU: 80 11 00 00 [02:05:27]Write to MH i2c: E2 08 00 21 07 80 11 00 00 00 00 00 00 A2 [02:05:27]Write i2c OK [02:05:27]MH_I2C_Read... [02:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:27]Read from MH i2c: E2 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 17 00 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 17 00 21 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 F2 [02:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:05:27]wFMCommunicate OK [02:05:27]requested_item fd.num is exist - process it [02:05:27]SAM_PROTO_GetFieldsCounters [02:05:27]wFMCommunicate request_size=4 [02:05:27]MH_SAM_APDU [02:05:27]CAPDU: 80 13 00 00 [02:05:27]Write to MH i2c: E2 08 00 22 07 80 13 00 00 00 00 00 00 A5 [02:05:27]Write i2c OK [02:05:27]MH_I2C_Read... [02:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:05:27]Read from MH i2c: E2 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 62 00 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 62 00 22 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5C 09 00 00 0E 04 04 00 10 00 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 6B [02:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5C 09 00 00 0E 04 04 00 10 00 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:05:27]wFMCommunicate OK [02:05:27]SAM_PROTO_GetFieldsCounters done [02:05:27]requested_item shift.num is exist - process it [02:05:27]requested_item shift.opened is exist - process it [02:05:27]req_shift_opened [02:05:27]FM_GetShiftState [02:05:27]SAM_PROTO_GetShiftState [02:05:27]wFMCommunicate request_size=4 [02:05:27]MH_SAM_APDU [02:05:27]CAPDU: 80 13 01 00 [02:05:27]Write to MH i2c: E2 08 00 23 07 80 13 01 00 00 00 00 00 A7 [02:05:27]Write i2c OK [02:05:27]MH_I2C_Read... [02:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:27]Read from MH i2c: E2 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 0E 00 [02:05:27]MH_I2C_Read... [02:05:27]Read from MH i2c: E2 0E 00 23 07 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 8E [02:05:27]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:05:27]wFMCommunicate OK [02:05:27]SAM_PROTO_GetShiftState done [02:05:27]FM_GetShiftState done [02:05:27]req_shift_opened done [02:05:27]requested_item shift.open_date is exist - process it [02:05:27]req_shift_open_date [02:05:27]req_shift_open_date done [02:05:27]produce_requested_data done [02:05:27]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2396,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [02:05:27]process_action_free close_receipt [02:05:27]json_value_free [02:05:27]json_value_free done [02:05:27]process_json_proto returns [02:05:27]Send response to host [02:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2396,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [02:05:27]free response buf [02:05:27]execute_script done [02:05:27]execute_script returns [02:05:27]free content buf [02:05:27]Sock 7.Close socket [02:05:27]Sock 7.Thread stoped [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:07:57]accept exits with 9 [02:07:57]New connection [02:07:57]New thread 3067624804 created [02:07:57]Thread 3067481444 joined [02:07:57]Waiting for new connection... [02:07:57] Sock 9.Parse request [02:07:57]Sock 9.Check first char [02:07:57]Sock 9.First char is OK [02:07:57]request: POST /json_proto HTTP/1.0 [02:07:57]Method: POST [02:07:57]URL: /json_proto [02:07:57]Method is POST - this is cgi request [02:07:57]url: /json_proto [02:07:57]query_string will be loaded in cgi processing [02:07:57]execute_cgi json_proto POST (null) [02:07:57]execute_cgi path=json_proto method=POST [02:07:57]POST find Content-Length [02:07:57]Host: 172.17.45.132:8080 [02:07:57]Content-Length: 667 [02:07:57]Content-Type: application/json [02:07:57] [02:07:57]POST finish read [02:07:57]Found Content-Length = 667 [02:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126604", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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" ] } } [02:07:57]execute_script... [02:07: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)126604", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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" ] } } [02:07:57]POST & json_proto [02:07:57]process_json_proto [02:07:57]json parsed OK: [02:07:57]protocol is kg_v1.0 [02:07:57]action value=close_receipt [02:07:57]process_action close_receipt [02:07:57]cmd_close_receipt [02:07:57]MH_GetDate [02:07:57]Write to MH i2c: F0 00 00 24 07 1A [02:07:57]Write i2c OK [02:07:57]MH_I2C_Read... [02:07:57]Read from MH i2c: F0 [02:07:57]MH_I2C_Read... [02:07:57]Read from MH i2c: F0 09 00 [02:07:57]MH_I2C_Read... [02:07:57]Read from MH i2c: F0 09 00 24 07 00 FE 4A A8 66 E3 0B 90 66 5D [02:07:57]GetLastDocTimeStamp 1722305123 [02:07:57]current date 1722305278 [02:07:57]FM_GetShiftState [02:07:57]SAM_PROTO_GetShiftState [02:07:57]wFMCommunicate request_size=4 [02:07:57]MH_SAM_APDU [02:07:57]CAPDU: 80 13 01 00 [02:07:57]Write to MH i2c: E2 08 00 25 07 80 13 01 00 00 00 00 00 A9 [02:07:57]Write i2c OK [02:07:57]MH_I2C_Read... [02:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:07:57]Read from MH i2c: E2 [02:07:57]MH_I2C_Read... [02:07:57]Read from MH i2c: E2 0E 00 [02:07:57]MH_I2C_Read... [02:07:57]Read from MH i2c: E2 0E 00 25 07 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 90 [02:07:57]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:07:57]wFMCommunicate OK [02:07:57]SAM_PROTO_GetShiftState done [02:07:57]FM_GetShiftState done [02:07:57]opened in 1722298270 [02:07:57]opened+sec_in_day 1722384670 [02:07:57]quantity*price = 20000 [02:07:57]sum+1 = 20001 [02:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 14 30.07.2024 02:07 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2397 ФПД: 77373117824893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T020758&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2397&fm=77373117824893&tin=02508201610067®Number=0000000000189667&sum=20000 0 [02:07:58]StoreToDocumentArchive [02:07:58]shift 16 fd 2397 [02:07:58]save to /storage/0016/doc_00002397 [02:07:58]save last doc name /storage/0016/doc_00002397 to /storage/kkm_last_doc_name [02:07:58]save OK [02:07:58]Clear old archive folders... [02:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=283 [02:07:58]tlvbuf is B6FF9AE0 [02:07:58]SAM_PROTO_ClearQueue [02:07:58]wFMCommunicate request_size=4 [02:07:58]MH_SAM_APDU [02:07:58]CAPDU: 80 09 00 00 [02:07:58]Write to MH i2c: E2 08 00 32 07 80 09 00 00 00 00 00 00 AB [02:07:58]Write i2c OK [02:07:58]MH_I2C_Read... [02:07:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:07:58]Read from MH i2c: E2 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [02:07:58]RAPDU: 90 00 [02:07:58]wFMCommunicate OK [02:07:58]SAM_PROTO_ClearQueue done [02:07:58]KKMCreateOFDPacket [02:07:58]OFDProtocolAddRootSTLVToBuf [02:07:58]FM_MakeSignedData [02:07:58]FM_MakeSignedData [02:07:58]SAM_PROTO_SignData [02:07:58]wFMCommunicate request_size=4 [02:07:58]MH_SAM_APDU [02:07:58]CAPDU: 80 0D 01 02 [02:07:58]Write to MH i2c: E2 08 00 33 07 80 0D 01 02 00 00 00 00 B3 [02:07:58]Write i2c OK [02:07:58]MH_I2C_Read... [02:07:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:07:58]Read from MH i2c: E2 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [02:07:58]RAPDU: 90 00 [02:07:58]wFMCommunicate OK [02:07:58]wFMCommunicate request_size=255 [02:07:58]MH_SAM_APDU [02:07:58]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FE 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 [02:07:58]Write to MH i2c: E2 02 01 34 07 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FE 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 00 00 A1 [02:07:58]Write i2c OK [02:07:58]MH_I2C_Read... [02:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:07:58]Read from MH i2c: E2 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [02:07:58]RAPDU: 90 00 [02:07:58]wFMCommunicate OK [02:07:58]wFMCommunicate request_size=42 [02:07:58]MH_SAM_APDU [02:07:58]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 09 00 00 35 04 06 00 46 5E D5 33 FF 7D [02:07:58]Write to MH i2c: E2 2D 00 35 07 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 09 00 00 35 04 06 00 46 5E D5 33 FF 7D 00 00 16 [02:07:58]Write i2c OK [02:07:58]MH_I2C_Read... [02:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:07:58]Read from MH i2c: E2 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [02:07:58]RAPDU: 90 00 [02:07:58]wFMCommunicate OK [02:07:58]wFMCommunicate request_size=4 [02:07:58]MH_SAM_APDU [02:07:58]CAPDU: 80 0D 03 02 [02:07:58]Write to MH i2c: E2 08 00 36 07 80 0D 03 02 00 00 00 00 B8 [02:07:58]Write i2c OK [02:07:58]MH_I2C_Read... [02:07:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:07:58]Read from MH i2c: E2 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 0B 00 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 0B 00 36 07 00 DC 53 35 B1 C5 9C 4C 40 90 00 BB [02:07:58]RAPDU: DC 53 35 B1 C5 9C 4C 40 90 00 [02:07:58]wFMCommunicate OK [02:07:58]SAM_PROTO_SignData done [02:07:58]FM_MakeSignedData done [02:07:58]CreateOFDProtocolMessage [02:07:58]wFMCommunicate request_size=4 [02:07:58]MH_SAM_APDU [02:07:58]CAPDU: 80 11 00 00 [02:07:58]Write to MH i2c: E2 08 00 37 07 80 11 00 00 00 00 00 00 B8 [02:07:58]Write i2c OK [02:07:58]MH_I2C_Read... [02:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:07:58]Read from MH i2c: E2 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 17 00 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: E2 17 00 37 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 08 [02:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:07:58]wFMCommunicate OK [02:07:58]CreateOFDProtocolMessage done [02:07:58]OFDSenderStorePacket 2397 [02:07:58]StoreOFDPacket docnum=2397 [02:07:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 39 CF 27 01 FF 47 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FE 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 09 00 00 35 04 06 00 46 5E D5 33 FF 7D DC 53 35 B1 C5 9C 4C 40 [02:07:58]CheckFolder [02:07:58]dirname=/storage/ofd_packets [02:07:58]CheckFolder done [02:07:58]ProducePacketName [02:07:58]name=ofd_packets/00002397 [02:07:58]NVStorageSaveData ofd_packets/00002397 [02:07:58]File name is /storage/ofd_packets/00002397 [02:07:58]Write 333 bytes [02:07:58]NVStorageSaveData done [02:07:58]OFDSenderStorePacket done [02:07:58]KKMCreateOFDPacket done [02:07:58]NVStorageSaveData kkm_last_timestamp [02:07:58]File name is /storage/kkm_last_timestamp [02:07:58]Write 4 bytes [02:07:58]NVStorageSaveData done [02:07:58]ExternCall_PrintAddStr [02:07:58]wPrintStart [02:07:58]Write to MH i2c: 01 00 00 38 07 3F [02:07:58]Write i2c OK [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: 01 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: 01 07 00 [02:07:58]MH_I2C_Read... [02:07:58]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FF 0F 54 [02:07:58]RasterBufferAndPrint [02:07:58]line Счет N : (3)126604 [02:07:58]line ИНН: 02508201610067 [02:07:58]line Контрольно-Кассовый Чек [02:07:58]line ПРОДАЖА [02:07:58]line Товар: 4700002085444 [02:07:58]line Водка Белое золото 0,24л [02:07:58]line 1.000 * 200.00 [02:07:58]line = 200.00 [02:07:58]line НДС 12% НСП 1% [02:07:58]line > о реализуемом товаре [02:07:58]line ИТОГО: 200.00 [02:07:58]line НСП 1% : 1.77 [02:07:58]line НДС 12% : 21.24 [02:07:58]line Наличными: 200.00 [02:07:58]line Безнал.: 0.00 [02:07:58]line Место: АЗС № 127 "Партнер Нефть" [02:07:58]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [02:07:58]line СНО: Общий режим [02:07:59]line Чек 14 30.07.2024 02:07 [02:07:59]line Смена: 16 ФФД: 1.0 [02:07:59]line ЗНМ: 0300000161 [02:07:59]line РНМ: 0000000000189667 [02:07:59]line Версия ККМ: v1.0 [02:07:59]line ФМ: 0000000002094248 [02:07:59]line ФД: 2397 [02:07:59]line ФПД: 77373117824893 [02:07:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T020758&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2397&fm=77373117824893&tin=02508201610067®Number=0000000000189667&sum=20000 [02:07:59]line 0 [02:07:59]OFD Sender: Processing packet 2397 [packets to send 1, broken 0] [02:07:59]ProducePacketName [02:07:59]name=ofd_packets/00002397 [02:07:59]OFD Sender: To server: pG, [02:07:59]CommunicateWithHost lk.salyk.kg:30040 [02:07:59]ConnectInit lk.salyk.kg [02:07:59]written 0, free lines is 4095 [02:07:59]Connected sock=10 [02:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 39 CF 27 01 FF 47 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 FE 4A A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 09 00 00 35 04 06 00 46 5E D5 33 FF 7D DC 53 35 B1 C5 9C 4C 40 [02:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 E9 5F 47 00 AE D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5D 09 00 00 F4 03 04 00 69 F6 A7 66 B6 04 01 00 00 EC F9 26 99 E2 9C 90 AE [02:07:59]CommunicateWithHost err = 0 [02:07:59]CheckOFDResponse [02:07:59]1017 (14) - 77093643461234 [02:07:59]1041 (16) - 0000000002094248 [02:07:59]1040 (4) - 2397 [02:07:59]1012 (4) - 29.07.2024 20:07 [02:07:59]1206 (1) - 0 [02:07:59]OFD Sender: Remove packet 2397 [02:07:59]ProducePacketName [02:07:59]name=ofd_packets/00002397 [02:07:59]NVStorageDeleteData [02:07:59]Write to MH i2c: 01 00 00 60 07 67 [02:07:59]Write i2c OK [02:07:59]MH_I2C_Read... [02:07:59]Read from MH i2c: 01 [02:07:59]MH_I2C_Read... [02:07:59]Read from MH i2c: 01 07 00 [02:07:59]MH_I2C_Read... [02:07:59]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 0F 0D 8A [02:07:59]RasterBufferAndPrint [02:07:59]line [02:07:59]line [02:07:59]line [02:07:59]line [02:07:59]line [02:07:59]written 0, free lines is 3349 [02:07:59]MH_Cut [02:07:59]Write to MH i2c: D1 01 00 67 07 01 40 [02:07:59]Write i2c OK [02:07:59]MH_I2C_Read... [02:07:59]Read from MH i2c: D1 [02:07:59]MH_I2C_Read... [02:07:59]Read from MH i2c: D1 01 00 [02:07:59]MH_I2C_Read... [02:07:59]Read from MH i2c: D1 01 00 67 07 00 3F [02:07:59]Write to MH i2c: 01 00 00 68 07 6F [02:07:59]Write i2c OK [02:07:59]MH_I2C_Read... [02:07:59]OFD Sender: No OFD packet to send [02:08:00]*** Cut start [02:08:00]*** Partial cut [02:08:00]*** CUTSNS_PIN = 1 [02:08:00]*** CUTSNS_PIN = 0 [02:08:00]*** Brake cut motor [02:08:00]Read from MH i2c: 01 [02:08:00]MH_I2C_Read... [02:08:00]*** Stop cut motor [02:08:00]*** Cut end [02:08:00]Read from MH i2c: 01 07 00 [02:08:00]MH_I2C_Read... [02:08:00]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [02:08:00]process_action close_receipt done [02:08:00]requested_data is exist [02:08:00]produce_requested_data [02:08:00]requested_item fm.sn is exist - process it [02:08:00]wFMCommunicate request_size=4 [02:08:00]MH_SAM_APDU [02:08:00]CAPDU: 80 11 00 00 [02:08:00]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [02:08:00]Write i2c OK [02:08:00]MH_I2C_Read... [02:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:00]Read from MH i2c: E2 [02:08:00]MH_I2C_Read... [02:08:00]Read from MH i2c: E2 17 00 [02:08:00]MH_I2C_Read... [02:08:00]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 3A [02:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:08:00]wFMCommunicate OK [02:08:00]requested_item fd.num is exist - process it [02:08:00]SAM_PROTO_GetFieldsCounters [02:08:00]wFMCommunicate request_size=4 [02:08:00]MH_SAM_APDU [02:08:00]CAPDU: 80 13 00 00 [02:08:00]Write to MH i2c: E2 08 00 6A 07 80 13 00 00 00 00 00 00 ED [02:08:00]Write i2c OK [02:08:00]MH_I2C_Read... [02:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:01]Read from MH i2c: E2 [02:08:01]MH_I2C_Read... [02:08:01]Read from MH i2c: E2 62 00 [02:08:01]MH_I2C_Read... [02:08:01]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 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5D 09 00 00 0E 04 04 00 10 00 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 B7 [02:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5D 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:08:01]wFMCommunicate OK [02:08:01]SAM_PROTO_GetFieldsCounters done [02:08:01]requested_item shift.num is exist - process it [02:08:01]requested_item shift.opened is exist - process it [02:08:01]req_shift_opened [02:08:01]FM_GetShiftState [02:08:01]SAM_PROTO_GetShiftState [02:08:01]wFMCommunicate request_size=4 [02:08:01]MH_SAM_APDU [02:08:01]CAPDU: 80 13 01 00 [02:08:01]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [02:08:01]Write i2c OK [02:08:01]MH_I2C_Read... [02:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:01]Read from MH i2c: E2 [02:08:01]MH_I2C_Read... [02:08:01]Read from MH i2c: E2 0E 00 [02:08:01]MH_I2C_Read... [02:08:01]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 D6 [02:08:01]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:08:01]wFMCommunicate OK [02:08:01]SAM_PROTO_GetShiftState done [02:08:01]FM_GetShiftState done [02:08:01]req_shift_opened done [02:08:01]requested_item shift.open_date is exist - process it [02:08:01]req_shift_open_date [02:08:01]req_shift_open_date done [02:08:01]produce_requested_data done [02:08:01]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2397,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [02:08:01]process_action_free close_receipt [02:08:01]json_value_free [02:08:01]json_value_free done [02:08:01]process_json_proto returns [02:08:01]Send response to host [02:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2397,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [02:08:01]free response buf [02:08:01]execute_script done [02:08:01]execute_script returns [02:08:01]free content buf [02:08:01]Sock 9.Close socket [02:08:01]Sock 9.Thread stoped [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [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:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:53:59]accept exits with 7 [02:53:59]New connection [02:53:59]New thread 3067481444 created [02:53:59]Thread 3067624804 joined [02:53:59]Waiting for new connection... [02:53:59] Sock 7.Parse request [02:53:59]Sock 7.Check first char [02:53:59]Sock 7.First char is OK [02:53:59]request: POST /json_proto HTTP/1.0 [02:53:59]Method: POST [02:53:59]URL: /json_proto [02:53:59]Method is POST - this is cgi request [02:53:59]url: /json_proto [02:53:59]query_string will be loaded in cgi processing [02:53:59]execute_cgi json_proto POST (null) [02:53:59]execute_cgi path=json_proto method=POST [02:53:59]POST find Content-Length [02:53:59]Host: 172.17.45.132:8080 [02:53:59]Content-Length: 667 [02:53:59]Content-Type: application/json [02:53:59] [02:53:59]POST finish read [02:53:59]Found Content-Length = 667 [02:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)126605", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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" ] } } [02:53:59]execute_script... [02:53: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)126605", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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" ] } } [02:53:59]POST & json_proto [02:53:59]process_json_proto [02:53:59]json parsed OK: [02:53:59]protocol is kg_v1.0 [02:53:59]action value=close_receipt [02:53:59]process_action close_receipt [02:53:59]cmd_close_receipt [02:53:59]MH_GetDate [02:53:59]Write to MH i2c: F0 00 00 6C 07 62 [02:53:59]Write i2c OK [02:53:59]MH_I2C_Read... [02:53:59]Read from MH i2c: F0 [02:53:59]MH_I2C_Read... [02:53:59]Read from MH i2c: F0 09 00 [02:53:59]MH_I2C_Read... [02:53:59]Read from MH i2c: F0 09 00 6C 07 00 C9 55 A8 66 E3 0B 90 66 7B [02:53:59]GetLastDocTimeStamp 1722305278 [02:53:59]current date 1722308041 [02:53:59]FM_GetShiftState [02:53:59]SAM_PROTO_GetShiftState [02:53:59]wFMCommunicate request_size=4 [02:53:59]MH_SAM_APDU [02:53:59]CAPDU: 80 13 01 00 [02:53:59]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [02:53:59]Write i2c OK [02:53:59]MH_I2C_Read... [02:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:00]Read from MH i2c: E2 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 0E 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 D8 [02:54:00]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:54:00]wFMCommunicate OK [02:54:00]SAM_PROTO_GetShiftState done [02:54:00]FM_GetShiftState done [02:54:00]opened in 1722298270 [02:54:00]opened+sec_in_day 1722384670 [02:54:00]quantity*price = 20000 [02:54:00]sum+1 = 20001 [02:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 127 "Партнер Нефть" Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 СНО: Общий режим Чек 15 30.07.2024 02:54 Смена: 16 ФФД: 1.0 ЗНМ: 0300000161 РНМ: 0000000000189667 Версия ККМ: v1.0 ФМ: 0000000002094248 ФД: 2398 ФПД: 62514183531425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025401&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2398&fm=62514183531425&tin=02508201610067®Number=0000000000189667&sum=20000 0 [02:54:01]StoreToDocumentArchive [02:54:01]shift 16 fd 2398 [02:54:01]save to /storage/0016/doc_00002398 [02:54:01]save last doc name /storage/0016/doc_00002398 to /storage/kkm_last_doc_name [02:54:01]save OK [02:54:01]Clear old archive folders... [02:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=283 [02:54:01]tlvbuf is 00843350 [02:54:01]SAM_PROTO_ClearQueue [02:54:01]wFMCommunicate request_size=4 [02:54:01]MH_SAM_APDU [02:54:01]CAPDU: 80 09 00 00 [02:54:01]Write to MH i2c: E2 08 00 7A 07 80 09 00 00 00 00 00 00 F3 [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:01]Read from MH i2c: E2 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 03 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [02:54:01]RAPDU: 90 00 [02:54:01]wFMCommunicate OK [02:54:01]SAM_PROTO_ClearQueue done [02:54:01]KKMCreateOFDPacket [02:54:01]OFDProtocolAddRootSTLVToBuf [02:54:01]FM_MakeSignedData [02:54:01]FM_MakeSignedData [02:54:01]SAM_PROTO_SignData [02:54:01]wFMCommunicate request_size=4 [02:54:01]MH_SAM_APDU [02:54:01]CAPDU: 80 0D 01 02 [02:54:01]Write to MH i2c: E2 08 00 7B 07 80 0D 01 02 00 00 00 00 FB [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:01]Read from MH i2c: E2 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 03 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [02:54:01]RAPDU: 90 00 [02:54:01]wFMCommunicate OK [02:54:01]wFMCommunicate request_size=255 [02:54:01]MH_SAM_APDU [02:54:01]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 55 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 [02:54:01]Write to MH i2c: E2 02 01 7C 07 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 55 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 00 00 C0 [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 [02:54:01]MH_I2C_Read... [02:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:01]Read from MH i2c: E2 03 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [02:54:01]RAPDU: 90 00 [02:54:01]wFMCommunicate OK [02:54:01]wFMCommunicate request_size=42 [02:54:01]MH_SAM_APDU [02:54:01]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 09 00 00 35 04 06 00 38 DB 37 B3 EB A1 [02:54:01]Write to MH i2c: E2 2D 00 7D 07 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 09 00 00 35 04 06 00 38 DB 37 B3 EB A1 00 00 C0 [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:01]Read from MH i2c: E2 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 03 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [02:54:01]RAPDU: 90 00 [02:54:01]wFMCommunicate OK [02:54:01]wFMCommunicate request_size=4 [02:54:01]MH_SAM_APDU [02:54:01]CAPDU: 80 0D 03 02 [02:54:01]Write to MH i2c: E2 08 00 7E 07 80 0D 03 02 00 00 00 00 00 [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:01]Read from MH i2c: E2 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 0B 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 0B 00 7E 07 00 8E 5F 29 22 09 36 6C 85 90 00 69 [02:54:01]RAPDU: 8E 5F 29 22 09 36 6C 85 90 00 [02:54:01]wFMCommunicate OK [02:54:01]SAM_PROTO_SignData done [02:54:01]FM_MakeSignedData done [02:54:01]CreateOFDProtocolMessage [02:54:01]wFMCommunicate request_size=4 [02:54:01]MH_SAM_APDU [02:54:01]CAPDU: 80 11 00 00 [02:54:01]Write to MH i2c: E2 08 00 7F 07 80 11 00 00 00 00 00 00 00 [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:01]Read from MH i2c: E2 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 17 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: E2 17 00 7F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 50 [02:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:54:01]wFMCommunicate OK [02:54:01]CreateOFDProtocolMessage done [02:54:01]OFDSenderStorePacket 2398 [02:54:01]StoreOFDPacket docnum=2398 [02:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 61 D9 27 01 9B C0 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 55 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 09 00 00 35 04 06 00 38 DB 37 B3 EB A1 8E 5F 29 22 09 36 6C 85 [02:54:01]CheckFolder [02:54:01]dirname=/storage/ofd_packets [02:54:01]CheckFolder done [02:54:01]ProducePacketName [02:54:01]name=ofd_packets/00002398 [02:54:01]NVStorageSaveData ofd_packets/00002398 [02:54:01]File name is /storage/ofd_packets/00002398 [02:54:01]Write 333 bytes [02:54:01]NVStorageSaveData done [02:54:01]OFDSenderStorePacket done [02:54:01]KKMCreateOFDPacket done [02:54:01]NVStorageSaveData kkm_last_timestamp [02:54:01]File name is /storage/kkm_last_timestamp [02:54:01]Write 4 bytes [02:54:01]NVStorageSaveData done [02:54:01]ExternCall_PrintAddStr [02:54:01]wPrintStart [02:54:01]Write to MH i2c: 01 00 00 80 07 87 [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: 01 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: 01 07 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 FF 0F 9C [02:54:01]RasterBufferAndPrint [02:54:01]line Счет N : (3)126605 [02:54:01]line ИНН: 02508201610067 [02:54:01]line Контрольно-Кассовый Чек [02:54:01]line ПРОДАЖА [02:54:01]line Товар: 4700002085444 [02:54:01]line Водка Белое золото 0,24л [02:54:01]line 1.000 * 200.00 [02:54:01]line = 200.00 [02:54:01]line НДС 12% НСП 1% [02:54:01]line > о реализуемом товаре [02:54:01]line ИТОГО: 200.00 [02:54:01]line НСП 1% : 1.77 [02:54:01]line НДС 12% : 21.24 [02:54:01]line Наличными: 200.00 [02:54:01]line Безнал.: 0.00 [02:54:01]line Место: АЗС № 127 "Партнер Нефть" [02:54:01]line Адрес: 720001, г. Баткен, квартал Кызыл Дон, 40.074960, 70.840650 [02:54:01]line СНО: Общий режим [02:54:01]line Чек 15 30.07.2024 02:54 [02:54:01]line Смена: 16 ФФД: 1.0 [02:54:01]line ЗНМ: 0300000161 [02:54:01]line РНМ: 0000000000189667 [02:54:01]line Версия ККМ: v1.0 [02:54:01]line ФМ: 0000000002094248 [02:54:01]line ФД: 2398 [02:54:01]line ФПД: 62514183531425 [02:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025401&type=1&operation_type=1&fn_number=0000000002094248&fd_number=2398&fm=62514183531425&tin=02508201610067®Number=0000000000189667&sum=20000 [02:54:02]line 0 [02:54:02]OFD Sender: Processing packet 2398 [packets to send 1, broken 0] [02:54:02]ProducePacketName [02:54:02]name=ofd_packets/00002398 [02:54:02]OFD Sender: To server: pG, [02:54:02]CommunicateWithHost lk.salyk.kg:30040 [02:54:02]ConnectInit lk.salyk.kg [02:54:02]written 0, free lines is 4095 [02:54:02]Connected sock=10 [02:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 2F 01 00 00 61 D9 27 01 9B C0 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 C9 55 A8 66 0E 04 04 00 10 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 10 04 04 00 5E 09 00 00 35 04 06 00 38 DB 37 B3 EB A1 8E 5F 29 22 09 36 6C 85 [02:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 4F 00 00 00 02 BB 47 00 52 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 32 30 39 34 32 34 38 10 04 04 00 5E 09 00 00 F4 03 04 00 34 01 A8 66 B6 04 01 00 00 66 2C B3 85 36 B9 60 15 [02:54:02]CommunicateWithHost err = 0 [02:54:02]CheckOFDResponse [02:54:02]1017 (14) - 77093643461234 [02:54:02]1041 (16) - 0000000002094248 [02:54:02]1040 (4) - 2398 [02:54:02]1012 (4) - 29.07.2024 20:53 [02:54:02]1206 (1) - 0 [02:54:02]OFD Sender: Remove packet 2398 [02:54:02]ProducePacketName [02:54:02]name=ofd_packets/00002398 [02:54:02]NVStorageDeleteData [02:54:02]Write to MH i2c: 01 00 00 A8 07 AF [02:54:02]Write i2c OK [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: 01 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: 01 07 00 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 27 0D EA [02:54:02]RasterBufferAndPrint [02:54:02]line [02:54:02]line [02:54:02]line [02:54:02]line [02:54:02]line [02:54:02]written 0, free lines is 3373 [02:54:02]MH_Cut [02:54:02]Write to MH i2c: D1 01 00 AF 07 01 88 [02:54:02]Write i2c OK [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: D1 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: D1 01 00 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: D1 01 00 AF 07 00 87 [02:54:02]Write to MH i2c: 01 00 00 B0 07 B7 [02:54:02]Write i2c OK [02:54:02]MH_I2C_Read... [02:54:02]OFD Sender: No OFD packet to send [02:54:03]*** Cut start [02:54:03]*** Partial cut [02:54:03]*** CUTSNS_PIN = 1 [02:54:03]*** CUTSNS_PIN = 0 [02:54:03]*** Brake cut motor [02:54:03]Read from MH i2c: 01 [02:54:03]MH_I2C_Read... [02:54:03]*** Stop cut motor [02:54:03]*** Cut end [02:54:03]Read from MH i2c: 01 07 00 [02:54:03]MH_I2C_Read... [02:54:03]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [02:54:03]process_action close_receipt done [02:54:03]requested_data is exist [02:54:03]produce_requested_data [02:54:03]requested_item fm.sn is exist - process it [02:54:03]wFMCommunicate request_size=4 [02:54:03]MH_SAM_APDU [02:54:03]CAPDU: 80 11 00 00 [02:54:03]Write to MH i2c: E2 08 00 B1 07 80 11 00 00 00 00 00 00 32 [02:54:03]Write i2c OK [02:54:03]MH_I2C_Read... [02:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:03]Read from MH i2c: E2 [02:54:03]MH_I2C_Read... [02:54:03]Read from MH i2c: E2 17 00 [02:54:03]MH_I2C_Read... [02:54:03]Read from MH i2c: E2 17 00 B1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 82 [02:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 90 00 [02:54:03]wFMCommunicate OK [02:54:03]requested_item fd.num is exist - process it [02:54:03]SAM_PROTO_GetFieldsCounters [02:54:03]wFMCommunicate request_size=4 [02:54:03]MH_SAM_APDU [02:54:03]CAPDU: 80 13 00 00 [02:54:03]Write to MH i2c: E2 08 00 B2 07 80 13 00 00 00 00 00 00 35 [02:54:03]Write i2c OK [02:54:03]MH_I2C_Read... [02:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:03]Read from MH i2c: E2 [02:54:03]MH_I2C_Read... [02:54:03]Read from MH i2c: E2 62 00 [02:54:03]MH_I2C_Read... [02:54:03]Read from MH i2c: E2 62 00 B2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5E 09 00 00 0E 04 04 00 10 00 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 03 [02:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 34 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 39 36 36 37 10 04 04 00 5E 09 00 00 0E 04 04 00 10 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:54:03]wFMCommunicate OK [02:54:03]SAM_PROTO_GetFieldsCounters done [02:54:03]requested_item shift.num is exist - process it [02:54:03]requested_item shift.opened is exist - process it [02:54:03]req_shift_opened [02:54:03]FM_GetShiftState [02:54:03]SAM_PROTO_GetShiftState [02:54:03]wFMCommunicate request_size=4 [02:54:03]MH_SAM_APDU [02:54:03]CAPDU: 80 13 01 00 [02:54:03]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [02:54:03]Write i2c OK [02:54:03]MH_I2C_Read... [02:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:04]Read from MH i2c: E2 [02:54:04]MH_I2C_Read... [02:54:04]Read from MH i2c: E2 0E 00 [02:54:04]MH_I2C_Read... [02:54:04]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 9E 2F A8 66 00 00 00 00 90 00 1E [02:54:04]RAPDU: 09 00 01 9E 2F A8 66 00 00 00 00 90 00 [02:54:04]wFMCommunicate OK [02:54:04]SAM_PROTO_GetShiftState done [02:54:04]FM_GetShiftState done [02:54:04]req_shift_opened done [02:54:04]requested_item shift.open_date is exist - process it [02:54:04]req_shift_open_date [02:54:04]req_shift_open_date done [02:54:04]produce_requested_data done [02:54:04]produce_requested_data return {"fm.sn":"0000000002094248","fd.num":2398,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270} [02:54:04]process_action_free close_receipt [02:54:04]json_value_free [02:54:04]json_value_free done [02:54:04]process_json_proto returns [02:54:04]Send response to host [02:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094248","fd.num":2398,"shift.num":16,"shift.opened":1,"shift.open_date":1722298270}}} [02:54:04]free response buf [02:54:04]execute_script done [02:54:04]execute_script returns [02:54:04]free content buf [02:54:04]Sock 7.Close socket [02:54:04]Sock 7.Thread stoped [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]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